:root {
  --primary-color: #f97316; /* Saffron/Orange */
  --primary-dark: #ea580c;
  --secondary-color: #64748b; /* Slate */
  --foreground: #020617;
  --background: #ffffff;
  --muted: #f8fafc;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 900;
  text-transform: uppercase;
}

.font-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

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

section {
  margin-bottom: 2.5rem;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--primary-color);
  height: 5rem;
  display: flex;
  align-items: center;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-area img {
  height: 4rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.2s;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  height: 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--foreground);
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background-color: black;
  transform: scale(1.05);
}

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

.btn-hero:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.btn-outline {
  border: 1px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-red {
  background-color: #dc2626;
  color: white;
}

.btn-red:hover {
  background-color: #b91c1c;
}

/* Main Hero Image */
.main-hero {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 85vh;
  overflow: hidden;
  background-color: var(--muted);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Hero Section */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-box {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.video-hero-box {
  background-color: var(--foreground);
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-featured-video {
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-radius: calc(var(--radius) / 2);
  overflow: hidden;
}

/* Abstract Om Pattern Simulation */
.hero-box::before {
  content: "ॐ";
  position: absolute;
  top: -10%;
  right: -5%;
  font-size: 30rem;
  opacity: 0.1;
  pointer-events: none;
  font-family: serif;
}

.hero-box h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  font-style: italic;
}

.hero-box p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 28rem;
  opacity: 0.9;
}

.mission-box {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.full-width-mission {
  margin-top: 2.5rem;
  width: 100%;
}

.tagline {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.mission-box h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Events Section */
.events-section {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.event-slide {
  padding: 0 1rem;
  outline: none;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.event-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image-container img {
  transform: scale(1.1);
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
  opacity: 1;
}

.event-info {
  padding: 1.5rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.event-date {
  font-size: 0.8125rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* YouTube Section */
.youtube-section {
  background-color: var(--muted);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
  }
}

.video-slider {
  margin: 0 -1rem;
}

.video-slide {
  padding: 0 1rem;
  outline: none;
}

.slick-prev, .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.slick-prev {
  left: -1.5rem;
}

.slick-next {
  right: -1.5rem;
}

.slick-prev:hover, .slick-next:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.slick-dots {
  bottom: -3rem;
}

.slick-dots li button:before {
  font-size: 10px;
  color: var(--primary-color);
}

.slick-dots li.slick-active button:before {
  color: var(--primary-color);
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: black;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 1.25rem;
  flex: 1;
}

.video-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.video-line {
  height: 4px;
  width: 2rem;
  background: var(--primary-color);
  border-radius: 99px;
}

.video-category {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 0.1em;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Split Grid */
.split-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c2410c;
  margin-bottom: 1.5rem;
}

/* Form */
.form-group {
  margin-bottom: 0.75rem;
}

input, textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
}

textarea {
  height: 5rem;
  resize: none;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Objectives */
.objectives-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.underline {
  width: 5rem;
  height: 0.375rem;
  background: var(--primary-color);
  margin: 0 auto;
}

.objectives-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .objectives-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--muted);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}

.objective-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.objective-item p {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Footer */
footer {
  background-color: var(--foreground);
  color: var(--muted);
  padding: 5rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  color: white;
}

.footer-desc {
  color: rgba(248, 250, 252, 0.6);
  max-width: 24rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(248, 250, 252, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.4);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p span {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 700;
}

.export-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* PHP Video Gallery Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-content {
    padding: 1.25rem;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-container {
    padding: 4rem 0;
    text-align: center;
}

.admin-panel {
    background: white;
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
}

.sub-header {
  padding: 4rem 0;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.sub-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  right: 0;
  width: 12rem;
  padding: 0.5rem;
  background: var(--foreground);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  font-size: 9px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
}

.export-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
