/* --- Simple single-file styles (Strong Frosted Glass Card Theme) --- */
:root {
    /* Optimized color palette for blue/green accent */
    --bg: linear-gradient(180deg, #0a1220 0%, #050d1e 100%);
    /* Slightly darker background */
    --card: rgba(255, 255, 255, 0.06);
    /* Base card transparency */
    --glass: rgba(255, 255, 255, 0.12);
    /* Higher transparency for background blur areas */
    --accent: #05d697;
    /* Brighter green-blue accent */
    --accent-dark: #14806a;
    --muted: rgba(255, 255, 255, 0.7);
    --radius: 16px;
    /* Slightly larger radius for softer cards */
    /* Using Inter, a clean, modern font */
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: #e6f0ff
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s
}

a:hover {
    color: var(--accent-dark)
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px
}

/* HEADER & NAVIGATION (Strong Glass Effect) */
header {
    backdrop-filter: blur(18px);
    /* Very strong header blur */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    position: fixed;
    width: 100%;
    top: 0;
    border-radius: 0 0 15px 15px;
    z-index: 100;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Visible edge */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--accent)
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center
    
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    transition: background .3s

}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15)
}

/* BUTTONS */
.btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .3s, transform .1s;
    color: inherit;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15)
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), #6ee7b7);
    color: #022;
    border: 0;
    box-shadow: 0 4px 15px rgba(5, 214, 151, 0.6);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;

}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 214, 151, 0.8);
    background: linear-gradient(90deg, var(--accent), #8ef7c7)
}

.full-width-btn {
    width: 100%;
}

/* CARDS & SECTIONS (Core Frosted Glass Effect) */
.hero {
    padding: 80px 30px;
    border-radius: var(--radius);
    margin: 30px 0;
    background: linear-gradient(180deg, var(--glass), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    /* Heavy blur on hero for focus */
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(5, 214, 151, 0.3);
}

.lead {
    color: var(--muted);
    margin-top: 8px;
    font-size: 18px
}

.hero-cards {
    display: grid;
    gap: 15px
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    transition: transform .3s ease, box-shadow .3s;
    backdrop-filter: blur(10px);
    /* Crucial Frosted Glass Effect on cards */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle inner glass border */
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 1);
    border-color: var(--accent)
}

.small-card {
    font-size: 14px;
    padding: 16px
}

.card.glass {
    background: var(--glass);
    border: 1px solid var(--accent);
    /* Highlighted card */
}

.section {
    padding: 50px 0;
    margin-top: 20px
}

.section-title {
    font-size: 32px;
    margin: 0 0 30px;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    font-weight: 700
}
#home{
    margin-top: 120px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    /* Allow children to use custom visibility for animation */
}

/* COURSE VISIBILITY & ANIMATION */
.hidden-course {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-course.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* NEW: Course Details Styling & Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: left;
    display: none; /* Controlled by JS */
    animation: fadeIn 0.4s ease-out;
}

.course-details h4 {
    color: #e6f0ff;
    margin: 5px 0 10px;
    font-size: 18px;
}

.course-details ul {
    list-style-type: '👉';
    padding-left: 15px;
    margin: 8px 0;
    color: var(--muted);
}

.course-details li {
    padding-left: 10px;
    margin-bottom: 5px;
}

/* NEW: Download Lock Indicator */
.lock-indicator {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
}

/* FEES TABLE */
.fees-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #cfeeff;
    margin-top: 10px
}

.fees-table th,
.fees-table td {
    padding: 15px;
    text-align: left;
}

.fees-table thead th {
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05)
}

.fees-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02)
}

.fees-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08)
}

.fees-table tbody tr:last-child td {
    border-bottom: none
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px
}

.gallery-item {
    overflow: hidden;
    padding: 0 !important;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform .3s;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img:hover {
    transform: scale(1.1);
    border-color: var(--accent)
}

/* CONTACT FORM */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px
}

.contact-info p i {
    margin-right: 10px;
    color: var(--accent)
}

label {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 16px;
    backdrop-filter: blur(5px);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.15)
}

/* FOOTER: Updated Grid Layout */
footer {
    padding: 40px 0 20px; /* Reduced bottom padding */
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Columns for Logo/Social, Links, Info */
    gap: 30px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--muted);
}

.footer-col a:hover {
    color: var(--accent);
}

.social-icons a {
    color: #e6f0ff;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding-top: 10px;
    opacity: 0.8;
}

.designed-by a {
    font-weight: 600;
}

/* Helpers */
.muted {
    color: var(--muted);
    font-size: 16px
}

.center {
    text-align: center
}

.hidden {
    display: none
}

.icon-text i {
    margin-right: 10px;
    color: var(--accent)
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%; /* Changed to 100% for full viewport height */
    width: 260px;
    /* Reduced width for minimal space */
    /* Updated Glass Look */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    /* Strong blur */
    z-index: 200;
    padding: 25px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smoother transition */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    /* Enable flex for full height content/footer layout */
    flex-direction: column;
    border-radius: 15px 0 0 15px;
}

.mobile-menu.active {
    transform: translateX(0)
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px
}

.mobile-menu a {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: block;
    color: var(--muted);
    transition: background .2s
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff
}

.menu-close-btn {
    position: absolute;
    top: 25px;
    right: 25px
}

/* responsive */
@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px
    }

    .hero h1 {
        font-size: 32px
    }

    .main-nav {
        display: none
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .section-title {
        font-size: 26px
    }

    .cards-grid {
        grid-template-columns: 1fr
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        text-align: center;
        margin-top: 10px;
        padding-left: 0;
    }

    .social-icons {
        margin-top: 15px;
        text-align: center;
    }

    .social-icons a {
        margin: 0 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media(min-width:901px) {
    #openMenu {
        display: none
    }
}