/*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: #e9ecef;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

*, *::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); overflow-x: hidden;}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

h1, h2, h3, h4 { color: var(--heading-color); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); 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: clamp(4rem, 8vw, 6rem) 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;
    white-space: nowrap;
}
.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;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}
.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.65); }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 1rem; }
.hero-subtitle { display: block; font-size: 1.2rem; font-weight: 600; color: var(--primary-color); margin-bottom: 0.5rem; letter-spacing: 1px; }
.hero-title { color: var(--light-color); font-weight: 800; }
.hero-text { font-size: 1.1rem; max-width: 650px; 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 {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}
.about-text p:last-child {
    margin-bottom: 0;
}

/*Stats Section*/
.stats-section {
    background: linear-gradient(160deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}
.stats-section::before, .stats-section::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; pointer-events: none;
}
.stats-section::before { top: -15%; left: -10%; width: 400px; height: 400px; background: linear-gradient(135deg, rgba(236, 54, 143, 0.15), transparent); animation: float 10s ease-in-out infinite; }
.stats-section::after { bottom: -20%; right: -15%; width: 500px; height: 500px; background: linear-gradient(315deg, rgba(62, 64, 149, 0.25), transparent); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: float 12s ease-in-out infinite reverse; }
@keyframes float {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    50% { transform: translateY(-20px) translateX(20px) rotate(180deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}
.stats-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    text-align: center;
    position: relative; z-index: 2;
}
.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 3rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    perspective: 1000px;
    transition: transform 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.stat-item:hover {
    /**
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);**/
}
.stat-item-inner {
    transition: transform 0.4s ease;
}
.stat-item i {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(135deg, var(--primary-color), #ff9ad8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 25px rgba(236, 54, 143, 0.4);
    transition: transform 0.4s ease;
}
.stat-item:hover i {
    /**transform: scale(1.1);**/
}
.stat-number {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}
.stat-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/*Trainings Section*/
.trainings-section {
    background-color: var(--light-color);
}
.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.card.training-card {
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}
.training-card .card-img {
    height: 220px;
    object-fit: cover;
}
.training-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.training-card .card-text {
    flex-grow: 1;
    margin: 0.5rem 0 1.5rem;
}
.training-card .card-link {
    margin-top: auto;
}


/*EDITORIAL CALENDAR / NEWS SECTION*/
.news-section {
    background-color: var(--light-color);
}

.news-section .section-title {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--heading-color);
    color: var(--heading-color);
    text-align: left;
}

.calendar-grid {
    display: grid;
    --grid-border: 1px solid #dee2e6;
    grid-template-columns: repeat(3, 1fr);
}

a.calendar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: var(--grid-border);
    border-left: var(--grid-border);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
}

a.calendar-item:hover {
    background-color: #f8f9fa;
}

.calendar-grid .calendar-item:nth-child(3n + 1) {
    border-left: none;
}

.calendar-item__content {
    flex: 1;
}

