/* ==========================================
   DESIGN SYSTEM & VARIABLES
   BrightWay School Portal CSS
   ========================================== */

:root {
    /* Dynamic Brand Colors (Admin Customisable in Real-time) */
    --primary-color: #0f172a;       /* Slate 900 - default primary */
    --primary-light: #1e293b;      /* Slate 800 */
    --accent-color: #3b82f6;       /* Blue 500 - default secondary */
    --accent-hover: #2563eb;        /* Blue 600 */
    --accent-opacity: rgba(59, 130, 246, 0.12);
    
    /* Semantic Colors */
    --bg-main: #f8fafc;            /* Light gray background */
    --card-background: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    
    /* Category Colors */
    --category-academic: #2563eb;  /* Dynamic Blue */
    --category-holiday: #16a34a;   /* Emerald Green */
    --category-event: #7c3aed;     /* Purple */
    --category-urgent: #dc2626;    /* Crimson Red */
    
    /* Layout Properties */
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 10px 20px -8px rgba(15, 23, 42, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ambient Canvas Glow Backgrounds */
.glow-bg {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background-color: var(--accent-color);
}

.glow-2 {
    bottom: 10vw;
    left: -10vw;
    background-color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   BUTTONS & FORMS SYSTEM
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-opacity);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group.flex-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-group.flex-row input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-error-msg {
    color: var(--category-urgent);
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================
   HEADER, NAVIGATION & LOCALIZATION PILL
   ========================================== */

.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition-smooth);
}

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

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

.logo-badge {
    min-width: 44px;
    width: fit-content;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    user-select: none;
    white-space: nowrap;
}

.logo-area:hover .logo-badge {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    letter-spacing: -0.3px;
    transition: var(--transition-smooth);
}

.school-sub-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f1f5f9;
}

.nav-link.active {
    color: var(--accent-color);
    background-color: var(--accent-opacity);
}

