/* =============================================
   SIBA PUBLIC SCHOOL - PREMIUM CSS
   ============================================= */

:root {
    --primary-color: #4b5563;
    --primary-light: #6b7280;
    --secondary-color: #5eabe3;
    --accent-color: #feb630;
    --accent-dark: #d9981f;
    --text-color: #272727;
    --text-light: #5f5f5f;
    --bg-color: #f5f7f6;
    --bg-dark: #dddddd;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; }

/* ============ BUTTONS ============ */
.btn {
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    border: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent-color); color: var(--text-color); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }
.btn-outline-primary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline-primary:hover { background: var(--primary-color); color: var(--white); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-success { background: var(--primary-color); color: white; }
.btn-success:hover { background: #0b4f29; }
.btn-danger { background: #dc2626; color: white; }

/* ============ HEADER ============ */
header {
    background: var(--white);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: 75px;
}
nav { position: relative; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}
.brand-logo-header { height: 44px; }
.brand-logo-footer { height: 42px; }
.brand-logo-admin { height: 40px; }
.brand-logo-auth { height: 64px; }
.logo-icon {
    width: 44px; height: 44px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}
.logo-text h1 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.1;
}
.logo-text span {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    letter-spacing: 0.05em;
}
nav ul.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
nav ul.nav-links li a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}
nav ul.nav-links li a:hover, nav ul.nav-links li a.active {
    color: var(--primary-color);
    background: var(--bg-color);
}
.cta-btns { display: flex; gap: 0.6rem; align-items: center; }

.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-toggle:hover {
    background: var(--primary-dark);
}

.mobile-menu-close {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-close:hover {
    background: var(--primary-dark);
}

/* ============ HERO ============ */
.hero {
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(254,182,48,0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.hero h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h2 span { color: var(--accent-color); }
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 550px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--accent-color); display: block; }
.hero-stat .lbl { font-size: 0.8rem; opacity: 0.8; }

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.announcement-bar .label {
    background: var(--accent-color);
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.08em;
}
.announcement-bar .ticker {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
    display: inline-block;
    animation: marquee 12s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--primary-color);
    padding: 2rem 10%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat-item {
    text-align: center;
    color: white;
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-item .number { font-size: 2.5rem; font-weight: 800; color: var(--accent-color); }
.stat-item .label { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 10%; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary-color); color: white; }

.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title .badge {
    display: inline-block;
    background: rgba(75,85,99,0.1);
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(75,85,99,0.2);
}
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary-color); margin-bottom: 0.75rem; }
.section-dark .section-title h2 { color: white; }
.section-title p { color: var(--text-light); max-width: 550px; margin: 0 auto; font-size: 1rem; }
.section-dark .section-title p { color: rgba(255,255,255,0.7); }

/* ============ CARDS ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.feature-card { text-align: center; }
.feature-card .icon {
    width: 70px; height: 70px;
    background: var(--secondary-color);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.6rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--primary-color); }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ============ WHY CHOOSE US ============ */
.why-item {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.25rem;
    border-radius: 10px;
    transition: var(--transition);
}
.why-item:hover { background: var(--bg-color); }
.why-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
}
.why-item h4 { font-weight: 700; margin-bottom: 0.3rem; color: var(--primary-color); }
.why-item p { font-size: 0.88rem; color: var(--text-light); }

/* ============ ADMISSION STEPS ============ */
.steps { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.step {
    flex: 1 1 200px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}
.step-num {
    width: 50px; height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    margin: 0 auto 1rem;
}
.step h4 { font-weight: 700; color: var(--primary-color); margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-light); }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}
.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-card .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author strong { display: block; font-weight: 700; font-size: 0.95rem; }
.testimonial-card .author span { font-size: 0.8rem; color: var(--text-light); }

