:root{
  /* light theme base colors */
  --light-bg: #ffffff;
  --light-bg-2: #f7f7f9;
  --light-text: #1b2230;
  --light-muted: #555555;
  --light-border: #e6e6ef;
}

/* Body and global */
html.light-scheme,
body.light-scheme{
  color: var(--light-text);
  background: var(--light-bg) !important;
}

/* Sections and dark wrappers become light in light mode */
.light-scheme section,
.light-scheme .section-dark,
.light-scheme .bg-dark,
.light-scheme .section-dark.text-light{
  background: var(--light-bg) !important;
}

/* Generic text classes adjustments */
.light-scheme .text-light,
.light-scheme .text-light p,
.light-scheme .text-light span{
  color: var(--light-text) !important;
}

/* Headings */
.light-scheme h1,
.light-scheme h2,
.light-scheme h3,
.light-scheme h4,
.light-scheme h5,
.light-scheme h6{
  color: #0b1220;
}

/* Lead text and small copy */
.light-scheme p,
.light-scheme .lead{
  color: var(--light-muted);
}

/* Cards, panels, and blur boxes */
.light-scheme .bg-dark-2,
.light-scheme .bg-blur,
.light-scheme .d-ticket,
.light-scheme .soft-shadow{
  background: var(--light-bg-2) !important;
  border-color: var(--light-border) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* Override theme color blocks used as dark backgrounds */
.light-scheme .bg-color,
.light-scheme .bg-color-2{
  background: var(--light-bg-2) !important;
}

/* Borders */
.light-scheme .border-white-op-3,
.light-scheme .border-white-bottom-op-2{
  border-color: var(--light-border) !important;
}

/* Header menus */
.light-scheme #mainmenu ul,
.light-scheme #mainmenu>li ul.mega .sb-menu{
  background: var(--light-bg);
  border: 1px solid var(--light-border);
}
.light-scheme #mainmenu li li a{
  color: var(--light-text);
}

/* Top-level nav links */
.light-scheme #mainmenu>li>a{
  color: var(--light-text);
}
.light-scheme #mainmenu>li>a:hover{
  color: rgba(0,0,0,.7);
}

/* Generic links */
.light-scheme a{ color: #0a58ca; }
.light-scheme a:hover{ color: #084298; }

/* Forms */
.light-scheme .form-underline{
  color: var(--light-text);
  border-bottom-color: rgba(0,0,0,.25);
}
.light-scheme .form-border input[type=text],
.light-scheme .form-border textarea,
.light-scheme .form-border input[type=email],
.light-scheme .form-border input[type=password],
.light-scheme .form-border input[type=date],
.light-scheme .form-border select{
  color: var(--light-text);
  border: 1px solid var(--light-border);
  background: #fff;
}

/* Accordions */
.light-scheme .accordion-section-title{
  color: var(--light-text);
  border-bottom: 1px solid rgba(0,0,0,.2) !important;
}

/* Footer */
.light-scheme footer.section-dark{
  background: var(--light-bg) !important;
  color: var(--light-text) !important;
}
.light-scheme footer a{
  color: var(--light-text);
}

/* Overlays and gradients reduce darkness */
.light-scheme .sw-overlay{ opacity: 0 !important; }
.light-scheme .radial-gradient-color{ opacity: 0 !important; }

/* Hide/par down background images in light mode so white shows through */
.light-scheme .jarallax-img{
  opacity: 0 !important;
}

/* Gradients edges should fade to white */
.light-scheme .de-gradient-edge-top,
.light-scheme .de-gradient-edge-bottom,
.light-scheme .gradient-edge-top,
.light-scheme .gradient-edge-bottom{
  background: linear-gradient(0deg, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0) 100%) !important;
}

/* Text utilities */
.light-scheme .text-light,
.light-scheme .text-light *{
  color: var(--light-text) !important;
}

/* Buttons maintain contrast */
.light-scheme .btn-main{ color: #ffffff; }
.light-scheme .btn-main.btn-line{ color: var(--light-text); border-color: var(--light-border); }
.light-scheme .btn-main.btn-line:hover{ background: var(--light-bg-2); }

/* Tickets text color fixes */
.light-scheme .d-ticket h2,
.light-scheme .d-ticket h4,
.light-scheme .d-ticket .fs-14{ color: var(--light-text); }

/* Header adjustments */
.light-scheme header.transparent{
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}
.light-scheme header .logo-main,
.light-scheme header .logo-scroll,
.light-scheme header .logo-mobile{
  filter: brightness(0);
}

/* Blog and content areas */
.light-scheme .blog-read,
.light-scheme .post-text{
  color: var(--light-text);
}
.light-scheme .blog-read h1,
.light-scheme .blog-read h2,
.light-scheme .blog-read h3,
.light-scheme .blog-read h4{
  color: #0b1220;
}

/* Code blocks and pre */
.light-scheme pre,
.light-scheme code{
  background: var(--light-bg-2);
  color: var(--light-text);
  border: 1px solid var(--light-border);
}

/* Tables */
.light-scheme table{
  color: var(--light-text);
}
.light-scheme table th,
.light-scheme table td{
  border-color: var(--light-border);
}

/* Blockquotes */
.light-scheme blockquote{
  border-left-color: var(--light-border);
  color: var(--light-muted);
}

/* Theme toggle button in light mode */
.light-scheme #theme-toggle{
  border-color: var(--light-border);
  color: var(--light-text);
}
.light-scheme #theme-toggle:hover{
  background: var(--light-bg-2);
}

