/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Montserrat:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #d84315; /* Rich Terracotta/Saffron */
  --primary-light: #ff7043;
  --secondary: #e65100; /* Deep Saffron */
  --accent: #ffb300; /* Warm Gold */
  --accent-light: #ffe082;
  --bg-cream: #faf6f0; /* Sandalwood/Off-white background */
  --bg-sandal: #f4ece1; /* Deeper sandalwood tone */
  --text-dark: #1e130c; /* Very deep warm brown */
  --text-light: #5d4a41; /* Muted brown */
  --white: #ffffff;
  --border-color: #e6d8c6;
  --success: #2e7d32;
  
  /* Premium Shadows */
  --shadow-sm: 0 4px 12px rgba(30, 19, 12, 0.03);
  --shadow-md: 0 12px 30px rgba(30, 19, 12, 0.06);
  --shadow-lg: 0 20px 50px rgba(30, 19, 12, 0.1);
  --shadow-glow: 0 0 25px rgba(216, 67, 21, 0.25);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-title: 'Marcellus', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.8;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

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

ul {
  list-style: none;
}

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

/* Top Info Bar */
.top-bar { display: none !important; }

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

.top-bar-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
}

.top-bar-item a {
  color: #f3e9dc;
  transition: var(--transition);
}

.top-bar-item a:hover {
  color: var(--accent);
}

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

.top-bar-socials a {
  color: #f3e9dc;
  transition: var(--transition);
}

.top-bar-socials a:hover {
  color: var(--accent);
}

/* Utilities & Buttons */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 10rem 0;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 3.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(216, 67, 21, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(216, 67, 21, 0.45);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Scrolling Slogan Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  height: 4.8rem;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--secondary) 100%);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.ticker {
  display: inline-block;
  height: 4.8rem;
  line-height: 4.8rem;
  white-space: nowrap;
  padding-right: 100%;
  box-sizing: content-box;
  animation: ticker 30s linear infinite;
}

.ticker__item {
  display: inline-block;
  padding: 0 4rem;
  font-size: 1.6rem;
  color: var(--white);
  font-family: var(--font-hindi);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* Sticky Header & Proportional Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(30, 19, 12, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  flex-shrink: 0;
}

#inst-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--primary);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(216, 67, 21, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1, .logo-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  white-space: nowrap;
  font-family: var(--font-title);
  margin: 0;
}

.logo-text p, .logo-subtitle {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
  font-family: var(--font-body);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(216, 67, 21, 0.08);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(216, 67, 21, 0.12);
}

.header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4ece1;
  padding: 0.3rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.header-lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.header-lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(216, 67, 21, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 3rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Page Section visibility for multi-page mode */
.page-section {
  display: block !important;
  opacity: 1 !important;
}

/* Mobile Drawer at 1080px */
@media (max-width: 1080px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 65px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    width: 100%;
    padding: 1rem 1.4rem;
    font-size: 1.6rem;
  }
}


/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(30, 19, 12, 0.45), rgba(30, 19, 12, 0.8)), url('assets/hero_bg.jpg') no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 8rem 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg-cream) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.hero h2 {
  font-size: 5.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
  line-height: 1.25;
  font-family: var(--font-hindi);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.hero-slogan {
  font-family: var(--font-hindi);
  font-size: 2.6rem;
  color: #ffe0b2;
  margin-bottom: 4rem;
  font-weight: 600;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.hero-slogan span {
  display: block;
  font-size: 2rem;
  margin-top: 1.5rem;
  color: var(--white);
  font-weight: 500;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}

/* Announcement Card / Gita Exam Banner */
.exam-announcement {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-top: -8rem;
  position: relative;
  z-index: 10;
  padding: 5rem;
  border: 1px solid rgba(216, 67, 21, 0.1);
  border-top: 6px solid var(--primary);
  transition: var(--transition);
}

.exam-announcement:hover {
  box-shadow: 0 30px 60px rgba(30, 19, 12, 0.15);
  transform: translateY(-2px);
}

.exam-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.exam-badge {
  display: inline-block;
  background-color: #fff3e0;
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  border: 1px solid rgba(216, 67, 21, 0.15);
}

.exam-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.35;
  font-family: var(--font-hindi);
}

.exam-desc {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

/* Countdown Timer */
.countdown-label {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-family: var(--font-hindi);
  font-size: 1.8rem;
}

.countdown-timer-box {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.5rem;
}

.time-block {
  text-align: center;
  background: #fff3e0;
  padding: 1.2rem 1.6rem;
  min-width: 80px;
  border-radius: 8px;
  border-bottom: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.time-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
}

.time-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  line-height: 1.2;
}

.time-lbl {
  font-size: 1.2rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 0.4rem;
}

.exam-dates-box {
  background-color: var(--bg-cream);
  border-radius: 10px;
  padding: 4rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Section Header */
.section-header {
  max-width: 800px;
  margin: 0 auto 7rem auto;
  text-align: center;
}

.section-subtitle {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 2rem;
  color: var(--text-dark);
}

.section-title::after {
  content: '◆';
  color: var(--accent);
  font-size: 1.6rem;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-cream);
  padding: 0 1.5rem;
  z-index: 2;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.about .section-title::after,
.activities .section-title::after,
.gallery .section-title::after,
.contact .section-title::after {
  background-color: var(--white) !important;
}

.section-description {
  font-size: 1.8rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--primary);
  line-height: 1.35;
}

.about-text p {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  line-height: 1.9;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 4rem;
}

.about-feature {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--bg-cream);
  border-radius: 8px;
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
}

