/**
 * MARK'S OASIS SECONDARY SCHOOL
 * Main Stylesheet
 * Colors: Green (#2E7D32) and Cream (#FFFDD0)
 */

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --light-green: #81C784;
    --dark-green: #1B5E20;
    --cream: #FFFDD0;
    --off-white: #F5F5DC;
    --white: #FFFFFF;
    --dark-text: #212121;
    --light-text: #757575;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--off-white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-green);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
    background: var(--dark-green);
    color: var(--cream);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-right a {
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    background: rgba(255,255,255,0.1);
}

.top-bar-right a i {
    color: var(--light-green);
}

/* ============================================
   HEADER
============================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: var(--header-height);
}

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

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 2px;
    line-height: 1.2;
}

.logo-text .motto {
    font-size: 11px;
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.header-right .search-box form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.header-right .search-box form:focus-within {
    border-color: var(--primary-green);
}

.header-right .search-box input {
    border: none;
    padding: 10px 20px;
    outline: none;
    font-size: 14px;
    width: 250px;
    background: var(--off-white);
}

.header-right .search-box button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.header-right .search-box button:hover {
    background: var(--dark-green);
}

/* ============================================
   NAVIGATION
============================================ */
.main-nav {
    background: var(--primary-green);
    position: sticky;
    top: 90px;
    z-index: 999;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--cream);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--dark-green);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    background: var(--dark-green);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(27,62,27,0.55) 0%, rgba(35,84,35,0.45) 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero .motto-display {
    font-size: 28px;
    color: var(--cream);
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
}

.btn-green {
    background: var(--primary-green);
    color: var(--white);
}

.btn-green:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.btn-cta {
    background: #F9A825;
    color: #1B3E1B;
    font-weight: 700;
}

