/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
}

/* ================= NAVBAR ================= */
/* .navbar {
    background: #0B3D91;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative;
} */

/* ================= STICKY HEADER ================= */
/* .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
} */

/* Keep layout from jumping */
/* body {
    padding-top: 160px;
} */

/* Top Flag */
/* .top-flag {
    width: 100%;
    background: #ffffff;
}

.top-flag img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
} */

/* Navbar */
.navbar {
    background: #0B3D91;
    padding: 15px 40px;
}




.navbar {
    background: #0B3D91;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative;
    z-index: 1000; /* IMPORTANT */
}




.logo-text {
    color: #FFD200;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ================= NAV MENU ================= */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #FFD200;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    display: inline-block;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #ffffff;
}

/* top flag */
/* ================= TOP FLAG ================= */
.top-flag {
    width: 100%;
    overflow: hidden;
}

.top-flag img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= DROPDOWN DESKTOP ================= */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFD200;
    min-width: 200px;
    border-radius: 6px;
    padding: 10px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

li{
  list-style-type: none;
}

.dropdown-menu li {
    padding: 10px 20px;

}

.dropdown-menu li a {
    color: #0B3D91;
    display: block;
}

.dropdown-menu li:hover {
    background: #0B3D91;
}

.dropdown-menu li:hover a {
    color: #FFD200;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= HAMBURGER ================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #FFD200;
    transition: 0.3s;
}

/* Animate Hamburger */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


@media (max-width: 768px) {

  .top-flag {
  display: none;
}




    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        background: #0B3D91;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Disable hover dropdown on mobile */
    .dropdown:hover > .dropdown-menu {
        display: none;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        text-align: center;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        color: #0B3D91;
    }
}



/* hero slider section css */
/* ================= HERO SLIDER ================= */
/* ================= HERO SLIDER ================= */
/* .hero-slider {
    position: relative;
    width: 100%;
    height: 65vh;
    max-height: 550px;
    overflow: hidden;
} */

.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 750px;
    overflow: hidden;
    z-index: 1; /* lower than navbar */
}



.slides {
    display: flex;
    height: 100%;
    transition: transform 0.9s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ===== Large Desktop ===== */
@media (min-width: 1400px) {
    .hero-slider {
        height: 75vh;
    }
}

/* ===== Tablet ===== */
@media (max-width: 992px) {
    .hero-slider {
        height: 45vh;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .hero-slider {
        height: 40vh;
    }

    .slide img {
        object-position: center top;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
    .hero-slider {
        height: 30vh;
    }
}


/* ================= CORE VALUES ================= */
.core-values {
    padding: 80px 40px;
    background: #f8f9fb;
}

.core-values .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.value-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
}

.value-card h3 {
    color: #0B3D91;
    margin-bottom: 15px;
    font-size: 18px;
}

.value-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ===== Tablet ===== */
@media (max-width: 992px) {
    .core-values .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .core-values {
        padding: 50px 20px;
    }

    .core-values .container {
        grid-template-columns: 1fr;
    }
}



/* ================= STATS SECTION ================= */
.stats-section {
    padding: 90px 40px;
    background: #0B3D91;
    color: #ffffff;
}

.stats-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-box h3 {
    font-size: 40px;
    color: #FFD200;
    margin-bottom: 10px;
}

.stat-box p {
    margin-bottom: 20px;
    font-size: 15px;
}

.bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 0;
    background: #FFD200;
    border-radius: 50px;
    transition: width 2s ease;
}

/* Tablet */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-box h3 {
        font-size: 32px;
    }
}


/* ================= FOOTER ================= */
.main-footer {
    background: #111111;
    color: #ffffff;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 40px 40px;
}

.footer-col h3 {
    color: #FFD200;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    line-height: 1.7;
    font-size: 14px;
}

.footer-contact,
.footer-links {
    list-style: none;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #FFD200;
}

