/* Optimized Base Styles */
:root {
    --primary-color: #2c5282;
    --primary-hover: #2a4365;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
    text-align: left;
    position: relative;
    z-index: 2;
}

.logo .logo-image {
    height: 41px;
    width: 218px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a {
    text-decoration: none;
    color: #2c5282;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #1a365d;
    background-color: rgba(44, 82, 130, 0.05);
}

.nav-menu a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    position: relative;
}

.dropdown-menu a {
    padding: 0.6rem 1.5rem;
    color: #2c5282;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: #1a365d;
    transform: translateX(3px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c5282;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        padding: 0;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f4f8;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0 0.5rem 1rem;
    }
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    display: block;
    color: var(--primary-color);
    font-weight: 400;
    border-radius: 0;
    background-color: var(--light-gray);
    color: #1a365d;
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background-color: #e9ecef;
}

/* Hero Slider Section */
.slide {
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to the slide */
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
    will-change: transform;
    contain: content;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    -webkit-font-smoothing: subpixel-antialiased;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Optimize video containers */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #2c5282 0%, #2b6cb0 100%);
    opacity: 0.75;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0.5rem auto 2rem;
    opacity: 0.9;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content .cta-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.hero-content .cta-button:hover {
    background-color: white;
    color: #2c5282;
    transform: translateY(-2px);
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-outline {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.cta-button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive adjustments for hero buttons */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Slider Navigation */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #3890ba 0%, #2b6cb0 100%);
    text-align: center;
    color: white;
}

.services-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.services-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #3890ba 0%, #2b6cb0 100%);
    color: white;
    text-align: center;
}

.about-section .cta-button {
    display: inline-block;
    margin: 2rem 0;
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    transform: scale(1);
    transform-origin: center;
}

.about-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #3890ba 0%, #2b6cb0 100%);
    color: white;
    text-align: center;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #3890ba 0%, #2b6cb0 100%);
    color: white;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
}

/* Bio Section - Updated for inline images */
.bio-container {
    margin: 2rem 0;
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

.bio-content {
    position: relative;
}

.bio-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.bio-content .title {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-style: italic;
    text-align: left;
    display: block;
}

.bio-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.bio-image-inline {
    width: 150px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    float: left;
    margin: 0 20px 10px 0;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Clear float for paragraphs that follow */
.bio-content p:nth-of-type(n+2) {
    clear: both;
}

/* Responsive styles for bio images */
@media (max-width: 768px) {
    .bio-container {
        padding: 0 15px;
    }

    .bio-image-inline {
        width: 120px;
        height: auto;
        max-height: 150px;
        margin: 0 15px 10px 0;
        object-fit: contain;
    }

    .bio-content p {
        font-size: 0.9rem;
    }

    .bio-content h3 {
        font-size: 1.5rem;
    }
}

.services-section .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .services-section .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        max-width: 100%;
    }
    
    .service-item {
        min-height: auto;
        padding: 1.5rem 1rem;
        width: 100%;
        margin: 0 auto;
    }
    
    .service-item i {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 1rem;
        font-size: 56px !important;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
        margin: 0.5rem 0 0;
    }
}

.service-item {
    background: rgba(200, 212, 236, 0.55);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-item:hover i {
    transform: scale(1.15);
    color: #fff;
    stroke-width: 2;
}

.service-item i {
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.service-item h3 {
    color: white;
    font-size: 1rem;
    margin: 0.25rem 0;
    line-height: 1.3;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.partner-text {
    margin-top: 2.5rem;
    font-size: 1.2rem;
    color: #FFFFFF !important; /* Forced white */
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.partner-text a {
    color: #FFFFFF !important; /* Forced white */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 2px;
}

.partner-text a:hover {
    color: #ffffff;
    border-bottom-color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background: white;
    color: #333;
    border-top: 1px solid #e9ecef;
}

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

.contact-info h3,
.contact-text h3 {
    font-size: 2rem;
    color: #2c5282;
    margin-bottom: 1rem;
    font-weight: 400;
}

.contact-info p,
.contact-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-text {
    margin-top: 2rem;
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    display: block;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2b6cb0;
    margin-top: 0.25rem;
    width: 24px;
    text-align: center;
    opacity: 0.9;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #2c5282;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: #2b6cb0;
    color: white;
    border: 2px solid #2b6cb0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .contact-cta .cta-button:hover {
        background-color: transparent;
        color: #2c5282;
    }

/* Video Section Styles */
.videos-section {
    padding: 2rem 0;
}

.video-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.videos-section .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    text-align: center;
}

.videos-section .video-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-align: center;
    color: #4a5568;
    line-height: 1.4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.video-container .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video,
.video-container iframe,
.youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube Thumbnail Styles */
.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.youtube-thumbnail:hover {
    opacity: 0.9;
}

.youtube-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.youtube-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 0.8);
}

.youtube-thumbnail .play-button i {
    color: white;
    font-size: 40px;
    margin-left: 5px; /* Offset the play icon slightly to the right */
}

/* Ensure the YouTube iframe takes full width/height */
.youtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Remove bottom margin from last video container */
.video-container:last-child {
    margin-bottom: 0;
}

.video-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.video-placeholder {
    background-color: #e2e8f0;
    padding: 3rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    border: 2px dashed #cbd5e0;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: transparent;
    color: #2c5282;
    border: 2px solid #2c5282;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #2c5282;
    color: white;
    transform: translateY(-2px);
}

.hero-section .cta-button {
    color: white;
    border-color: white;
}

.hero-section .cta-button:hover {
    background-color: white;
    color: #2c5282;
}

.about-section .cta-button {
    color: white;
    border-color: white;
}

.about-section .cta-button:hover {
    text-align: center;
    margin-top: 1rem;
    color: white !important;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #2b6cb0;
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.95rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

footer p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.7rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .services-section h2,
    .about-section h2,
    .videos-section h2,
    .contact-info h3,
    .contact-text h3 {
        font-size: 2rem;
    }

    .hero-section,
    .services-section,
    .about-section,
    .contact-info-section,
    .videos-section {
        padding: 1.5rem 0 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-cta {
        flex-direction: column;
        align-items: center;
    }

    .contact-cta .cta-button {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .services-section h2,
    .about-section h2,
    .videos-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .nav-menu {
        font-size: 0.9rem;
    }
}
