/* ============================================
   DRIVERS PAGE — TEAL THEME (#047676)
   ============================================ */

/* Page background - teal */
html, body {
    background: #047676;
    margin: 0;
    padding: 0;
}

main {
    background: #047676;
}

/* Page header - WHITE text */
.page-header h1 {
    color: #ffffff !important;
    font-size: 42px;
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}

.page-header .subtitle {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Header navigation - WHITE text */
.site-header .main-nav a,
header .main-nav a,
.main-nav a {
    color: #ffffff !important;
}

.site-header .main-nav a:hover,
header .main-nav a:hover,
.main-nav a:hover {
    color: #e89b0f !important;
}

/* Logo - WHITE text */
.site-header .logo a,
header .logo a {
    color: #ffffff !important;
}

/* Search section */
.search-section {
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: #047676;
}

.search-box button {
    padding: 0.8rem 1.5rem;
    background: #047676;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Abril Fatface', serif;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 0.85;
}

/* Alpha menu */
.alpha-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(4, 118, 118, 0.85);
    border-radius: 0px;
}

.alpha-link {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    font-family: 'Abril Fatface', serif;
    font-size: 1.2rem;
    color: #FFF;
    transition: all 0.2s;
    border-radius: 0px;
}

.alpha-link:hover {
    background: #059090;
    color: white;
}

.alpha-link.active {
    background: #035858;
    color: white;
}

/* Results count */
.results-count {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.results-count h1 {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

/* Filter active note */
.filter-active-note {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    font-size: 0.9rem;
    border-radius: 0px;
    color: #ffffff;
}

.filter-active-note a {
    color: #e89b0f;
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: #ffffff;
    grid-column: 1 / -1;
}

.no-results a {
    color: #e89b0f;
}

/* Section title */
.section-title {
    font-family: 'Abril Fatface', serif;
    font-size: 2rem;
    color: #ffffff;
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

/* Driver grid tiles */
.homeGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 2rem auto;
    background: #047676;
}

.homeBox {
    aspect-ratio: 1 / 1;
    display: flex;
    text-decoration: none;
    color: #111;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    transition: box-shadow 0.2s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a.homeBox:hover {
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.homeInner {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 0.5rem;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.2);
}

.homeInitial {
    font-family: 'Abril Fatface', serif;
    font-size: 7rem;
    transform: rotate(-90deg);
    opacity: 0.35;
    line-height: 1;
    text-transform: lowercase;
    white-space: nowrap;
    justify-self: start;
    align-self: start;
    margin-top: 20px;
    margin-left: -10px;
    grid-row: 1;
    grid-column: 1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.driver-thumbnail {
    width: 260px;
    height: 260px;
    object-fit: cover;
    z-index: 3;
    border: 3px solid rgba(255,255,255,0.4);
    background: #f5f3ef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    justify-self: end;
    align-self: start;
    grid-row: 1;
    grid-column: 2;
    border-radius: 4px;
    transition: none;
}

/* REMOVED: .homeBox:hover .driver-thumbnail (no size change on hover) */

.homeContent {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    margin-top: 0;
    padding-top: 0.5rem;
}

.homeTitle {
    font-family: 'Abril Fatface', serif;
    font-size: 2.5rem;
    z-index: 2;
    letter-spacing: -0.02em;
    line-height: 1.1;
    word-break: break-word;
    width: 100%;
    text-align: left;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.25rem;
}

.homeBox:hover .homeTitle {
    color: #e89b0f !important;
}

.driver-years {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.5rem;
    color: #ffffff;
}

.driver-nationality {
    font-family: inherit;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 0.25rem;
    color: #ffffff;
}

.homeBox:hover {
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.birthday-header {
    font-family: 'Abril Fatface', serif;
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .homeGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .homeInitial {
        font-size: 6rem;
        margin-top: 15px;
    }
    
    .driver-thumbnail {
        width: 180px;
        height: 180px;
    }
    
    .homeTitle {
        font-size: 2rem;
    }
    
    .driver-years {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .homeGrid {
        grid-template-columns: 1fr;
        margin: 0.5rem;
    }
    
    .homeInitial {
        font-size: 4rem;
        margin-top: 10px;
        margin-left: -5px;
    }
    
    .driver-thumbnail {
        width: 250px;
        height:250px;
    }
    
    .homeTitle {
        font-size: 2.0rem;
    }
    
    .driver-years {
        font-size: 2.5rem;
    }
    
    .driver-nationality {
        font-size: 2.25rem;
    }
    
    .homeInner {
        padding: 2.0rem;
    }
}