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

:root {
    --primary: #0f1b3d;
    --primary-light: #1a2d5e;
    --accent: #c8952e;
    --accent-light: #e0b84c;
    --text: #2d2d2d;
    --text-light: #6b7280;
    --bg: #f8f7f4;
    --white: #fffef7;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.02);
    --radius: 12px;
}

body {
    font-family: 'Inter', 'Baloo 2', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* Header */
header {
    background: var(--white);
    color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-top {
    background: var(--primary);
    color: var(--accent-light);
    padding: 6px 0;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-logo {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 4px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    font-family: 'Baloo 2', sans-serif;
}

.logo-text small {
        font-size: 14px;
        display: block;
        text-align: center;
    }

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

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 22px;
        color: #e53935;
        text-align: center;
    }

    .logo-text small {
        font-size: 14px;
        text-align: center;
        display: block;
    }

    .nav-toggle {
        display: none;
    }

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

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 22px;
        color: #e53935;
        text-align: center;
    }

    .logo-text small {
        font-size: 14px;
        text-align: center;
        display: block;
    }

    .nav-toggle {
        display: none;
    }

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

    .logo {
        flex-direction: column;
        text-align: center;
    }

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

.menu-icon { display: none; }
.marquee-bar { display: flex; align-items: center; background: rgba(15,27,61,0.05); color: var(--primary); padding: 4px 12px; font-size: 16px; font-weight: 600; border-top: 1px solid rgba(15,27,61,0.1); }
.marquee-bar marquee { flex: 1; white-space: nowrap; overflow: hidden; }
.menu-btn { display: none; }

.nav-list {
    display: flex;
    justify-content: flex-end;
}

.nav-list li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-list li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s;
    position: absolute;
    bottom: 4px;
    left: 18px;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: calc(100% - 36px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5e 60%, #243b6a 100%);
    color: var(--white);
    padding: 64px 24px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 14px;
    position: relative;
}

.hero h2 span {
    color: var(--accent-light);
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: 0.9;
    position: relative;
}

.hero .btn {
    font-size: 17px;
    padding: 12px 34px;
    position: relative;
}

.stats-boxes, .hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.stat-box, .stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 32px;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number, .stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-light);
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #b5832a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,149,46,0.3);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 0.3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-white {
    background: var(--white);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.25s;
    border: 1px solid rgba(0,0,0,0.04);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.course-card-header {
    background: var(--primary);
    color: var(--white);
    padding: 16px 20px;
}

.course-card-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.course-card-body {
    padding: 18px 20px;
}

.course-card-body p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.course-badge {
    display: inline-block;
    background: rgba(200,149,46,0.12);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Tables */
.table-wrapper-outer {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 18px;
    border-bottom: 1px solid #eaeaea;
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 17px;
}

tr:nth-child(even) {
    background: #f9f8f6;
}

tr:hover {
    background: rgba(200,149,46,0.06);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.25s;
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent-light);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature-card p {
    font-size: 18px;
    color: var(--text-light);
}

/* Team */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.team-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 16px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 17px;
    color: var(--primary);
}

.team-card span {
    font-size: 15px;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 14px;
}

.contact-info p {
    font-size: 17px;
    margin-bottom: 6px;
}

.contact-info strong {
    color: var(--primary);
    font-size: 15px;
}

.contact-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.phone-card {
    background: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 140px;
    border: 1px solid rgba(0,0,0,0.04);
}

.phone-card span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.phone-card a {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
}

.address-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 16px;
    border-left: 3px solid var(--accent);
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent-light);
    letter-spacing: 0.3px;
}

.footer-col p, .footer-col a {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
    opacity: 0.6;
}

/* App CTA */
.app-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #a67c28 100%);
    color: var(--white);
    text-align: center;
    padding: 48px 24px;
}

.app-cta h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.app-cta p {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.app-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5e 100%);
    color: var(--white);
    padding: 40px 24px;
    text-align: center;
}

.page-header h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.page-header p {
    font-size: 17px;
    opacity: 0.8;
}

/* Instructions */
.instructions {
    list-style: decimal;
    padding-left: 20px;
}

.instructions li {
    padding: 8px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid #eee;
}

/* Forms */
input, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table Wrapper */
.table-wrapper {
    margin-top: 32px;
    position: relative;
}

.table-wrapper table {
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.table-wrapper th {
    padding: 14px 28px;
    text-align: center;
    color: var(--accent-light);
    font-size: 22px;
    font-weight: 800;
    border: none;
    letter-spacing: 1px;
}

.table-wrapper td {
    padding: 6px 28px;
    text-align: center;
    color: #000;
    font-size: 20px;
}

.table-wrapper td:nth-child(1) {
    padding-left: 40px;
    text-align: left;
}

.table-wrapper td:nth-child(2) {
    padding-right: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        font-size: 16px;
        padding: 5px 12px;
    }

    .header-main {
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px;
        align-items: center;
    }

    .main-logo {
        width: 50px;
    }

    .logo {
        flex-direction: row;
        text-align: center;
        align-items: center;
    }

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

    .logo-text h1 {
        font-size: 18px;
        color: #e53935;
        text-align: center;
    }

    .logo-text small {
        font-size: 14px;
        text-align: center;
        display: block;
    }

    .nav-toggle {
        display: none;
    }

    .marquee-bar {
        display: flex;
        align-items: center;
        background: rgba(15,27,61,0.05);
        color: var(--primary);
        padding: 4px 12px;
        font-size: 16px;
        font-weight: 600;
        border-top: 1px solid rgba(15,27,61,0.1);
    }

    .menu-btn {
        display: inline-block;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: var(--primary);
        padding: 0 8px 0 0;
    }

    .marquee-bar marquee {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        padding: 0;
        max-height: 70vh;
        overflow-y: auto;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-list.open {
        display: flex;
        max-height: 60vh;
        overflow-y: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-list li a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero h2 {
        font-size: 22px !important;
        text-align: center !important;
        width: 100%;
    }

    .hero h2 span {
        display: block;
        text-align: center !important;
        width: 100%;
    }

    .hero p {
        text-align: center;
    }

    .stats-boxes, .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .stat-box, .stat-item {
        width: 100%;
        max-width: 240px;
        padding: 16px 20px;
    }

    .stat-number, .stat-num {
        font-size: 26px;
    }

    .stat-label {
        font-size: 16px;
    }

    .table-wrapper th {
        font-size: 14px;
        padding: 10px 8px;
        white-space: nowrap;
    }

    .table-wrapper td {
        padding: 6px 8px;
        font-size: 13px;
    }

    .table-wrapper td:nth-child(1) {
        padding-left: 16px;
        text-align: left;
    }

    .table-wrapper td:nth-child(2) {
        padding-right: 16px;
    }

    .table-wrapper th, .table-wrapper td {
        padding-left: 8px;
        padding-right: 8px;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 12px;
    }

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

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

    .section-title {
        font-size: 20px;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .features-grid .feature-card {
        padding: 15px 10px !important;
    }

    .about-content p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .about-content h3 {
        font-size: 18px !important;
    }
}