/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f9fcff;
    color: #1a2b3c;
    line-height: 1.5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem 1.5rem;
}

/* Hide duplicate header if it appears */
.header-wrapper:not(:first-of-type) {
    display: none !important;
}

/* ===== HEADER ===== */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 43, 68, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem 0.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}
.logo i {
    font-size: 1.6rem;
    color: #7fc1d9;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
}
.nav-links a:hover {
    color: white;
}
.nav-links .enroll-btn {
    background: white;
    color: #0f2b44;
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    border: 2px solid transparent;
}
.nav-links .enroll-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(145deg, #0f2b44 0%, #1a3f60 100%);
    padding: 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: "● ● ● ●";
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    font-size: 3rem;
    letter-spacing: 0.3rem;
    opacity: 0.04;
    color: white;
    font-weight: 300;
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 5rem 0 6rem 0;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: white;
    margin-bottom: 0.25rem;
}
.hero-content h1 span {
    display: block;
}
.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0.75rem auto 1.8rem auto;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.2rem;
}
.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: #0f2b44;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.btn-brochure:hover {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-brochure i {
    font-size: 1rem;
    color: #1f6e8c;
}
.btn-brochure:hover i {
    color: white;
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.2rem;
    transition: 0.2s;
}
.btn-outline-light:hover {
    border-bottom-color: white;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    color: #0a2538;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-title i {
    color: #1f6e8c;
    font-size: 1.8rem;
    opacity: 0.8;
}
[id] {
    scroll-margin-top: 80px;
}

/* ===== OBJECTIVES ===== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.objective-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 20, 40, 0.04);
    border: 1px solid #eaf0f6;
    transition: all 0.2s ease;
}
.objective-card:hover {
    transform: translateY(-4px);
    border-color: #b9d0e0;
    box-shadow: 0 12px 24px rgba(0, 30, 60, 0.06);
}
.objective-card i {
    font-size: 2rem;
    color: #1f6e8c;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.objective-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #0f2b44;
}
.objective-card p {
    font-size: 0.95rem;
    color: #2e4a62;
    opacity: 0.8;
}

/* ===== CURRICULUM ===== */
.curriculum {
    background: white;
    border-radius: 2rem;
    padding: 2rem 2rem 1.5rem 2rem;
    margin: 2.5rem 0;
    border: 1px solid #e2ecf5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}
.module {
    background: #f5faff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.2rem;
    border-top: 6px solid #1f6e8c;
    transition: all 0.3s ease;
}
.module:hover {
    background: #edf6fe;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 110, 140, 0.12);
}
.module .module-number {
    display: inline-block;
    background: #1f6e8c;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}
.module h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: #0f2b44;
}
.module ul {
    list-style: none;
    padding-left: 0;
}
.module ul li {
    padding: 0.25rem 0 0.25rem 1.4rem;
    position: relative;
    font-size: 0.95rem;
    color: #1e3b55;
    border-bottom: 1px dashed #d6e4f0;
}
.module ul li:last-child {
    border-bottom: none;
}
.module ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #1f6e8c;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== PROGRAMS ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.program-card {
    background: white;
    border-radius: 1.75rem;
    padding: 2rem 1.8rem;
    border: 1px solid #e2ecf5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.program-card:hover {
    transform: translateY(-6px);
    border-color: #b9d0e0;
    box-shadow: 0 16px 32px rgba(0, 30, 60, 0.06);
}
.program-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f2b44;
    margin-bottom: 0.5rem;
}
.program-card .description {
    font-size: 1rem;
    color: #2e4a62;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}
.program-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a2538;
    margin: 0.5rem 0 1.2rem 0;
}
.program-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: #5b748a;
}
.program-card .enroll-btn-card {
    display: inline-block;
    background: #0f2b44;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
    border: 2px solid #0f2b44;
    margin-top: auto;
    align-self: center;
    cursor: pointer;
}
.program-card .enroll-btn-card:hover {
    background: transparent;
    color: #0f2b44;
}
.program-card .badge {
    display: inline-block;
    background: #1f6e8c;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    align-self: center;
}
.load-more-wrapper {
    text-align: center;
    margin: 2.5rem 0;
}
.load-more-btn {
    background: transparent;
    color: #0f2b44;
    border: 2px solid #0f2b44;
    padding: 0.8rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}
