/* VARIABLES */
:root{
    --primary-color: linear-gradient(135deg, #1b2a4a 0%, #0a0e1a 100%);
    --secondary-color: #0b3477;
    --tertiary-color: #FF9A00;
    --text-color: #1a1a1a;
    --background-color: #ffffff;
    --card-color: #ffffff;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--background-color);
    overflow-x: hidden;
}
img {
    width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: var(--secondary-color);
}
li {
    list-style: none;
}
h1 {
    font-size: 50px;
    font-family: var(--font-body);
}
h2 {
    font-size: 45px;
}
h3 {
    font-size: medium;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 2px;
}
p {
    font-size: 20px;
    line-height: 1.5;
    max-width: 550px;
}
span {
    color: var(--secondary-color);
}
input::placeholder,
textarea::placeholder {
    color: lightgray;
}

/* Reusable section heading */
.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}
.section-tag {
    display: inline-block;
    color: var(--tertiary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}
.section-intro {
    color: #555;
    font-size: 17px;
    max-width: 550px;
    margin: 10px auto 0;
}
.section-heading.light .section-intro,
.section-heading.light p {
    color: #dfe4ee;
}

/* Reusable buttons */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--tertiary-color);
    color: white;
}
.btn-primary:hover {
    background: #3B82F6;
    transform: translateY(-4px);
}
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    transform: translateY(-4px);
}

/* Bootstrap Icons (inline SVG) default sizing/color.
   Replaces the old Lucide icon rule — these SVGs use
   fill="currentColor" so they inherit the text color
   of whatever element contains them. */
.bi-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Scroll-in animation (Chrome/Edge natively; fallback via script.js elsewhere) */
@supports (animation-timeline: view()) {
  .animate-up {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}


/* HEADER */
header {
    width: 100%;
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    padding: 20px;
    z-index: 100;
}
.header-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}
nav ul{
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
nav ul a {
    font-size: 16px;
}
nav li a:hover {
    color: white;
    background: var(--secondary-color);
    padding: 8px 12px;
    border-top-left-radius: 10px;
}

/* Mobile hamburger (checkbox hack, no JS) */
.nav-toggle {
    display: none;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}


/* HERO */
.Hero {
    min-height: 100svh;
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(11, 52, 119, 0.88) 0%, rgba(11, 52, 119, 0.88) 50%, rgba(11, 52, 119, 0.88) 100%),
        url('Images/heroImage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}
.Hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 154, 0, 0.18), transparent 60%);
    pointer-events: none;
}
.Hero-flex {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    min-height: 100vh;
    padding: 0 20px;
}
.Hero .animate-up {
    animation: fade-up 0.6s ease forwards;
    animation-timeline: auto;
}
.Hero h3 {
    color: var(--tertiary-color);
    text-decoration: underline;
}
.Hero h1 {
    max-width: 600px;
    line-height: 1.3;
}
.Hero span {
    color: var(--tertiary-color);
}
.Hero p {
    max-width: 550px;
    color: #dfe4ee;
}
.hero-btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.applyBtn {
    background: var(--tertiary-color);
    color: white;
    padding: 12px 15px;
    border: none;
    outline: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: 0.3s ease;
}
.applyBtn a {
    color: white;
}
.applyBtn:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-5px);
}

/* ABOUT */
.about {
    min-height: 80vh;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 60px 40px;
}
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.about-flex .about-flex-right h3 {
    color: var(--tertiary-color);
    margin-bottom: 15px;

}
.about-flex-right h1{
    max-width: 650px;
}
.about-flex-right p{
    max-width: 550px;
    color: #444;
    font-size: 1rem;
    line-height: 1.9;
}

/* MISSION STATEMENT */
.mission {
    padding: 60px 20px;
    background: #F5F5F5;
    display: flex;
    justify-content: center;
}
.mission-card {
    max-width: 750px;
    text-align: center;
    background: white;
    padding: 45px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--tertiary-color);
}
.mission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 154, 0, 0.12);
    color: var(--tertiary-color);
    margin-bottom: 18px;
}
.mission-icon .bi-icon {
    width: 28px;
    height: 28px;
}
.mission-card h3 {
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.mission-card p {
    max-width: 100%;
    color: #444;
    font-size: 18px;
    margin: 0 auto;
}

/* COURSES (modernised) */
.Courses {
    padding: 120px 100px;
    background: #F5F5F5;
}
.course-flex-cnt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.course-flex-cnt .card {
    position: relative;
    text-align: left;
    padding: 30px 25px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    background: var(--card-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.course-flex-cnt .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--tertiary-color);
}
.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 52, 119, 0.08);
    border-radius: 50%;
    margin-bottom: 15px;
}
.card-icon img {
    width: 36px;
    height: 36px;
}
.card-level {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tertiary-color);
    background: rgba(255, 154, 0, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.course-flex-cnt .card h3{
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}
.card p{
    max-width: 100%;
    font-size: 15.5px;
    color: #555;
}

/* ADMISSION REQUIREMENTS */
.requirements {
    padding: 100px 100px;
    background: white;
}
.requirements-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.requirements-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #F5F5F5;
    border-radius: var(--border-radius);
    font-size: 17px;
}
.requirements-list li .bi-icon {
    color: var(--tertiary-color);
    flex-shrink: 0;
}