/* Glass Pill Bilingual Switcher */
.lang-selector-pill {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.lang-selector-pill-mobile {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 20px;
}

.lang-selector-pill-mobile .lang-btn {
    background-color: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 14px;
}

.lang-selector-pill-mobile .lang-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Mobile Menu Elements */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 99;
    padding: 100px 32px 32px 32px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

/* Sticky Admin Alert Bar */
.admin-session-bar {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
    position: sticky;
    top: 77px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.session-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-bar-actions {
    display: flex;
    gap: 12px;
}

/* ==========================================
   VIEWS ARCHITECTURE
   ========================================== */

.page-view {
    display: none;
    animation: fadeEffect 0.4s ease;
}

.page-view.active {
    display: block;
}

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

.section-padding {
    padding: 64px 0;
}

.section-title-wrapper {
    max-width: 720px;
    margin: 0 auto 48px auto;
}

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

.badge-curated {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background-color: var(--accent-opacity);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ==========================================
   VIEW 1: HOME PAGE
   ========================================== */

.hero-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

.arrow-right {
    transition: var(--transition-smooth);
}

.btn-primary:hover .arrow-right {
    transform: translateX(4px);
}

.hero-interactive-card {
    position: relative;
    width: 100%;
}

.interactive-card-inner {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.card-visual {
    background: linear-gradient(135deg, var(--bg-main) 0%, rgba(255,255,255,0) 100%);
    border-radius: var(--border-radius-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    position: relative;
}

.floating-bubble {
    position: absolute;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    animation: floating 4s ease-in-out infinite;
}

.bubble-1 { top: 15px; left: 20px; animation-delay: 0s; }
.bubble-2 { bottom: 15px; right: 25px; animation-delay: 1.5s; }
.bubble-3 { top: 30px; right: 40px; animation-delay: 0.7s; }

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.card-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--accent-opacity);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-info h4 {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.feat-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Urgent Notification Ticker */
.urgent-ticker-wrapper {
    background-color: var(--card-background);
    border: 1px solid rgba(220, 38, 38, 0.25);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.05);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px auto 40px auto;
}

.urgent-badge {
    background-color: var(--category-urgent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ticker-content {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-content a {
    transition: var(--transition-smooth);
}

/* Welcome message from Principal */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.intro-message-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.principal-avatar {
    flex-shrink: 0;
}

.avatar-bg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.intro-message-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.principal-quote {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.6;
}

.principal-sig {
    font-size: 14px;
    color: var(--text-primary);
}

.stats-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Home Notice Board Sneak Peek */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    letter-spacing: -0.8px;
}

.notice-peek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* ==========================================
   VIEW 2: ACADEMICS PAGE
   ========================================== */

.academic-levels-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.academic-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.academic-tab-btn:hover {
    color: var(--primary-color);
    background-color: #f1f5f9;
}

.academic-tab-btn.active {
    color: #ffffff;
    background-color: var(--primary-color);
}

.academic-tab-contents {
    position: relative;
    min-height: 380px;
}

.academic-panel {
    display: none;
    animation: fadeEffect 0.5s ease;
}

.academic-panel.active {
    display: block;
}

.acad-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.acad-info-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.acad-info-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.grades-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f1f5f9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.panel-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sub-section-title {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 6px;
}

.core-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.core-bullet-list li {
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.core-bullet-list li::before {
    content: "🎓";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
}

.acad-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.acad-feature-bullet {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    transition: var(--transition-smooth);
}

.acad-feature-bullet:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.bullet-emoji {
    font-size: 28px;
    flex-shrink: 0;
}

.acad-feature-bullet h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.acad-feature-bullet p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ==========================================
   VIEW 3: STAFF DIRECTORY
   ========================================== */

.staff-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 10px var(--accent-opacity);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.staff-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.staff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.staff-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px auto;
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.staff-card:hover .staff-avatar-circle {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--accent-color);
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.staff-title {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.staff-qual {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.staff-meta-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.staff-meta-row {
    font-size: 13px;
    color: var(--text-secondary);
}

.staff-meta-row strong {
    color: var(--primary-color);
}

.staff-admin-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.staff-card:hover .staff-admin-actions {
    opacity: 1;
}

.action-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-edit { background-color: var(--accent-color); }
.btn-edit:hover { background-color: var(--accent-hover); transform: scale(1.1); }
.btn-delete { background-color: var(--category-urgent); }
.btn-delete:hover { background-color: #b91c1c; transform: scale(1.1); }

/* ==========================================
   VIEW 4: GALLERY
   ========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

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

.gallery-card-body h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.gallery-card-body p {
    color: var(--text-secondary);
    font-size: 14px;
}

.notice-update-panel {
    margin: 20px auto 0;
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   VIEW 5: NOTIFICATIONS & NOTICE BOARD
   ========================================== */

.notice-search-bar {
    background-color: var(--card-background);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
    align-items: center;
}

.search-input-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0 12px;
    flex-grow: 1;
}

.search-input-group input {
    background: none;
    border: none;
    padding: 10px 10px 10px 4px;
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.search-icon {
    font-size: 16px;
}

.category-filters select {
    background-color: var(--card-background);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-filters select:focus {
    border-color: var(--accent-color);
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.notice-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.notice-card.urgent {
    border-left: 6px solid var(--category-urgent);
}

.notice-card.academic { border-left: 6px solid var(--category-academic); }
.notice-card.holiday { border-left: 6px solid var(--category-holiday); }
.notice-card.event { border-left: 6px solid var(--category-event); }

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.notice-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.notice-badge.academic { background-color: rgba(37, 99, 235, 0.1); color: var(--category-academic); }
.notice-badge.holiday { background-color: rgba(22, 163, 74, 0.1); color: var(--category-holiday); }
.notice-badge.event { background-color: rgba(124, 58, 237, 0.1); color: var(--category-event); }
.notice-badge.urgent { background-color: rgba(220, 38, 38, 0.1); color: var(--category-urgent); }

.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.notice-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 12px;
}

.notice-desc {
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 18px;
    white-space: pre-line;
}

.notice-audience {
    font-size: 12px;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 600;
}

.notice-admin-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.notice-card:hover .notice-admin-actions {
    opacity: 1;
}

/* ==========================================
   VIEW 5: ADMISSIONS SYSTEM (NEW)
   ========================================== */

.admissions-grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: stretch;
}

.guidelines-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.guidelines-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.guide-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.criteria-section {
    margin-bottom: 24px;
}

.criteria-section h4 {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 6px;
}

.criteria-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.criteria-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.criteria-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
    top: -1px;
}

.doc-checklist li::before {
    content: "✓";
    color: var(--category-holiday);
    font-size: 12px;
    top: 2px;
}

/* Enquiry Form styling */
.enquiry-form-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.enquiry-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.form-header-badge {
    background-color: var(--accent-opacity);
    color: var(--accent-color);
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.enquiry-success-box {
    text-align: center;
    padding: 32px 10px;
    animation: fadeEffect 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.1);
}

.enquiry-success-box h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #15803d;
}

.enquiry-success-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ==========================================
   MODAL OVERLAY SYSTEM
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 100%;
    max-width: 520px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes slideUpModal {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.password-card {
    max-width: 420px;
    text-align: center;
}

.modal-header {
    padding: 32px 32px 16px 32px;
}

.lock-graphic {
    font-size: 44px;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.modal-body {
    padding: 0 32px 24px 32px;
}

.modal-footer {
    padding: 16px 32px 32px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: rgba(248, 250, 252, 0.5);
    border-top: 1px solid var(--border-color);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 44px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
}

.shake-error {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ==========================================
   ADMIN SLIDING DRAWER SYSTEM
   ========================================== */

.admin-dashboard-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-dashboard-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-main);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-emoji {
    font-size: 26px;
}

.drawer-title h3 {
    font-size: 16px;
    color: var(--primary-color);
}

.drawer-title p {
    font-size: 12px;
    color: var(--text-secondary);
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    color: var(--primary-color);
}

.drawer-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.drawer-tab-btn {
    background: none;
    border: none;
    padding: 12px 2px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    border-bottom: 2px solid transparent;
}

.drawer-tab-btn:hover {
    color: var(--primary-color);
}

.drawer-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background-color: #ffffff;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 28px;
}

.drawer-section {
    display: none;
}

.drawer-section.active {
    display: block;
}

.form-section-header {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    margin-top: 10px;
    padding-bottom: 6px;
    border-bottom: 1.5px dashed var(--border-color);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 4px 10px;
    background-color: #ffffff;
}

.color-picker-wrapper input[type="color"] {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
}

.color-picker-wrapper .hex-text {
    border: none !important;
    padding: 8px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--text-secondary);
}

.presets-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.preset-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.preset-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preset-btn:hover {
    transform: scale(1.15);
}

.section-subheader-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sub-header-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
}

.admin-staff-list,
.admin-enquiry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-staff-row,
.admin-enquiry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-main);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.admin-staff-info,
.admin-enquiry-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-staff-avatar,
.admin-enquiry-bullet {
    font-size: 22px;
}

.admin-staff-text h4,
.admin-enquiry-text h4 {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
}

.admin-staff-text p,
.admin-enquiry-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Enquiries specific statuses */
.admin-enquiry-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
}

.enquiry-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.enquiry-status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.enquiry-status-badge.pending {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.enquiry-status-badge.reviewed {
    background-color: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.enquiry-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.enquiry-details-grid p strong {
    color: var(--primary-color);
}

.avatar-select-row {
    display: flex;
    gap: 12px;
}

.avatar-radio {
    cursor: pointer;
}

.avatar-radio input[type="radio"] {
    display: none;
}

.avatar-icon-preview {
    font-size: 26px;
    width: 44px;
    height: 44px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.avatar-radio input:checked + .avatar-icon-preview {
    background-color: var(--accent-opacity);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.drawer-actions {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.main-footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    margin-top: auto;
    border-top: 4px solid var(--accent-color);
    padding: 64px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-badge {
    background: #ffffff;
    color: var(--primary-color);
}

.footer-brand .school-name-text {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links-col h4,
.footer-contact-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact-col p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.powered-by {
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* ==========================================
   RESPONSIVENESS AND BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .acad-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .admissions-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-tagline {
        font-size: 17px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .notice-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .session-bar-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .intro-message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats-card-grid {
        grid-template-columns: 1fr;
    }
}
