@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #810D0B;     /* Deep Red */
  --primary-dark: #5c0706;
  --secondary: #E27B1F;   /* Vibrant Gold/Orange */
  --secondary-light: #FF9B42;
  
  --bg-main: #F9FAFC;
  --bg-white: #ffffff;
  
  --text-main: #1f2937;
  --text-muted: #6B7280;
  --text-light: #ffffff;
  
  --border-color: #e5e7eb;
  
  --gradient-gold: linear-gradient(135deg, #E27B1F 0%, #FF9B42 100%);
  --gradient-mixed: linear-gradient(135deg, #810D0B 0%, #E27B1F 100%);
  
  --transition: all 0.3s ease;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

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

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* Animations Baseline */
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes subtleZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.17, 0.67, 0.16, 0.99);
  pointer-events: none;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Advanced Entrance Variants */
.reveal-scale { transform: scale(0.9); transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-scale.active { transform: scale(1); }

.reveal-left { transform: translateX(-40px); }
.reveal-left.active { transform: translateX(0); }

.reveal-right { transform: translateX(40px); }
.reveal-right.active { transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

.btn:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--text-light);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.85rem;
}

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

.top-contacts span {
  margin-right: 20px;
  font-weight: 500;
}

.top-links a {
  color: var(--text-light);
  margin-left: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-links a:hover {
  color: var(--secondary);
}

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.8s ease-out forwards;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.logo-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.15;
  color: var(--primary);
}

.logo-text h1 span {
  color: var(--secondary);
}

.logo-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 2px;
}

.navbar {
  display: flex;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  display: block;
  padding: 15px 20px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.navbar ul li a:hover, .navbar ul li a.active {
  color: var(--primary);
  background-color: rgba(226, 123, 31, 0.05); /* very soft secondary */
}

/* Hamburger Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 2000;
  transition: var(--transition);
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: var(--secondary);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: var(--secondary);
}

/* Hero Creative Section */
.hero-creative {
  position: relative;
  padding: 120px 0 180px;
  background: var(--bg-white);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Bento UI Grid */
.bento-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: -100px;
  position: relative;
  z-index: 30;
}

@media(max-width: 900px) { 
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .bento-stats { grid-template-columns: 1fr 1fr; margin-top: 20px; } 
}

.bento-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 35px 25px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  z-index: 1;
  animation: subtleZoom 15s infinite alternate linear;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  color: var(--text-light);
}

.hero-tag {
  background: var(--secondary);
  color: var(--text-light);
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-content h2 {
  color: var(--text-light);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Philosophy / Stats block overlapping hero */
.info-bar {
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  color: var(--text-light);
  margin-top: -50px;
  position: relative;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  display: flex;
  border-radius: 4px;
}
.info-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(129, 13, 11, 0.85); /* Deep Red transparent overlay */
  border-radius: 4px;
}

.info-item {
  flex: 1;
  padding: 30px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}
.info-item:last-child { border-right: none; }

.info-item h3 {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 10px;
}
.info-item p {
  font-weight: 500;
}

/* Standard Section */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -30px auto 50px;
  color: var(--text-muted);
}

/* 2-column layout (About) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Feature Cards (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Notices / Blog Post Style */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Gallery Update */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(129, 13, 11, 0.9);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-weight: 500;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  height: 420px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.gal-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

@media (max-width: 768px) {
  .gallery-large {
    grid-column: span 1;
    grid-row: span 1;
    height: 250px;
  }
}

/* Forms used in Admin / Student and Home Contact */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Comprehensive Footer */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 80px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-widget h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-widget p {
  margin-bottom: 15px;
}

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

.footer-widget ul li {
  margin-bottom: 12px;
}

.footer-widget ul li a {
  color: #aaa;
}

.footer-widget ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* Authentication pages wrapper (admin/student overrides minimal changes) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
}
.auth-card {
  background: white;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary);
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: 20px; }
.mt-2 { margin-top: 20px; }
.hidden { display: none !important; }

/* Dashboard layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 280px;
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  padding: 30px 0;
}
.sidebar-header { padding: 0 20px; margin-bottom: 30px; }
.sidebar .menu { list-style: none; }
.sidebar .menu a {
  display: block;
  padding: 15px 30px;
  color: var(--text-main);
  font-weight: 500;
  border-left: 4px solid transparent;
}
.sidebar .menu a:hover, .sidebar .menu a.active {
  background-color: var(--bg-main);
  color: var(--primary);
  border-left-color: var(--primary);
}
.main-content {
  flex: 1;
  padding: 40px;
  background-color: var(--bg-main);
  max-height: 100vh;
  overflow-y: auto;
}
.glass-card { background: white; padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-responsive { 
  display: grid; 
  grid-template-columns: var(--grid-cols, 1fr); 
  gap: var(--grid-gap, 30px); 
}
.flex { display: flex; align-items: center; justify-content: space-between; }

/* Dashboard UI specific additions for desktop */
.sidebar-toggle { display: none; }
.nav-overlay { display: none; }