/* REGISTRATION FORM DOWNLOAD (replaces old Apply Online form) */
.apply {
    padding: 100px 40px;
    background: var(--primary-color);
    color: white;
}
.apply-download-cnt {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    color: var(--text-color);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
}
.apply-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 154, 0, 0.12);
    color: var(--tertiary-color);
    margin-bottom: 18px;
}
.apply-download-icon .bi-icon {
    width: 30px;
    height: 30px;
}
.apply-download-cnt h3 {
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    margin-bottom: 14px;
}
.apply-download-cnt p {
    max-width: 100%;
    color: #555;
    font-size: 16px;
    margin: 0 auto 26px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background: var(--tertiary-color);
    transition: 0.3s ease;
}
.btn-download:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}
.btn-download .bi-icon {
    width: 20px;
    height: 20px;
}

/* GALLERY */
.gallery {
    padding: 100px 60px;
    background: #F5F5F5;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.09);
}
.gallery-note {
    text-align: center;
    color: #888;
    font-size: 14px;
    max-width: 100%;
    margin: 30px auto 0;
}
.gallery-note code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Lightbox (used by script.js) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.lightbox.open {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

/* TESTIMONIES */
.testimonies {
    padding: 50px;
    min-height: 70vh;
    text-align: center;
}
.testimonies .card{
    max-width: 300px;
}
.testimonies h2 {
    margin-bottom: 80px;
}
.testimonies-flex {
    display: flex;
    justify-content: center;
    gap: 60px;
    row-gap: 60px;
    flex-wrap: wrap;
}
.testimonies-flex img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
}
.testimonies-flex h3 {
    margin-top: 12px;
}
.testimonies-flex p{
    color: gray;
    font-size: 16px;
    margin-top: 10px;
}

/* FAQ */
.faq {
    padding: 100px 40px;
    background: white;
}
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: #F5F5F5;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
}
.faq-toggle-icon {
    color: black;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 22px;
}
.faq-answer p {
    max-width: 100%;
    font-size: 15.5px;
    color: #555;
    padding-bottom: 20px;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}

