/* ============================================================
   SHREE CLASSES  •  MASTER STYLESHEET
   Orange + White + Black Theme
   Updated for 2026 Homepage Redesign
   ============================================================ */


/* ------------------------------------------------------------
   1. BRAND ORANGE PALETTE
   ------------------------------------------------------------ */
:root {
  --primary-50: #fff4ec;
  --primary-100: #ffe4d0;
  --primary-200: #ffc9a1;
  --primary-300: #ffa96d;
  --primary-400: #ff8a3a;
  --primary-500: #e96405;
  --primary-600: #c45002;
  --primary-700: #a04502;
  --primary-800: #7c3501;
  --primary-900: #4f2000;
  --primary-950: #341400;

  --dark-900: #111827;
  --dark-950: #030712;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
}


/* ------------------------------------------------------------
   2. TAILWIND-LIKE PRIMARY TEXT HELPERS
   ------------------------------------------------------------ */
.text-primary-50 {
  color: var(--primary-50) !important;
}

.text-primary-100 {
  color: var(--primary-100) !important;
}

.text-primary-200 {
  color: var(--primary-200) !important;
}

.text-primary-300 {
  color: var(--primary-300) !important;
}

.text-primary-400 {
  color: var(--primary-400) !important;
}

.text-primary-500 {
  color: var(--primary-500) !important;
}

.text-primary-600 {
  color: var(--primary-600) !important;
}

.text-primary-700 {
  color: var(--primary-700) !important;
}

.text-primary-800 {
  color: var(--primary-800) !important;
}

.text-primary-900 {
  color: var(--primary-900) !important;
}

.text-primary-950 {
  color: var(--primary-950) !important;
}


/* ------------------------------------------------------------
   3. TAILWIND-LIKE PRIMARY BACKGROUND HELPERS
   ------------------------------------------------------------ */
.bg-primary-50 {
  background: var(--primary-50) !important;
}

.bg-primary-100 {
  background: var(--primary-100) !important;
}

.bg-primary-200 {
  background: var(--primary-200) !important;
}

.bg-primary-300 {
  background: var(--primary-300) !important;
}

.bg-primary-400 {
  background: var(--primary-400) !important;
}

.bg-primary-500 {
  background: var(--primary-500) !important;
}

.bg-primary-600 {
  background: var(--primary-600) !important;
}

.bg-primary-700 {
  background: var(--primary-700) !important;
}

.bg-primary-800 {
  background: var(--primary-800) !important;
}

.bg-primary-900 {
  background: var(--primary-900) !important;
}

.bg-primary-950 {
  background: var(--primary-950) !important;
}


/* ------------------------------------------------------------
   4. BORDER HELPERS
   ------------------------------------------------------------ */
.border-primary-50 {
  border-color: var(--primary-50) !important;
}

.border-primary-100 {
  border-color: var(--primary-100) !important;
}

.border-primary-200 {
  border-color: var(--primary-200) !important;
}

.border-primary-300 {
  border-color: var(--primary-300) !important;
}

.border-primary-400 {
  border-color: var(--primary-400) !important;
}

.border-primary-500 {
  border-color: var(--primary-500) !important;
}

.border-primary-600 {
  border-color: var(--primary-600) !important;
}


/* ------------------------------------------------------------
   5. GRADIENT HELPERS FOR CUSTOM PRIMARY COLORS
   Tailwind CDN does not know custom primary palette,
   so we define all used classes manually.
   ------------------------------------------------------------ */
.from-primary-50 {
  --tw-gradient-from: var(--primary-50);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 244, 236, 0));
}

.from-primary-100 {
  --tw-gradient-from: var(--primary-100);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 228, 208, 0));
}

.from-primary-500 {
  --tw-gradient-from: var(--primary-500);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(233, 100, 5, 0));
}

.from-primary-600 {
  --tw-gradient-from: var(--primary-600);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(196, 80, 2, 0));
}

.from-primary-700 {
  --tw-gradient-from: var(--primary-700);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(160, 69, 2, 0));
}

