/* ============================================
   MIS Al Wathoniyah 14 — Premium School Theme
   Green Islamic Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-darker: #065f46;
    --primary-light: #10b981;
    --primary-lighter: #34d399;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;

    --secondary: #0d9488;
    --secondary-dark: #0f766e;
    --secondary-light: #14b8a6;

    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;

    --gold: #c8a951;
    --gold-light: #e2c97e;

    --dark: #0f1a0f;
    --dark-green: #1a2e1a;
    --dark-card: #1e3a1e;

    --gray-50: #f8faf8;
    --gray-100: #f0f4f0;
    --gray-200: #e2e8e2;
    --gray-300: #c7d2c7;
    --gray-400: #9ca89c;
    --gray-500: #6b7b6b;
    --gray-600: #4a5a4a;
    --gray-700: #374137;
    --gray-800: #1f2b1f;
    --gray-900: #111a11;

    --white: #ffffff;
    --black: #000000;

    --shadow-sm: 0 1px 2px rgba(5, 150, 105, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(5, 150, 105, 0.1), 0 2px 4px -1px rgba(5, 150, 105, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(5, 150, 105, 0.1), 0 4px 6px -2px rgba(5, 150, 105, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(5, 150, 105, 0.1), 0 10px 10px -5px rgba(5, 150, 105, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(5, 150, 105, 0.25);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.3);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-arabic: 'Amiri', serif;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ---------- Utility Classes ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 1rem auto 0;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--primary-dark);
    direction: rtl;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(5, 150, 105, 0.1);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-brand .brand-name {
    color: var(--dark-green);
}

.navbar-brand .brand-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-brand .brand-tagline {
    color: var(--gray-500);
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--gray-600);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-toggle span {
    background: var(--dark-green);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-green) 0%, #0a1f0a 50%, #051505 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.05) 0%, transparent 80%);
    z-index: 1;
}

.hero-geometric {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-geometric .geo-shape {
    position: absolute;
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-geometric .geo-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.hero-geometric .geo-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    transform: rotate(30deg);
    animation-delay: 2s;
}

.hero-geometric .geo-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    transform: rotate(60deg);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(45deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-lighter);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 0.75rem;
}

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

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    direction: rtl;
    text-align: left;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
    opacity: 0.15;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-lighter);
    color: var(--primary-lighter);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ---------- About / Sambutan Section ---------- */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-content h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.about-content p {
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-feature i {
    width: 32px;
    height: 32px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ---------- Programs Section ---------- */
.programs-section {
    background: var(--gray-50);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.program-card:hover .program-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.program-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- News Section ---------- */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

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

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.news-card-meta i {
    margin-right: 0.25rem;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card .read-more i {
    transition: var(--transition-base);
}

.news-card:hover .read-more i {
    transform: translateX(4px);
}

/* ---------- Achievements Section ---------- */
.achievements-section {
    background: linear-gradient(135deg, var(--dark-green), #0a1f0a);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.achievements-section .section-title h2 {
    color: var(--white);
}

.achievements-section .section-title p {
    color: rgba(255, 255, 255, 0.6);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.achievement-card .year-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
    background: var(--gray-50);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-base);
}

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

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

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

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

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

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition-base);
}

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

.gallery-overlay h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ---------- Contact Section ---------- */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--primary-lighter);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
    background: linear-gradient(135deg, var(--dark-green), #0a1f0a);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb a {
    color: var(--primary-lighter);
}

.page-header .breadcrumb a:hover {
    color: var(--white);
}

/* ---------- Teachers Grid ---------- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    text-align: center;
}

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

.teacher-card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.teacher-card-body {
    padding: 1.5rem;
}

.teacher-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.teacher-card .position {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.teacher-card .subject {
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* ---------- Visi Misi Cards ---------- */
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.visi-misi-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.visi-misi-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.visi-misi-card .card-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-50);
    font-family: var(--font-heading);
    line-height: 1;
}