/* Chat UI Shared Layout */
.chat-grid { grid-template-columns: 1fr 2fr; }
.chat-sidebar { padding: 0; display: flex; flex-direction: column; height: 500px; }
.chat-main { padding: 0; display: flex; flex-direction: column; height: 500px; }
@media screen and (max-width: 768px) {
  .chat-grid { grid-template-columns: 1fr !important; }
  .chat-sidebar { height: 250px; }
  .chat-main { height: 400px; }
}

/* Data Table */
.data-table-wrapper { background: white; overflow-x: auto; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; border-bottom: 1px solid var(--border-color); text-align: left; }
.data-table th { background-color: var(--primary); color: white; }
.data-table tr:hover { background-color: var(--bg-main); }

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}
.badge-present { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; }
.badge-absent { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }
.badge-paid { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; }
.badge-unpaid { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }
.badge-submitted { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid #3b82f6; }

/* Responsive Media Queries */
@media screen and (max-width: 1100px) {
  .logo h1 { font-size: 1.5rem; }
  .navbar ul li a { padding: 15px 12px; font-size: 0.85rem; }
}

@media screen and (max-width: 1024px) {
  .hero-content h2 { font-size: 3rem; }
  .about-grid { gap: 30px; }
  .section-title { font-size: 2.2rem; }
  .news-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr !important; }
  .map-overlay {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 auto 30px;
    width: 100% !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  .map-overlay a { margin-left: 0 !important; margin-top: 10px; width: 100%; border-radius: 10px !important; }
  /* Navigation & Header — base triggers only, full rules at bottom */
  
  /* Hero */
  .hero { height: auto; padding: 120px 0 80px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-content h2 { font-size: 2.5rem; }
  
  /* Info Bar */
  .info-bar { flex-direction: column; margin-top: 20px; }
  .info-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .info-item:last-child { border-bottom: none; }
  


  
  /* SAFE OVERFLOW RESET — excludes navigation elements */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  *:not(.navbar):not(.navbar *):not(.hamburger):not(.hamburger *):not(.nav-overlay):not(header):not(.header-inner):not(.header-inner *) {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Layout stacking — ONLY content grids, NOT navigation */
  .grid-2, .grid-3, .grid-4, .grid-responsive, .hero-grid, .about-grid, 
  .admission-form-grid, .form-row, .footer-grid, .bento-stats, 
  .gallery-grid, .features-grid, .pricing-grid { 
    display: block !important; 
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  
  .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-responsive > *,
  .hero-grid > *, .about-grid > *, .admission-form-grid > *, 
  .form-row > *, .footer-grid > *, .bento-stats > *, 
  .gallery-grid > *, .features-grid > *, .pricing-grid > * { 
    width: 100% !important; 
    max-width: 100% !important;
    margin-bottom: 20px !important;
    grid-column: span 1 !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row !important;
    text-align: left !important;
  }

  .logo-icon {
    width: 85px !important;
    height: 85px !important;
    flex-shrink: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .logo-icon img {
    width: 100% !important;
    height: 100% !important;
  }

  .logo-text h1 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
  }
  
  .logo-text p {
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
  }

  .container { 
    width: 100% !important; 
    padding: 0 15px !important; 
    margin: 0 auto !important;
  }

  /* ===== MOBILE NAVBAR — GUARANTEED VISIBILITY ===== */
  header {
    position: relative !important;
    z-index: 9999 !important;
  }

  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
  }

  .navbar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 100px 30px 40px !important;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease !important;
    opacity: 0 !important;
    overflow-y: auto !important;
  }

  .navbar.active {
    right: 0 !important;
    opacity: 1 !important;
  }

  .navbar ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .navbar ul li {
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .navbar ul li a {
    display: block !important;
    padding: 18px 5px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    text-decoration: none !important;
    transition: color 0.3s, padding-left 0.3s !important;
    width: 100% !important;
    background: transparent !important;
  }

  .navbar ul li a:hover,
  .navbar ul li a.active {
    color: var(--secondary, #e27b1f) !important;
    padding-left: 12px !important;
    background: rgba(226, 123, 31, 0.06) !important;
  }

  .nav-overlay {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  .nav-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px !important;
    height: 20px !important;
    cursor: pointer !important;
    z-index: 2000 !important;
    position: relative !important;
  }

  .hamburger span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--primary, #810d0b) !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg) !important;
    background-color: var(--secondary, #e27b1f) !important;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg) !important;
    background-color: var(--secondary, #e27b1f) !important;
  }

  /* Dashboard sidebar */
  .sidebar { 
    position: fixed;
    top: 0; left: -280px;
    width: 280px; height: 100vh;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
  }
  .sidebar.active { left: 0; }
  .main-content { padding: 20px; padding-top: 80px; }
  
  .sidebar-toggle {
    display: flex !important;

    position: fixed;
    top: 20px; left: 20px;
    width: 45px; height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    align-items: center; justify-content: center;
    z-index: 2100;
    box-shadow: 0 10px 20px rgba(129,13,11,0.3);
    cursor: pointer;
  }
  
  /* Footer */
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-widget h3::after { left: 50%; transform: translateX(-50%); }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media screen and (max-width: 480px) {
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .news-grid, .gallery-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 20px; }
  .btn { padding: 12px 24px; width: 100%; text-align: center; }
  .flex { flex-direction: column; align-items: flex-start; gap: 15px; }
}
