/* Front page / homepage styles */

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: #fff;
    padding: 6rem 0 1.2rem 0; /* Reduced bottom padding by 80% from 6rem to 1.2rem */
    position: relative;
    overflow: hidden;
}

.hero-section.video-hero-section {
    padding: 0;
    background: #000;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   Home Page Boxes Section (Services, Locations, Careers)
   ============================================ */
.home-boxes-section {
    background-color: var(--bg-white);
    padding: 24px 0; /* Boxes sit below the video with 24px above and below */
    position: relative;
    z-index: 20;
}
/* ============================================
   Our Areas of Focus Section (Three Columns)
   ============================================ */
.areas-of-focus-section {
    background-color: var(--bg-light);
    padding: 0.15rem 0 1.2rem 0;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 21;
}

.areas-of-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.area-of-focus-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.area-of-focus-icon {
    margin-bottom: 1.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-of-focus-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.area-of-focus-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.area-of-focus-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    max-width: 350px;
}

/* ============================================
   Homepage Full-Width Graphic (after Areas of Focus)
   ============================================ */
.home-full-width-graphic-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
}

.home-full-width-graphic-section .home-full-width-graphic {
    display: block;
    width: 50vw;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .home-full-width-graphic-section .home-full-width-graphic {
        width: 75vw;
    }
}

@media (max-width: 768px) {
    .areas-of-focus-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .area-of-focus-description {
        max-width: 100%;
    }
}
.home-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 21;
}

/* Adjust grid for different box counts */
.home-boxes-grid.home-boxes-count-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.home-boxes-grid.home-boxes-count-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    gap: 1rem;
}

/* Compact the Vision / Mission two-card layout without changing typography. */
.home-boxes-grid.home-boxes-count-2 .home-box {
    padding: 1.75rem 1.5rem;
}

.home-boxes-grid.home-boxes-count-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

.home-box {
    background-color: #F7F8F9;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.home-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.home-box:hover::before {
    transform: scaleX(1);
}

.home-box-icon {
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.home-box:hover .home-box-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.home-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.home-box-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.home-box-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.home-box-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
}

.home-box-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    align-self: center;
    margin-top: auto;
}

.home-box-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.25);
}

/* Individual box color accents (optional) */
.home-box-services .home-box-icon {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.home-box-locations .home-box-icon {
    background: linear-gradient(135deg, #50c878, #3fa863);
}

.home-box-careers .home-box-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}
/* Keep old section classes for backward compatibility if needed elsewhere */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.service-image {
    overflow: hidden;
    height: 200px;
    background-color: var(--bg-light);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-title a {
    color: var(--text-dark);
}

.service-title a:hover {
    color: var(--primary-color);
}

.service-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.locations-section {
    background-color: var(--bg-light);
}

.locations-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.locations-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.careers-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: #fff;
}

.careers-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.careers-section .section-title {
    color: #fff;
}

.careers-section .section-title::after {
    background: #fff;
}

.careers-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   Video Section (Full Width)
   ============================================ */
.video-section {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

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

.video-container video,
.video-container iframe {
    pointer-events: none; /* Make all video elements non-interactive */
}

.hero-video,
.hero-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0.6;
}

.hero-video-embed {
    pointer-events: none;
}

.hero-video-deferred {
    position: absolute;
    inset: 0;
}

.hero-video-poster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-video-poster.is-replaced {
    opacity: 0;
}

.hero-video-poster-fallback {
    background: #111;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
    z-index: 10;
}

/* Video Text Overlay (Editable from Video Settings) */
.video-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
    padding: 3rem 0;
}

.video-overlay-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
    pointer-events: auto;
}

.video-overlay-content h1,
.video-overlay-content h2,
.video-overlay-content h3 {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.video-overlay-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.video-overlay-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

.video-overlay-content h3 {
    font-size: 2rem;
    line-height: 1.4;
}

.video-overlay-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.video-overlay-content a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.video-overlay-content a:hover {
    opacity: 0.8;
}

.video-overlay-content .btn,
.video-overlay-content .button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    margin-top: 1rem;
}

