/**
 * About Us Page Styles
 * Matches the design from the provided image
 */

/* Container */
.about-us-page {
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    padding: 140px 20px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.about-hero-section {
    padding: 0 0 40px 0;
    background: transparent;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero-image {
    width: 100%;
    position: relative;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}


.about-title {
    font-size: 48px;
    font-weight: 700;
    color: #F1C40F;
    margin: 0 0 30px 0;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.about-description p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* Team Section */
.about-team-section {
    padding: 20px 0 0 0;
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-member-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 20px;
    overflow: visible;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border-radius: 20px;
}

/* Dotted pattern background behind photos */
.team-photo-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-size: 15px 15px;
    border-radius: 50%;
    transform: translate(-10px, 10px);
}

.team-member-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .about-hero-content {
        gap: 40px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about-title {
        font-size: 40px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-us-page {
        padding: 20px 5px 120px 5px;
        min-height: unset;
    }
    .about-container {
        padding: 20px 8px;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .about-hero-section {
        padding: 24px 0 32px;
    }
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .about-hero-image img {
        border-radius: 6px;
    }
    .about-title {
        font-size: 42px;
        margin-bottom: 12px;
        text-align: center;
    }
    .about-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 2px;
    }
    .about-description p {
        margin-bottom: 10px;
    }
    .about-team-section {
        padding: 24px 0 32px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .team-member-photo {
        max-width: 180px;
        margin-left: auto;
        margin-right: auto;
    }
    .team-member-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 20px 15px;
    }
    
    .about-hero-section {
        padding: 30px 0 40px;
    }
    
    .about-title {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .about-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .about-description p {
        margin-bottom: 15px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-member-photo {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   DESKTOP HEADER & FOOTER STYLING
   Match campaign page header/footer design
======================================== */
@media (min-width: 769px) {
    body.page-template-page-about .site-header-wave,
    body.page-template-page-about-desktop .site-header-wave,
    body.page .site-header-wave {
        position: fixed;
    }
    
    body.page-template-page-about .header-bg-wrapper,
    body.page-template-page-about-desktop .header-bg-wrapper,
    body.page .header-bg-wrapper {
        position: relative;
        overflow: hidden;
        height: 120px;
    }
    
    body.page-template-page-about .header-bg-image,
    body.page-template-page-about-desktop .header-bg-image,
    body.page .header-bg-image {
        width: 100%;
        height: 120px;
        object-fit: fill;
        object-position: center;
        display: block;
    }
    
    body.page-template-page-about .header-content-container,
    body.page-template-page-about-desktop .header-content-container,
    body.page .header-content-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    body.page-template-page-about .header-logo,
    body.page-template-page-about-desktop .header-logo,
    body.page .header-logo {
        flex-shrink: 0;
    }
    
    /* Desktop Navigation Menu */
    body.page-template-page-about .desktop-nav-menu,
    body.page-template-page-about-desktop .desktop-nav-menu,
    body.page .desktop-nav-menu {
        display: flex;
        gap: 14px;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
        margin: 0 40px;
    }
    
    body.page-template-page-about .desktop-nav-menu a,
    body.page-template-page-about-desktop .desktop-nav-menu a,
    body.page .desktop-nav-menu a {
        color: white;
        text-decoration: none;
        font-size: 24px;
        transition: opacity 0.3s ease;
    }
    
    body.page-template-page-about .desktop-nav-menu a:hover,
    body.page-template-page-about-desktop .desktop-nav-menu a:hover,
    body.page .desktop-nav-menu a:hover {
        opacity: 0.8;
    }
    
    body.page-template-page-about .header-auth-buttons,
    body.page-template-page-about-desktop .header-auth-buttons,
    body.page .header-auth-buttons {
        flex-shrink: 0;
    }
    
    body.page-template-page-about .btn-login-header,
    body.page-template-page-about-desktop .btn-login-header,
    body.page .btn-login-header {
        background: white;
        color: #1976D2;
        padding: 10px 30px;
        border-radius: 25px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    body.page-template-page-about .btn-login-header:hover,
    body.page-template-page-about-desktop .btn-login-header:hover,
    body.page .btn-login-header:hover {
        background: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    

}



@media (min-width: 1024px) {
    /* .mobile-nav-container {
        max-width: 100%;
        left: 0;
        transform: none;
        position: relative;
        margin-left: -60px;
        margin-right: -60px;
        width: calc(100% + 120px);
        height: 120px;
        overflow: hidden;
    } */

    /* ========================================
   DESKTOP FOOTER STYLING
======================================== */
.mobile-nav-container {
    position: relative;
    /* allow the footer background image to overflow if needed so it's not clipped */
    overflow: visible;
    height: 200px;
    background-color: #1573b7;
}

    .mobile-bottom-nav {
        display: none !important;
    }
    
    .mobile-nav-container .nav-bg-image {
        width: 100%;
        /* keep the full image visible on desktop instead of cropping */
        height: auto;
        object-fit: fill;
        object-position: center;
        transform: rotate(180deg);
        display: block;
        pointer-events: none; /* Allow clicks to pass through to links below */
    }
    
    /* Show desktop footer content */
    .desktop-footer-content {
        display: block !important;
        position: absolute;
        bottom: 16px;
        right: 120px;
        color: white;
        text-align: right;
        font-size: 14px;
        z-index: 10;
        pointer-events: auto; /* Allow clicks on footer links */
    }
    
    /* Show desktop footer left content */
    .desktop-footer-left {
        display: block !important;
        position: absolute;
        bottom: 46px;
        left: 60px;
        color: white;
        text-align: left;
        font-size: 14px;
        z-index: 10;
        pointer-events: auto; /* Allow clicks on footer links */
    }
    
    /* Remove the ::after pseudo element since we now have real left content */
    .mobile-nav-container:after {
        content: none;
    }
    
    .desktop-footer-content a,
    .desktop-footer-left a {
        color: white;
        text-decoration: none;
        display: inline;
    }
    
    .desktop-footer-content a:hover,
    .desktop-footer-left a:hover {
        text-decoration: underline;
    }
}
