/* ========================================
   CSS Reset & Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Font Declaration */
@font-face {
    font-family: 'Avenir';
    src: url('TCDC RC_Web_DesignAW_Folder/Fonts/Avenir.ttc') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #e6e6e6;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header Section
   ======================================== */

.header {
    background-color: #e6e6e6;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px 8px;
}

.main-title {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 0.9;
    color: #333333;
    display: flex;
    flex-direction: column;
}

.title-online {
    display: block;
    font-weight: 600;
    font-size: 36px;
    /* Mobile Scale */
}

.title-databases {
    display: block;
    font-weight: 900;
    font-size: 46px;
    /* Mobile Scale */
}

.logo-container {
    flex-shrink: 0;
}

.tcdc-logo {
    height: 85px;
    width: auto;
}

.green-line {
    height: 14px;
    background-color: #8cc63f;
    width: 100%;
}

/* ========================================
   Main Content Section
   ======================================== */

.main-content {
    flex: 1;
    background-color: #ffffff;
}

.database-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* ========================================
   Database Cards
   ======================================== */

.database-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.database-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.card-link:hover .card-image {
    opacity: 0.95;
}

/* ========================================
   Footer Section
   ======================================== */

.footer {
    background-color: #808080;
    padding: 20px;
    margin-top: auto;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: 0 5px;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-separator {
    color: #fff;
    margin: 0 5px;
}

/* ========================================
   Responsive Design - Tablet & Desktop
   ======================================== */

@media (min-width: 768px) {
    .title-online {
        font-size: 40px;
        /* Tablet Scale */
    }

    .title-databases {
        font-size: 50px;
        /* Tablet Scale */
    }

    .tcdc-logo {
        height: 80px;
    }

    .database-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-nav {
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 10px 40px 8px;
    }

    .title-online {
        font-size: 34px;
    }

    .title-databases {
        font-size: 44px;
    }

    .database-grid {
        padding: 50px 40px;
        gap: 40px;
    }
}

/* ========================================
   Mobile Optimizations
   ======================================== */

@media (max-width: 767px) {
    .header-content {
        padding: 12px 15px 6px;
    }



    .tcdc-logo {
        height: 65px;
    }

    .database-grid {
        padding: 25px 15px;
        gap: 20px;
    }

    .footer {
        padding: 15px;
    }

    .footer-nav {
        font-size: 11px;
        line-height: 1.8;
    }

    .footer-separator {
        margin: 0 3px;
    }
}