.video-overlay-content .btn:hover,
.video-overlay-content .button:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.video-hero-section .hero-content {
    position: relative;
    z-index: 11;
    pointer-events: auto;
    width: 100%;
}

.video-hero-section .hero-content .container {
    position: relative;
    z-index: 1;
    pointer-events: auto; /* Ensure content container is interactive */
}

/* Make sure all interactive elements in overlay remain clickable */
.video-hero-section .hero-content a,
.video-hero-section .hero-content button,
.video-hero-section .hero-content input,
.video-hero-section .hero-content textarea,
.video-hero-section .hero-content select {
    pointer-events: auto;
    position: relative;
    z-index: 12;
}

.video-hero-section .hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.video-hero-section .hero-text {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.video-placeholder {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 80px;
        max-width: 240px;
    }
    .video-title {
        font-size: 2rem;
    }

    .video-container {
        padding-top: 75%; /* Taller on mobile for better visibility */
    }

    .video-overlay-content h1 {
        font-size: 2.5rem;
    }

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

    .video-overlay-content h3 {
        font-size: 1.75rem;
    }

    .video-overlay-content p {
        font-size: 1.125rem;
    }

    .video-text-overlay {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.5rem;
    }

    .video-overlay-content h1 {
        font-size: 2rem;
    }

    .video-overlay-content h2 {
        font-size: 1.75rem;
    }

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

    .video-overlay-content p {
        font-size: 1rem;
    }

    .video-overlay-content .btn,
    .video-overlay-content .button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-thumbnail {
    overflow: hidden;
    height: 220px;
    background-color: var(--bg-light);
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.news-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.news-more {
    text-align: center;
}
/* ============================================
   Partners Carousel
   ============================================ */
.partners-carousel-section {
    background-color: var(--bg-light);
    padding: 5rem 0 1rem 0; /* Reduced bottom padding by 80% from 5rem to 1rem */
    overflow: hidden;
}

.partners-carousel-section .section-title {
    margin-bottom: 3rem;
}

.partners-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-carousel {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.partners-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.partners-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.partners-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    min-width: 200px;
    height: 120px;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: scale(1.05);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(70%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .partners-carousel {
        gap: 2rem;
    }

    .partner-item {
        min-width: 150px;
        height: 100px;
        padding: 1rem 1.5rem;
    }

    .partner-logo img {
        max-height: 60px;
    }

    .partners-carousel-wrapper::before,
    .partners-carousel-wrapper::after {
        width: 50px;
    }
}

/* Partners Ticker Section */
.partners-ticker-section {
    padding: 0;
    margin-bottom: 0;
}

.partners-ticker-section .section-title {
    margin-bottom: 3rem;
}

.partners-ticker-box {
    background-color: var(--primary-color, #c8102e);
    color: #fff;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.partners-ticker-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.partners-ticker-wrapper::-webkit-scrollbar {
    display: none;
}

.partners-ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 1.5rem;
    padding: 0 2rem;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.ticker-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ticker-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@media (max-width: 768px) {
    .partners-ticker {
        font-size: 0.9rem;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .ticker-separator {
        margin: 0 0.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-text {
        font-size: 1.125rem;
    }
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .home-boxes-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1rem;
    }
/* Ensure 2-box layout (Vision & Mission) stacks on mobile */
    .home-boxes-grid.home-boxes-count-2 {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }
    .home-box {
        padding: 2.5rem 2rem;
    }
    .home-box-title {
        font-size: 1.5rem;
    }
    .home-boxes-section {
        padding: 24px 0;
    }
    .careers-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .btn-hero {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

/* ============================================
   Homepage scroll: fade-in + snap focus
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    html:has(body.home) {
        scroll-padding-top: var(--home-scroll-pad, 6rem);
    }

    body.home.home-scroll-ready .home-scroll-section {
        opacity: 0;
        transform: translate3d(0, 1.75rem, 0);
        transition:
            opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.home.home-scroll-ready .home-scroll-section.is-visible,
    body.home.home-scroll-ready .home-scroll-section.home-scroll-section--immediate {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-scroll-section {
        opacity: 1;
        transform: none;
    }
}