/* ============ EVENTS PREVIEW ============ */
.event-item {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.event-item:last-child { border-bottom: none; }
.event-date {
    width: 55px; flex-shrink: 0;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem;
}
.event-date .day { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1; }
.event-date .month { font-size: 0.65rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 0.05em; }
.event-info h4 { font-weight: 700; margin-bottom: 0.2rem; font-size: 0.95rem; }
.event-info p { font-size: 0.82rem; color: var(--text-light); }

/* ============ CTA STRIP ============ */
.cta-strip {
    background: var(--primary-color);
    padding: 4rem 10%;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 2rem;
    color: white;
}
.cta-strip h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-strip p { opacity: 0.85; }
.cta-strip-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ CONTACT STRIP ============ */
.contact-strip {
    background: var(--bg-dark);
    padding: 2.5rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.contact-item { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.contact-item .icon {
    width: 45px; height: 45px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.8rem; color: var(--text-light); }
.contact-item span { font-weight: 600; color: var(--primary-color); font-size: 0.95rem; word-break: break-word; }

/* ============ FOOTER ============ */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 10% 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
}
.footer-col p { font-size: 0.88rem; opacity: 0.75; line-height: 1.8; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; opacity: 0.75; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--accent-color); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.75; transition: var(--transition);
}
.social-links a:hover { background: var(--accent-color); opacity: 1; color: var(--text-color); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem;
    opacity: 0.6;
    flex-wrap: wrap; gap: 0.5rem;
}

/* ============ FORMS ============ */
.form-container {
    max-width: 520px;
    margin: 4rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-color);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
    color: var(--text-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="search"],
.form-group input:not([type]),
.form-group select {
    text-transform: uppercase;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(75,85,99,0.15);
}
.form-group input[type="file"] {
    padding: 0.6rem;
    background: var(--bg-color);
    cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 2px solid var(--bg-color);
    margin-bottom: 1.25rem;
}
.input-group { position: relative; }
.input-group input { padding-right: 3rem; }
.input-group-icon {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-light);
}

/* ============ ALERTS ============ */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex; align-items: flex-start; gap: 0.6rem;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #eef2f7; color: #4b5563; border: 1px solid #cbd5e1; }
.alert-info { background: #eaf4fb; color: #1f5f87; border: 1px solid #b6d8ef; }

/* ============ PARENT PORTAL LAYOUT ============ */
.portal-wrapper {
    display: flex;
    min-height: calc(100vh - 75px);
}
.portal-sidebar {
    width: 260px;
    background: var(--primary-color);
    color: white;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.portal-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
}
.portal-user-avatar {
    width: 52px; height: 52px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.portal-sidebar-header h3 { font-size: 0.95rem; font-weight: 700; }
.portal-sidebar-header p { font-size: 0.78rem; opacity: 0.65; }
.portal-nav { flex: 1; padding: 1rem 0; }
.portal-nav ul li a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.portal-nav ul li a:hover, .portal-nav ul li a.active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-right: 3px solid var(--accent-color);
}
.portal-nav ul li a i { width: 18px; text-align: center; }
.portal-nav-separator {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    padding: 1rem 1.5rem 0.25rem;
    font-weight: 700;
}
.portal-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.portal-sidebar-footer a {
    display: flex; align-items: center; gap: 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}
.portal-sidebar-footer a:hover { color: var(--accent-color); }
.portal-content {
    flex: 1;
    padding: 2.5rem;
    background: var(--bg-color);
    overflow-x: hidden;
}
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.portal-header-title h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); }
.portal-header-title p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.2rem; }

/* ============ STATUS TRACKER ============ */
.status-tracker {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 2rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 100px;
}
.status-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(-50% + 18px);
    right: calc(50% + 18px);
    height: 2px;
    background: #d1d5db;
}
.status-step:first-child::before { display: none; }
.status-step.done::before, .status-step.active::before { background: var(--secondary-color); }
.status-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #d1d5db;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
    margin-bottom: 0.5rem;
}
.status-step.done .status-icon { background: var(--secondary-color); }
.status-step.active .status-icon { background: var(--primary-color); box-shadow: 0 0 0 4px rgba(75,85,99,0.2); }
.status-step.rejected .status-icon { background: #dc2626; }
.status-label { font-size: 0.72rem; font-weight: 600; text-align: center; color: var(--text-light); }
.status-step.done .status-label, .status-step.active .status-label { color: var(--primary-color); }

/* ============ INFO CARDS ============ */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}
.info-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.info-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary-color); }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .key { color: var(--text-light); font-weight: 500; }
.info-row .val { font-weight: 600; color: var(--text-color); }