.footer-bottom {
    background: #092e6b;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}




/* ================= PAGE HERO ================= */
.page-hero {
    background: #0B3D91;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-hero h1 {
    font-size: 36px;
    color: #FFD200;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 16px;
}

/* ================= ABOUT SECTION ================= */
.about-section {
    padding: 80px 40px;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: #0B3D91;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* ================= MISSION VISION ================= */
.mission-vision {
    background: #f5f7fa;
    padding: 70px 40px;
}

.mv-container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-box {
    background: #ffffff;
    padding: 30px;
    border-left: 6px solid #FFD200;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.mv-box h3 {
    color: #0B3D91;
    margin-bottom: 15px;
}

/* ================= WHY US ================= */
.why-us {
    padding: 80px 40px;
    text-align: center;
}

.why-us h2 {
    color: #0B3D91;
    margin-bottom: 40px;
}

.why-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    .about-container {
        grid-template-columns: 1fr;
    }

    .mv-container {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 28px;
    }
}


/* ================= CONTACT PAGE ================= */

.contact-hero {
    background: #0B3D91;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.contact-hero h1 {
    color: #FFD200;
    margin-bottom: 10px;
}

.contact-section {
    padding: 80px 40px;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    padding: 12px;
    background: #0B3D91;
    color: #FFD200;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #092e6b;
}

.contact-info h3 {
    color: #0B3D91;
    margin-top: 20px;
}

.success-msg {
    background: #d4edda;
    padding: 10px;
    margin-bottom: 15px;
}

.error-msg {
    background: #f8d7da;
    padding: 10px;
    margin-bottom: 15px;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}



/* ================= COURSE LIST ================= */
.course-list-section {
    padding: 80px 40px;
}

.course-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.btn-course {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #0B3D91;
    color: #FFD200;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-course:hover {
    background: #092e6b;
}

/* ================= COURSE DETAILS ================= */
.course-details-section {
    padding: 80px 40px;
}

.course-details-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.course-image img {
    width: 100%;
    border-radius: 10px;
}

.course-info h2 {
    color: #0B3D91;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {

    .course-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-details-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .course-container {
        grid-template-columns: 1fr;
    }
}



/* knowledge-base css */
.knowledge-section {
    padding: 80px 40px;
}

.knowledge-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.knowledge-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.knowledge-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.knowledge-sidebar input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.pagination a {
    padding: 8px 12px;
    background: #0B3D91;
    color: #FFD200;
    margin-right: 5px;
    text-decoration: none;
}

.pagination .active {
    background: #FFD200;
    color: #0B3D91;
}

@media(max-width: 992px){
    .knowledge-container{
        grid-template-columns:1fr;
    }
}


.auth-section {
    padding:80px 20px;
    display:flex;
    justify-content:center;
}

.auth-section form{
    width:350px;
    background:#fff;
    padding:30px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    gap:15px;
}

.auth-section input{
    padding:10px;
    border:1px solid #ddd;
}

.auth-section button{
    padding:10px;
    background:#0B3D91;
    color:#FFD200;
    border:none;
}
.knowledge-details {
    padding:80px 40px;
}

.details-container{
    max-width:900px;
    margin:auto;
}

.comment-box{
    margin-top:20px;
    padding:15px;
    background:#f8f9fb;
    border-left:4px solid #FFD200;
}

.comment-box img{
    border-radius:50%;
}

.knowledge-card h3 a {
    color: #0B3D91;
    text-decoration: none;
    transition: 0.3s;
}

.knowledge-card h3 a:hover {
    color: #FFD200;
}

.knowledge-card img {
    cursor: pointer;
}


/* comments css css now */
/* ================= COMMENTS SECTION ================= */

.comment-title {
    margin-top: 50px;
    color: #0B3D91;
    font-size: 22px;
}

.comment-form-box {
    margin-top: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.comment-user {
    margin-bottom: 15px;
    font-size: 14px;
}

.logout-link {
    margin-left: 10px;
    color: #FFD200;
    font-weight: bold;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.comment-form textarea:focus {
    border-color: #0B3D91;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
}

.comment-btn {
    margin-top: 15px;
    padding: 12px 20px;
    background: #0B3D91;
    color: #FFD200;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.comment-btn:hover {
    background: #092e6b;
}

.login-notice {
    background: #f8f9fb;
    padding: 15px;
    border-left: 4px solid #FFD200;
    margin-top: 15px;
}


.comment-card {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 8px;
    border-left: 4px solid #FFD200;
}

.comment-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.comment-pagination {
    margin-top: 20px;
}

.comment-pagination a {
    padding: 6px 12px;
    background: #0B3D91;
    color: #FFD200;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 4px;
}


/* ===== MAIN COMMENT ===== */
.comment-card {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 8px;
    border-left: 4px solid #FFD200;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

/* ===== REPLIES ===== */
.reply-box {
    margin-left: 40px;
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border-left: 3px solid #0B3D91;
    border-radius: 6px;
}

/* ===== REPLY FORM ===== */
.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.reply-form button {
    margin-top: 8px;
    padding: 8px 14px;
    background: #0B3D91;
    color: #FFD200;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== PAGINATION ===== */
.comment-pagination {
    margin-top: 25px;
}

.comment-pagination a {
    padding: 6px 12px;
    margin-right: 5px;
    background: #0B3D91;
    color: #FFD200;
    text-decoration: none;
    border-radius: 4px;
}

.comment-pagination .active-page {
    background: #FFD200;
    color: #0B3D91;
}




/* gallery css */
/* ================= GALLERY ================= */

.gallery-section {
    padding: 80px 40px;
}

.gallery-filter {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filter a {
    padding: 8px 18px;
    margin: 0 8px;
    background: #f0f2f7;
    text-decoration: none;
    color: #0B3D91;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.gallery-filter a.active,
.gallery-filter a:hover {
    background: #0B3D91;
    color: #FFD200;
}

.gallery-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.gallery-card:hover {
    transform: translateY(-6px);
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    color: #0B3D91;
    margin-bottom: 10px;
    font-size: 18px;
}

.gallery-info p {
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
