/* --- 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;
}

*, *::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 0.3s 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 0.3s 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;
    transition: all 0.3s ease;
}

.header-top-bar {
    background-color: var(--dark-color);
    color: #e0e0e0;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header-contact-info a, .header-social-links a {
    color: #e0e0e0;
    margin-right: 1.5rem;
}
.header-contact-info a:hover, .header-social-links a:hover {
    color: var(--primary-color);
}
.header-social-links span {
    margin-right: 0.5rem;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo{
    padding-top: 10px;
    padding-bottom: 10px;
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    max-height: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.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;
    overflow: hidden;
    display: inline-block;

}

/* Hides the dropdown arrow icon */
.nav-links a .fas.fa-chevron-down {
    font-size: 0;
    width: 0;
    overflow: hidden; 
    margin-left: 0; 
}

/* --- Underline from Center Animation --- */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}


.dropdown {
    position: relative;
}
.dropdown-menu {
    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: 220px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    display: block;
    text-decoration: none; 
}
.dropdown-menu li a::after {
    display: none;
}
.dropdown-menu li a:hover {
    background-color: var(--bg-light-gray);
    color: var(--primary-color);
}
.nav-apply-btn {
    margin-left: 2rem;
}

.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);
}


/*Footer*/
.site-footer {
    background-color: var(--dark-color);
    color: #c0c0c0;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .trainings-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    section { padding: 3rem 0; }

    .header-top-bar { display: none; }
    .main-nav .container { height: 70px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    .nav-links a { color: var(--light-color); font-size: 1.2rem; }
    .nav-links .dropdown-menu { display: none;  }
    .nav-links .dropdown:hover .dropdown-menu { display: none; }
    .nav-links .dropdown > a > i { display: none; }

    .nav-toggle { display: block; }
    .nav-apply-btn { display: none; }

    .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 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-widget { text-align: center; }
    .widget-title::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
}

@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; }
}


/* --- Shiriki Learning Page Styles --- */

.shiriki-header .main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shiriki-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-left: 0.75rem;
}
.shiriki-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-shiriki {
    padding: 6rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(236, 54, 143, 0.05), rgba(62, 64, 149, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.hero-shiriki .hero-title {
    color: var(--dark-color);
}

.hero-shiriki .hero-text {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
}

.course-listing-section {
    padding: 5rem 0;
    background-color: var(--bg-light-gray);
}

.course-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.course-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.course-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    opacity: 0.8;
}

.course-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.course-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.course-card .btn-secondary {
    margin-top: auto;
    align-self: flex-start;
}

/* Course Swiper for mobile */
.course-swiper {
    padding-bottom: 3rem;
}
.course-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}


.announcements-section {
    padding: 4rem 0;
}

.announcement-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}
.announcement-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.announcement-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.announcement-content span {
    color: var(--text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #c0c0c0;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--light-color);
}

/* Responsive Grid for Courses */
@media (min-width: 769px) {
    .course-swiper .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .course-swiper .swiper-slide {
        width: auto !important;
    }
    .course-swiper .swiper-pagination {
        display: none; 
    }
}