/* =============================================
   EduCore - School Management System
   Stylesheet matching ParentLms.aspx design
   Company: A1-Soft
   ============================================= */

:root {
    --bg: #f8fafc;
    --panel: #fff;
    --card: #f9fafb;
    --line: #e5e7eb;
    --muted: #6b7280;
    --text: #111827;
    --accent: #F7941D;
    --accent-2: #E67E22;
    --hover: rgba(247,148,29,.08);
    --radius: 16px;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.rtl { direction: rtl; }

a { text-decoration: none; color: inherit; transition: all .15s ease; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* =============================================
   LAYOUT
   ============================================= */
.wrap { max-width: 1260px; margin: 12px auto; padding: 0 12px; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 12px; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.title { font-weight: 800; font-size: 22px; margin: 0 0 6px; }
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 800; }
h4 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.7; }

/* =============================================
   PANELS & CARDS
   ============================================= */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,.04);
}

.card {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.btn-primary {
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(247,148,29,.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(247,148,29,.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    background: #eef9ff;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
}

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

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: #1e3a5f;
    transition: all .2s ease;
}

.navbar.scrolled {
    background: #1e3a5f;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--white);
    font-weight: 800;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    transition: color .2s ease;
}

.navbar.scrolled .logo-text { color: var(--white); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    font-size: 15px;
}

.navbar.scrolled .nav-links a { color: var(--white); }
.nav-links a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    transition: all .15s ease;
}

.navbar.scrolled .lang-switch {
    background: #f3f4f6;
    color: var(--text);
}

.lang-switch:hover {
    background: var(--accent);
    color: var(--white);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,.1) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero .container { position: relative; z-index: 10; }
.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-badge span {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.stat-item { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}
.stat-label {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 70px 0; }

.section-header {
    text-align: center;
    max-width: 550px;
    margin: 0 auto 40px;
}

.section-label {
    display: inline-block;
    background: var(--hover);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    border: 1px solid rgba(247,148,29,.15);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
}

/* =============================================
   GRID LAYOUTS
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.dashboard-grid { margin: 24px 0; }
.grid-container { width: 100%; }

.grid-row {
    display: grid;
    gap: 0;
    grid-auto-rows: auto;
}

@media (min-width: 1025px) { .grid-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 769px) and (max-width: 1024px) { .grid-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-row { grid-template-columns: repeat(1, 1fr); } }

.grid-item {
    display: block;
    margin: 20px;
}

@media (max-width: 768px) { .grid-item { margin: 16px; } }

/* =============================================
   FEATURE/MODULE CARDS (Pastel Gradients)
   ============================================= */
.btn-lms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    height: 2cm;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all .2s ease;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 12px;
    min-height: 200px;
    width: 100%;
    padding: 28px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all .2s ease;
    background: #fff;
}

.module-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    min-height: 180px;
    width: 100%;
    padding: 24px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all .2s ease;
}

.btn-lms:focus, .feature-card:focus, .module-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(247,148,29,.2);
}

.btn-lms:hover, .feature-card:hover, .module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.15);
}

/* Pastel gradient backgrounds for btn-lms */
.grid-item:nth-child(6n+1) .btn-lms {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
}

.grid-item:nth-child(6n+2) .btn-lms {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
}