.from-primary-800 {
  --tw-gradient-from: var(--primary-800);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 53, 1, 0));
}

.from-primary-900 {
  --tw-gradient-from: var(--primary-900);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 32, 0, 0));
}

.from-primary-950 {
  --tw-gradient-from: var(--primary-950);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(52, 20, 0, 0));
}

.via-primary-400 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-400), var(--tw-gradient-to, rgba(255, 138, 58, 0));
}

.via-primary-500 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-500), var(--tw-gradient-to, rgba(233, 100, 5, 0));
}

.via-primary-600 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-600), var(--tw-gradient-to, rgba(196, 80, 2, 0));
}

.via-primary-700 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-700), var(--tw-gradient-to, rgba(160, 69, 2, 0));
}

.via-primary-800 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-800), var(--tw-gradient-to, rgba(124, 53, 1, 0));
}

.via-primary-900 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-900), var(--tw-gradient-to, rgba(79, 32, 0, 0));
}

.via-primary-950 {
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-950), var(--tw-gradient-to, rgba(52, 20, 0, 0));
}

.to-primary-50 {
  --tw-gradient-to: var(--primary-50);
}

.to-primary-100 {
  --tw-gradient-to: var(--primary-100);
}

.to-primary-500 {
  --tw-gradient-to: var(--primary-500);
}

.to-primary-600 {
  --tw-gradient-to: var(--primary-600);
}

.to-primary-700 {
  --tw-gradient-to: var(--primary-700);
}

.to-primary-800 {
  --tw-gradient-to: var(--primary-800);
}

.to-primary-900 {
  --tw-gradient-to: var(--primary-900);
}

.to-primary-950 {
  --tw-gradient-to: var(--primary-950);
}


/* ------------------------------------------------------------
   6. GLOBAL BASE
   ------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: #f9fafb;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--primary-200);
  color: var(--primary-950);
}


/* ------------------------------------------------------------
   7. HEADER / NAVBAR
   ------------------------------------------------------------ */
header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

header .max-w-7xl {
  min-height: 82px;
}

header nav a {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

header nav a:hover {
  color: var(--primary-600) !important;
}

header .bg-primary-600 {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700)) !important;
}

header .bg-primary-600:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700)) !important;
}

header .bg-gray-800 {
  background: linear-gradient(135deg, #111827, #030712) !important;
}

header .bg-gray-800:hover {
  background: #000000 !important;
}


/* ------------------------------------------------------------
   8. MOBILE MENU
   ------------------------------------------------------------ */
#mobileMenu {
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  z-index: 60;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobileMenu.open {
  display: block !important;
  max-height: 520px;
}

#mobileMenu a {
  font-weight: 600;
  color: #374151;
}

#mobileMenu a:hover {
  color: var(--primary-600);
}

#mobileMenu .cta-btn {
  display: block;
  width: 100%;
  border-radius: 1.7rem;
  padding: 0.75rem 0;
  margin-top: 0.65rem;
  font-weight: 700;
  text-align: center;
}

#mobileMenu .cta-btn.bg-primary-600 {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700)) !important;
}

#mobileMenu .cta-btn.bg-gray-800 {
  background: linear-gradient(135deg, #111827, #030712) !important;
}


/* ------------------------------------------------------------
   9. SECTIONS
   ------------------------------------------------------------ */
.section {
  padding: 6.5rem 1.5rem;
}