/* CONTACT */
.contact {
    background: var(--primary-color);
    min-height: 70vh;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
    flex-wrap: wrap;
}
.contact-flex .contact-flex-left h3{
    text-decoration:none;
}
.social-media-links {
    display: flex;
    gap: 16px;
}
.social-media-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--tertiary-color);
    transition: 0.3s ease;
}
.social-media-links a:hover {
    background: var(--tertiary-color);
    color: white;
    transform: translateY(-4px);
}
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
}
form label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
}
.contact-flex-right .form-cnt {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}
.contact-flex-right .form-cnt input,
.contact-flex-right .form-cnt textarea {
    outline: none;
    padding: 10px;
    width: 100%;
    transition: 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.contact-flex-right .form-cnt input:hover {
    transform: translateY(-5px);
}
.contact-flex-right .form-cnt input:focus,
.contact-flex-right .form-cnt textarea:focus {
    border-color: var(--tertiary-color);
    outline: none;
}
.form-cnt button {
    padding: 10px 12px;
    font-weight: 400;
    color: #fff;
    font-size: 18px;
    border: none;
    margin-top: 10px;
    outline: none;
    border-radius: 5px;
    background: var(--tertiary-color);
    transition: 0.3s ease;
    cursor: pointer;
}
.form-cnt button:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
.contact-flex .contact-flex-left h3 {
    color: var(--tertiary-color);
    font-weight: 500;
    font-size: 40px;
    margin-bottom: 5px;
}
.contact-flex .contact-flex-left p {
    color: #cfd6e4;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* FOOTER (redesigned) */
.footer {
    background: #0a0e1a;
    color: #cfd6e4;
    padding: 70px 60px 0;
    
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}
.footer-col h3 {
    color: white;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col h4 {
    color: white;
    font-size: 17px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-col p {
    font-size: 15px;
    color: #b9c1d4;
    max-width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-brand p {
    margin-bottom: 20px;
    display: block;
}
.footer-col a {
    display: block;
    color: #b9c1d4;
    font-size: 15px;
    margin-bottom: 12px;
    transition: 0.3s ease;
}
.footer-col a:hover {
    color: var(--tertiary-color);
    padding-left: 4px;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}
.footer-socials a:hover {
    background: var(--tertiary-color);
    color: white;
    transform: translateY(-4px);
}
.footer-col p .bi-icon {
    color: var(--tertiary-color);
    margin-top: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 22px 0;
    font-size: 14px;
    color: #8b93a7;
}

/* JS scroll-animation fallback (used only in browsers without
   animation-timeline support — see script.js section 1) */
.js-fade-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-init.js-fade-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Active nav link (set by script.js section 2) */
nav ul li a.active-link {
    color: var(--tertiary-color);
    font-weight: 600;
}

/* Form feedback message (set by script.js) */
.form-feedback {
    font-size: 14px;
    margin-top: 5px;
    max-width: 100%;
}

/* ANIMATION */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* RESPONSIVENESS - TABLET (<=992px) */
/* ============================= */
@media (max-width: 992px) {
    h1 { font-size: 40px; }
    h2 { font-size: 34px; }

    .Courses, .requirements {
        padding: 80px 40px;
    }

    .about-flex {
        gap: 30px;
    }

    .contact-flex {
        gap: 40px;
    }

    .testimonies-flex {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================= */
/* RESPONSIVENESS - MOBILE (<=768px) */
/* ============================= */
@media (max-width: 768px) {
    header{
        padding: 12px 16px;
    }
    .header-flex {
        justify-content: space-between;
        padding: 0 10px;
    }

    .hamburger {
        display: flex;
        padding: 8px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--box-shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    nav ul li {
        text-align: center;
    }
    nav ul a {
        display: block;
        padding: 12px;
    }
    .nav-toggle:checked ~ nav {
        max-height: 500px;
    }

    .btnImg {
        display: none;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    p { font-size: 14px; }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-flex-right p {
        margin: 0 auto;
    }

    .Courses, .requirements, .gallery {
        padding: 60px 20px;
    }
    .mission h3 p{
        font-size: ;
    }

    .mission-card {
        padding: 35px 25px;
    }

    .apply {
        padding: 60px 20px;
    }
    .apply-download-cnt {
        padding: 35px 20px;
    }

    .faq {
        padding: 60px 20px;
    }

    .contact p {
        padding: 20px;
    }

    .contact-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .contact-flex-left p {
        margin: 0 auto 25px;
    }
    .social-media-links {
        justify-content: center;
    }

    .contact .form-cnt{
        width: 400px;
    }

    .contact .form-cnt label {
        text-align: left;
    }

    .footer {
        padding: 50px 25px 0;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-col p {
        justify-content: center;
    }
}

/* ============================= */
/* RESPONSIVENESS - SMALL MOBILE (<=480px) */
/* ============================= */
@media (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 24px; }
    p { font-size: 16px; }

    .Hero-flex {
        gap: 14px;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-group .btn {
        width: 100%;
        text-align: center;
    }

    .testimonies {
        padding: 30px 15px;
    }

    .card {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}
/* ===== MOBILE FIXES ===== */
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

.Hero, .Hero-flex { min-height: 100vh; min-height: 100svh; }

form input, form textarea { font-size: 16px; }

.contact-flex-right .form-cnt { max-width: 100%; }
.faq-item.open .faq-answer { max-height: 500px; }

@media (max-width: 768px) {
  header { padding: 12px 16px; }
  .hamburger { padding: 8px; }
  .about { padding: 50px 20px; }
  .about-flex { width: 100%; }
  .about-flex > * { width: 100%; min-width: 0; }
  .testimonies { padding: 50px 20px; }
  .testimonies h2 { margin-bottom: 40px; }
  .contact { padding: 50px 20px; }
  .contact-flex .contact-flex-left h3 { font-size: 28px; }
  .contact-flex-right,
  .contact .form-cnt { width: 100%; max-width: 500px; }
  .footer-col p, .footer-col a { overflow-wrap: anywhere; }
  .lightbox-close { top: 10px; right: 10px; padding: 10px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .requirements-list li { padding: 14px; font-size: 16px; }
  .faq-question { font-size: 16px; padding: 16px; }
}

/* No sticky hover effects on touch screens */
@media (hover: none) {
  .contact-flex-right .form-cnt input:hover,
  .course-flex-cnt .card:hover,
  .btn-primary:hover, .btn-secondary:hover,
  .btn-download:hover, .applyBtn:hover,
  .form-cnt button:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}