/* ===== SparkoTech Frontend Styles ===== */
* { box-sizing: border-box; }
body {
  font-family: var(--font-family, 'Poppins', sans-serif);
  color: var(--para-color, #555);
  font-size: var(--para-size, 16px);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color, #1a1a2e);
  font-weight: 700;
  font-family: var(--font-family, 'Poppins', sans-serif);
}
h1, .h1 { font-size: var(--heading-size, 38px); }
h2, .h2 { font-size: calc(var(--heading-size, 38px) * 0.84); }
a { text-decoration: none; color: inherit; transition: 0.25s ease; }
img { max-width: 100%; }

.btn-theme {
  background: var(--theme-color, #6f42c1);
  color: #fff !important;
  border: none;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-theme:hover { background: var(--theme-color-dark, #2b1055); color: #fff; }
.btn-outline-theme {
  border: 2px solid var(--theme-color, #6f42c1);
  color: var(--theme-color, #6f42c1) !important;
  padding: 9px 24px;
  border-radius: 50px;
  font-weight: 600;
}
.btn-outline-theme:hover { background: var(--theme-color); color: #fff !important; }
.text-theme { color: var(--theme-color) !important; }
.bg-theme { background: var(--theme-color) !important; }
.section-tag {
  display: inline-block;
  color: var(--theme-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}
.section-tag::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--theme-color), var(--theme-color-dark));
}

/* Topbar */
.topbar { background: var(--theme-color-dark, #1a0a33); color: #fff; font-size: 14px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: #ffd166; }
.topbar-right a { margin-left: 12px; }

/* Header / Nav */
.main-header { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.06); z-index: 1030; }
.navbar-brand img.logo-desktop { width: var(--logo-width, 160px); height: auto; }
.navbar-brand img.logo-mobile { width: var(--mobile-logo-width, 130px); height: auto; }
.navbar-nav .nav-link { font-weight: 600; color: #222 !important; padding: 30px 16px !important; position: relative; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--theme-color) !important; }
.dropdown-menu { border: none; box-shadow: 0 12px 30px rgba(0,0,0,.12); border-radius: 10px; padding: 10px; margin-top: 0; }
.dropdown-item { border-radius: 6px; padding: 10px 14px; font-weight: 500; }
.dropdown-item:hover { background: var(--theme-color); color: #fff; }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; }
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu { display: block; }
  .dropdown-submenu:hover > .dropdown-menu { display: block; }
}

/* Sticky actions */
.sticky-actions { position: fixed; right: 18px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; gap: 12px; }
.sticky-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.call-btn { background: var(--theme-color); animation: pulse 2s infinite; }
.wa-btn { background: #25D366; }
.enquiry-btn { background: #ff7a45; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(111,66,193,.5);} 70%{box-shadow:0 0 0 14px rgba(111,66,193,0);} 100%{box-shadow:0 0 0 0 rgba(111,66,193,0);} }

/* Hero / Slider */
/* Hero slider — responsive via aspect-ratio so the crop stays proportional at every screen size,
   with min/max-height as safety rails. Recommended source image: 1920x800px (2.4:1). See admin
   Home Slider help text for full guidance. */
.hero-slider { overflow: hidden; width: 100%; }
.hero-slider, .hero-slider .carousel, .hero-slider .carousel-inner, .hero-slider .carousel-item { width: 100%; max-width: 100%; }
.hero-slider .slide {
  padding: 110px 0 90px;
  aspect-ratio: 2.4 / 1;
  min-height: 420px;
  max-height: 700px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-slider .slide.slide-image-only { padding: 0; }
.hero-slider .slide.slide-contain { background-size: contain; background-color: var(--theme-color-dark, #2b1055); }
/* No dark overlay/tint on slides - images display exactly as uploaded, per request */
.hero-slider .slide .container { position: relative; z-index: 2; }
.hero-slider h1, .hero-slider p { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-slider .section-tag { text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 5%; opacity: 0.6; }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { opacity: 1; }
@media (max-width: 991px) {
  .hero-slider .slide { aspect-ratio: 16 / 9; min-height: 380px; max-height: 560px; padding: 90px 0 60px; }
}
@media (max-width: 767px) {
  .hero-slider .slide { aspect-ratio: 4 / 3; min-height: 320px; max-height: 460px; padding: 50px 0 40px; }
  .hero-slider h1 { font-size: 1.65rem; }
  .hero-slider .lead { font-size: 0.95rem; }
}

/* Sections */
.section-pad { padding: 80px 0; position: relative; }
.card-service { border: 1px solid #eee; border-radius: 16px; padding: 34px 26px; height: 100%; transition: .35s cubic-bezier(.2,.8,.2,1); background: #fff; position: relative; overflow: hidden; }
.card-service:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.1); border-color: transparent; }
.card-service .icon-box {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  display:flex; align-items:center; justify-content:center; font-size:26px; color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--theme-color) 60%, transparent);
  transition: transform .35s ease;
}
.card-service:hover .icon-box { transform: rotate(-6deg) scale(1.08); }
.card-service .card-media-img { width:100%; height:170px; object-fit:cover; border-radius:14px; margin-bottom:18px; display:block; transition: transform .35s ease; }
.card-service:hover .card-media-img { transform: scale(1.04); }
.card-training .icon-placeholder {
  height:200px; width:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)); color:#fff; font-size:44px;
}
.card-training { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.06); background:#fff; height:100%; transition:.35s; }
.card-training:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.card-training .body { padding: 22px; }
.badge-theme { background: linear-gradient(90deg, var(--theme-color), var(--theme-color-dark)); color:#fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; }

.cta-band { background: linear-gradient(120deg, var(--theme-color), var(--theme-color-dark)); color:#fff; border-radius: 24px; padding: 60px; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,.08); }
.cta-band::before { width:220px; height:220px; top:-90px; right:-60px; }
.cta-band::after { width:160px; height:160px; bottom:-70px; left:-40px; }

/* Decorative floating blobs behind alternating sections for a livelier, more colorful backdrop */
.section-pad.bg-light::before, .section-pad.bg-light::after {
  content:''; position:absolute; border-radius:50%; filter: blur(60px); z-index:0; pointer-events:none;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-color) 22%, transparent), transparent 70%);
  animation: floatBlob 10s ease-in-out infinite;
}
.section-pad.bg-light::before { width:320px; height:320px; top:-80px; left:-100px; }
.section-pad.bg-light::after { width:260px; height:260px; bottom:-90px; right:-80px; animation-delay: -4s; }
.section-pad.bg-light > .container { position: relative; z-index: 1; }
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-16px) scale(1.08); } }
@media (max-width: 767px) { .section-pad.bg-light::before, .section-pad.bg-light::after { display:none; } }

/* Pricing packages */
.pricing-card { background:#fff; border:1px solid #eee; border-radius:20px; padding:36px 30px; position:relative; transition:.35s; height:100%; z-index:1; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.pricing-card.pricing-featured { border:2px solid var(--theme-color); box-shadow: 0 16px 40px rgba(0,0,0,.1); transform: scale(1.03); }
.pricing-card.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-badge { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background: linear-gradient(90deg, var(--theme-color), var(--theme-color-dark)); color:#fff; font-size:12px; font-weight:700; padding:5px 18px; border-radius:20px; white-space:nowrap; }
.pricing-price { display:flex; align-items:baseline; gap:4px; }
.pricing-price .currency { font-size:20px; font-weight:600; color:var(--theme-color); }
.pricing-price .amount { font-size:40px; font-weight:800; color:var(--heading-color); line-height:1; }
.pricing-price .period { font-size:14px; color:#888; margin-left:2px; }
.pricing-features { list-style:none; padding:0; margin:20px 0 0; }
.pricing-features li { padding:8px 0; border-bottom:1px solid #f2f2f2; font-size:14.5px; color:#555; }
.pricing-features li:last-child { border-bottom:none; }
.pricing-features li i { color: var(--theme-color); margin-right:8px; }
.cta-band h2 { color: #fff; }

.gallery-item { border-radius: 14px; overflow: hidden; position: relative; }
.gallery-item img { width:100%; height: 240px; object-fit: cover; transition:.4s; }
.gallery-item:hover img { transform: scale(1.08); }

.faq-accordion .accordion-button { font-weight: 600; }
.faq-accordion .accordion-button:not(.collapsed) { background: color-mix(in srgb, var(--theme-color) 10%, white); color: var(--theme-color); }

.video-thumb { position: relative; border-radius: 14px; overflow:hidden; cursor:pointer; }
.video-thumb img { width:100%; height:220px; object-fit:cover; }
.video-thumb .play-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:44px; color:#fff; background: rgba(0,0,0,.25); }

/* Footer */
.main-footer { background: var(--theme-color-dark, #1a0a33); color: #cfcfe8; }
.main-footer h6 { color:#fff; }
.footer-logo { max-width: 170px; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cfcfe8; }
.footer-links a:hover { color: #ffd166; }
.footer-socials a { display:inline-flex; width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.1); align-items:center; justify-content:center; color:#fff; margin-right:8px; }
.footer-socials a:hover { background: var(--theme-color); }
.footer-bottom { background: rgba(0,0,0,.2); font-size: 14px; }

/* Inner page banner */
.page-banner {
  padding: 70px 0;
  background: linear-gradient(120deg, var(--theme-color-dark), var(--theme-color), var(--theme-color-dark));
  background-size: 200% 200%;
  animation: bannerShift 8s ease infinite;
  color:#fff; text-align:center; position: relative; overflow: hidden;
}
.page-banner h1 { color:#fff; margin-bottom: 6px; position: relative; z-index: 1; }
.page-banner .breadcrumb { position: relative; z-index: 1; }
.page-banner .breadcrumb a { color: #ffd166; }
.page-banner .breadcrumb-item.active { color: #fff; }
@keyframes bannerShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== Scroll-reveal animation system =====
   JS (script.js) automatically tags common elements across every page - homepage and
   inner pages alike - with .reveal, then adds .reveal-in as they scroll into view. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-banner { animation: none; }
  .section-pad.bg-light::before, .section-pad.bg-light::after { animation: none; }
}

@media (max-width: 991px) {
  .navbar-nav .nav-link { padding: 12px 10px !important; }
  .section-pad { padding: 50px 0; }
  .cta-band { padding: 34px; }
}

/* About Us page content blocks */
.about-teaser p:last-child { margin-bottom: 0; }
.page-content .lead { font-size: 1.15rem; color: var(--heading-color); font-weight: 500; }
.about-feature-block {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 24px;
  margin: 24px 0; transition: .3s;
}
.about-feature-block:hover { box-shadow: 0 16px 34px rgba(0,0,0,.08); transform: translateY(-3px); border-color: transparent; }
.about-feature-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--theme-color) 55%, transparent);
}
.about-feature-block h3 { font-size: 20px; margin-bottom: 8px; }
.about-feature-block p { margin-bottom: 0; }
.about-tagline {
  margin-top: 36px; padding: 28px 32px; border-radius: 16px; text-align: center;
  background: linear-gradient(120deg, var(--theme-color), var(--theme-color-dark));
  color: #fff; font-size: 20px; font-weight: 600; line-height: 1.5;
}
@media (max-width: 575px) {
  .about-feature-block { flex-direction: column; }
}
