/* ============================================================
   NYSON LEARNING ACADEMY - Brand Theme
   Tagline: "Offline Coaching. Online Learning. Unlimited Growth."
   ============================================================ */

:root {
    /* Brand Colors */
    --nya-primary: #0d47a1;
    --nya-primary-dark: #0a3578;
    --nya-primary-light: #1565c0;
    --nya-secondary: #ff6f00;
    --nya-secondary-light: #ff8f00;
    --nya-success: #2e7d32;
    --nya-danger: #c62828;
    --nya-warning: #f9a825;
    --nya-info: #0277bd;

    /* Division Colors */
    --nya-school: #28a745;
    --nya-school-light: #d4edda;
    --nya-coding: #0d47a1;
    --nya-coding-light: #d6eaf8;
    --nya-career: #e65100;
    --nya-career-light: #fff3e0;

    /* Neutrals */
    --nya-bg: #f5f7fa;
    --nya-surface: #ffffff;
    --nya-text: #2c3e50;
    --nya-text-light: #6c757d;
    --nya-border: #e9ecef;
    --nya-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --nya-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --nya-radius: 12px;
    --nya-radius-lg: 20px;
    --nya-radius-sm: 8px;

    /* Typography */
    --nya-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nya-font-heading: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--nya-font);
    background: var(--nya-bg);
    color: var(--nya-text);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.nya-topbar {
    background: var(--nya-primary);
    color: white;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}
.nya-topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.nya-topbar a:hover { color: white; }

.nya-navbar {
    background: var(--nya-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nya-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nya-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nya-brand span {
    color: var(--nya-secondary);
}
.nya-brand-tagline {
    font-size: 0.65rem;
    color: var(--nya-text-light);
    display: block;
    margin-top: -3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nya-nav-link {
    color: var(--nya-text);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--nya-radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.nya-nav-link:hover, .nya-nav-link.active {
    background: var(--nya-primary);
    color: white !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.nya-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #1976d2 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.nya-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,111,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.nya-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.nya-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.nya-hero .tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 2rem;
}
.nya-hero .cta-group .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    margin: 5px;
}

/* ============================================================
   DIVISION CARDS
   ============================================================ */
.nya-division-card {
    background: var(--nya-surface);
    border-radius: var(--nya-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.nya-division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nya-primary);
    transition: height 0.3s;
}
.nya-division-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nya-shadow-lg);
}
.nya-division-card:hover::before {
    height: 6px;
}
.nya-division-card.school::before { background: var(--nya-school); }
.nya-division-card.coding::before { background: var(--nya-coding); }
.nya-division-card.career::before { background: var(--nya-career); }

.nya-division-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: transform 0.3s;
}
.nya-division-card:hover .nya-division-icon {
    transform: scale(1.1);
}
.nya-division-icon.school { background: var(--nya-school-light); color: var(--nya-school); }
.nya-division-icon.coding { background: var(--nya-coding-light); color: var(--nya-coding); }
.nya-division-icon.career { background: var(--nya-career-light); color: var(--nya-career); }