.about-feature-icon {
  color: var(--primary);
  font-size: 2.6rem;
  margin-top: 0.2rem;
}

.about-feature-text h4 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.about-feature-text p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

.about-media {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-media::before {
  content: '';
  position: absolute;
  top: -2.5rem;
  left: -2.5rem;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

/* Objectives Section */
.objectives {
  background-color: var(--bg-sandal);
  position: relative;
}

.objectives::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3.5rem;
}

.objective-card {
  background-color: var(--white);
  padding: 5rem 3.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(230, 81, 0, 0.05);
  border-bottom: 5px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.02) 0%, rgba(255, 179, 0, 0.06) 100%);
  opacity: 0;
  transition: var(--transition);
}

.objective-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-bottom-color: var(--primary);
}

.objective-card:hover::before {
  opacity: 1;
}

.objective-icon {
  width: 70px;
  height: 70px;
  background-color: #fff3e0;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  transition: var(--transition);
  border: 1px solid rgba(216, 67, 21, 0.1);
}

.objective-card:hover .objective-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.objective-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.objective-card p {
  font-size: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Activities Section */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.activity-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.activity-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.activity-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30,19,12,0.3) 0%, transparent 100%);
}

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

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

.activity-content {
  padding: 4rem 3.5rem;
}

.activity-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.activity-card h3 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  color: var(--text-dark);
}

.activity-card p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.activity-link {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.activity-link i {
  transition: var(--transition);
}

.activity-link:hover i {
  transform: translateX(6px);
}

/* Leadership Section */
.leadership {
  background-color: var(--bg-sandal);
}

.leadership-box {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 8rem;
  align-items: center;
}

.leader-photo-wrapper {
  text-align: center;
}

.leader-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2.5rem auto;
  border: 6px solid #fff3e0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.leadership-box:hover .leader-photo {
  transform: scale(1.03);
  border-color: var(--accent);
}

.leader-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.leader-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
}

.leader-message {
  position: relative;
}

.quote-icon {
  font-size: 5rem;
  color: #fff3e0;
  position: absolute;
  top: -3rem;
  left: -3rem;
  z-index: 1;
}

.leader-message p {
  font-size: 1.65rem;
  color: var(--text-light);
  line-height: 1.9;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.leader-signature {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--text-dark);
  border-top: 1px solid var(--border-color);
  display: inline-block;
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 280px;
  border: 1px solid var(--border-color);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 19, 12, 0.95) 0%, rgba(216, 67, 21, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  padding: 3rem;
  text-align: center;
}

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

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

.gallery-overlay h4 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.gallery-overlay p {
  font-size: 1.4rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Contact Us Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
}

.contact-info h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--primary);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 5.5rem;
  height: 5.5rem;
  background-color: #fff3e0;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(216, 67, 21, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-detail-item:hover .contact-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.contact-text h4 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.contact-text p, .contact-text a {
  font-size: 1.55rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-text a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 280px;
}

.contact-form-wrapper {
  background-color: var(--bg-cream);
  padding: 5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-dark);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  line-height: 1.2;
}

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

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

.form-input {
  width: 100%;
  padding: 1.4rem 1.8rem;
  font-size: 1.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(216, 67, 21, 0.15);
  background-color: var(--white);
}

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

.form-message {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 6px;
  font-size: 1.45rem;
  display: none;
}

.form-message.success {
  background-color: #e8f5e9;
  color: var(--success);
  border: 1px solid #c8e6c9;
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* Footer Section */
footer {
  background-color: #1a0f07;
  color: #c4b6ac;
  padding: 8rem 0 4rem 0;
  font-size: 1.5rem;
  border-top: 4px solid var(--primary);
}

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

.footer-brand h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  font-family: var(--font-hindi);
}

.footer-brand p {
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-size: 1.45rem;
}

.footer-socials {
  display: flex;
  gap: 1.8rem;
}

.social-link {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 5px 15px rgba(216, 67, 21, 0.4);
  border-color: transparent;
}