.section.alt {
  background: linear-gradient(180deg, #fff7f0 0%, #ffffff 100%);
}

.section h2 {
  letter-spacing: -0.035em;
}


/* ------------------------------------------------------------
   10. HERO
   ------------------------------------------------------------ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    135deg,
    rgba(233, 100, 5, 0.9) 0%,
    rgba(196, 80, 2, 0.82) 42%,
    rgba(52, 20, 0, 0.82) 100%
  );
}

section.relative.min-h-screen {
  background: linear-gradient(
    135deg,
    var(--primary-950) 0%,
    var(--primary-900) 42%,
    var(--primary-600) 100%
  ) !important;
}

section.relative.min-h-screen .hero-title,
section.relative.min-h-screen .hero-subtext,
section.relative.min-h-screen p,
section.relative.min-h-screen h1,
section.relative.min-h-screen h2 {
  color: #ffffff;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-subtext {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

section.relative.min-h-screen .text-primary-100 {
  color: var(--primary-100) !important;
}

section.relative.min-h-screen .text-primary-200 {
  color: var(--primary-200) !important;
}

section.relative.min-h-screen .bg-white\/15 {
  background: rgba(255, 255, 255, 0.15) !important;
}

section.relative.min-h-screen .border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

section.relative.min-h-screen .backdrop-blur-sm {
  backdrop-filter: blur(8px);
}


/* ------------------------------------------------------------
   11. ADMISSION BANNER
   ------------------------------------------------------------ */
.bg-gradient-to-r.from-primary-600 {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-500) 45%,
    var(--primary-700) 100%
  ) !important;
}

.bg-gradient-to-r.from-primary-600 h2,
.bg-gradient-to-r.from-primary-600 p {
  color: #ffffff !important;
}

.bg-gradient-to-r.from-primary-600 .bg-white {
  background: #ffffff !important;
  color: var(--primary-700) !important;
}

.bg-gradient-to-r.from-primary-600 .bg-gray-900 {
  background: #111827 !important;
  color: #ffffff !important;
}

.bg-gradient-to-r.from-primary-600 .bg-gray-900:hover {
  background: #030712 !important;
}


/* ------------------------------------------------------------
   12. EXAM PORTAL BANNER
   ------------------------------------------------------------ */
#exam-portal-banner {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(
    135deg,
    var(--primary-950) 0%,
    var(--primary-900) 50%,
    var(--primary-600) 100%
  ) !important;
  color: #ffffff !important;
}

#exam-portal-banner h2,
#exam-portal-banner p,
#exam-portal-banner .text-4xl,
#exam-portal-banner .text-lg {
  color: #ffffff !important;
}

#exam-portal-banner .text-primary-100,
#exam-portal-banner .text-primary-200 {
  color: var(--primary-100) !important;
}

#exam-portal-banner .bg-white\/20 {
  background: rgba(255, 255, 255, 0.16) !important;
}

#exam-portal-banner .fa-laptop-code {
  color: var(--primary-100) !important;
}

#exam-portal-banner .fa-tags,
#exam-portal-banner .fa-video,
#exam-portal-banner .fa-palette,
#exam-portal-banner .fa-file-pdf {
  color: var(--primary-200) !important;
}

#exam-portal-banner a.inline-flex.items-center {
  background: #ffffff !important;
  color: var(--primary-700) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

#exam-portal-banner a.inline-flex.items-center:hover {
  background: var(--primary-50) !important;
  transform: translateY(-3px) scale(1.02);
}


/* ------------------------------------------------------------
   13. CARDS
   ------------------------------------------------------------ */
.course-card,
.offering-card,
#courses .bg-white,
#location .bg-white {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.offering-card:hover,
#courses .bg-white:hover,
#location .bg-white:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(79, 32, 0, 0.12);
}

#courses .bg-white,
#location .bg-white {
  box-shadow: 0 18px 45px rgba(79, 32, 0, 0.08);
}

.offering-card {
  background: #ffffff !important;
}


/* ------------------------------------------------------------
   14. ICON CIRCLE
   ------------------------------------------------------------ */
.icon-circle {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.icon-circle > i {
  position: static !important;
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}


/* ------------------------------------------------------------
   15. LOCATION SECTION
   ------------------------------------------------------------ */
#location iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

#location .bg-white {
  background: #ffffff !important;
}

#location a.bg-primary-600 {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700)) !important;
}

#location a.bg-primary-600:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700)) !important;
}

#location a.bg-gray-900 {
  background: #111827 !important;
}

#location a.bg-gray-900:hover {
  background: #030712 !important;
}


/* ------------------------------------------------------------
   16. CONTACT SECTION
   ------------------------------------------------------------ */
#contact {
  background: var(--primary-950) !important;
}

