/* ============================================
   SMPN 2 BEJI - Design System
   Premium School Website CSS
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Primary Colors - Blue & Gold (school colors) */
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;

    /* Accent - Gold */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.navbar-brand .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: var(--primary-50);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: 1001;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.75rem var(--space-md);
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav a:hover, .mobile-nav a.active {
    background: var(--primary-50);
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .mobile-toggle { display: flex !important; align-items: center; justify-content: center; }
    .navbar .container { position: relative; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a2744 50%, var(--primary-dark) 100%);
    overflow: hidden;
    margin-top: 70px;
}

.hero::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.03'%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");
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-decoration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .overline {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-alt { background: white; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl) var(--space-2xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.card-body { padding: var(--space-lg); }

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a { color: var(--gray-900); }
.card-title a:hover { color: var(--primary); }

.card-text {
    color: var(--gray-500);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WELCOME/GREETING SECTION
   ============================================ */
.greeting-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.greeting-image {
    position: relative;
}

.greeting-image .photo-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.greeting-image .accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.greeting-content h2 { margin-bottom: var(--space-md); }

.greeting-content .subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
}

.greeting-content p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .greeting-section { grid-template-columns: 1fr; }
}

/* ============================================
   TEACHER CARDS
   ============================================ */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.teacher-card {
    text-align: center;
    padding: var(--space-xl);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.teacher-position {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-subject {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: var(--space-lg);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }

.gallery-overlay h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: white; }
.gallery-overlay p { font-size: 0.8rem; opacity: 0.8; }

/* ============================================
   EKSKUL SECTION
   ============================================ */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.ekskul-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.ekskul-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ekskul-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ekskul-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.ekskul-meta {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.ekskul-meta i { color: var(--primary); margin-right: 0.25rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: var(--space-sm); }

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
    padding: 6rem 0 3rem;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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.03'%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");
}

.page-header h1 {
    font-size: 2rem;
    color: white;
    position: relative;
    margin-bottom: var(--space-sm);
}

.page-header .breadcrumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.page-header .breadcrumb a { color: var(--accent-light); }

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.article-content .article-header {
    margin-bottom: var(--space-2xl);
}

.article-content .article-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.article-content .article-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.article-content .article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.article-content .article-body p { margin-bottom: var(--space-lg); }
.article-content .article-body ul, .article-content .article-body ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}
.article-content .article-body li { margin-bottom: var(--space-sm); }
.article-content .article-body img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

/* ============================================
   VISION MISSION
   ============================================ */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.vm-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.vm-card.vision {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.vm-card.mission {
    background: white;
    border: 2px solid var(--gray-200);
}

.vm-card h3 { margin-bottom: var(--space-lg); }
.vm-card.vision h3 { color: white; }

.vm-card p, .vm-card li {
    font-size: 0.95rem;
    line-height: 1.8;
}

.vm-card.vision p { color: rgba(255, 255, 255, 0.9); }

.mission-list {
    list-style: none;
    counter-reset: mission;
}

.mission-list li {
    counter-increment: mission;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-600);
}

.mission-list li::before {
    content: counter(mission);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .vm-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-card p { color: var(--gray-500); font-size: 0.9rem; }

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
    padding: 0 var(--space-lg);
}

.pagination-wrapper nav { width: 100%; }
.pagination-wrapper nav > div:first-child { display: none; }
.pagination-wrapper nav > div:last-child { display: flex; justify-content: center; align-items: center; gap: 0.25rem; flex-wrap: wrap; }

.pagination-wrapper nav > div > span,
.pagination-wrapper nav > div > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    background: white;
}

.pagination-wrapper nav > div > a:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-wrapper nav > div > span[aria-current="page"] > span,
.pagination-wrapper nav > div > span.bg-blue-50 {
    display: none;
}

.pagination-wrapper nav > div > span[aria-current="page"] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination-wrapper nav > div > span[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Override Laravel default SVG in pagination */
.pagination-wrapper svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   CATEGORY FILTER
   ============================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    justify-content: center;
}

.category-filter a {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    background: white;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.category-filter a:hover, .category-filter a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.admin-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-sidebar-header .admin-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.admin-sidebar-header span {
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-nav {
    padding: var(--space-md) 0;
}

.admin-nav-label {
    padding: var(--space-md) var(--space-lg) var(--space-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.65rem var(--space-lg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav a.active {
    color: white;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: var(--primary-light);
}

.admin-nav a i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-50);
}

.admin-topbar {
    background: white;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h2 {
    font-size: 1.15rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-content {
    padding: var(--space-xl);
}

/* Admin Stats Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-stat-icon.blue { background: var(--primary-50); color: var(--primary); }
.admin-stat-icon.green { background: #ecfdf5; color: var(--success); }
.admin-stat-icon.amber { background: #fffbeb; color: var(--accent); }
.admin-stat-icon.red { background: #fef2f2; color: var(--danger); }
.admin-stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.admin-stat-icon.cyan { background: #ecfeff; color: #06b6d4; }

.admin-stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.admin-stat-info .stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Admin Table */
.admin-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-table-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.admin-table-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    width: 220px;
    font-family: var(--font-sans);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 0.75rem var(--space-lg);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 600;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

table td {
    padding: 0.75rem var(--space-lg);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

table tr:hover td { background: var(--gray-50); }

table .thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--gray-200);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-info { background: var(--primary-50); color: var(--primary); }

.action-btns {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: nowrap;
}

.action-btns form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.action-btns .btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; line-height: 1; }
.action-btns .btn-danger { border: none; cursor: pointer; }
.action-btns .btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

/* Admin Forms */
.admin-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control { cursor: pointer; }

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-100);
}

/* Admin Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
    padding: var(--space-lg);
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: var(--space-2xl);
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.login-header .login-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    margin: 0 auto var(--space-lg);
}

.login-header h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.login-header p { color: var(--gray-500); font-size: 0.9rem; }

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* ============================================
   RESPONSIVE ADMIN
   ============================================ */
.admin-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-700);
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-mobile-toggle {
        display: block;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-top: var(--space-md); }
.mb-2 { margin-top: var(--space-xl); }
.d-flex { display: flex; }
.gap-1 { gap: var(--space-md); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* Placeholder images */
.placeholder-img {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

/* Scroll Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Image & Content (for achievements etc.) */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img { transform: scale(1.05); }

.card-content {
    padding: var(--space-lg);
}

.card-excerpt {
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
}

.hero-sm {
    min-height: 280px !important;
    padding-top: 70px;
}

.hero-sm h1 { color: white; }
.hero-sm p { color: rgba(255,255,255,0.8); }

/* Responsive mobile */
@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 4rem; padding-bottom: 4rem; align-items: flex-start; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-top: 1rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); padding: var(--space-lg); }
    .stat-number { font-size: 1.8rem; }
    .admin-content { padding: var(--space-md); }
    .admin-table-header { flex-direction: column; align-items: flex-start; }
    .admin-table-actions { width: 100%; }
    table { font-size: 0.82rem; }
    table th, table td { padding: 0.5rem 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .vm-grid { grid-template-columns: 1fr; }
    .greeting-section { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .admin-stats { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