.footer-links h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1.2rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links a {
  transition: var(--transition);
  font-size: 1.45rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4rem;
  text-align: center;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* Floating Actions */
.back-to-top {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  width: 5.5rem;
  height: 5.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(216, 67, 21, 0.4);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  font-size: 2rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(216, 67, 21, 0.6);
}

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

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

/* Translation Visibility Utilities */
body.lang-en .hi-text {
  display: none !important;
}
body.lang-hi .en-text {
  display: none !important;
}

/* Committee Grid */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

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

/* Registration Tabs */
.reg-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  justify-content: center;
}

.reg-tab-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.45rem;
  padding: 1.2rem 3rem;
  border-radius: 30px;
  cursor: pointer;
  border: 2px solid var(--primary) !important;
  background: transparent;
  color: var(--primary) !important;
  transition: var(--transition);
}

.reg-tab-btn:hover {
  background-color: rgba(216, 67, 21, 0.05);
}

.reg-tab-btn.active-tab-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 5px 15px rgba(216, 67, 21, 0.3);
}

/* Language Switcher Buttons */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: none;
  border: none;
  color: #f3e9dc;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  background-color: var(--accent);
  color: var(--text-dark);
}

.header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #fff3e0;
  padding: 0.4rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-left: 1rem;
}

.header-lang-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem 1.2rem;
  border-radius: 12px;
  transition: var(--transition);
}

.header-lang-btn:hover {
  color: var(--primary);
}

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

/* Registration Form Styles */
.registration-container {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem;
  transition: var(--transition);
}

.registration-form select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23e65100'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.8rem center;
  background-size: 1.5rem;
  padding-right: 4.5rem;
}

.form-section-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 2.5rem;
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.payment-instruction-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  background-color: var(--bg-sandal);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 3rem;
  margin-top: 2rem;
  align-items: center;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.45rem;
}

.payment-table td {
  padding: 0.6rem 0.8rem;
  vertical-align: top;
  border-bottom: 1px dashed rgba(30, 19, 12, 0.08);
}

.payment-table td:first-child {
  padding-left: 0;
  color: var(--text-light);
}

.payment-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 1.5px dashed var(--border-color);
  padding-left: 3rem;
}

.qr-placeholder {
  background-color: var(--white);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.scan-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% {
    top: 5%;
  }
  50% {
    top: 90%;
  }
}

/* Modal Overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 19, 12, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  padding: 2rem;
  overflow-y: auto;
}

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

.receipt-card {
  background-color: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3rem 4rem;
  margin: 3rem auto;
}

.modal-overlay.active .receipt-card {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.8rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--primary);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.receipt-logo {
  margin-bottom: 1.5rem;
}

.receipt-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.receipt-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.receipt-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8f5e9;
  color: var(--success);
  border: 1px solid #c8e6c9;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 2.5rem;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.8rem;
  font-size: 1.45rem;
}

.receipt-label {
  color: var(--text-light);
}

.receipt-val {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}

.receipt-val.highlight-code {
  color: var(--primary);
  font-weight: 800;
  font-family: monospace;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.receipt-notice {
  background-color: var(--bg-cream);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 4px;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-light);
}

.receipt-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Print styles are consolidated at the end of this stylesheet */