#contact .absolute.inset-0.bg-gradient-to-br {
  background: linear-gradient(
    135deg,
    #030712 0%,
    var(--primary-950) 45%,
    var(--primary-800) 100%
  ) !important;
}

#contact h2,
#contact h3,
#contact p {
  color: #ffffff;
}

#contact .text-primary-100 {
  color: var(--primary-100) !important;
}

#contact .text-primary-200 {
  color: var(--primary-200) !important;
}

#contact .text-primary-300 {
  color: var(--primary-300) !important;
}

#contact .bg-white\/15 {
  background: rgba(255, 255, 255, 0.14) !important;
}

#contact .border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2) !important;
}


/* ------------------------------------------------------------
   17. CONTACT FORM
   ------------------------------------------------------------ */
.contact-form {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--primary-100);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(233, 100, 5, 0.16);
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
}

.field {
  background: #ffffff;
  color: var(--primary-950);
  border: 1px solid var(--primary-100);
}

.field::placeholder {
  color: #9ca3af;
}

.btn-orange {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}


/* ------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------ */
footer {
  background: #030712 !important;
}

.footer-btn {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-600);
  border-radius: 9999px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.footer-btn:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   19. WHATSAPP FLOATING BUTTON
   ------------------------------------------------------------ */
.fixed.bottom-6.right-6.bg-green-500 {
  background: #10b981 !important;
}

.fixed.bottom-6.right-6.bg-green-500:hover {
  background: #059669 !important;
}


/* ------------------------------------------------------------
   20. COOKIE MODAL
   ------------------------------------------------------------ */
@keyframes modal-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.animate-modal-pop {
  animation: modal-pop 0.35s ease-out both;
}

#cookieModal {
  animation: modal-pop 0.35s ease-out both;
}

#acceptCookieBtn {
  background: var(--primary-600) !important;
}

#acceptCookieBtn:hover {
  background: var(--primary-700) !important;
}


/* ------------------------------------------------------------
   21. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.95;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

@keyframes float-1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(10px, -10px) rotate(10deg);
  }

  66% {
    transform: translate(-5px, 5px) rotate(-5deg);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-8px, 8px) rotate(-8deg);
  }

  66% {
    transform: translate(4px, -4px) rotate(4deg);
  }
}

@keyframes float-3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(12px, 0) rotate(15deg);
  }

  66% {
    transform: translate(-6px, 0) rotate(-7deg);
  }
}

@keyframes float-4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(0, 10px) rotate(-10deg);
  }

  66% {
    transform: translate(0, -5px) rotate(5deg);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s both ease-out;
}

.animate-fade-in-up.delay,
.animate-fade-in-up.delay-200 {
  animation-delay: 0.25s;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s both ease-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s both ease-out;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2.4s infinite both;
}

.animate-pulse-whatsapp {
  animation: pulse-whatsapp 2.5s infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite ease-in-out;
}

#exam-portal-banner .animate-float-1 {
  animation: float-1 8s ease-in-out infinite;
}

#exam-portal-banner .animate-float-2 {
  animation: float-2 7s ease-in-out infinite;
}

#exam-portal-banner .animate-float-3 {
  animation: float-3 9s ease-in-out infinite;
}

#exam-portal-banner .animate-float-4 {
  animation: float-4 6s ease-in-out infinite;
}


/* ------------------------------------------------------------
   22. RESPONSIVE FIXES
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  header nav {
    gap: 1rem;
  }

  header nav a {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
  }
}

@media (max-width: 768px) {
  header .max-w-7xl {
    min-height: 72px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  #mobileMenu {
    top: 72px;
  }

  .section {
    padding: 4.75rem 1rem;
  }

  section.relative.min-h-screen {
    padding-top: 7rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 4rem);
    text-align: center;
  }

  .hero-subtext {
    text-align: center;
  }

  section.relative.min-h-screen .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }

  #location iframe {
    min-height: 340px;
    height: 340px;
  }
}

@media (max-width: 640px) {
  header .text-2xl,
  header .text-3xl {
    font-size: 1.45rem !important;
  }

  header .w-11 {
    width: 2.6rem;
  }

  header .h-11 {
    height: 2.6rem;
  }

  .hero-title {
    line-height: 1.12;
  }

  .hero-subtext {
    font-size: 1.08rem;
  }

  .section h2 {
    font-size: 2.2rem !important;
    line-height: 1.15;
  }

  .bg-gradient-to-r.from-primary-600 {
    border-radius: 1.5rem !important;
  }

  #contact .p-10 {
    padding: 1.5rem !important;
  }

  .fixed.bottom-6.right-6 {
    bottom: 1.2rem !important;
    right: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 1rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .icon-circle {
    width: 4.5rem;
    height: 4.5rem;
  }

  #location iframe {
    min-height: 300px;
    height: 300px;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .section h2 {
    font-size: 1.9rem !important;
  }
}



/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-filter,
.gallery-year-filter {
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--primary-800);
  border: 1px solid var(--primary-100);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(79, 32, 0, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-filter:hover,
.gallery-year-filter:hover {
  transform: translateY(-2px);
  background: var(--primary-50);
  box-shadow: 0 14px 32px rgba(79, 32, 0, 0.12);
}

.gallery-filter.active-filter,
.gallery-year-filter.active-year-filter {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  border-color: var(--primary-600);
}

.gallery-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 18px 45px rgba(79, 32, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(79, 32, 0, 0.14);
}

.gallery-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), #ffffff);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback placeholder when image is missing */
.gallery-image-wrap::before {
  content: "\f03e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-300);
  font-size: 4rem;
  z-index: 0;
}

