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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f5f9;
    color: #1f2937;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden {
    display: none !important;
}

.page-view {
    display: none;
    flex: 1;
}

.page-view.active-page {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-wrapper {
    padding-top: 22px;
    padding-bottom: 34px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #475569;
    font-weight: 600;
}

.back-link {
    background: #e2e8f0;
    border: none;
    color: #0f172a;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.back-link:hover {
    background: #cbd5e1;
}

.top-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 3px solid #d97706;
    padding: 12px 0;
}

.header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.emblem-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #7f1d1d);
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.emblem-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f59e0b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.emblem-cap { font-size: 22px; line-height: 1; }
.emblem-text { font-size: 12.5px; font-weight: 800; color: #7f1d1d; }

.title-box { text-align: center; flex: 1; }
.title-box h1 { font-size: 30px; font-weight: 900; color: #7f1d1d; letter-spacing: 1px; line-height: 1.1; }
.title-box h2 { font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: 1.4px; margin-top: 2px; }
.title-divider { font-size: 12.5px; font-weight: 600; color: #b45309; margin-top: 3px; }

.graphic-badge {
    background: linear-gradient(135deg, #eff6ff, #fef3c7);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
}

.badge-icon { font-size: 22px; }
.badge-label { font-size: 11px; font-weight: 700; color: #1e3a8a; }

.main-nav {
    background: linear-gradient(90deg, #0f296e 0%, #1d4ed8 50%, #0f296e 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: #9f1239;
}

.hero-banner {
    background: linear-gradient(120deg, #3b0764 0%, #581c87 38%, #1e3a8a 75%, #0284c7 100%);
    color: #ffffff;
    border-bottom: 4px solid #f59e0b;
}

.hero-overlay {
    max-width: 1260px;
    margin: 0 auto;
    padding: 34px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.hero-content { max-width: 650px; }
.hero-content h2 { font-size: 34px; font-weight: 800; line-height: 1.2; }
.hero-content h2 span { color: #facc15; font-style: italic; }
.hero-subtitle { font-size: 20px; font-weight: 600; color: #e0f2fe; margin-top: 4px; }
.hero-desc { font-size: 14.5px; color: #e2e8f0; margin: 14px 0 20px; }

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

.btn-gold {
    background: linear-gradient(180deg, #facc15, #eab308);
    color: #111827;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.btn-outline {
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    border: 1.5px solid #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.carousel-dots { margin-top: 18px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; }
.dot.active { background: #facc15; transform: scale(1.2); }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1e293b;
    font-weight: bold;
    cursor: pointer;
}
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }

.visual-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 18px;
}

.visual-icon-grid { display: grid; grid-template-columns: repeat(2, 110px); gap: 12px; }
.v-item { background: rgba(15, 23, 42, 0.45); border-radius: 10px; padding: 12px; text-align: center; border: 1px solid rgba(250, 204, 21, 0.35); }
.v-item span { display: block; font-size: 26px; margin-bottom: 4px; }
.v-item small { font-size: 12px; font-weight: 600; color: #fef08a; }

.quick-cards-section { margin: 22px 0; }
.quick-cards-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.q-card {
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}
.q-card:hover { transform: translateY(-4px); }
.q-icon { font-size: 28px; margin-bottom: 6px; }
.q-title { font-size: 14px; font-weight: 700; line-height: 1.25; }

.card-crimson { background: linear-gradient(135deg, #be123c, #881337); }
.card-blue    { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.card-green   { background: linear-gradient(135deg, #15803d, #14532d); }
.card-orange  { background: linear-gradient(135deg, #ea580c, #c2410c); }
.card-purple  { background: linear-gradient(135deg, #7e22ce, #581c87); }
.card-teal    { background: linear-gradient(135deg, #0d9488, #115e59); }

.home-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.portal-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 13px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { font-size: 17px; font-weight: 700; }

.crimson-header { background: #881337; }
.navy-header    { background: #0f296e; }
.purple-header  { background: #581c87; }
.orange-header  { background: #c2410c; }
.blue-header    { background: #1e40af; }
.green-header   { background: #166534; }
.teal-header    { background: #0f766e; }

.badge-pill, .view-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-mini-white {
    background: #ffffff;
    color: #0f172a;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.card-body { padding: 20px; }

.tab-switcher { display: flex; gap: 6px; }
.tab-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.tab-btn.active { background: #facc15; color: #111827; border-color: #facc15; }

.reg-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.login-grid    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-login-box { max-width: 480px; display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; }
.form-group.full-span { grid-column: 1 / -1; }
.form-group label { font-size: 12.5px; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.req { color: #dc2626; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    background: #ffffff;
}

.form-actions { display: flex; gap: 12px; margin-top: 6px; }

.btn-submit { background: #881337; color: #ffffff; border: none; padding: 11px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-submit:hover { background: #9f1239; }
.btn-reset  { background: #e2e8f0; color: #334155; border: none; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-navy   { background: #0f296e; color: #ffffff; border: none; padding: 11px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-green  { background: #15803d; color: #ffffff; border: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; cursor: pointer; }

.feedback-banner {
    margin-top: 16px;
    padding: 14px;
    border-radius: 6px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #14532d;
    font-size: 14px;
    font-weight: 600;
}

.student-dashboard {
    margin-top: 18px;
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.credentials-box {
    margin-top: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    font-size: 13.5px;
    color: #334155;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-small { padding: 7px 12px; border: none; border-radius: 5px; color: #ffffff; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-crimson { background: #be123c; }
.btn-blue-solid { background: #1d4ed8; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.data-table th { background: #f1f5f9; font-weight: 700; }

.notice-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.notice-list li { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e2e8f0; }
.notice-list li:last-child { border-bottom: none; padding-bottom: 0; }
.notice-badge { background: #1d4ed8; color: #ffffff; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; margin-top: 2px; }
.notice-badge.new { background: #dc2626; }
.notice-list strong { display: block; font-size: 14px; color: #1e293b; }
.notice-list small { font-size: 12.5px; color: #64748b; }

.event-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.event-item:last-child { border-bottom: none; }
.event-date { width: 56px; border-radius: 8px; overflow: hidden; text-align: center; border: 1px solid #cbd5e1; flex-shrink: 0; }
.event-date .month { display: block; color: #ffffff; font-size: 11px; font-weight: 800; padding: 2px 0; }
.crimson-bg .month { background: #9f1239; }
.orange-bg .month  { background: #d97706; }
.green-bg .month   { background: #15803d; }
.event-date .day { display: block; font-size: 19px; font-weight: 800; color: #0f172a; padding: 4px 0; background: #ffffff; }
.event-details strong { display: block; font-size: 14.5px; color: #1e293b; }
.event-details small { font-size: 12.5px; color: #64748b; }

.result-search-box label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.search-inline { display: flex; gap: 8px; }
.search-inline input { flex: 1; padding: 9px 11px; border: 1.5px solid #cbd5e1; border-radius: 6px; }
.result-output { margin-top: 14px; font-size: 14px; }
.sample-merit ul { list-style: none; margin-top: 6px; }
.sample-merit li { padding: 4px 0; color: #334155; }

.directors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.director-note { background: #faf5ff; border: 1px solid #e9d5ff; border-left: 4px solid #7e22ce; border-radius: 8px; padding: 16px; }
.note-tag { font-size: 11px; font-weight: 800; color: #7e22ce; margin-bottom: 4px; }
.director-note h4 { font-size: 16px; color: #1e293b; margin-bottom: 6px; }
.director-note p { font-size: 14px; color: #475569; margin-bottom: 8px; }
.note-date { font-size: 12px; color: #6b7280; font-weight: 600; }

.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-contact-form { display: flex; flex-direction: column; gap: 12px; }

.stats-strip {
    background: linear-gradient(90deg, #0f296e 0%, #1d4ed8 50%, #0f296e 100%);
    color: #ffffff;
    padding: 20px 0;
    border-top: 3px solid #facc15;
    margin-top: auto;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { display: flex; align-items: center; justify-content: center; gap: 12px; }
.stat-icon { font-size: 30px; }
.stat-num { font-size: 22px; font-weight: 800; color: #facc15; line-height: 1.1; }
.stat-label { font-size: 12.5px; font-weight: 600; color: #e2e8f0; }

.site-footer .footer-bottom {
    background: #4c0519;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 992px) {
    .quick-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .home-overview-grid, .contact-page-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .quick-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .reg-form-grid, .login-grid, .directors-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .title-box h1 { font-size: 22px; }
}
