﻿/* ===================================
   قوتابخانەی ڕەهەند - شێوازی سەرەکی
   Rahand School - Main Stylesheet
   =================================== */

@font-face {
    font-family: 'Rudaw';
    src: url('../font/rudaw.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   Root Variables
   =================================== */
:root {
    --primary:      #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light:#3b82f6;
    --gold:         #f59e0b;
    --gold-dark:    #d97706;
    --gold-light:   #fbbf24;
    --dark:         #0f172a;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --bg:           #f8fafc;
    --bg-card:      #ffffff;
    --border:       #e2e8f0;
    --shadow:       0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius:       0.75rem;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Base Styles
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: 'Rudaw', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rudaw', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo img {
    height: 48px;
    width: auto;
    filter: brightness(1.1);
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-family: 'Rudaw', sans-serif;
    padding: 10px 10px;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: row;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    left: 50%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    right: 0.75rem;
    left: 0.75rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245,158,11,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(30,64,175,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px; height: 400px;
    background: rgba(245,158,11,0.12);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px; height: 300px;
    background: rgba(59,130,246,0.15);
    bottom: -50px; right: -50px;
    animation-delay: 3s;
}

.hero-shape-3 {
    width: 200px; height: 200px;
    background: rgba(245,158,11,0.1);
    top: 40%; right: 20%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245,158,11,0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}

.btn-hero-secondary {
    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);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-3px);
}

/* Stats bar */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 5rem 0;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30,64,175,0.1);
    border: 1px solid rgba(30,64,175,0.2);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ===================================
   Cards
   =================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30,64,175,0.2);
}

/* Feature cards */
.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(30,64,175,0.1), rgba(245,158,11,0.1));
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* News cards */
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-card-img {
    height: 220px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.4);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.news-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    text-decoration: none;
}

.news-card-link:hover {
    color: var(--gold);
    gap: 0.6rem;
}

/* ===================================
   Photo Gallery
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #1e293b;
    cursor: pointer;
    group: true;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

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

.gallery-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    opacity: 0;
}

.gallery-item:hover .gallery-overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
    width: 100%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-caption {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { right: 1.5rem; }
.lightbox-next { left: 1.5rem; }

/* ===================================
   Video Section
   =================================== */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
}

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

.video-thumbnail:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(245,158,11,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245,158,11,0.5);
}

.video-thumbnail:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--gold);
}

/* Video modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal.active { display: flex; }

.video-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0.75rem;
    border: none;
}

.video-modal-close {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245,158,11,0.1) 0%, transparent 60%);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 25%; bottom: 25%;
    left: 0;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

.stat-icon {
    font-size: 2.5rem;
    color: rgba(245,158,11,0.4);
    margin-bottom: 1rem;
}

/* ===================================
   About Section
   =================================== */
.about-image-wrap {
    position: relative;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px; height: 200px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.3;
}

.about-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px; height: 150px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.2;
}

.about-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.about-feature-item:hover {
    background: rgba(30,64,175,0.05);
}

.about-feature-icon {
    width: 44px; height: 44px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===================================
   Contact Form
   =================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.65rem;
    font-family: 'Rudaw', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.form-control.error {
    border-color: #ef4444;
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Rudaw', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.65rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(30,64,175,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,64,175,0.4);
}

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

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

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

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

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
    border-radius: 0.5rem;
}

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

/* ===================================
   Alert / Flash Messages
   =================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* ===================================
   Dashboard
   =================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

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

.sidebar-logo img {
    height: 44px;
    width: auto;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    padding: 0.75rem 1.5rem 0.25rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-link:hover::before, .sidebar-link.active::before {
    height: 60%;
}

.sidebar-link.active {
    background: rgba(245,158,11,0.1);
    color: var(--gold-light);
}

.sidebar-link iconify-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-badge {
    margin-right: auto;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.main-content {
    flex: 1;
    margin-right: 260px;
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dashboard-body {
    padding: 1.5rem;
    flex: 1;
}

/* Dashboard stat cards */
.dash-stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

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

.dash-stat-icon {
    width: 56px; height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dash-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dash-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: #f8fafc;
    padding: 0.875rem 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

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

.data-table tr:hover td {
    background: #f8fafc;
}

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

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 1rem;
    color: rgba(255,255,255,0.55);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-right: 0.5rem;
}

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

.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
}

.footer-contact-icon {
    width: 32px; height: 32px;
    background: rgba(245,158,11,0.15);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

/* ===================================
   Auth Pages
   =================================== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 64px;
    width: auto;
    margin: 0 auto;
    display: block;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===================================
   Utilities
   =================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(245,158,11,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
}

.page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.page-header-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published  { background: #dcfce7; color: #166534; }
.badge-draft      { background: #fef9c3; color: #854d0e; }
.badge-admin      { background: #dbeafe; color: #1e40af; }
.badge-superadmin { background: #f3e8ff; color: #6b21a8; }
.badge-user       { background: #dcfce7; color: #166534; }

/* Mobile nav toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    #mobile-nav {
        display: none;
        position: fixed;
        top: 72px;
        right: 0; left: 0;
        background: rgba(15,23,42,0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        z-index: 999;
        animation: fadeInDown 0.2s ease;
    }

    #mobile-nav.open {
        display: flex;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stat-divider { display: none; }

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
    }

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

/* ===================================
   Print
   =================================== */
@media print {
    .navbar, .sidebar, .footer { display: none; }
    .main-content { margin-right: 0; }
}