.gallery-image-wrap img {
  position: relative;
  z-index: 1;
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-content {
  padding: 1.6rem;
}

.gallery-content h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-800);
  margin-bottom: 0.7rem;
}

.gallery-content p {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.gallery-meta i {
  color: var(--primary-600);
  margin-right: 0.3rem;
}

.gallery-view-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: 9999px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(79, 32, 0, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(79, 32, 0, 0.24);
}

@media (max-width: 640px) {
  .gallery-image-wrap {
    height: 220px;
  }

  .gallery-filter,
  .gallery-year-filter {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   EVENT DETAILS PAGE
   ============================================================ */

/* Smaller featured cover image */
.event-cover-card {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 20px 55px rgba(79, 32, 0, 0.12);
}

.event-cover-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.event-cover-card:hover .event-cover-img {
  transform: scale(1.02);
}

/* Custom uploaded videos */
.event-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.event-video-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 20px 55px rgba(79, 32, 0, 0.12);
}

.event-video-card video {
  width: 100%;
  max-height: 560px;
  background: #000000;
  display: block;
}

.event-video-caption {
  padding: 1rem 1.25rem;
  color: #4b5563;
  font-weight: 700;
  background: #ffffff;
}

/* Photo masonry grid */
.event-photo-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.event-photo-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 18px 45px rgba(79, 32, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.event-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(79, 32, 0, 0.14);
}

.event-photo-img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.event-photo-card:hover .event-photo-img {
  transform: scale(1.03);
}

.event-photo-caption {
  padding: 1rem 1.2rem;
  color: #4b5563;
  font-weight: 700;
  background: #ffffff;
}

/* Image lightbox */
.event-image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.event-image-modal.hidden {
  display: none;
}

.event-image-modal-img {
  max-width: 96vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.event-image-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--primary-700);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, background 0.22s ease;
}

.event-image-modal-close:hover {
  transform: scale(1.05);
  background: var(--primary-50);
}

/* Responsive */
@media (max-width: 1024px) {
  .event-photo-grid {
    column-count: 2;
  }

  .event-cover-img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .event-cover-img {
    height: 280px;
  }

  .event-video-card video {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .event-photo-grid {
    column-count: 1;
  }

  .event-cover-img {
    height: 220px;
  }

  .event-video-grid {
    gap: 1.4rem;
  }

  .event-image-modal {
    padding: 1rem;
  }

  .event-image-modal-close {
    top: 1rem;
    right: 1rem;
  }
}