/* ============================================
   HIAWATA - Nature-Loving Students Website
   Color Palette: Orange #F26522, Dark #333, White
   Font: Poppins
   ============================================ */

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

:root {
    --primary: #F26522;
    --primary-dark: #D4551A;
    --primary-light: #FF8A50;
    --dark: #333333;
    --dark-bg: #2C2C2C;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #f5f5f5;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --purple: #6f42c1;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.text-muted { color: var(--gray-light); font-size: 0.85rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.required { color: var(--danger); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.35);
}

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

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

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #c82333; color: #fff; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 8px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom-color: #eee;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}
.nav-brand:hover { color: var(--dark); }
.nav-logo { height: 45px; width: auto; }
.nav-brand-text { font-style: italic; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn-nav {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(44,44,44,0.4) 0%, rgba(242,101,34,0.3) 100%),
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600&q=80') center/cover no-repeat;
    margin-top: 70px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}
.section-light { background: var(--gray-lighter); }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 50px;
    color: var(--white);
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }
.back-link { color: rgba(255,255,255,0.8); display: inline-block; margin-bottom: 15px; }
.back-link:hover { color: #fff; }

/* --- Activity Circle Cards --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.activity-circle-card { text-align: center; }
.activity-circle-card h3 { font-size: 1.3rem; margin-top: 20px; font-weight: 700; }
.activity-circle-card p { color: var(--gray); font-size: 0.9rem; margin-top: 8px; }

.circle-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 5px solid var(--primary);
    transition: var(--transition);
}
.circle-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(242, 101, 34, 0.3);
}
.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    overflow: hidden;
    background: var(--gray-lighter);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.card:hover .card-image img { transform: scale(1.05); }

.card-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-light);
    background: linear-gradient(135deg, var(--gray-lighter), #e0e0e0);
}

.card-body { padding: 24px; }
.card-date { font-size: 0.82rem; color: var(--gray-light); display: block; margin-bottom: 8px; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--dark); }
.card-text { color: var(--gray); font-size: 0.9rem; margin-bottom: 15px; line-height: 1.6; }

/* --- Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image { height: 220px; overflow: hidden; background: var(--gray-lighter); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-body { padding: 20px; }
.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.product-desc { color: var(--gray); font-size: 0.85rem; margin-bottom: 10px; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

/* --- CTA Section --- */
.cta-section {
    background: var(--primary);
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
}

.cta-left {
    padding: 60px 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-left h2 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.cta-left p { opacity: 0.9; margin-bottom: 25px; font-size: 0.95rem; }

.cta-right {
    padding: 60px 50px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-right h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.cta-right p { color: var(--gray); margin-bottom: 25px; }

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 1rem; }
.gallery-overlay p { font-size: 0.85rem; opacity: 0.8; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; margin-top: 15px; font-size: 1rem; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* --- About --- */
.about-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.about-image { text-align: center; }
.about-logo { max-width: 200px; filter: drop-shadow(0 10px 30px rgba(242,101,34,0.2)); }
.about-content h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; }
.about-text { color: var(--gray); font-size: 0.95rem; line-height: 1.8; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.value-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}
.value-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.value-card p { color: var(--gray); font-size: 0.85rem; }

/* --- Contact --- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h2, .contact-form-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; }
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}
.contact-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.contact-item p { color: var(--gray); font-size: 0.9rem; }
.contact-social h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); color: #fff; }

/* --- Article --- */
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 25px; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-meta { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 15px; }
.article-title { font-size: 2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.article-content { color: var(--gray); font-size: 0.95rem; line-height: 2; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}
textarea.form-control { resize: vertical; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: block; }
.form-check label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.modal-header h3 { font-size: 1.2rem; color: var(--primary); }
.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}
.modal-product-name { font-weight: 600; margin-bottom: 20px; }

/* --- Avatar Floating --- */
.avatar-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 3px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    animation: avatarBounce 3s ease-in-out infinite;
}
.avatar-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(242, 101, 34, 0.35);
}
.avatar-floating img { width: 100%; height: 100%; object-fit: cover; }