.grid-item:nth-child(6n+3) .btn-lms {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.grid-item:nth-child(6n+4) .btn-lms {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.grid-item:nth-child(6n+5) .btn-lms {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.grid-item:nth-child(6n) .btn-lms {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

/* Feature card colors */
.feature-card:nth-child(6n+1) { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border-color: #cbd5e1; }
.feature-card:nth-child(6n+2) { background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%); border-color: #e9d5ff; }
.feature-card:nth-child(6n+3) { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
.feature-card:nth-child(6n+4) { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fde68a; }
.feature-card:nth-child(6n+5) { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); border-color: #fca5a5; }
.feature-card:nth-child(6n) { background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%); border-color: #93c5fd; }

/* Icon styling */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(247,148,29,.3);
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: #fff !important;
}

.btn-icon i {
    font-size: 20px;
    line-height: 1;
    color: #475569;
    transition: all .2s ease;
}

.btn-lms:hover .btn-icon i, .feature-card:hover .feature-icon i, .module-card:hover .module-icon i {
    color: var(--accent);
    transform: scale(1.1);
}

.btn-label, .feature-title, .module-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.feature-desc, .module-desc {
    font-size: 13px;
    color: var(--muted);
}

/* =============================================
   NEWS CARDS
   ============================================= */
.news-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.news-image {
    height: 160px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    font-size: 40px;
    color: #9ca3af;
}

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

.news-content { padding: 16px; }

.news-category {
    display: inline-block;
    background: var(--hover);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.news-summary {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    position: relative;
}

.testimonial-quote {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 700;
}

.author-info h5 {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.author-info span {
    font-size: 13px;
    color: var(--muted);
}

.testimonial-stars {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 12px;
}

body.rtl .testimonial-stars { right: auto; left: 20px; }

/* =============================================
   PRICING CARDS
   ============================================= */
.pricing-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: all .15s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.1);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #F7941D 0%, #E67E22 100%);
    border: none;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-card:not(.featured) .pricing-name { color: var(--text); }
.pricing-card.featured .pricing-name { color: var(--white); }

.pricing-desc {
    font-size: 14px;
    margin-bottom: 16px;
}

.pricing-card:not(.featured) .pricing-desc { color: var(--muted); }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,.7); }

.pricing-price { margin-bottom: 20px; }

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-card:not(.featured) .price-amount { color: var(--accent); }
.pricing-card.featured .price-amount { color: var(--white); }

.price-period { font-size: 14px; }

.pricing-card:not(.featured) .price-period { color: var(--muted); }
.pricing-card.featured .price-period { color: rgba(255,255,255,.7); }

.pricing-features {
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.pricing-card.featured .pricing-features li { border-bottom-color: rgba(255,255,255,.1); }

.pricing-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.pricing-card:not(.featured) .pricing-check { background: var(--hover); color: var(--accent); }
.pricing-card.featured .pricing-check { background: rgba(255,255,255,.2); color: var(--white); }

.pricing-card:not(.featured) .pricing-features span { color: var(--text); }
.pricing-card.featured .pricing-features span { color: rgba(255,255,255,.9); }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all .15s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247,148,29,.1);
}

textarea.form-control { min-height: 100px; resize: vertical; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #15304d 100%);
    padding: 50px 0 24px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo {
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,.7);
    margin: 14px 0;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: grid;
    place-items: center;
    color: var(--white);
    transition: all .15s ease;
}

.social-link:hover {
    background: var(--white);
    color: var(--accent);
}

.footer-column h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}

/* =============================================
   CONTACT FLOAT
   ============================================= */
.contact-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.rtl .contact-float { right: auto; left: 20px; }

.contact-float a {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: all .15s ease;
}

.contact-float a:hover { transform: scale(1.1); }
.whatsapp-btn { background: #25D366; color: var(--white); }
.email-btn { background: var(--accent); color: var(--white); }

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fecaca; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

.tag {
    font-size: 12px;
    color: var(--muted);
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px 8px;
}

/* =============================================
   IDENTITY (from ParentLms)
   ============================================= */
.identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #475569;
}

.meta .name { font-weight: 800; font-size: 18px; }
.meta .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* =============================================
   YEARS (from ParentLms)
   ============================================= */
.years {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.year-btn {
    display: block;
    text-align: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.year-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.year-btn .txt { font-size: 16px; font-weight: 800; }
.year-btn.active { border-color: var(--accent); background: #eef9ff; }

/* =============================================
   STUDENT CARDS (from ParentLms)
   ============================================= */
.cardgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.stu-card {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease;
}

.stu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.stu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef6ff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.stu-avatar i { font-size: 18px; }
.stu-main { min-width: 0; }

.stu-name {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* =============================================
   PAGER (from ParentLms)
   ============================================= */
.pager {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.pg-btn, .pg-num, .pg-current {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 10px;
    background: var(--white);
    text-decoration: none;
}

.pg-current {
    background: #eef9ff;
    border-color: var(--accent);
    font-weight: 700;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--accent); }
.text-muted { color: var(--muted); }

/* =============================================
   MOBILE MENU BUTTON
   ============================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .hero h1 { font-size: 2.2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 20px; }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .form-row { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .mobile-menu-btn { display: flex; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a5f;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 1rem;
        display: block;
    }
    
    .nav-actions {
        display: none;
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
        right: 0;
        background: #1e3a5f;
        padding: 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .nav-actions.mobile-active {
        display: flex;
        top: auto;
        position: relative;
        background: transparent;
        padding: 0;
        margin-top: 10px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    .section-header { margin-bottom: 30px; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-social { justify-content: center; }
    .footer-links { align-items: center; }
    
    .hero-stats { flex-direction: column; gap: 16px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .wrap, .container { padding: 0 16px; }
    
    .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
    .btn { padding: 10px 18px; font-size: 0.9rem; }
    
    .card { padding: 20px; }
    
    .contact-float { bottom: 16px; right: 16px; gap: 10px; }
    .contact-float a { width: 48px; height: 48px; font-size: 20px; }
    
    .pricing-card { padding: 28px 20px; }
    
    table { font-size: 14px; }
    th, td { padding: 10px 8px; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
    
    .logo-text { font-size: 1.1rem !important; }
    .logo img { height: 30px !important; }
    
    .nav-actions .btn-sm { padding: 8px 12px; font-size: 0.85rem; }
    .lang-switch span { display: none; }
    
    .footer-column h4 { font-size: 1rem; }
    .footer-links { font-size: 0.9rem; }
    
    .search-modal { padding: 30px 20px; margin: 20px; }
    .search-modal h3 { font-size: 1.3rem; }
}
