:root {
  /* Colors (Bhagwa / Saffron Theme) */
  --color-primary: #FF7F00;      /* Bhagwa (Saffron Orange) */
  --color-secondary: #E65100;    /* Dark Bhagwa */
  --color-dark: #6D2400;         /* Deep Brownish Orange */
  --color-white: #FFFFFF;
  --color-light: #FFF5EE;        /* Light Saffron tinted gray */
  --color-dark-bg: #3E1400;      /* Extra Dark Bhagwa */
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-border: #FFD1A3;       /* Light Saffron Border */

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --top-bar-height: 40px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Global Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Strict no rounded corners rule */
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography Classes */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-dark);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
}

h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
}

.text-center { text-align: center; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
}

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

.btn-primary:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

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

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

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader-logo {
  max-width: 180px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.loader-spinner {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  animation: flip 1.2s infinite ease-in-out;
  border-radius: 0 !important;
}

@keyframes flip {
  0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
  100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

/* Scroll Progress */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--color-primary);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s;
}

/* Top Information Bar */
.top-bar {
  background-color: var(--color-dark);
  color: var(--color-white);
  height: var(--top-bar-height);
  font-size: 0.85rem;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker-label {
  background-color: var(--color-primary);
  padding: 0 10px;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  font-weight: 600;
  text-transform: uppercase;
}

.news-ticker {
  overflow: hidden;
  width: 300px;
}

.news-ticker ul {
  display: flex;
  animation: ticker 15s linear infinite;
}

.news-ticker li {
  padding-right: 50px;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons a {
  color: var(--color-white);
  margin-left: 10px;
  transition: color var(--transition-fast);
}

.social-icons a:hover {
  color: var(--color-primary);
}

/* Header & Navigation */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.main-header.scrolled .header-inner {
    border-bottom: 1px solid transparent;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}
.logo-text span {
  color: var(--color-primary);
}

.main-header.scrolled .logo-text {
  font-size: 1.4rem;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  color: #444;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-dark);
  cursor: pointer;
}

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

/* Fullscreen Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 11, 4, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-search {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
}

.search-form {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 20px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-white);
  color: var(--color-white);
  font-family: var(--font-primary);
}

.search-form input:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   BENTO FOOTER REDESIGN
   ========================================= */
.bento-footer {
  background-color: #0d0d0d;
  color: #E0E0E0;
  padding: 60px 0 20px 0;
  font-family: var(--font-secondary);
}

.bento-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 40px;
}

.bento-card {
  background: #181818;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 111, 0, 0.2);
}

/* Brand Card (Saffron) */
.brand-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-card:hover {
  box-shadow: 0 15px 30px rgba(255, 111, 0, 0.3);
  border-color: transparent;
}

.brand-card-content {
  position: relative;
  z-index: 2;
}

.bento-logo {
  font-size: 2rem;
  font-weight: 800;
  color: white !important;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  line-height: 1.1;
}

.bento-logo span {
  color: #FFF3E0;
}

.bento-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.bento-socials {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.b-social {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.b-social:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
}

.brand-bg-accent {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* Link Cards */
.link-card h4, .contact-card h4 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.bento-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-links li a {
  color: #AAAAAA;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.bento-links li a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* Contact Card */
.bento-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bento-contact-list li {
  color: #AAAAAA;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bento-contact-list li i {
  color: var(--color-primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Newsletter inside Bento */
.bento-newsletter form {
  display: flex;
  background: #0d0d0d;
  border-radius: 12px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.bento-newsletter form:focus-within {
  border-color: var(--color-primary);
}

.bento-newsletter input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 15px;
  color: white;
  font-size: 0.9rem;
}

.bento-newsletter input:focus {
  outline: none;
}

.bento-newsletter button {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 45px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.bento-newsletter button:hover {
  background: var(--color-secondary);
}

/* Footer Bottom */
.bento-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #777;
  font-size: 0.9rem;
}

.b-bottom-links {
  display: flex;
  gap: 20px;
}

.b-bottom-links a {
  color: #777;
  text-decoration: none;
  transition: color 0.3s ease;
}

.b-bottom-links a:hover {
  color: var(--color-primary);
}

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  border-radius: 50%;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  background-color: var(--color-dark);
  transform: translateY(-5px);
}

/* Responsive Footer */
@media (max-width: 1200px) {
  .bento-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

@media (max-width: 991px) {
  .bento-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brand-card {
    grid-column: 1 / -1;
  }
  
  .top-bar {
    display: none;
  }
  .main-header {
    height: auto;
    padding: 10px 0;
  }
  .main-header .container {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 56px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    padding: 0;
  }
  .header-actions {
    gap: 10px;
    margin-left: auto;
  }
  .header-actions .btn {
    display: none;
  }
}
/* =========================================
   WHATSAPP POPUP STYLES
   ========================================= */
.wa-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.wa-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wa-popup-content {
  background: var(--color-dark-bg);
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(50px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(255, 111, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.wa-popup-overlay.active .wa-popup-content {
  transform: translateY(0);
}

.wa-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.wa-popup-close:hover {
  background: var(--color-primary);
  transform: rotate(90deg);
}

.wa-popup-icon {
  font-size: 3rem;
  color: #25D366; /* WhatsApp Green */
  margin-bottom: 15px;
}

.wa-popup-content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.wa-popup-content p {
  color: #AAAAAA;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.wa-popup-form input,
.wa-popup-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: white;
  margin-bottom: 15px;
  font-family: var(--font-secondary);
}

.wa-popup-form input:focus,
.wa-popup-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.wa-popup-form button {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.wa-popup-form button:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .bento-footer-grid {
    grid-template-columns: 1fr;
  }
  .bento-footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .section {
    padding: 45px 0;
  }
  .section-title {
    font-size: 1.9rem;
  }
  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  .mobile-drawer {
    width: min(320px, 85vw);
  }
}

@media (max-width: 575px) {
  .main-header .container {
    padding: 0 14px;
  }
  .logo-image img {
    max-height: 40px;
  }
  .mobile-menu-btn {
    width: 42px;
    height: 42px;
  }
}

/* Shared page hero mobile behavior */
.hero-section,
.inner-hero,
.cat-hero,
.events-hero,
.modern-hero,
.story-hero {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 992px) {
  .hero-section,
  .inner-hero,
  .cat-hero,
  .events-hero,
  .modern-hero,
  .story-hero {
    min-height: auto;
    padding: 60px 0;
  }
  .hero-section .slide-container,
  .cat-hero-content,
  .events-hero-content,
  .modern-hero-content,
  .inner-hero-content,
  .story-hero-content {
    padding: 0 20px;
  }
  .hero-section .slide-title,
  .cat-title,
  .events-title,
  .inner-hero-title,
  .story-title,
  .modern-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
  }
  .hero-section .slide-text,
  .cat-subtitle,
  .events-subtitle,
  .breadcrumbs,
  .story-hero p,
  .inner-hero p,
  .modern-hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .inner-hero,
  .cat-hero,
  .events-hero,
  .modern-hero,
  .story-hero {
    padding: 50px 0;
  }
  .hero-section .slide-title,
  .cat-title,
  .events-title,
  .inner-hero-title,
  .story-title,
  .modern-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }
  .hero-section .slide-actions,
  .header-actions,
  .events-filter-bar,
  .solid-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-section .slide-actions .btn,
  .header-actions .btn,
  .solid-tab {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .hero-section,
  .inner-hero,
  .cat-hero,
  .events-hero,
  .modern-hero,
  .story-hero {
    padding: 40px 0;
  }
  .hero-section .slide-title,
  .cat-title,
  .events-title,
  .inner-hero-title,
  .story-title,
  .modern-hero-title {
    font-size: 2rem;
  }
  .hero-section .slide-actions,
  .header-actions,
  .solid-tabs {
    gap: 10px;
  }
}

/* Mobile Drawer Menu (Injected dynamically) */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: left var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  left: 0;
}

.mobile-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.mobile-nav-menu {
  padding: 20px;
}

.mobile-nav-menu li {
  margin-bottom: 15px;
}

.mobile-nav-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  text-transform: uppercase;
}

.mobile-nav-menu a.active {
  color: var(--color-primary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}