.load-more-btn:hover {
    background: #0f2b44;
    color: white;
}

/* ===== ENROLL FORM ===== */
.enroll-section {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid #e2ecf5;
}
.enroll-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.enroll-form .full-width {
    grid-column: 1 / -1;
}
.enroll-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2b3c;
    display: block;
    margin-bottom: 0.3rem;
}
.enroll-form input,
.enroll-form select {
    padding: 0.7rem 1rem;
    border: 1px solid #dde9f2;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    transition: 0.2s;
    font-family: inherit;
}
.enroll-form input:focus,
.enroll-form select:focus {
    outline: none;
    border-color: #1f6e8c;
    box-shadow: 0 0 0 3px rgba(31, 110, 140, 0.1);
}
.enroll-submit {
    background: #0f2b44;
    color: white;
    border: none;
    padding: 0.9rem 3rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}
.enroll-submit:hover {
    background: #1a3f60;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    margin: 3rem 0 2.5rem 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}
.testimonial {
    background: white;
    border-radius: 1.5rem;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 10, 30, 0.04);
    border: 1px solid #eaf0f6;
    display: flex;
    flex-direction: column;
}
.testimonial i.fa-quote-left {
    color: #b0cbd9;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    opacity: 0.6;
}
.testimonial blockquote {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #1a344b;
    margin: 0.2rem 0 0.8rem 0;
}
.testimonial .author {
    margin-top: auto;
    font-weight: 600;
    color: #0f2b44;
    display: flex;
    flex-direction: column;
}
.testimonial .author span {
    font-weight: 400;
    font-size: 0.9rem;
    color: #496883;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid #e2ecf5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.admin-panel h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2538;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-panel h2 i {
    color: #e74c3c;
}
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.admin-tabs button {
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    border: 2px solid #dde9f2;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #1a2b3c;
}
.admin-tabs button.active {
    background: #0f2b44;
    color: white;
    border-color: #0f2b44;
}
.admin-tabs button:hover:not(.active) {
    border-color: #0f2b44;
}
.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.admin-form .full-width {
    grid-column: 1 / -1;
}
.admin-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2b3c;
    display: block;
    margin-bottom: 0.3rem;
}
.admin-form input,
.admin-form textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #dde9f2;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    transition: 0.2s;
    font-family: inherit;
}
.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #1f6e8c;
    box-shadow: 0 0 0 3px rgba(31, 110, 140, 0.1);
}
.admin-form textarea {
    resize: vertical;
    min-height: 80px;
}
.admin-submit {
    background: #0f2b44;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    grid-column: 1 / -1;
    justify-self: start;
}
.admin-submit:hover {
    background: #1a3f60;
}

/* ===== PAYMENTS TABLE ===== */
.payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.payments-table th {
    background: #f5faff;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #0a2538;
    border-bottom: 2px solid #dde9f2;
}
.payments-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eaf0f6;
}
.payments-table tr:hover td {
    background: #f9fcff;
}
.status-paid, .status-completed {
    color: #27ae60;
    font-weight: 600;
}
.status-pending {
    color: #f39c12;
    font-weight: 600;
}
.status-failed {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a1f32;
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem 0;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    transition: 0.2s;
}
.footer a:hover {
    color: white;
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.footer .social-icons a {
    display: inline-block;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.2s;
}
.footer .social-icons a:hover {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-content {
        padding: 3rem 0 4rem 0;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem 0;
    }
    .nav-links {
        gap: 1rem 1.5rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .admin-form {
        grid-template-columns: 1fr;
    }
    .admin-form .full-width {
        grid-column: 1;
    }
    .admin-submit {
        grid-column: 1;
    }
    .enroll-form {
        grid-template-columns: 1fr;
    }
    .enroll-form .full-width {
        grid-column: 1;
    }
    .curriculum {
        padding: 1.5rem 1rem;
    }
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    [id] {
        scroll-margin-top: 120px;
    }
    .header-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content {
        padding: 2.5rem 0 3.5rem 0;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}
.flex-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mt-1 {
    margin-top: 1rem;
}
.text-center {
    text-align: center;
}