.calendar-heading {
    font-family: var(--font-family);
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.calendar-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.calendar-description {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.calendar-meta {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.calendar-item__image-wrapper {
    flex-shrink: 0;
    width: 120px;
    transition: width var(--transition-speed) ease;
}

.calendar-item__image {
    width: 100%;
    height: auto;
    display: block;
}


/*Testimonials Section*/
.testimonials-section {
    background-color: #fff;
}
.testimonial-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 3rem;
    padding: 1.5rem; background-color: var(--bg-light-gray); border-radius: var(--border-radius); box-shadow: var(--shadow-soft);
}
.filter-group { display: flex; flex-direction: column; align-items: flex-start; }
.filter-group label { font-size: 0.9rem; font-weight: 600; color: var(--dark-color); margin-bottom: 0.5rem; }
.filter-group select {
    padding: 0.6rem 1rem; border: 2px solid var(--border-color); border-radius: 5px; background-color: var(--light-color);
    font-family: var(--font-family); font-size: 1rem; font-weight: 500; transition: border-color 0.3s ease; cursor: pointer; min-width: 200px;
}
.filter-group select:hover { border-color: var(--primary-color); }
.filter-group select:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(62, 64, 149, 0.2); }
.testimonials-swiper .swiper-slide { padding-bottom: 4rem; }
.testimonial-card {
    background-color: var(--light-color); padding: 2.5rem; border-radius: var(--border-radius); text-align: center;
    box-shadow: var(--shadow-strong); max-width: 750px; margin: 0 auto; border-top: 5px solid var(--primary-color);
}
.testimonial-img {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: -75px auto 1.5rem;
    border: 5px solid var(--light-color); box-shadow: var(--shadow-strong);
}
.testimonial-text { font-style: italic; font-size: 1.1rem; color: var(--text-color); margin-bottom: 1.5rem; position: relative; padding: 0 1rem; }
.testimonial-text::before {
    content: '\201C'; font-family: Georgia, serif; font-size: 4rem; color: var(--border-color);
    position: absolute; top: -1rem; left: -1rem; line-height: 1; z-index: -1;
}
.testimonial-author { margin-top: 1rem; }
.author-name { display: block; font-weight: 700; font-size: 1.2rem; color: var(--dark-color); }
.author-info { font-size: 0.95rem; color: var(--primary-color); font-weight: 500; }
.testimonials-swiper .swiper-pagination-bullet-active { background: var(--primary-color); }

/*Footer*/
.site-footer { background-color: var(--dark-color); color: #c0c0c0; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { max-width: 200px; margin-bottom: 1rem; }
.widget-title { color: var(--light-color); font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background-color: var(--primary-color); }
.links-widget ul, .contact-widget ul { list-style: none; }
.links-widget ul li, .contact-widget ul li { margin-bottom: 0.75rem; }
.links-widget ul a, .contact-widget ul a { color: #c0c0c0; transition: all 0.2s ease; }
.links-widget ul a:hover, .contact-widget ul a:hover { color: var(--light-color); padding-left: 5px; }
.contact-widget i { margin-right: 0.75rem; color: var(--primary-color); width: 20px; text-align: center; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { color: #c0c0c0; font-size: 1.2rem; transition: color 0.2s ease, transform 0.2s ease; }
.footer-social a:hover { color: var(--primary-color); transform: translateY(-2px); }
.footer-bottom { text-align: center; padding: 1.5rem 0; font-size: 0.9rem; }

/*Responsive Styles*/
@media (min-width: 1024px) {
    .calendar-grid {
        border-top: var(--grid-border);
    }
    .calendar-item__image-wrapper {
        width: 160px;
    }
    a.calendar-item {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        border-top: var(--grid-border);
    }
    .calendar-grid .calendar-item:nth-child(3n + 1) {
        border-left: var(--grid-border);
    }
    .calendar-grid .calendar-item:nth-child(2n + 1) {
        border-left: none;
    }
}

@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; }
    .main-nav .container { height: 70px; }
    .nav-toggle { display: block; z-index: 1001; }
    .nav-apply-btn { display: none; }
    .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; }
    .dropdown > a::after { content: '▼'; font-size: 0.8em; font-weight: bold; transition: transform var(--transition-speed) ease; }
    .dropdown.open > a::after { transform: rotate(180deg); }

    .dropdown .submenu {
        /* display: none; --- THIS WAS THE PROBLEM --- */
        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;
    }
    .dropdown.open > .submenu {
        display: block;
        max-height: 500px;
    }
    .dropdown .submenu li a { padding-left: 3rem; font-size: 1rem; font-weight: 400; color: #e0e0e0; }
    .stats-section .container { grid-template-columns: 1fr 1fr; gap: 3rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-widget { text-align: center; }
    .widget-title::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }

    .calendar-grid {
        grid-template-columns: 1fr;
        border-top: none;
    }

    a.calendar-item {
        border: var(--grid-border);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-soft);
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-grid a.calendar-item:last-child {
        margin-bottom: 0;
    }

    .calendar-item__image-wrapper {
        margin-top: 1rem;
        width: 150px;
    }
}

@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; }
}