.visi-misi-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.visi-misi-card h3 i {
    color: var(--primary);
}

.visi-misi-card p,
.visi-misi-card ul {
    color: var(--gray-500);
    line-height: 1.8;
}

.visi-misi-card ul {
    list-style: none;
    padding: 0;
}

.visi-misi-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.visi-misi-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item .timeline-content {
    width: 45%;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.timeline-item .timeline-content:hover {
    box-shadow: var(--shadow-lg);
}

.timeline-item .timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.timeline-item .timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-item .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-item .timeline-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---------- Post Detail ---------- */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.post-detail .post-header {
    margin-bottom: 2rem;
}

.post-detail .post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-detail h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.post-detail .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.post-detail .post-meta i {
    margin-right: 0.35rem;
}

.post-detail .post-thumbnail {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 450px;
}

.post-detail .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail .post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-600);
}

.post-detail .post-body p {
    margin-bottom: 1.5rem;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.pagination .page-link:hover,
.pagination .page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---------- Map ---------- */
.map-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-top: 2rem;
    height: 350px;
    border: 1px solid var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- Alert Messages ---------- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--primary-50);
    color: var(--primary-dark);
    border: 1px solid var(--primary-200);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   ADMIN PANEL STYLES — Premium Redesign
   ============================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---------- Admin Sidebar ---------- */
.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f2b1a 0%, #0a1f0f 40%, #071a0c 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-brand-text h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.sidebar-brand-text p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.admin-nav {
    list-style: none;
    padding: 0.75rem 0;
    flex: 1;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.25rem;
    margin: 0.1rem 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: var(--radius-md);
    position: relative;
}

.admin-nav li a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.admin-nav li a.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(13, 148, 136, 0.15));
    color: var(--primary-lighter);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.admin-nav li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-lighter), var(--primary));
    border-radius: 0 3px 3px 0;
}

.admin-nav li a i {
    width: 22px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

.admin-nav li a.active i {
    opacity: 1;
}

.admin-nav .nav-section {
    padding: 0.75rem 1.25rem 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.75rem;
    font-weight: 600;
}

.admin-nav .nav-section:first-child {
    margin-top: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.sidebar-visit-site {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary-lighter) !important;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.sidebar-visit-site:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Sidebar Overlay (mobile) */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
}

/* ---------- Admin Main ---------- */
.admin-main {
    flex: 1;
    margin-left: 270px;
    background: #f4f7f5;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ---------- Admin Topbar ---------- */
.admin-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-sidebar-toggle:hover {
    background: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary-200);
}

.topbar-breadcrumb h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    background: var(--gray-50);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.topbar-user:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: var(--gray-400);
    line-height: 1.2;
}

.admin-content {
    padding: 1.75rem 2rem;
}

/* ---------- Dashboard Welcome Banner ---------- */
.dashboard-welcome {
    background: linear-gradient(135deg, #065f46 0%, #0a4a35 30%, #0d3d2b 60%, #0f2b1a 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.date-badge i {
    color: var(--primary-lighter);
    font-size: 0.85rem;
}

/* ---------- Admin Stat Cards (Redesigned) ---------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.stat-card-green .stat-card-decoration { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card-blue .stat-card-decoration { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card-amber .stat-card-decoration { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card-teal .stat-card-decoration { background: linear-gradient(90deg, #0d9488, #2dd4bf); }

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.admin-stat-card:hover .stat-card-decoration {
    height: 4px;
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.admin-stat-card:hover .admin-stat-icon {
    transform: scale(1.08);
}

.admin-stat-icon.green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--primary);
}

.admin-stat-icon.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #3b82f6;
}

.admin-stat-icon.amber {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: var(--accent);
}

.admin-stat-icon.teal {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: var(--secondary);
}

.admin-stat-info {
    flex: 1;
    min-width: 0;
}

.admin-stat-info p {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.2rem;
}

.admin-stat-info h3 {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 800;
    color: var(--dark-green);
}

.stat-card-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    color: var(--gray-400);
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stat-card-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* ---------- Quick Actions ---------- */
.quick-actions {
    margin-bottom: 1.75rem;
}

.quick-actions-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.15rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.12);
}