.btn-cta:hover {
    background: #FBC02D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

.section-header p {
    color: var(--light-text);
    font-size: 16px;
    margin-top: 20px;
}

.section-cream {
    background: var(--cream);
}

.section-green {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.section-green h2,
.section-green h3 {
    color: var(--white);
}

/* ============================================
   CARDS
============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
}

.card-meta i {
    color: var(--primary-green);
    margin-right: 5px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--cream);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--light-green);
}

/* ============================================
   FEATURES
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* ============================================
   GALLERY
============================================ */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-filter button {
    padding: 10px 25px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.gallery-filter button:hover,
.gallery-filter button.active {
    background: var(--primary-green);
    color: var(--white);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 10px;
}

/* ============================================
   NEWS
============================================ */
.news-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-card-img {
    width: 300px;
    min-height: 200px;
    overflow: hidden;
}

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

.news-card-content {
    padding: 25px;
    flex: 1;
}

.news-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-card-content h3 a:hover {
    color: var(--secondary-green);
}

.news-category {
    display: inline-block;
    background: var(--cream);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============================================
   FORMS
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232E7D32' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Auth Forms */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-container .auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-container .auth-links a {
    color: var(--primary-green);
    font-weight: 600;
}

/* ============================================
   COMMENTS
============================================ */
.comments-section {
    margin-top: 50px;
}

.comments-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-green);
}

.comment-date {
    font-size: 13px;
    color: var(--light-text);
}

.comment-content {
    color: var(--dark-text);
    line-height: 1.7;
}

/* ============================================
   TABLES
============================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.table tr:hover {
    background: var(--cream);
}

.table .actions {
    display: flex;
    gap: 8px;
}

.table .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   ALERTS
============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.pagination .active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* ============================================
   STAT CARDS
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-icon.green { background: var(--primary-green); }
.stat-icon.blue { background: #2196F3; }
.stat-icon.orange { background: #FF9800; }
.stat-icon.purple { background: #9C27B0; }

.stat-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--light-text);
    font-size: 14px;
}

/* ============================================
   LEADERSHIP / TEAM
============================================ */
.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.team-img {
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    min-height: 40px;
}
.team-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-img i {
    font-size: 80px;
    color: rgba(255,255,255,0.3);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-info .role {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-info p {
    color: var(--light-text);
    font-size: 14px;
}

/* ============================================
   FILE DOWNLOAD
============================================ */
.file-list {
    display: grid;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.file-item:hover {
    transform: translateX(5px);
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 22px;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.file-info span {
    font-size: 13px;
    color: var(--light-text);
}

.file-download {
    padding: 10px 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
}

.file-download:hover {
    background: var(--dark-green);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--dark-green);
    color: var(--cream);
    margin-top: auto;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--light-green);
    border-radius: 2px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-motto {
    font-style: italic;
    color: var(--cream);
    font-size: 16px !important;
    margin-bottom: 15px !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--cream);
    font-size: 14px;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--light-green);
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-info li i {
    color: var(--light-green);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--light-green);
    transform: translateY(-3px);
}

.leader-info .leader {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
}

.leader-info .leader strong {
    display: block;
    color: var(--light-green);
    font-size: 13px;
    text-transform: uppercase;
}

.leader-info .leader span {
    display: block;
    font-size: 15px;
    margin: 3px 0;
}

.leader-info .leader small {
    font-size: 12px;
    opacity: 0.8;
}

.footer-bottom {
    background: var(--dark-green);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================
   ADMIN STYLES
============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-green);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: var(--white);
    font-size: 16px;
    margin-top: 10px;
}

.sidebar-header .motto {
    font-size: 11px;
    color: var(--light-green);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--cream);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 4px solid var(--light-green);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--off-white);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-content {
    padding: 30px;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.admin-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.admin-login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.admin-login-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ============================================
   MODAL
============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

/* ============================================
   LOADING SPINNER
============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .grid-4, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .top-bar .container {
        justify-content: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .header-right .search-box input {
        width: 200px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .motto-display {
        font-size: 20px;
    }

    .grid-2, .grid-3, .grid-4, .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .auth-container {
        margin: 30px 15px;
        padding: 30px 20px;
    }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-green { color: var(--primary-green); }
.text-cream { color: var(--cream); }
.bg-green { background: var(--primary-green); }
.bg-cream { background: var(--cream); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.hidden { display: none; }
.visible { display: block; }

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    object-fit: contain;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: #f44336;
    transform: rotate(90deg);
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: var(--transition);
}

#backToTop:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
}

/* ============ Floating Enroll Now Button ============ */
.enroll-float-btn {
    position: fixed;
    right: 30px;
    bottom: 90px;
    background: #F9A825;
    color: #1B3E1B;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(249, 168, 37, 0.45), 0 3px 8px rgba(0,0,0,0.2);
    z-index: 1600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: enrollPulse 2.2s infinite;
    transition: transform 0.25s, box-shadow 0.25s;
}
.enroll-float-btn:hover {
    background: #FBC02D;
    color: #1B3E1B;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(249, 168, 37, 0.55), 0 6px 14px rgba(0,0,0,0.25);
}
.enroll-float-btn:active { transform: translateY(-1px) scale(0.98); }

@keyframes enrollPulse {
    0% { box-shadow: 0 8px 22px rgba(249,168,37,0.45), 0 3px 8px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 8px 34px rgba(249,168,37,0.75), 0 3px 10px rgba(0,0,0,0.3); }
    100% { box-shadow: 0 8px 22px rgba(249,168,37,0.45), 0 3px 8px rgba(0,0,0,0.2); }
}

@media (max-width: 600px) {
    .enroll-float-btn {
        right: 16px;
        bottom: 80px;
        font-size: 15px;
        padding: 13px 20px;
    }
    #backToTop {
        bottom: 18px;
        right: 18px;
    }
}

/* ============ Google Maps Location Links ============ */
.map-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.35);
    transition: color 0.2s, border-color 0.2s;
}
.map-link:hover {
    color: #F9A825;
    border-bottom-color: #F9A825;
}
.hero .map-link,
.top-bar .map-link {
    border-bottom-color: rgba(255,255,255,0.35);
}
.stat-card .map-link,
.card .map-link {
    color: #2E7D32;
    border-bottom-color: rgba(46,125,50,0.3);
}
.stat-card .map-link:hover,
.card .map-link:hover {
    color: #F9A825;
    border-bottom-color: #F9A825;
}

