/* ==========================================================================
   1. SHARED SUBPAGE HERO & BREADCRUMBS
   ========================================================================== */
.top-bar {
    background-color: var(--primary-deep);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-socials {
    display: flex;
    gap: 1rem;
}

.top-bar-socials a:hover {
    color: var(--accent-warm);
    transform: scale(1.1);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #1e40af 60%, var(--primary-light) 100%);
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.08);
    top: -150px;
    right: -100px;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-warm);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   2. ABOUT US PAGE STYLES
   ========================================================================== */
.about-page-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

.about-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-nav {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sidebar-nav-title {
    background: var(--primary-deep);
    color: white;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    color: var(--text-medium);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-nav-link:last-child {
    border-bottom: none;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: var(--primary-bg);
    color: var(--primary-deep);
    padding-left: 2rem;
}

.about-content-main {
    min-width: 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-warm);
    border-radius: var(--radius-full);
}

.content-section>p {
    color: var(--text-medium);
    line-height: 1.75;
    margin-top: 1.25rem;
    font-size: 1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-warm);
    transition: all var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-deep), var(--accent-warm));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-warm);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--accent-warm);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-warm);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.team-avatar {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info {
    padding: 1.25rem;
}

.team-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.82rem;
    color: var(--accent-warm);
    font-weight: 600;
    font-family: var(--font-heading);
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    line-height: 1.55;
}

/* ==========================================================================
   3. CONTACT PAGE STYLES
   ========================================================================== */
.contact-page-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-top-color: var(--accent-warm);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary-deep);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-card-icon {
    background: var(--primary-deep);
    color: white;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-deep);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--accent-warm);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.contact-form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-card>p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.contact-form-success svg {
    width: 56px;
    height: 56px;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.contact-form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-form-success p {
    color: var(--text-medium);
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Office Hours Card */
.office-hours-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.office-hours-card-header {
    background: var(--primary-deep);
    color: white;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.office-hours-table {
    padding: 1.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.hours-time {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.hours-badge-closed {
    background: #FEE2E2;
    color: #DC2626;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Contact Map Card */
.contact-map-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-header {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-deep);
    border-bottom: 1px solid var(--border-color);
}

.map-embed {
    height: 220px;
    background: var(--border-color);
    position: relative;
}

.map-embed svg {
    width: 100%;
    height: 100%;
}

.map-address {
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-medium);
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.faq-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-warm);
    border-radius: var(--radius-full);
    margin: 0.75rem auto 0;
}

.faq-section>p {
    text-align: center;
    color: var(--text-medium);
    margin: 1rem 0 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent-warm);
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==========================================================================
   4. CONSOLIDATED RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & iPad Viewports */
@media (max-width: 1024px) {

    .about-page-grid,
    .contact-main-grid,
    .values-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        position: static;
    }

    .team-grid,
    .contact-cards-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .page-hero {
        padding: 3.5rem 1rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .about-page-grid,
    .contact-page-wrapper {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .team-grid,
    .contact-cards-row,
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}


/* ==========================================================================
   5. EXTENDED RESPONSIVE FIXES — All Devices
   ========================================================================== */

/* --- Tablet Mid-Range (600px – 1024px) ----------------------------------- */
@media (max-width: 900px) {
    .contact-cards-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Mobile (max 600px) -------------------------------------------------- */
@media (max-width: 600px) {
    /* About page */
    .content-section h2 {
        font-size: 1.6rem;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 1rem;
    }

    /* Contact page */
    .contact-cards-row {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        padding: 0 0.75rem;
    }

    .contact-form-card {
        padding: 1.25rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85rem;
    }

    /* Page hero tighter on small phones */
    .page-hero {
        padding: 2.5rem 1rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    /* About sidebar full width on mobile */
    .about-sidebar {
        display: none;
    }

    /* Map embed height on mobile */
    .map-embed {
        height: 180px;
    }
}

/* --- Dropdown mobile inside nav drawer ----------------------------------- */
@media (max-width: 1100px) {
    .nav-dropdown {
        position: relative;
        display: inline-block;
        width: auto;
    }

    .nav-dropdown .dropdown-content {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%);
        background-color: #ffffff;
        min-width: 175px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        z-index: 1000;
        padding: 0.5rem 0;
        overflow: hidden;
    }

    .nav-dropdown .dropdown-content a {
        padding: 10px 18px;
        font-size: 0.95rem;
        font-weight: 500;
        text-align: left;
        color: var(--text-dark);
        display: block;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav-dropdown .dropdown-content a:hover {
        background-color: var(--bg-alt);
        color: var(--primary-deep);
    }

    /* Disable hover trigger on mobile; ONLY open on click */
    .nav-dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-dropdown.open .dropdown-content,
    .nav-dropdown.open:hover .dropdown-content {
        display: block !important;
        animation: fadeIn 0.25s ease;
    }
}