/* Responsive Styles */
@media (max-width: 1024px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid, .exam-grid {
    gap: 4rem;
  }
  .committee-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 53.125%; /* 1rem = 8.5px */
  }

  .top-bar-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: stretch !important;
  }
  
  .top-bar-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.5rem 1rem !important;
  }

  .section-padding {
    padding: 6rem 0;
  }

  .d-none-mobile {
    display: none !important;
  }

  .nav-container {
    padding: 1.5rem 0;
  }

  .logo-text h1 {
    font-size: 1.45rem !important;
    white-space: normal !important;
  }

  .logo-text p {
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
  }

  .logo-link {
    gap: 0.8rem !important;
    max-width: 65%;
  }

  #inst-logo {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 75px; /* Adjust according to header height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 10px rgba(30,19,12,0.05);
    z-index: 99;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero h2 {
    font-size: 4rem;
  }

  .hero-slogan {
    font-size: 2rem;
  }

  .exam-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .exam-announcement {
    padding: 4rem 3rem;
    margin-top: -6rem;
  }

  .countdown-timer-box {
    gap: 1rem !important;
    justify-content: space-between !important;
  }

  .time-block {
    min-width: 0 !important;
    flex: 1 !important;
    padding: 1rem 0.6rem !important;
  }

  .time-num {
    font-size: 2.2rem !important;
  }

  .time-lbl {
    font-size: 1.1rem !important;
  }

  .about-grid, .contact-grid, .leadership-grid, .committee-grid {
    grid-template-columns: 1fr !important;
    gap: 4rem !important;
  }

  .about-image-wrapper img {
    height: 320px !important;
  }

  .about-media::before {
    top: -1.5rem;
    left: -1.5rem;
  }

  .leadership-box {
    padding: 4rem 3rem;
  }

  .activities-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .header-lang-switcher {
    display: none !important;
  }

  .nav-menu-lang-switcher {
    display: flex !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .payment-instruction-card {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .payment-qr-box {
    border-left: none !important;
    border-top: 1.5px dashed var(--border-color) !important;
    padding-left: 0 !important;
    padding-top: 2.5rem !important;
    width: 100% !important;
  }
  .registration-container {
    padding: 3rem 2rem !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%; /* 1rem = 8px */
  }

  .logo-text h1 {
    font-size: 1.25rem !important;
    white-space: normal !important;
  }

  .logo-text p {
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
  }

  #inst-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .logo-link {
    max-width: 60%;
  }

  .container {
    padding: 0 2rem;
  }

  .section-padding {
    padding: 5rem 0;
  }

  .hero h2 {
    font-size: 3.2rem;
  }

  .hero-slogan {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .countdown-timer-box {
    gap: 0.8rem !important;
    justify-content: space-between !important;
  }

  .time-block {
    padding: 0.8rem 0.4rem !important;
  }

  .time-num {
    font-size: 1.8rem !important;
  }

  .time-lbl {
    font-size: 0.9rem !important;
  }

  .about-image-wrapper img {
    height: 240px !important;
  }

  .leadership-box {
    padding: 3rem 1.5rem;
  }

  .leader-photo {
    width: 160px;
    height: 160px;
  }

  .contact-form-wrapper {
    padding: 3rem 2rem;
  }

  .receipt-card {
    padding: 2.5rem 2rem !important;
  }

  .receipt-actions {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* ======================================================
   ALL INDIA VEER BAL SHAHEED OLYMPIAD 2026 STYLES
   ====================================================== */
.olympiad-wrapper {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 0;
  position: relative;
  z-index: 10;
  padding: 4.5rem;
  border: 1px solid rgba(216, 67, 21, 0.12);
  border-top: 8px solid var(--primary);
  transition: var(--transition);
}

.olympiad-header-banner {
  text-align: center;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 2px dashed var(--border-color);
  position: relative;
}

.olympiad-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: var(--primary);
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(216, 67, 21, 0.2);
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.olympiad-main-title {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  font-family: var(--font-hindi);
}

.olympiad-tagline {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.olympiad-slogan-motto {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-light);
  font-style: italic;
  display: inline-block;
  background: #fbf5ee;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.olympiad-org-info {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Veer Bal Diwas Highlight Box */
.veer-diwas-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fff1e6 100%);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(216, 67, 21, 0.15);
  box-shadow: var(--shadow-sm);
}

.veer-diwas-box h4 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.veer-diwas-box p {
  font-size: 1.45rem;
  line-height: 1.75;
  color: var(--text-dark);
}

/* Important Dates Card */
.dates-badge-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%);
  border-radius: 14px;
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.date-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(230, 216, 198, 0.6);
}

.date-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.date-item-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.date-item-text h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-item-text p {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Heroes Grid */
.heroes-showcase-section {
  margin-top: 4.5rem;
  padding-top: 4rem;
  border-top: 2px solid var(--border-color);
}

.sub-section-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sub-section-desc {
  text-align: center;
  font-size: 1.55rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9933, #ffffff, #138808);
}

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

.hero-avatar-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(216, 67, 21, 0.2);
}

.hero-card h4 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero-card span.hero-title-tag {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff8f0;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(216, 67, 21, 0.15);
}