/* Hero section in light mode - ensure text is visible */
.light-scheme #section-hero{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  position: relative;
}
.light-scheme #section-hero::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  z-index: 1;
}
.light-scheme #section-hero .container,
.light-scheme #section-hero .abs{
  position: relative;
  z-index: 2;
}
.light-scheme #section-hero .text-light,
.light-scheme #section-hero h1,
.light-scheme #section-hero h2,
.light-scheme #section-hero h3,
.light-scheme #section-hero h4,
.light-scheme #section-hero .subtitle{
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Marquee sections in light mode */
.light-scheme .bg-color.text-light,
.light-scheme .bg-color-2.text-light{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}
.light-scheme .bg-color.text-light span,
.light-scheme .bg-color-2.text-light span{
  color: #ffffff !important;
}

/* Cards with hover effects in light mode */
.light-scheme .bg-dark-2.hover-bg-color:hover{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}
.light-scheme .bg-dark-2.hover-bg-color:hover h4,
.light-scheme .bg-dark-2.hover-bg-color:hover p,
.light-scheme .bg-dark-2.hover-bg-color:hover *{
  color: #ffffff !important;
}

/* Subtitle styling in light mode */
.light-scheme .subtitle{
  color: var(--light-muted) !important;
}
.light-scheme #section-hero .subtitle{
  color: rgba(255,255,255,0.9) !important;
}

/* Icons in light mode */
.light-scheme .id-color{
  color: #667eea !important;
}
.light-scheme #section-hero .id-color{
  color: #ffffff !important;
}

/* Buttons in hero section */
.light-scheme #section-hero .btn-main{
  background: #ffffff !important;
  color: #667eea !important;
  border-color: #ffffff !important;
}
.light-scheme #section-hero .btn-main:hover{
  background: rgba(255,255,255,0.9) !important;
  color: #764ba2 !important;
}
.light-scheme #section-hero .btn-main.btn-line{
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
.light-scheme #section-hero .btn-main.btn-line:hover{
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
}

/* Testimonial and special sections */
.light-scheme .bg-dark-2{
  background: var(--light-bg-2) !important;
  border: 1px solid var(--light-border) !important;
}

/* Schedule/Timeline items */
.light-scheme .timeline-item,
.light-scheme .schedule-item{
  background: var(--light-bg-2) !important;
  border-color: var(--light-border) !important;
}

/* FAQ accordion in light mode */
.light-scheme .accordion-section-title{
  background: var(--light-bg-2) !important;
  color: var(--light-text) !important;
}
.light-scheme .accordion-section-title:hover{
  background: var(--light-bg) !important;
}

/* Newsletter section */
.light-scheme .bg-dark.section-dark input[type="email"],
.light-scheme .bg-dark.section-dark input[type="text"]{
  background: #ffffff !important;
  color: var(--light-text) !important;
  border-color: var(--light-border) !important;
}

/* Ensure all h4, h5, h6 in sections are visible */
.light-scheme section h4,
.light-scheme section h5,
.light-scheme section h6{
  color: var(--light-text) !important;
}

/* List items in light mode */
.light-scheme .ul-check li{
  color: var(--light-text) !important;
}
.light-scheme .ul-check li::before{
  color: #667eea !important;
}

/* Hero section video background handling */
.light-scheme #section-hero[data-video-src]{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.light-scheme #section-hero .sw-overlay{
  background: rgba(102, 126, 234, 0.3) !important;
  opacity: 1 !important;
}

/* Image overlays in light mode cards */
.light-scheme .bg-dark-2 .radial-gradient-color{
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.6) 100%) !important;
  opacity: 0.7 !important;
}
.light-scheme .bg-dark-2.hover-bg-color:hover .radial-gradient-color{
  background: radial-gradient(circle, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.9) 100%) !important;
  opacity: 1 !important;
}

/* Testimonial section background */
.light-scheme .bg-dark.section-dark.jarallax{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  position: relative;
}
.light-scheme .bg-dark.section-dark.jarallax::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 1;
}
.light-scheme .bg-dark.section-dark.jarallax .container{
  position: relative;
  z-index: 2;
}
.light-scheme .bg-dark.section-dark.jarallax .text-light,
.light-scheme .bg-dark.section-dark.jarallax h3,
.light-scheme .bg-dark.section-dark.jarallax span{
  color: #ffffff !important;
}

/* Quote icon background */
.light-scheme .bg-color.w-80px{
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
}

/* Newsletter signup section */
.light-scheme .bg-dark.section-dark.jarallax input[type="email"]{
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--light-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.light-scheme .bg-dark.section-dark.jarallax input[type="email"]::placeholder{
  color: var(--light-muted) !important;
}
.light-scheme .bg-dark.section-dark.jarallax .btn.bg-color{
  background: #ffffff !important;
  color: #667eea !important;
}
.light-scheme .bg-dark.section-dark.jarallax .btn.bg-color:hover{
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure all text in sections is readable */
.light-scheme .section-dark.text-light p,
.light-scheme .section-dark.text-light span,
.light-scheme .section-dark.text-light .lead{
  color: var(--light-text) !important;
}

/* Special sections that should keep dark background in light mode */
.light-scheme #section-hero.text-light,
.light-scheme .bg-dark.section-dark.jarallax.text-light{
  /* These sections intentionally have colored backgrounds */
}

/* Card text visibility */
.light-scheme .bg-dark-2 h4,
.light-scheme .bg-dark-2 p{
  color: var(--light-text) !important;
}

/* Schedule/Tickets section */
.light-scheme #section-tickets.jarallax{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.light-scheme #section-tickets.jarallax::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 1;
}
.light-scheme #section-tickets.jarallax .container{
  position: relative;
  z-index: 2;
}
.light-scheme #section-tickets .text-light{
  color: #ffffff !important;
}