.quick-action-icon.green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--primary); }
.quick-action-icon.blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.quick-action-icon.amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: var(--accent); }
.quick-action-icon.purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #8b5cf6; }
.quick-action-icon.teal { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: var(--secondary); }
.quick-action-icon.gray { background: linear-gradient(135deg, var(--gray-50), var(--gray-100)); color: var(--gray-500); }

.quick-action-btn span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.3;
}

/* ---------- Dashboard Grid ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

.admin-table-header .table-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-header-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.table-header-icon.green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--primary); }
.table-header-icon.blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #3b82f6; }
.table-header-icon.teal { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: var(--secondary); }

/* Dashboard List Items */
.dashboard-table-body {
    padding: 0.5rem 0;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    transition: background 0.2s ease;
}

.dashboard-list-item:hover {
    background: var(--gray-50);
}

.list-item-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.list-item-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.list-item-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.list-item-text {
    min-width: 0;
}

.list-item-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.list-item-status .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.list-item-status .badge i {
    font-size: 0.6rem;
}

.badge-info {
    background: #eff6ff;
    color: #3b82f6;
}

/* Dashboard Empty State */
.dashboard-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.dashboard-empty i {
    font-size: 2.5rem;
    color: var(--gray-200);
    margin-bottom: 0.85rem;
    display: block;
}

.dashboard-empty p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Dashboard Card Footer */
.dashboard-card-footer {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.dashboard-card-footer a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.dashboard-card-footer a:hover {
    gap: 0.65rem;
    color: var(--primary-dark);
}

.dashboard-card-footer a i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.dashboard-card-footer a:hover i {
    transform: translateX(2px);
}

/* ---------- System Info Bar ---------- */
.system-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0.85rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.system-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
}

.system-info-item i {
    font-size: 0.85rem;
    color: var(--gray-300);
}

/* ---------- Admin Table ---------- */
.admin-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-table-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table-header h3 {
    font-size: 1.1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--gray-50);
}

.admin-table .thumbnail {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.admin-table .badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.badge-warning {
    background: #fffbeb;
    color: var(--accent-dark);
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--white);
}

.admin-actions .btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-actions .btn-icon.delete:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

/* ---------- Admin Form ---------- */
.admin-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

.admin-form-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ---------- Login Page ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-green), #0a1f0a);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 1;
}

.login-card .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-header .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.login-card .login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-card .login-header p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 26, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 999;
    }

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

    .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .about-grid,
    .contact-grid,
    .visi-misi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .programs-grid,
    .news-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

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

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

    .section-title h2 {
        font-size: 2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-item .timeline-content {
        width: 100%;
    }

    .timeline-item .timeline-dot {
        left: 20px;
    }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }

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

    .admin-sidebar-overlay {
        display: block;
    }

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

    .admin-sidebar-toggle {
        display: flex;
    }

    .admin-topbar {
        padding: 0.75rem 1.25rem;
    }

    .admin-content {
        padding: 1.25rem;
    }

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

    .dashboard-welcome {
        padding: 1.5rem;
    }

    .welcome-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .welcome-text h2 {
        font-size: 1.15rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }

    .quick-action-btn {
        padding: 0.85rem 0.5rem;
    }

    .quick-action-btn span {
        font-size: 0.7rem;
    }

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

    .system-info-bar {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

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

    .user-details {
        display: none;
    }

    .topbar-user {
        padding: 0.35rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .stat-number {
        font-size: 1.75rem;
    }

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

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

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

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

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

    .admin-stat-info h3 {
        font-size: 1.35rem;
    }

    .welcome-text h2 {
        font-size: 1.05rem;
    }
}

/* ---------- Animations (AOS-like) ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ---------- Loading Skeleton ---------- */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* ---------- Scroll to top ---------- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}
