/* --- CSS Variables and Global Styles --- */
:root {
    --primary-color: #EC368F; 
    --secondary-color: #3E4095;
    --dark-color: #021e40;
    --light-color: #ffffff;
    --text-color: #4c4d56;
    --heading-color: #0e0e0e;
    --bg-light-gray: #f8f9fa;
    --border-color: #ebebeb;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); color: var(--text-color); line-height: 1.7; background-color: var(--light-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3, h4 { color: var(--heading-color); line-height: 1.3; font-weight: 700; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; display: block; }

.btn { display: inline-block; padding: 0.8rem 1.8rem; border-radius: 5px; font-weight: 600; text-align: center; transition: all var(--transition-speed) ease; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(145deg, var(--primary-color), var(--secondary-color)); color: var(--light-color); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); color: var(--light-color); }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--light-color); }

.section-title { color: var(--dark-color); }
.text-center { text-align: center; }
section { padding: 5rem 0; }

/*Header & Navigation*/
.site-header { background-color: var(--light-color); box-shadow: var(--shadow); position: sticky; top: 0; width: 100%; z-index: 1000; }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo img { max-height: 50px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--heading-color); font-weight: 600; padding: 1.5rem 0; position: relative; display: flex; align-items: center; gap: 0.3rem; }
.nav-links li.active > a, .nav-links li.current-page > a { color: var(--primary-color); }
.nav-links > li > a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background-color: var(--primary-color); transition: all var(--transition-speed) ease-out; transform: translateX(-50%); }
.nav-links > li > a:hover::after, .nav-links li.active > a::after { width: 100%; left: 0; transform: translateX(0); }
.nav-links .dropdown > a i { font-size: 0.8em; transition: transform var(--transition-speed) ease; }

/* Desktop Dropdown Menu */
.dropdown { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--light-color); box-shadow: var(--shadow); list-style: none; padding: 0.5rem 0; min-width: 240px; border-radius: 5px; opacity: 0; transform: translateY(10px); transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease; z-index: 1001; }
.dropdown:hover .submenu { display: block; opacity: 1; transform: translateY(0); }
.dropdown:hover > a i { transform: rotate(180deg); }
.submenu li a { padding: 0.75rem 1.5rem; width: 100%; display: block; font-weight: 500; }
.submenu li a::after { display: none; }
.submenu li a:hover { background-color: var(--bg-light-gray); color: var(--primary-color); }

.nav-apply-btn { margin-left: 1rem; }
/*.hamburger to .nav-toggle to hide button on desktop */
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: var(--dark-color); cursor: pointer; }

/* --- Hero Section --- */
.hero-section {
    padding: 0;
    position: relative;
    height: 90vh;
    color: var(--light-color);
}
.hero-swiper {
    width: 100%;
    height: 100%;
}
.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 30, 64, 0.6);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 1rem;
}
.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.hero-title {
    color: var(--light-color);
    font-size: 3.5rem;
    font-weight: 800;
}
.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    opacity: 0.9;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--light-color);
}
.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-light-gray);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text p {
    margin-bottom: 1rem;
}
.about-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(236, 54, 143, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.about-video:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
}
.about-video img {
    transition: transform 0.5s ease;
}
.about-video:hover img {
    transform: scale(1.05);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: #c0c0c0;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/*Responsive Styles*/

/*Large Tablets and Small Desktops (≤1024px) */
@media (max-width: 1024px) {
    .trainings-grid, .news-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/*Tablets and Large Phones (≤768px)*/
@media (max-width: 768px) {
    html { font-size: 16px; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    section { padding: 3rem 0; }
    .hero-title { font-size: 2.6rem; }
    .header-top-bar { display: none; }
    .main-nav .container { height: 70px; }
    .nav-toggle { display: block; z-index: 1001; }
    .nav-apply-btn { display: none; }

    /*MOBILE NAVIGATION LOGIC*/
    .nav-links {
        display: block; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
        background-color: var(--dark-color); flex-direction: column; align-items: flex-start;
        gap: 0; padding: 2rem 0; transform: translateX(100%); transition: transform 0.35s ease-in-out;
        overflow-y: auto; z-index: 1000;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { width: 100%; }
    .nav-links a { color: var(--light-color); font-size: 1.1rem; padding: 1rem 2rem; width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .nav-links a:hover { background-color: rgba(255, 255, 255, 0.05); }
    .nav-links > li > a::after { display: none; }
    .nav-links .dropdown > a > i { display: none; }

    /* Add a dropdown arrow icon to parent links */
    .dropdown > a::after { content: '▼'; font-size: 0.8em; font-weight: bold; transition: transform var(--transition-speed) ease; }
    .dropdown.open > a::after { transform: rotate(180deg); }
    
    /* Hide the submenu by default and prepare for animation */
    .dropdown .submenu {
        display: none; position: static; opacity: 1; transform: none; box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2); padding: 0; min-width: 100%; border-radius: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out;
    }
    
    /* Show the submenu when the parent li has the .open class */
    .dropdown.open > .submenu { display: block; max-height: 500px; }
    
    /* Style for items inside the mobile submenu */
    .dropdown .submenu li a { padding-left: 3rem; font-size: 1rem; font-weight: 400; color: #e0e0e0; }

    /* Other Mobile Layouts */
    .about-content { grid-template-columns: 1fr; }
    .about-text { text-align: center; }
    .about-video { margin-top: 2rem; }
    .stats-section .container { grid-template-columns: 1fr 1fr; gap: 3rem 1rem; }
    .news-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-widget { text-align: center; }
    .widget-title::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
}

/*Small Phones (≤480px) */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .hero-title { font-size: 2.2rem; }
    .hero-text { font-size: 1rem; }
    .stats-section .container { grid-template-columns: 1fr; }
    .nav-links { gap: 1.25rem; }
    .nav-links a { font-size: 1.1rem; padding: 0.6rem 1rem; }
}

/* --- Section & Category Styles --- */
.partners-section {
    background-color: var(--bg-light-gray);
    /* Use clamp for fluid vertical padding and add horizontal padding for smaller screens */
    padding: clamp(3rem, 8vw, 5rem) 1rem;
}

.partner-category {
    margin-bottom: 4rem;
}

.partner-category-title {
    text-align: center;
    /* Use clamp() for fluid typography that scales with the viewport */
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    position: relative;
}

.partner-category-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin-inline: auto;
    margin-block-start: 0.5rem;
}


/* --- Responsive Grid Layout --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}


/* --- Partner Card Styles --- */
.partner-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.partner-card:hover {
    /**transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);**/
    border-color: var(--primary-color);
}


/* --- Partner Logo Styles --- */
.partner-card img {
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
    opacity: 0.7;
    /**
    transition: opacity 0.3s ease,
                transform 0.3s ease;**/
}

.partner-card:hover img {
    /**
    opacity: 1;
    transform: scale(1.05);**/
}


/* --- Responsive Adjustments --- */
@media (max-width: 576px) {
    .partners-grid {
        gap: 1rem;
    }

    .partner-card {
        padding: 1.5rem;
    }
}



/* make the regional impact to be white and centrally positioned */
.page-header h1 {
    color: black;
    text-align: center;
}