.nya-division-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.nya-division-card p {
    color: var(--nya-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.nya-division-card .subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 1rem;
}
.nya-division-card .subjects .badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.nya-division-card.school .subjects .badge { background: var(--nya-school-light); color: var(--nya-school); }
.nya-division-card.coding .subjects .badge { background: var(--nya-coding-light); color: var(--nya-coding); }
.nya-division-card.career .subjects .badge { background: var(--nya-career-light); color: var(--nya-career); }

/* ============================================================
   COURSE CARDS (Showcase)
   ============================================================ */
.nya-course-card {
    background: var(--nya-surface);
    border-radius: var(--nya-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--nya-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.nya-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--nya-shadow-lg);
    border-color: transparent;
}
.nya-course-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.nya-course-thumb i {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}
.nya-course-thumb .nya-course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
}
.nya-course-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nya-course-body h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--nya-text);
}
.nya-course-body .course-subtitle {
    font-size: 0.8rem;
    color: var(--nya-text-light);
    margin-bottom: 0.8rem;
}
.nya-course-body .course-desc {
    font-size: 0.85rem;
    color: #5d6d7e;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}
.nya-course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--nya-text-light);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.nya-course-meta i { margin-right: 4px; }
.nya-course-meta .rating { color: #ffc107; }
.nya-course-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.nya-course-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--nya-radius-sm);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.nya-stats {
    background: var(--nya-primary);
    color: white;
    padding: 50px 0;
}
.nya-stat-item {
    text-align: center;
    padding: 20px;
}
.nya-stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.nya-stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.nya-filter-bar {
    background: var(--nya-surface);
    border-radius: var(--nya-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--nya-shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.nya-filter-btn {
    padding: 6px 18px;
    border-radius: 25px;
    border: 1.5px solid var(--nya-border);
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--nya-text);
}
.nya-filter-btn:hover {
    border-color: var(--nya-primary);
    color: var(--nya-primary);
}
.nya-filter-btn.active {
    background: var(--nya-primary);
    color: white;
    border-color: var(--nya-primary);
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.nya-search {
    position: relative;
    max-width: 400px;
}
.nya-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1.5px solid var(--nya-border);
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.nya-search input:focus {
    border-color: var(--nya-primary);
}
.nya-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nya-text-light);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.nya-section-header {
    border-radius: var(--nya-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    color: white;
}
.nya-section-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}
.nya-section-header p {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 0.9rem;
}
.nya-section-header.school { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.nya-section-header.coding { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.nya-section-header.career { background: linear-gradient(135deg, #bf360c, #e65100); }

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
.nya-dash-card {
    background: var(--nya-surface);
    border-radius: var(--nya-radius);
    padding: 1.5rem;
    box-shadow: var(--nya-shadow);
    transition: all 0.2s;
    border: 1px solid var(--nya-border);
}
.nya-dash-card:hover {
    box-shadow: var(--nya-shadow-lg);
}
.nya-dash-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.nya-dash-card .card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--nya-text);
    line-height: 1;
}
.nya-dash-card .card-label {
    font-size: 0.85rem;
    color: var(--nya-text-light);
    margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-nya-primary {
    background: var(--nya-primary);
    color: white;
    border: none;
    border-radius: var(--nya-radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nya-primary:hover {
    background: var(--nya-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,71,161,0.3);
}
.btn-nya-secondary {
    background: var(--nya-secondary);
    color: white;
    border: none;
    border-radius: var(--nya-radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nya-secondary:hover {
    background: var(--nya-secondary-light);
    color: white;
    transform: translateY(-1px);
}
.btn-nya-outline {
    background: transparent;
    color: var(--nya-primary);
    border: 2px solid var(--nya-primary);
    border-radius: var(--nya-radius-sm);
    padding: 8px 22px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nya-outline:hover {
    background: var(--nya-primary);
    color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nya-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
}
.nya-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}
.nya-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.nya-footer a:hover { color: white; }
.nya-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.nya-testimonial {
    background: var(--nya-surface);
    border-radius: var(--nya-radius);
    padding: 1.5rem;
    box-shadow: var(--nya-shadow);
    border-left: 4px solid var(--nya-primary);
    margin-bottom: 1.5rem;
}
.nya-testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 0.8rem;
}
.nya-testimonial .author {
    font-weight: 600;
    color: var(--nya-text);
    font-size: 0.9rem;
}
.nya-testimonial .rating { color: #ffc107; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.nya-animate {
    animation: fadeInUp 0.5s ease forwards;
}
.nya-delay-1 { animation-delay: 0.1s; }
.nya-delay-2 { animation-delay: 0.2s; }
.nya-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE (Zoom + Device Compatible)
   ============================================================ */

/* Prevent hero content clipping at any zoom */
.nya-hero { overflow: visible; }
.nya-hero h1 { 
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.nya-hero .tagline { 
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    word-wrap: break-word;
}

/* Division cards responsive */
.nya-division-card h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

/* Stats responsive */
.nya-stat-item .stat-number {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 768px) {
    .nya-hero { padding: 50px 0 40px; }
    .nya-stat-item .stat-number { font-size: 1.8rem; }
    .nya-division-card { padding: 1.5rem; }
    .nya-section-header { padding: 1rem 1.5rem; }
    .nya-filter-bar { padding: 0.8rem; }
    .nya-course-thumb { height: 120px; }
    .nya-footer { padding: 30px 0 15px; }
}

@media (max-width: 576px) {
    .nya-hero .cta-group .btn { display: block; margin: 5px 0; }
    .nya-course-body { padding: 0.8rem; }
    .nya-course-body h5 { font-size: 0.9rem; }
    .nya-course-meta { font-size: 0.7rem; }
    .nya-div-pills { gap: 6px; }
    .nya-div-pill { padding: 8px 16px; font-size: 0.8rem; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* ============================================================
   LEARNING MODE BADGES
   ============================================================ */
.mode-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mode-badge.offline { background: #e8f5e9; color: #2e7d32; }
.mode-badge.online { background: #e3f2fd; color: #1565c0; }
.mode-badge.hybrid { background: #fff3e0; color: #e65100; }

/* ============================================================
   DIVISION NAVIGATION PILLS
   ============================================================ */
.nya-div-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.nya-div-pill {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: white;
    color: var(--nya-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nya-div-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nya-div-pill.active, .nya-div-pill.school.active { background: var(--nya-school); color: white; }
.nya-div-pill.coding.active { background: var(--nya-coding); color: white; }
.nya-div-pill.career.active { background: var(--nya-career); color: white; }
