/* =================================
   HOMEPAGE STYLES
   ================================= */

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
    text-align: left;
    z-index: 2;
    position: relative;
}

.hero-logo-tag {
    display: flex;
    align-items: start;
    gap: 10px;
}

.hero-logo-tag img {
    width: 25px;
    height: 25px;
}

.hero-tag {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 300;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}




.hero-section h1 {
    font-family: 'Good Times', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 40px;
    color: var(--text-white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}


/* --- STATS SECTION --- */
.stats-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title {
    font-family: 'Good Times', sans-serif;
    margin-bottom: 20px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.stats-title::before,
.stats-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.19);
    max-width: 2000px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px 30px;
    font-family: 'Outfit', sans-serif;
}

.stat-number {
    display: block;
    font-size: 90px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 18px;
    color: var(--text-white);
    line-height: 1.4;
    font-weight: 700;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: 50px 0;
    text-align: center;
}


.testimonials-section .slider-arrow {
    width: 70px !important;
    height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.testimonials-section .slider-arrow img {
    width: 70px;
    height: 70px;
    max-width: none !important;
    object-fit: contain;
    display: block;
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.testimonial-slides {
    position: relative;
    flex: 1;
    max-width: 800px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    text-align: center;
}

.testimonial-slide.active {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    transform: scale(1.1);
}

.testimonial-slide .quote {
    font-size: 28px;
    font-weight: 400;
    font-family: 'Sora', sans-serif;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.author {
    font-family: 'Good Times', sans-serif;
    color: var(--text-white);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.testimonial-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- SERVICES --- */
.section-subtitle {
    display: block;
    color: var(--text-white);
    font-family: var(--font-primary);
    text-transform: none;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Service card styles moved to style.css for global reusability */

/* --- INCIDENT BANNER --- */
.incident-section {
    padding: 50px 0;
    background-image: linear-gradient(rgba(2, 20, 44, 0.9),
            rgba(1, 15, 34, 0.9)),
        url('../images/Incident.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 80px;
}

.incident-banner {
    min-height: 300px;
    padding: 30px 0;
    text-align: center;
}

.incident-banner h2 {
    font-family: 'Good Times', sans-serif;
    margin-bottom: 20px;
    color: var(--text-white);
}

.incident-banner p {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-white);
    font-family: 'Sora', sans-serif;
}


/* --- TRAINING SECTION --- */
.training-section {
    padding: 20px 50px;
    background: linear-gradient(90deg, #235292 0%, #9CC775 100%);
}

.training-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title image"
        "description image"
        "logos logos";
    align-items: start;
}

.training-title-wrapper {
    grid-area: title;
}

.training-title-wrapper h2 {
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.training-description {
    grid-area: description;
}

.training-description p {
    padding-right: 100px;
    margin-bottom: 40px;
    font-size: 12px;
    color: #FAFAFA;
    font-family: "Sora", sans-serif;
}

.training-slider {
    position: relative;
    width: 100%;
    max-height: 500px;
}

.training-slide {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 10s ease-in-out;
}

.training-slide.active {
    opacity: 1;
    position: relative;
}

.training-logos {
    grid-area: logos;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.training-logos-scroller {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 0;
    background-color: var(--text-white);
}

@keyframes scroll-training {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.training-logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-training 60s linear infinite;
}

.training-logos-track:hover {
    animation-play-state: paused;
}

.t-logo {
    display: inline-block;
    padding: 5px;
    font-size: 12px;
    border-radius: 4px;
    width: 100px;
    height: 70px;
    box-sizing: border-box;
}

.t-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.t-logo img.large {
    max-width: 80%;
    max-height: 80%;
}

/* --- NEWS SECTION --- */
.news-section {
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--primary-black);
    border-radius: 0;
    overflow: hidden;
}

.news-image {
    position: relative;
    height: 200px;
    background-color: #333;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-green);
    color: var(--primary-black);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    line-height: 1.1;
}

.news-date .day {
    display: block;
    font-size: 18px;
}

.news-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px 0 0 0;
}

.news-content h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--paragraph-color);
    font-family: var(--font-primary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more:hover {
    color: var(--primary-green);
}

/* --- PARTNERS --- */
.partners-section {
    background-color: var(--text-white);
    padding: 30px 0;
    text-align: center;
}

.partners-title {
    font-family: 'Good Times', sans-serif;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.partners-logos {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    padding: 20px 0;
}

.partners-scroller {
    display: flex;
    align-items: center;
    will-change: transform;
    flex-wrap: nowrap;
}

.partners-track {
    display: flex;
    gap: 50px;
    align-items: center;
    flex: 0 0 auto;
}

.partner-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 90px;
    box-sizing: border-box;
}

.partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 992px) {
    .training-image {
        min-height: 260px;
    }

    .training-slide {
        height: 260px;
    }

    .partner-logo {
        width: 160px;
        height: 80px;
    }

    .t-logo {
        width: 100px;
        height: 56px;
    }

    .stat-number {
        font-size: 60px;
    }

    .stat-label {
        font-size: 12px;
    }

    .testimonial-slide .quote,
    .testimonial-slide .author {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .training-image {
        min-height: 220px;
    }

    .training-slide {
        height: 220px;
    }

    .partner-logo {
        width: 140px;
        height: 70px;
    }

    .t-logo {
        width: 90px;
        height: 48px;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {

    .stats-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        gap: 0px;
    }

    /* Reorder training-layout on mobile: title, description, image, logos */
    .training-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "description"
            "image"
            "logos";
        gap: 20px;
    }

    .training-description p {
        padding-right: 0;
    }

    .testimonial-slider {
        gap: 0px;
    }

    .testimonials-section {
        padding: 0px;
    }

    .testimonials-section .slider-arrow {
        width: 30px;
        height: 30px;
    }

    .testimonial-content .quote {
        font-size: 10px;
    }

    .services-section {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .t-logo {
        padding: 0;
    }

    .training-title-wrapper h2 {
        font-size: 20px;
    }

    .training-content h2 {
        font-size: 25px;
    }

    .training-content p {
        padding-right: 50px;
    }

    .stats-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .partner-logo {
        gap: 0px;
    }

    .partner-logo img {
        max-width: 100px;
    }
}