/* ============ STATUS BADGE ============ */
.badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-review { background: #e8f4fc; color: #1f5f87; }
.badge-admitted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-due { background: #fff7ed; color: #9a3412; }

/* ============ PORTAL DASHBOARD STATS ============ */
.portal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.portal-stat {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.portal-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); }
.portal-stat .lbl { font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
table thead tr { background: var(--primary-color); color: white; }
table thead th { padding: 1rem 1.25rem; text-align: left; font-size: 0.85rem; font-weight: 600; }
table tbody tr { border-bottom: 1px solid #f3f4f6; }
table tbody tr:hover { background: #f9fafb; }
table tbody td { padding: 0.9rem 1.25rem; font-size: 0.88rem; }

/* ============ MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }
.modal-close {
    width: 32px; height: 32px;
    background: var(--bg-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-body p { font-size: 0.88rem; line-height: 1.7; color: var(--text-light); margin-bottom: 0.75rem; }
.modal-body ol { padding-left: 1.25rem; }
.modal-body ol li { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.5rem; line-height: 1.6; }
.modal-footer { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ============ OTP STEPS ============ */
.otp-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.otp-step {
    flex: 1; text-align: center;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}
.otp-step.active { background: var(--primary-color); color: white; }
.otp-step.done { background: #dff0fb; color: #1f5f87; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
    background: var(--primary-color);
    padding: 4rem 10%;
    color: white;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.8; font-size: 1rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; opacity: 0.7; margin-bottom: 1rem; }
.breadcrumb a:hover { opacity: 1; color: var(--accent-color); }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in { animation: fadeInUp 0.7s ease forwards; }
.fade-in-2 { animation: fadeInUp 0.7s ease 0.15s forwards; opacity: 0; }
.fade-in-3 { animation: fadeInUp 0.7s ease 0.3s forwards; opacity: 0; }

/* ============ RESPONSIVE ============ */
@media(max-width: 1200px) {
    .section { padding: 4rem 8%; }
}

@media(max-width: 968px) {
    .mobile-menu-toggle { display: block; }
    .mobile-menu-close.active { display: block; }
    nav { position: static; flex: 0 0 auto; display: flex; align-items: center; }
    nav ul.nav-links { 
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 5rem 1rem 1rem;
        box-shadow: var(--shadow-md);
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
    }
    nav ul.nav-links.active { display: flex; }
    nav ul.nav-links li { width: 100%; }
    nav ul.nav-links li a { display: block; padding: 0.9rem 1.25rem; font-size: 1rem; border-bottom: 1px solid #f1f5f9; border-radius: 0; }
    nav ul.nav-links li a:hover, nav ul.nav-links li a.active { background: #f8fafc; }
    .cta-btns { display: none; }
    header { height: auto; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portal-wrapper { flex-direction: column; }
    .portal-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .cta-strip { text-align: center; flex-direction: column; align-items: center; }
    .grid-2col { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .grid-2col-split { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .section { padding: 3.5rem 5%; }
    .announcement-bar { padding: 0.75rem 5%; font-size: 0.75rem; }
}

@media(max-width: 768px) {
    .hero h2 { font-size: 2.2rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .why-item { flex-direction: column; text-align: center; }
    .why-icon { margin-bottom: 1rem; }
    .event-item { flex-direction: column; text-align: center; gap: 1rem; }
    .event-date { margin-bottom: 0.5rem; }
}

@media(max-width: 640px) {
    header { height: auto; padding: 0.75rem 5%; flex-wrap: wrap; }
    .logo { gap: 0.5rem; }
    .brand-logo-header { height: 38px; }
    .announcement-bar { 
        padding: 0.6rem 5%; 
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .announcement-bar .label { font-size: 0.65rem; }
    .announcement-bar .ticker { font-size: 0.75rem; line-height: 1.4; }
    .cta-btns { 
        width: 100%; 
        justify-content: stretch;
        order: 3;
        margin-top: 0.75rem;
    }
    .cta-btns .btn { 
        flex: 1;
        font-size: 0.8rem; 
        padding: 0.6rem 0.75rem;
        white-space: nowrap;
    }
    .cta-btns .btn i { font-size: 0.75rem; }
    .hero h2 { font-size: 1.8rem; }
    .section { padding: 3rem 5%; }
    .stats-bar { grid-template-columns: 1fr; padding: 1.5rem 5%; gap: 1rem; }
    .portal-content { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .cta-strip-btns { flex-direction: column; width: 100%; }
    .cta-strip-btns .btn { width: 100%; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
    nav .logo span { font-size: 1rem; }
    .contact-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media(max-width: 480px) {
    .hero h2 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.75rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    .card { padding: 1.25rem; }
    nav .logo { gap: 0.5rem; }
    nav .logo img { width: 40px; height: 40px; }
}