/* Levels Grid */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.level-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.level-number-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  padding: 0.5rem 1.6rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.level-card h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.level-card p.level-classes {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.level-card p.level-desc {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Objectives Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.objective-item-box {
  background: #fdfaf6;
  border-radius: 10px;
  padding: 1.6rem 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.objective-item-box i {
  color: #2e7d32;
  font-size: 1.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.objective-item-box span {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Prizes Grid */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.prize-card {
  border-radius: 16px;
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.prize-card-gold {
  background: linear-gradient(145deg, #fffbee 0%, #fff3cd 100%);
  border: 2px solid #f1c40f;
}

.prize-card-silver {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #ced4da;
}

.prize-card-bronze {
  background: linear-gradient(145deg, #fff8f0 0%, #fde8d7 100%);
  border: 2px solid #e0a96d;
}

.prize-medal-icon {
  font-size: 4.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.prize-card-gold .prize-medal-icon { color: #d4af37; }
.prize-card-silver .prize-medal-icon { color: #7f8c8d; }
.prize-card-bronze .prize-medal-icon { color: #cd7f32; }

.prize-rank-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.prize-reward {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
}

.prize-card-gold .prize-reward { color: #b7791f; }

/* Special Recognition Strip */
.special-recognition-card {
  background: linear-gradient(135deg, #faf6f0 0%, #f4ece1 100%);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-sm);
}

.recognition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.recognition-pill {
  background: var(--white);
  padding: 1rem 1.8rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.recognition-pill i {
  color: var(--primary);
}

/* Reference Book Feature */
.book-showcase-box {
  background: linear-gradient(135deg, #fff9f2 0%, #fff2e0 100%);
  border: 2px dashed var(--accent);
  border-radius: 16px;
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-md);
}

.book-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #b71c1c 100%);
  color: var(--white);
  border-radius: 10px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-left: 6px solid #ffcc80;
}

.book-visual i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.book-visual span {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-content h4.book-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.book-author-line {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.book-author-desig {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.book-desc-text {
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Motivational Message & Movement */
.olympiad-message-quote {
  background: #2c1e18;
  color: #fff;
  border-radius: 14px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
  border-top: 5px solid var(--accent);
}

.olympiad-message-quote h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-family: var(--font-hindi);
}

.olympiad-message-quote p {
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
  color: #f3e9dc;
}

.national-slogan-strip {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.1), rgba(255, 255, 255, 0.8), rgba(19, 136, 8, 0.1));
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prizes-grid {
    grid-template-columns: 1fr;
  }
  .book-showcase-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-visual {
    margin: 0 auto;
    width: 140px;
  }
}

@media (max-width: 600px) {
  .olympiad-wrapper {
    padding: 3rem 2rem;
  }
  .olympiad-main-title {
    font-size: 2.6rem;
  }
  .levels-grid {
    grid-template-columns: 1fr;
  }
  .sub-section-title {
    font-size: 2.2rem;
  }
}

/* ======================================================
   MULTI-PAGE SECTION STYLES (ALWAYS VISIBLE)
   ====================================================== */
main,
section,
.page-section,
.page-section.active-section,
.status-portal,
.gita-registration,
.hero-section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

main,
.page-section {
  min-height: 60vh;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Portal Quick Navigation Grid */
.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.home-portal-card {
  background: var(--white);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.home-portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.home-portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.home-portal-card:hover::before {
  opacity: 1;
}

.home-portal-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(216, 67, 21, 0.2);
}

.home-portal-card h4 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.home-portal-card p {
  font-size: 1.45rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.home-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  transition: var(--transition);
}

.home-portal-card:hover .home-portal-btn {
  color: var(--secondary);
  gap: 1.2rem;
}

/* ======================================================
   UNIFIED ABOUT SECTION ENHANCEMENTS & UI OVERHAUL
   ====================================================== */
.about-subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 4.5rem;
  background: var(--bg-cream);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.about-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.about-subnav-link:hover {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(216, 67, 21, 0.2);
  box-shadow: var(--shadow-sm);
}

.about-subnav-link.active-pill {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3);
}

.about-sub-section {
  background: var(--white);
  border-radius: 16px;
  padding: 5rem 4.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.about-sub-section:last-child {
  margin-bottom: 0;
}

.about-sub-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-sub-section-header .section-subtitle {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #fff3e0;
  padding: 0.5rem 1.6rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(216, 67, 21, 0.15);
}

.about-sub-section-header h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-sub-section-header p {
  font-size: 1.55rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

/* History Card Layout */
.history-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: start;
}

.history-story-card {
  background: var(--bg-cream);
  border-radius: 14px;
  padding: 3.5rem;
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.history-story-card h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.history-story-card p {
  font-size: 1.55rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 1.8rem;
}

.history-quote-box {
  margin-top: 2.5rem;
  background: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.6rem;
}

.history-profile-card {
  background: var(--bg-cream);
  border-radius: 14px;
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 5px solid var(--secondary);
}

.history-profile-img-wrap {
  width: 220px;
  height: 250px;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.history-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.history-profile-card h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.history-profile-card .profile-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  display: inline-block;
  background: #fff3e0;
  padding: 0.4rem 1.4rem;
  border-radius: 15px;
}

.history-points-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.history-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.history-points-list li i {
  color: var(--secondary);
  margin-top: 0.4rem;
  font-size: 1.5rem;
}

.leader-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff3e0;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1rem;
  border: 1px solid rgba(216, 67, 21, 0.2);
  transition: var(--transition);
}

.leader-phone-pill:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 991px) {
  .history-layout-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-sub-section {
    padding: 3.5rem 2rem;
  }
}

/* Additional Ram Olympiad Enhanced Styles */
.syllabus-accordion {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.syllabus-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.syllabus-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.syllabus-header {
  padding: 1.8rem 2.4rem;
  background: #fffbf5;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.syllabus-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.syllabus-body {
  padding: 2rem 2.4rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  line-height: 1.9;
}
.syllabus-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.syllabus-item {
  position: relative;
  padding-left: 2.2rem;
}
.syllabus-item::before {
  content: '🏹';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.3rem;
}

/* Exam Pattern Table */
.pattern-table-container {
  overflow-x: auto;
  margin: 3rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.pattern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.pattern-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1.4rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pattern-table td {
  padding: 1.4rem 2rem;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}
.pattern-table tr:last-child td {
  border-bottom: none;
}
.pattern-table tr:nth-child(even) {
  background: #fffcf8;
}
.pattern-table tr:hover {
  background: #fff5e6;
}

/* Question Weightage Bars */
.weightage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.weightage-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.weightage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.weightage-percent {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.weightage-label {
  font-size: 1.4rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Committee Grid */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.committee-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.committee-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.committee-info h5 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.committee-info p {
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ==========================================================================
   ✨ PREMIUM PAYMENT & QR SHOWCASE SECTION (शुल्क एवं UPI भुगतान खंड)
   ========================================================================== */
.payment-showcase-card {
  background: linear-gradient(145deg, #ffffff 0%, #fffcf8 60%, #fff5ea 100%);
  border: 1.5px solid #ebd9c5;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(216, 67, 21, 0.07);
  padding: 2.8rem;
  margin: 2.5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.payment-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d84315, #ff9800, #ffb300, #d84315);
  background-size: 200% 100%;
  animation: shimmerBorder 4s linear infinite;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.payment-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px dashed var(--border-color);
  margin-bottom: 2.5rem;
}

.merchant-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.fee-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff3e0;
  color: var(--primary);
  border: 1px solid rgba(216, 67, 21, 0.25);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  font-size: 1.45rem;
  font-weight: 800;
}

.payment-showcase-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Left QR Panel */
.qr-display-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid #ecd8c2;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(30, 19, 12, 0.05);
}

.qr-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #fff3e0;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.qr-image-container {
  position: relative;
  max-width: 230px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #ffefe0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.qr-image-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(216, 67, 21, 0.18);
}

.qr-image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.qr-hover-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 19, 12, 0.8);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qr-image-container:hover .qr-hover-hint {
  opacity: 1;
}

.qr-action-buttons {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  margin-top: 1.5rem;
}

.qr-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #fffcf8;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}

.qr-action-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.supported-apps-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.supported-apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  background: #fbf5ee;
  border: 1px solid #ebd9c5;
  color: var(--text-dark);
}

.app-chip i {
  font-size: 1.2rem;
}

/* Right Details Panel */
.payment-details-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* UPI ID Box */
.upi-copy-box {
  background: #ffffff;
  border: 1.5px solid #ebd9c5;
  border-radius: 12px;
  padding: 1.8rem 2.2rem;
  box-shadow: 0 4px 14px rgba(30, 19, 12, 0.03);
}

.upi-copy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.upi-copy-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.upi-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff9f2;
  border: 1.5px solid #f0cb9e;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
}

.upi-id-value {
  font-family: monospace, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  flex: 1;
  word-break: break-all;
}

.btn-copy-upi {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy-upi:hover {
  background: #bf360c;
  transform: translateY(-1px);
}

.btn-copy-upi.copied {
  background: #2e7d32 !important;
}

.mobile-direct-pay {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-direct-pay-upi {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #ffffff !important;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: var(--transition);
}

.btn-direct-pay-upi:hover {
  background: linear-gradient(135deg, #1b5e20, #0d3c10);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.mobile-direct-hint {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* Steps List */
.payment-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.payment-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: #ffffff;
  border: 1px solid #ebd9c5;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  transition: var(--transition);
}

.payment-step-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(216, 67, 21, 0.07);
}

.step-num-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--primary);
  border: 1.5px solid #ffd0a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-details h5 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.step-details p {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Notice Banner */
.payment-trust-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fbf5ee;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 1.2rem 1.6rem;
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* UTR Input Card */
.utr-card-section {
  background: #ffffff;
  border: 2px solid #ebd9c5;
  border-radius: 14px;
  padding: 2.2rem 2.6rem;
  margin-top: 2rem;
  box-shadow: 0 6px 20px rgba(30, 19, 12, 0.04);
  transition: var(--transition);
}

.utr-card-section:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(216, 67, 21, 0.12);
}

.utr-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.utr-label {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.utr-help-toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: #fff3e0;
  transition: var(--transition);
}

.utr-help-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.utr-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.utr-field-icon {
  position: absolute;
  left: 1.6rem;
  color: var(--secondary);
  font-size: 1.8rem;
  pointer-events: none;
}

.utr-input {
  width: 100%;
  padding: 1.4rem 1.6rem 1.4rem 4.8rem !important;
  font-size: 1.8rem !important;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: monospace, sans-serif;
  color: var(--text-dark);
  border: 2px solid #e0cfbd !important;
  border-radius: 10px !important;
  background: #fffdfb;
  transition: var(--transition);
}

.utr-input:focus {
  border-color: var(--primary) !important;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(216, 67, 21, 0.15);
}

.utr-counter-badge {
  position: absolute;
  right: 1.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: #f0e6da;
  color: var(--text-light);
  letter-spacing: 0;
  font-family: var(--font-body);
}

.utr-counter-badge.valid {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* UTR Guide Drawer */
.utr-guide-drawer {
  display: none;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1.5px dashed var(--border-color);
  animation: fadeIn 0.3s ease;
}

.utr-guide-drawer.open {
  display: block;
}

.utr-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.utr-guide-item {
  background: #fffaf4;
  border: 1px solid #ebd9c5;
  border-radius: 8px;
  padding: 1.4rem;
  text-align: left;
}

.utr-guide-item h6 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.utr-guide-item ol {
  padding-left: 1.8rem;
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.55;
  margin: 0;
}

/* Lightbox Modal for QR */
.qr-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

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

@media (max-width: 991px) {
  .payment-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .qr-display-panel {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
  .payment-steps-grid {
    grid-template-columns: 1fr;
  }
  .utr-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🎫 ADMIT CARD MODAL & PRINT STYLES
   ========================================================================== */
.admit-modal-dialog {
  background-color: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 25px 60px rgba(30, 19, 12, 0.2);
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3rem;
  margin: 2rem auto;
}

.modal-overlay.active .admit-modal-dialog {
  transform: translateY(0);
}

.admit-urgent-alert {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: 1.6rem 2rem;
  margin-bottom: 2.5rem;
}

.urgent-alert-icon {
  font-size: 2.8rem;
  color: #e65100;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.urgent-alert-text h4 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #bf360c;
  margin-bottom: 0.4rem;
}

.urgent-alert-text p {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #5d4037;
  margin: 0;
}

/* Admit Card Printable Layout */
.admit-card-print-area {
  background: #ffffff;
  border: 3px double #d84315;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
}

.admit-header-box {
  border-bottom: 2px solid #d84315;
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
}

.admit-header-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.admit-header-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
}

.admit-header-titles {
  flex: 1;
}

.admit-header-titles h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #d84315;
  margin-bottom: 0.2rem;
  font-family: var(--font-hindi);
}

.admit-header-titles h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e130c;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.admit-motto {
  font-size: 1.25rem;
  color: #795548;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.admit-title-badge {
  display: inline-block;
  background: #d84315;
  color: #ffffff;
  padding: 0.4rem 1.6rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.admit-seal-badge {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px dashed #2e7d32;
  color: #2e7d32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admit-seal-badge i {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

/* Unique ID Bar */
.admit-id-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #fff8f0;
  border: 1.5px solid #ebd9c5;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.admit-id-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.id-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.id-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
}

.roll-highlight {
  color: #d84315;
  font-size: 1.7rem;
}

.security-code-value {
  font-family: monospace, sans-serif;
  color: #2e7d32;
  letter-spacing: 1px;
}

/* Info Grid */
.admit-info-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 2rem;
  margin-bottom: 1.8rem;
  align-items: start;
}

.admit-details-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #ebd9c5;
  border-radius: 8px;
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid #f2e6d8;
  font-size: 1.35rem;
  line-height: 1.4;
}

.info-row:nth-child(even) {
  background: #fffcf8;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 700;
  color: var(--text-light);
}

.info-val {
  color: var(--text-dark);
}

.font-bold {
  font-weight: 800;
  color: #1e130c;
}

.category-highlight {
  font-weight: 800;
  color: #e65100;
}

.exam-date-val {
  font-weight: 800;
  color: #d84315;
}

.exam-time-val {
  font-weight: 700;
  color: #1b5e20;
}

/* Photo and Signature */
.admit-photo-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.admit-photo-box {
  width: 135px;
  height: 165px;
  border: 2px dashed #bcaaa4;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #faf6f0;
  text-align: center;
  padding: 1rem;
  color: #8d6e63;
}

.admit-photo-box i {
  font-size: 4rem;
  color: #d7ccc8;
  margin-bottom: 0.6rem;
}

.admit-photo-box span {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.admit-photo-box small {
  font-size: 0.95rem;
}

.admit-signature-box {
  width: 135px;
  height: 50px;
  border: 1.5px solid #bcaaa4;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
  background: #fff;
}

.admit-signature-box span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
}

.admit-signature-box small {
  font-size: 0.85rem;
  color: #9e9e9e;
}

/* Barcode Stripe */
.admit-barcode-stripe {
  background: #fff;
  border: 1.5px solid #ebd9c5;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  text-align: center;
  margin-bottom: 1.6rem;
}

.barcode-svg-wrap {
  max-width: 320px;
  margin: 0 auto 0.4rem auto;
}

.barcode-text {
  font-family: monospace, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #424242;
}

/* Instructions */
.admit-instructions-box {
  background: #fffbf5;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.8rem;
}

.admit-instructions-box h5 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #bf360c;
  margin-bottom: 0.6rem;
}

.admit-instructions-box ol {
  padding-left: 2rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #4e342e;
  margin: 0;
}

/* Auth Footer */
.admit-auth-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.auth-sign-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-line {
  width: 160px;
  height: 1.5px;
  background: #1e130c;
  margin-bottom: 0.4rem;
}

.auth-sign-col span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.auth-sign-col small {
  font-size: 1.05rem;
  color: var(--text-light);
}

.auth-seal-col {
  display: flex;
  justify-content: center;
}

.official-seal-graphic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed #d84315;
  color: #d84315;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.official-seal-graphic i {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

/* Modal Actions */
.admit-modal-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.btn-print-admit {
  font-size: 1.55rem;
  padding: 1.2rem 3rem;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.3);
}

/* Duplicate Modal Dialog */
.duplicate-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  margin: auto;
}

/* Direct print mount container (Hidden on screen) */
#ram-print-target-container {
  display: none;
}

/* ==========================================================================
   🖨️ RELIABLE PRINT MEDIA STYLES (A4 PORTRAIT ADMIT CARD & RECEIPT PRINTING)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 8mm;
  }

  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* When printing via direct cloned container (Standard Flow) */
  body.is-printing-admit > *:not(#ram-print-target-container),
  body.is-printing-receipt > *:not(#ram-print-target-container) {
    display: none !important;
    visibility: hidden !important;
  }

  body.is-printing-admit #ram-print-target-container,
  body.is-printing-receipt #ram-print-target-container {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  #ram-print-target-container * {
    visibility: visible !important;
  }

  /* Hide buttons/actions inside print container */
  #ram-print-target-container .no-print,
  #ram-print-target-container .admit-modal-actions,
  #ram-print-target-container .admit-urgent-alert,
  #ram-print-target-container .receipt-actions,
  #ram-print-target-container .close-modal-btn,
  #ram-print-target-container button {
    display: none !important;
    visibility: hidden !important;
  }

  /* Cloned Admit Card styling in print */
  #ram-print-target-container .admit-card-print-area {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 6mm 8mm !important;
    border: 2.5px solid #d84315 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #ram-print-target-container .admit-card {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 6mm 8mm !important;
    border: 2.5px solid #d84315 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Cloned Receipt Box styling in print */
  #ram-print-target-container .receipt-card {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 8mm !important;
    border: 2px solid #d84315 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }

  /* Fallback in case browser print is triggered directly (Ctrl+P / Cmd+P) */
  body:not(.is-printing-admit):not(.is-printing-receipt) .ticker-wrap,
  body:not(.is-printing-admit):not(.is-printing-receipt) header,
  body:not(.is-printing-admit):not(.is-printing-receipt) footer,
  body:not(.is-printing-admit):not(.is-printing-receipt) .page-section,
  body:not(.is-printing-admit):not(.is-printing-receipt) .back-to-top,
  body:not(.is-printing-admit):not(.is-printing-receipt) .close-modal-btn,
  body:not(.is-printing-admit):not(.is-printing-receipt) .no-print,
  body:not(.is-printing-admit):not(.is-printing-receipt) .admit-urgent-alert,
  body:not(.is-printing-admit):not(.is-printing-receipt) .admit-modal-actions,
  body:not(.is-printing-admit):not(.is-printing-receipt) #duplicate-alert-modal,
  body:not(.is-printing-admit):not(.is-printing-receipt) #qr-modal {
    display: none !important;
  }

  body:not(.is-printing-admit):not(.is-printing-receipt) .modal-overlay.active {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    background: transparent !important;
    padding: 0 !important;
  }

  body:not(.is-printing-admit):not(.is-printing-receipt) .modal-overlay.active * {
    visibility: visible !important;
  }

  body:not(.is-printing-admit):not(.is-printing-receipt) .modal-overlay:not(.active) {
    display: none !important;
  }

  body:not(.is-printing-admit):not(.is-printing-receipt) .admit-modal-dialog {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body:not(.is-printing-admit):not(.is-printing-receipt) .admit-card-print-area {
    box-shadow: none !important;
    border: 2px solid #d84315 !important;
    padding: 6mm 8mm !important;
    page-break-inside: avoid !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}


