/* ==========================================================================
   DESIGN SYSTEM - MTsN 5 NGAWI MODERN WEBSITE
   ========================================================================== */

:root {
    --primary: #047857;
    --primary-dark: #064e3b;
    --primary-light: #10b981;
    --primary-soft: #ecfdf5;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    
    --yt-red: #ef4444;
    --ig-pink: #e1306c;
    --fb-blue: #1877f2;
    --tt-dark: #010101;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --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;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--slate-50);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--slate-300);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-info span i {
    color: var(--accent-light);
    margin-right: 0.4rem;
}

.top-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-socials a {
    color: var(--slate-300);
    font-size: 0.95rem;
}

.top-socials a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* Main Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Navigation Submenu */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.dropdown-toggle i.chevron {
    font-size: 0.72rem;
    transition: transform 0.3s ease;
    margin-left: 0.15rem;
}

.nav-item-dropdown:hover .dropdown-toggle i.chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border: 1px solid var(--slate-200);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active-dropdown .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover, .dropdown-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 1.5rem;
}

.dropdown-item i {
    width: 18px;
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.45);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--slate-300);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #022c22 100%);
    color: var(--white);
    padding: 5rem 0 7rem;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.1;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--accent-light);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--slate-300);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    width: 100%;
    height: 420px;
}

.hero-stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Stats Section */
.stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid var(--slate-100);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--slate-600);
    font-weight: 600;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: var(--primary-soft);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--slate-600);
    font-size: 1.05rem;
}

/* Social Media News Hub (Berita Utama) */
.social-hub {
    background: var(--slate-100);
}

.platform-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-300);
    background: var(--white);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.filter-btn.youtube.active { background: var(--yt-red); border-color: var(--yt-red); }
.filter-btn.instagram.active { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.filter-btn.facebook.active { background: var(--fb-blue); border-color: var(--fb-blue); }
.filter-btn.tiktok.active { background: var(--tt-dark); border-color: var(--tt-dark); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
}

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

.news-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.platform-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    text-transform: uppercase;
}

.platform-badge.youtube { background: var(--yt-red); }
.platform-badge.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.platform-badge.facebook { background: var(--fb-blue); }
.platform-badge.tiktok { background: var(--tt-dark); }
.platform-badge.website { background: var(--primary); }

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--yt-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.news-thumb:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.news-desc {
    color: var(--slate-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-action:hover {
    gap: 0.6rem;
}

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.profile-img-group {
    position: relative;
}

.profile-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.profile-card-floating {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    max-width: 260px;
    box-shadow: var(--shadow-lg);
}

.profile-card-floating h4 {
    color: var(--accent-light);
    margin-bottom: 0.3rem;
}

/* Interactive Map Section */
.map-section {
    background: var(--white);
}

.map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-300);
}

.map-container {
    position: relative;
    min-height: 400px;
}

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

.map-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.map-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.map-text p {
    font-size: 0.9rem;
    color: var(--slate-600);
}

/* Extracurricular Cards */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.extra-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: var(--transition);
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.extra-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-soft), #d1fae5);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.extra-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.extra-card p {
    color: var(--slate-600);
    font-size: 0.9rem;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-sm);
}

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

.gallery-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

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

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

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-300);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

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

/* Footer */
.footer {
    background: var(--dark-surface);
    color: var(--slate-300);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--slate-400);
    margin-bottom: 1.25rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

.footer-links a {
    color: var(--slate-400);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.3rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

.modal-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.modal-body iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

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

.admin-sidebar {
    width: 260px;
    background: var(--dark-surface);
    color: var(--slate-300);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

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

.admin-sidebar-header h2 {
    font-size: 1.1rem;
    color: var(--white);
}

.admin-menu {
    padding: 1rem 0;
    flex-grow: 1;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: var(--slate-400);
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-link:hover, .admin-link.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
    border-left: 4px solid var(--primary-light);
}

.admin-main {
    flex-grow: 1;
    background: var(--slate-100);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--slate-300);
}

.admin-content {
    padding: 2rem;
    flex-grow: 1;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--slate-100);
}

.admin-table th {
    background: var(--slate-50);
    font-weight: 700;
    color: var(--slate-600);
}

/* Responsive Media Queries - Mobile Phones & Tablets */
@media (max-width: 992px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero-grid, .profile-grid, .map-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .extra-grid, .gallery-grid, .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .top-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .top-socials {
        justify-content: center;
    }

    /* Main Navbar Mobile */
    .nav-container {
        height: 70px;
    }
    .brand-text h1 {
        font-size: 1.05rem;
    }
    .brand-text p {
        font-size: 0.68rem;
    }
    .brand img {
        width: 40px !important;
        height: 40px !important;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.18);
        border-bottom: 4px solid var(--primary);
        z-index: 1001;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0.25rem;
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-item-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--slate-100);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--slate-100);
        border-radius: var(--radius-sm);
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 0.5rem;
        width: 100%;
        display: none;
    }
    .nav-item-dropdown.open .dropdown-menu {
        display: block;
    }
    .nav-link {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--slate-100);
        width: 100%;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .nav-link::after {
        display: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: var(--radius-sm);
        background: var(--slate-100);
    }

    /* Hero Section Mobile */
    .hero {
        padding: 3rem 0 4.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 0.98rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-img {
        height: 280px;
    }
    .hero-stat-card {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    /* Horizontal Touch Scroll Filters */
    .platform-filter, #guruFilters, #ekskulFilters {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.6rem;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .platform-filter::-webkit-scrollbar, #guruFilters::-webkit-scrollbar, #ekskulFilters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }

    /* Single Column Grids for Mobile Phones */
    .news-grid, .extra-grid, .gallery-grid, #guruGrid, #ekskulGrid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Section Typography */
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-desc {
        font-size: 0.95rem;
    }

    /* Floating Cards */
    .profile-card-floating {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
        max-width: 100%;
        width: 100%;
    }

    /* Map & Frame Wrapper */
    #denahFrameWrapper {
        height: 420px !important;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Admin Panel Mobile */
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .admin-topbar {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .admin-content {
        padding: 1rem;
    }
    .admin-content form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
        gap: 0.75rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.88rem;
    }
    #denahFrameWrapper {
        height: 350px !important;
    }
}
