/* Reset & Setup */
:root {
    --primary-blue: #0A192F;
    /* Deep premium blue */
    --secondary-blue: #112240;
    --light-blue: #233554;
    --accent-gold: #FFCA28;
    /* Rich Gold */
    --gold-light: #FFD54F;
    --gold-dark: #FFB300;
    --text-main: #E6F1FF;
    --text-muted: #8892B0;
    --text-pure: #ffffff;
    --bg-main: #020C1B;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-pure);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utilities */
.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--accent-gold);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--gold-dark));
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--accent-gold));
    color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 202, 40, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(255, 202, 40, 0.1);
    color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 202, 40, 0.2);
}

/* Header */
.header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-pure);
}

.logo-gold {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-blue);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 1rem 0;
    border: 1px solid rgba(255, 202, 40, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
    /* remove the underline effect from parent */
}

.dropdown-menu a:hover {
    background: rgba(255, 202, 40, 0.1);
    color: var(--accent-gold);
    padding-left: 2rem;
}

.mobile-only-btn {
    display: none;
}


.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        display: none;
    }

    .header.mobile-menu-open .nav {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }

    .nav-links,
    .desktop-only-btn {
        display: none;
    }

    .header.mobile-menu-open .nav-links {
        display: flex;
    }

    .mobile-only-btn {
        display: block;
        margin-top: 1rem;
    }

    /* Mobile Dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 100%;
        padding: 0;
        display: none;
        margin-top: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a:hover {
        padding-left: 1rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.9)), url('../images/hero_banner.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--primary-blue), transparent);
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.top-badge {
    display: inline-block;
    background: rgba(255, 202, 40, 0.1);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 202, 40, 0.3);
}

.hero-text h1 span {
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Form */
.hero-form-container {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 202, 40, 0.2);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hero-form-container p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 202, 40, 0.2);
}

.btn-block {
    width: 100%;
    display: block;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-form-container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-right: 20px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.bg-secondary {
    background-color: var(--secondary-blue);
}

.bg-light {
    background-color: var(--bg-main);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-blue);
    padding: 2.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.feature-card ul {
    list-style: none;
    margin-top: 1rem;
}

.feature-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feature-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 202, 40, 0.3);
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .two-col.reverse {
        direction: rtl;
    }

    .two-col.reverse>* {
        direction: ltr;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-main);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border-radius: 50%;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-main);
    padding: 2rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .logo {
    padding: 0 2rem;
    display: block;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-muted);
    border-left: 3px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: var(--light-blue);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
}

.admin-main {
    flex: 1;
    padding: 2rem 3rem;
    background: var(--primary-blue);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-img {
    height: 200px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-pure);
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Forms */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Program Cards Section */
.program-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: var(--light-blue);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 202, 40, 0.1);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 202, 40, 0.3);
}

.program-card-header {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-card-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-pure);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-card-header.gold-header {
    background: linear-gradient(135deg, var(--accent-gold), var(--gold-dark));
}

.program-card-header.gold-header h3 {
    color: var(--primary-blue);
    text-shadow: none;
}

.program-card-header.gold-header p {
    color: var(--primary-blue);
    font-weight: 600;
}

.program-card-header.blue-header {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    border-bottom: 3px solid var(--accent-gold);
}

.program-card-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.program-card-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.program-subtitle {
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mt-3 {
    margin-top: 1.5rem;
}

.program-card-body ul {
    list-style: none;
}

.program-card-body ul li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.program-card-body ul li i {
    color: var(--accent-gold);
    margin-top: 4px;
    font-size: 0.9rem;
}

.program-card-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* New Responsive Classes */
.cta-heading {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .cta-heading {
        font-size: 2rem;
    }

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

    .program-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .two-col {
        gap: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}