@keyframes avatarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Alerts --- */
.alert {
    padding: 15px 0;
    position: relative;
    z-index: 1001;
}
.alert .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-light);
}
.empty-state i { font-size: 4rem; margin-bottom: 15px; }
.empty-state h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; color: var(--gray); }
.empty-state p { font-size: 0.9rem; }

/* --- Footer --- */
.footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}
.footer-logo { height: 40px; }
.footer-about p { font-size: 0.85rem; line-height: 1.7; }

.footer-links h4, .footer-social h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-social .social-icons a {
    background: rgba(255,255,255,0.1);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Badges --- */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }

/* --- Animations --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* --- Login --- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--dark-bg) 100%);
    padding: 20px;
}
.login-container { width: 100%; max-width: 420px; }
.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 35px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-logo img { height: 80px; margin-bottom: 20px; }
.login-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
.login-subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 25px; }
.login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: left;
}
.login-card .form-group { text-align: left; }
.login-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.85rem;
}
.login-back:hover { color: var(--primary); }

/* --- Admin Layout --- */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--dark-bg);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo { height: 35px; }

.sidebar-user {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.sidebar-user i { font-size: 2rem; color: var(--primary); }
.sidebar-user strong { display: block; font-weight: 600; }
.sidebar-user small { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

.sidebar-nav {
    padding: 15px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-nav hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 10px 0; }

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.sidebar-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-header h2 { font-size: 1.2rem; font-weight: 600; }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark);
}

.admin-content { padding: 30px; }

.admin-alert {
    padding: 12px 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-alert-success { background: #d4edda; color: #155724; }
.admin-alert-error { background: #f8d7da; color: #721c24; }

/* --- Admin Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.stat-orange { border-left-color: var(--primary); }
.stat-green { border-left-color: var(--success); }
.stat-blue { border-left-color: var(--info); }
.stat-red { border-left-color: var(--danger); }
.stat-purple { border-left-color: var(--purple); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}
.stat-orange .stat-icon { background: var(--primary); }
.stat-green .stat-icon { background: var(--success); }
.stat-blue .stat-icon { background: var(--info); }
.stat-red .stat-icon { background: var(--danger); }
.stat-purple .stat-icon { background: var(--purple); }

.stat-info h3 { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-info p { font-size: 0.8rem; color: var(--gray); }

/* --- Quick Actions --- */
.admin-quick-actions h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.quick-action-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--dark);
}
.quick-action-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; display: block; }
.quick-action-card span { font-size: 0.85rem; font-weight: 500; }
.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

/* --- Admin Tables --- */
.admin-toolbar { margin-bottom: 20px; }

.admin-table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--gray-lighter);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}
.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(242, 101, 34, 0.03); }

.table-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.table-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--gray-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
}

.table-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* --- Admin Forms --- */
.admin-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 700px;
}
.form-actions { display: flex; gap: 10px; margin-top: 25px; }
.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-lighter);
    color: var(--primary);
}
.form-section-title:first-child { margin-top: 0; }
.current-image { margin-bottom: 10px; }
.preview-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid #eee;
}

/* --- Admin Photos --- */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.admin-photo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.admin-photo-info {
    padding: 15px;
}
.admin-photo-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 5px; }
.admin-photo-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .activities-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .cta-grid { grid-template-columns: 1fr; }
    .about-wrap { grid-template-columns: 1fr; text-align: center; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { display: flex; }
    .btn-nav { margin-left: 0; width: 100%; justify-content: center; }

    .hero { min-height: 70vh; }
    .hero-title { font-size: 2rem; }

    .activities-grid { grid-template-columns: 1fr; }
    .circle-image { width: 180px; height: 180px; }

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

    .cta-left, .cta-right { padding: 40px 25px; }

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

    .page-header { padding: 100px 0 40px; }
    .page-header h1 { font-size: 1.8rem; }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .admin-content { padding: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .avatar-floating { width: 60px; height: 60px; bottom: 20px; right: 20px; }
}

/* --- Pagination --- */
nav .pagination, .pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}
nav .pagination .page-item .page-link,
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    text-decoration: none;
}
nav .pagination .page-item.active .page-link,
.pagination li.active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
nav .pagination .page-item .page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