/* ============ Dashboard & Avatars ============ */
.avatar-sm { width:30px;height:30px;border-radius:50%;object-fit:cover;vertical-align:middle; }
.avatar-md { width:90px;height:90px;border-radius:50%;object-fit:cover; }
.avatar-lg { width:130px;height:130px;border-radius:50%;object-fit:cover;border:4px solid #2E7D32;background:#FFFDD0; }
.topbar-user { display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#fff; }
.topbar-user:hover { color:#FFFDD0; }
.dash-tabs { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px; }
.dash-tabs a { padding:8px 16px;border-radius:20px;background:#f1f1e9;color:#2E7D32;font-weight:600;font-size:13px;text-decoration:none;transition:.2s; }
.dash-tabs a:hover, .dash-tabs a.active { background:#2E7D32;color:#fff; }

/* Dashboard tab buttons */
.dash-tabs .dash-tab { display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:24px;background:#f1f1e9;color:#2E7D32;font-weight:600;font-size:13px;border:none;cursor:pointer;transition:.2s;font-family:inherit; }
.dash-tabs .dash-tab:hover, .dash-tabs .dash-tab.active { background:#2E7D32;color:#fff; }
.dash-tabs .tab-badge { background:#F9A825;color:#1B3E1B;border-radius:10px;padding:1px 7px;font-size:11px;font-weight:700; }

/* Dashboard welcome banner */
.dash-banner { background:linear-gradient(135deg,#2E7D32,#1B4D27);color:#fff;border-radius:14px;padding:24px 30px;margin-bottom:24px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;box-shadow:0 6px 18px rgba(46,125,50,.25); }
.dash-banner .banner-avatar { width:74px;height:74px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.5);background:#FFFDD0;flex:none; }
.dash-banner h2 { margin:0;color:#fff;font-size:22px; }
.dash-banner p { margin:4px 0 0;color:rgba(255,255,255,.85);font-size:14px; }
.role-badge { display:inline-block;background:#F9A825;color:#1B3E1B;font-weight:700;font-size:12px;padding:4px 14px;border-radius:20px;text-transform:capitalize;margin-top:8px; }

/* Dashboard stat chips */
.dash-stats { display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:26px; }
.stat-chip { background:#fff;border:1px solid #eef1e6;border-radius:12px;padding:16px 18px;display:flex;align-items:center;gap:14px;box-shadow:0 2px 8px rgba(0,0,0,.05); }
.stat-chip .stat-ico { width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;flex:none; }
.stat-green .stat-ico { background:#2E7D32; }
.stat-blue .stat-ico { background:#1976D2; }
.stat-purple .stat-ico { background:#7B1FA2; }
.stat-chip b { font-size:22px;display:block;color:#263238;line-height:1; }
.stat-chip span { font-size:11px;color:#757575;text-transform:uppercase;letter-spacing:.5px;font-weight:600; }

/* Dashboard panels */
.dash-panel { display:none; }
.dash-panel.active { display:block;animation:dashFade .25s ease; }
@keyframes dashFade { from{opacity:0;transform:translateY(5px);} to{opacity:1;transform:none;} }
.dash-card { background:#fff;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.06);padding:25px;margin-bottom:25px; }
.dash-card h2 { font-size:18px;margin-bottom:15px;color:#263238; }
.dash-card h2 i { color:#2E7D32;margin-right:8px; }
.comment-avatar { width:38px;height:38px;border-radius:50%;object-fit:cover;margin-right:12px; }
.comment-item { display:flex;align-items:flex-start;padding:12px 0;border-bottom:1px solid #eee; }
.doc-item { padding:14px 0;border-bottom:1px solid #eee;display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.doc-item:last-child { border-bottom:none; }
.msg-item { padding:12px 0;border-bottom:1px solid #eee; }
.msg-item:last-child { border-bottom:none; }
.unread-dot { display:inline-block;width:8px;height:8px;border-radius:50%;background:#f44336;margin-left:6px; }
.tag { display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:600;background:#e8f5e9;color:#2e7d32; }
.stat-card .stat-info h3 small { font-size:12px;color:#757575;font-weight:600; }
.visitor-table td, .visitor-table th { text-align:center; }

/* ============ Hero Slideshow ============ */
.hero-slides { position:absolute; top:0; left:0; right:0; bottom:0; z-index:0; }
.hero-slide {
    position:absolute; top:0; left:0; width:100%; height:100%;
    background-size:cover; background-position:center;
    opacity:0; transition:opacity 1.2s ease;
    will-change:opacity;
}
.hero-slide.active { opacity:1; }
.hero-overlay {
    position:absolute; top:0; left:0; right:0; bottom:0; z-index:0;
    background:linear-gradient(135deg, rgba(27,62,27,0.35) 0%, rgba(35,84,35,0.25) 100%);
}
.hero .container { position:relative; z-index:1; }

/* ============ School Information Section ============ */
.info-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:25px; text-align:left; }
.info-category { background:#fff; border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,.08); padding:25px; border-top:4px solid #2E7D32; }
.info-category-title { font-size:17px; color:#1B3E1B; margin-bottom:5px; }
.info-category-title i { color:#6d9e5c; margin-right:8px; }
.info-list { margin-top:12px; }
.info-item { padding:12px 0; border-bottom:1px dashed #e0e0e0; }
.info-item:last-child { border-bottom:none; }
.info-item-label { font-size:13px; font-weight:600; color:#2E7D32; text-transform:uppercase; letter-spacing:.4px; margin-bottom:4px; }
.info-item-value { font-size:15px; line-height:1.7; color:#424242; }

/* ============ Attachments ============ */
.attachment-list { display:flex; flex-direction:column; gap:10px; }
.attachment-title { font-size:16px; color:#1B3E1B; margin-bottom:12px; }
.attachment-list .attachment-title i { color:#2E7D32; margin-right:8px; }
.attachment-item {
    display:flex; align-items:center; gap:14px;
    background:#f8fbf8; border:1px solid #d9e8d9; border-radius:10px;
    padding:12px 16px; text-decoration:none; transition:box-shadow .2s, transform .2s;
}
.attachment-item:hover { box-shadow:0 4px 14px rgba(46,125,50,.15); transform:translateY(-1px); }
.attachment-item i { color:#2E7D32; font-size:22px; }
.attachment-item .fa-download { margin-left:auto; color:#757575; font-size:15px; }
.attachment-item:hover .fa-download { color:#2E7D32; }
.attachment-name { font-weight:600; color:#263238; font-size:14px; word-break:break-all; }
.attachment-meta { color:#757575; font-size:12px; background:#e6efe6; padding:2px 8px; border-radius:10px; white-space:nowrap; }

/* ============ Inline Media Players (attachments) ============ */
.attachment-media { display:flex; flex-direction:column; gap:8px; }
.attachment-media video, .attachment-media audio { width:100%; border-radius:10px; }
.media-player { background:#000; display:block; max-height:420px; object-fit:contain; }
.audio-player { background:#f1f5f1; }

/* ============ Logo (uploaded school logo) ============ */
.logo-icon { overflow:hidden; }
.logo-icon img { object-fit:contain; border-radius:50%; background:#fff; }

/* ============ Gallery Media Cards ============ */
.media-card {
    background:#fff !important;
    border:1px solid #e3ede3;
    cursor:default !important;
}
.media-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,.1); transition:transform .25s, box-shadow .25s; }
.media-card img, .media-card video { width:100%; display:block; }
.media-card video { height:250px; object-fit:contain; background:#000; }
.media-card-body { padding:15px; }
.media-card-body h4 { font-size:15px; color:#1B3E1B; margin-bottom:6px; }
.media-card-body p { font-size:13px; color:#757575; margin-bottom:10px; line-height:1.6; }
.media-download {
    display:inline-flex; align-items:center; gap:7px;
    color:#2E7D32; font-size:13px; font-weight:600; text-decoration:none;
    background:#e9f3e9; padding:7px 14px; border-radius:20px; transition:background .2s;
}
.media-download:hover { background:#d5e9d5; }
.media-audio-head { background:linear-gradient(135deg,#2E7D32,#4CAF50); height:90px; display:flex; align-items:center; justify-content:center; }
.media-audio-head i { font-size:38px; color:#fff; }
.media-doc-icon { background:#f3f7f3; height:140px; display:flex; align-items:center; justify-content:center; border-bottom:1px solid #e3ede3; }
.media-doc-icon i { font-size:52px; color:#6d9e5c; }
.doc-card { text-decoration:none; }