/* ==========================================================
   Custom CSS — LPK Ken Ichiru Indonesia
   Performance & UX Enhancement | Phase 4
   ========================================================== */

/* ========================
   1. BASE ENHANCEMENTS
   ======================== */

/* Side menu: narrow transparent scrollbar */
.side-menu,
.side-menu2 {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.side-menu::-webkit-scrollbar,
.side-menu2::-webkit-scrollbar {
  width: 4px;
}
.side-menu::-webkit-scrollbar-track,
.side-menu2::-webkit-scrollbar-track {
  background: transparent;
}
.side-menu::-webkit-scrollbar-thumb,
.side-menu2::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}
.side-menu::-webkit-scrollbar-thumb:hover,
.side-menu2::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.3);
}

/* ========================
   SIDE MENU — mirror side-menu2 layout
   ======================== */

/* Override old sidebar-menu styles — use side-menu2 structure */
.side-menu {
  padding: 30px;
}

/* Top bar: logo left + close right */
.side-menu .menu-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.side-menu .menu-btns .logo {
  display: block;
  margin: 0;
}
.side-menu .menu-btns .logo img {
  height: 30px;
}

/* Close button — X mark via pseudo-elements (same as side-menu2) */
.side-menu .close-btn {
  width: 30px;
  height: 30px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  margin: 0;
  padding: 0;
  display: block;
}
.side-menu .close-btn::before,
.side-menu .close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--white);
}
.side-menu .close-btn::before { transform: translate(-50%,-50%) rotate(45deg); }
.side-menu .close-btn::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* Navigation list — match side-menu2 style */
.side-menu > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.side-menu > ul > li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-menu > ul > li > a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  transition: color .2s ease;
}
.side-menu > ul > li > a:hover {
  color: var(--primary-light);
  padding-left: 0;
}

/* Contact section */
.side-menu .menu-contact {
  margin-bottom: 20px;
}
.side-menu .menu-contact span {
  color: var(--gray-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.side-menu .menu-contact .nmbr,
.side-menu .menu-contact .gmail {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin: 3px 0;
}

/* Social + CTA section */
.side-menu .menu-links span {
  color: var(--gray-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}
.side-menu .menu-links .social-icon {
  display: flex;
  gap: 10px;
  margin: 0 0 15px;
}
.side-menu .menu-links .social-icon li a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 14px;
}
.side-menu .menu-links .social-icon li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

/* Contain paint for performance */
section, .vs-section {
  contain: layout style;
}

/* Preloader fade-out */
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ========================
   2. ACCESSIBILITY
   ======================== */
:focus-visible {
  outline: 2px solid var(--primary, #33b8e8);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary, #33b8e8);
  color: #fff;
  padding: 12px 24px;
  z-index: 100000;
  border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode */
@media (forced-colors: active) {
  .ibt-btn {
    border: 2px solid ButtonText;
  }
}

/* ========================
   3. SCROLL ANIMATIONS
   ======================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-left"] {
  transform: translateX(-30px);
}
[data-animate="fade-left"].animated {
  transform: translateX(0);
}
[data-animate="fade-right"] {
  transform: translateX(30px);
}
[data-animate="fade-right"].animated {
  transform: translateX(0);
}
[data-animate="zoom-in"] {
  transform: scale(0.9);
}
[data-animate="zoom-in"].animated {
  transform: scale(1);
}
[data-animate="fade-up"].animated,
[data-animate="fade"].animated {
  transform: translateY(0);
}

/* Stagger delay classes */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ========================
   3b. CARD BASE STYLES
   ======================== */

/* Universal card base — modeled after .job-card */
.product-card,
.service-card,
.article-card,
.featured-card,
.course-card,
.case-study-card,
.benefit-card,
.csr-card,
.volunteer-card {
  background: var(--white, #fff);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-lighter, #e5e7eb);
  position: relative;
}

/* --- Product card specifics --- */
.product-card .icon {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;
}
.product-card .icon img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.product-info h3 a {
  color: inherit;
  text-decoration: none;
}
.product-info h3 a:hover {
  color: var(--primary, #33b8e8);
}
.product-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.product-info .price {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #33b8e8);
  margin-bottom: 0.5rem;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.product-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.badge-bestseller { background: #f59e0b; color: #fff; }
.badge-new { background: #10b981; color: #fff; }
.badge-preorder { background: #6366f1; color: #fff; }
.badge-soldout { background: #94a3b8; color: #fff; }

/* --- Article card specifics --- */
.article-card .icon {
  width: 100%;
  overflow: hidden;
}
.article-card .icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.article-info h3 a { color: inherit; text-decoration: none; }
.article-info h3 a:hover { color: var(--primary, #33b8e8); }
.article-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.article-meta .date {
  font-size: 0.8rem;
  color: var(--gray, #64748b);
}

/* --- Course card specifics --- */
.course-card .icon {
  width: 100%;
  overflow: hidden;
}
.course-card .icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.course-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.course-info h3 a { color: inherit; text-decoration: none; }
.course-info h3 a:hover { color: var(--primary, #33b8e8); }
.course-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.course-meta .duration,
.course-meta .level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full, 20px);
  font-size: 0.8rem;
  font-weight: 500;
  background: #e0f2fe;
  color: #0369a1;
}
.course-info .price {
  font-weight: 700;
  color: var(--primary, #33b8e8);
  font-size: 1rem;
  margin-top: auto;
}

/* --- Case study card specifics --- */
.case-study-card .icon {
  width: 100%;
  overflow: hidden;
}
.case-study-card .icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.case-study-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-study-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.case-study-info h3 a { color: inherit; text-decoration: none; }
.case-study-info h3 a:hover { color: var(--primary, #33b8e8); }
.case-study-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.case-study-tags span {
  padding: 4px 10px;
  background: var(--lighter, #f1f5f9);
  border-radius: var(--radius-full, 20px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray, #64748b);
}

/* --- Service card specifics --- */
.service-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.service-card .icon {
  margin: 0 auto 1.25rem;
}
.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { color: var(--primary, #33b8e8); }
.service-card p {
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- CSR card specifics --- */
.csr-card .icon {
  width: 100%;
  overflow: hidden;
}
.csr-card .icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.csr-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.csr-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.csr-info h3 a { color: inherit; text-decoration: none; }
.csr-info h3 a:hover { color: var(--primary, #33b8e8); }
.csr-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Benefit & Volunteer card specifics --- */
.benefit-card,
.volunteer-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.benefit-card h3,
.volunteer-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.benefit-card p,
.volunteer-card p {
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Card column spacing (all card grids) --- */
.product-card,
.article-card,
.course-card,
.case-study-card,
.csr-card,
.job-card,
.service-card,
.benefit-card,
.volunteer-card {
  margin-bottom: 1.5rem;
}

/* ========================
   4. MICRO-INTERACTIONS
   ======================== */

/* Card hover lift */
.service-card, .blog-card, .team-card, .product-card,
.about-card, .course-card, .article-card, .case-study-card,
.benefit-card, .csr-card, .volunteer-card, .job-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover, .blog-card:hover, .team-card:hover,
.product-card:hover, .course-card:hover, .article-card:hover,
.case-study-card:hover, .benefit-card:hover, .csr-card:hover,
.volunteer-card:hover, .job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: var(--primary, #33b8e8);
}

/* Card image zoom on hover */
.product-card .icon img,
.course-card .icon img,
.case-study-card .icon img,
.article-card .icon img,
.csr-card .icon img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .icon img,
.course-card:hover .icon img,
.case-study-card:hover .icon img,
.article-card:hover .icon img,
.csr-card:hover .icon img {
  transform: scale(1.08);
}

/* Enhanced gradient icon pulse on card hover */
.service-card:hover .icon,
.benefit-card:hover .icon,
.csr-card:hover .icon,
.volunteer-card:hover .icon {
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
}

/* Process step connector line */
@media (min-width: 768px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -8px;
    width: 50%;
    height: 2px;
    background: var(--gray-lighter);
    z-index: 0;
  }
  .process-step:last-child::after { display: none; }
}

/* Enhanced page banner glassmorphism */
.page-banner .page-banner-content,
.page-banner11 .page-banner-content {
  position: relative;
  z-index: 2;
}

/* Stats bar enhanced */
.stats-bar .stat-item,
.fun-fact-sec2 .funfact-content3 {
  position: relative;
}
.stats-bar .stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stats-bar .stat-item:last-child::after,
.fun-fact-sec2 .funfact-content3:last-child::after {
  display: none;
}

/* Featured article enhanced */
.featured-card {
  position: relative;
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.featured-card:hover::before { opacity: 1; }

/* Section title better spacing */
.section-title,
.sec-title {
  position: relative;
}

/* Enhanced sec-title sub-title pill */
.sec-title .sub-title::after {
  display: none;
}

/* Article tags */
.article-tags { margin: 16px 0; }
.article-tags .tag {
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.article-tags .tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========================
   5. COUNTER ENHANCEMENTS
   ======================== */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* ========================
   6. RESPONSIVE BREAKPOINTS
   ======================== */

/* Touch-friendly targets on mobile */
@media (max-width: 991px) {
  .menu-style1 > ul > li > a,
  .ibt-btn,
  .nav-link,
  .footer-link a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile scroll-snap for card carousels */
@media (max-width: 767px) {
  .scroll-snap-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scroll-snap-container::-webkit-scrollbar {
    display: none;
  }
  .scroll-snap-container > * {
    scroll-snap-align: center;
    flex: 0 0 85%;
    max-width: 85%;
  }
}

/* ========================
   7. PERFORMANCE HINTS
   ======================== */
/* Prevent layout shift on images */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy-loaded images placeholder */
img[loading="lazy"] {
  background: linear-gradient(135deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
img[loading="lazy"][src]:not([src=""]) {
  animation: none;
  background: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* WebP fallback signaling */
.no-webp img[data-webp] {
  /* Keep original src */
}

/* ========================
   8. DARK MODE SUPPORT
   ======================== */
[data-theme="dark"] {
  --dark: #f8fafc;
  --dark-2: #e2e8f0;
  --dark-3: #cbd5e1;
  --gray: #94a3b8;
  --gray-light: #64748b;
  --gray-lighter: #334155;
  --white: #0f172a;
  --light: #1e293b;
  --lighter: #1e293b;
}
[data-theme="dark"] body {
  background: #0f172a;
  color: #e2e8f0;
}
[data-theme="dark"] .sticky-active {
  background: rgba(15, 23, 42, 0.95);
}
[data-theme="dark"] p {
  color: #94a3b8;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9;
}

/* ========================
   9. PRINT STYLES
   ======================== */
@media print {
  #preloader, .sticky-active, .vs-header2,
  .hamburger, #scrollBtn,
  .video-modal, .search-popup, .side-menu,
  .mobile-menu-wrapper, .overlay2 {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ========================
   HEADER TOGGLE BUTTONS
   ======================== */

/* Reset old pseudo-element hamburger from style.css */
.menu-toggle::before,
.menu-toggle::after {
  display: none !important;
}

/* Shared toggle button base */
.header-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(0,0,0,.06);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--dark, #1a1a1a);
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}
.header-toggle-btn:hover {
  background: rgba(0,0,0,.1);
}

/* White variant inside vs-header2 (dark header) */
.vs-header2 .header-toggle-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.vs-header2 .header-toggle-btn:hover {
  background: rgba(255,255,255,.22);
}

/* Sticky (light) overrides dark‑header colors */
.sticky-active .header-toggle-btn {
  background: rgba(0,0,0,.06);
  color: var(--dark, #1a1a1a);
}
.sticky-active .header-toggle-btn:hover {
  background: rgba(0,0,0,.1);
}

/* Mobile hamburger — hidden on desktop, visible on mobile */
.hamburger-btn {
  display: none;
}
@media (max-width: 1199.98px) {
  .hamburger-btn {
    display: inline-flex;
  }
}

/* ========================
   MEGAMENU STYLES
   ======================== */
.menu-style1 > ul > li {
  position: relative;
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 200;
}

.mega-menu-dropdown.mega-full {
  left: 0;
  right: 0;
  transform: translateY(10px);
  min-width: auto;
  width: 100vw;
  max-width: 1200px;
  margin-left: calc(-50vw + 50%);
}

.menu-style1 > ul > li:hover > .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-style1 > ul > li:hover > .mega-menu-dropdown.mega-full {
  transform: translateY(0);
}

.mega-menu-inner {
  position: relative;
  z-index: 1;
}

.mega-menu-heading {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark, #1a1a1a);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary, #0d6efd);
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--gray, #555);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
  margin-bottom: 2px;
}

.mega-menu-link:hover {
  background: var(--lighter, #f0f4ff);
  color: var(--primary, #0d6efd);
}

.mega-menu-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--primary, #0d6efd);
  opacity: .7;
}

.mega-menu-link:hover i {
  opacity: 1;
}

.mega-menu-link-title {
  display: block;
  font-weight: 600;
  font-size: .88rem;
}

.mega-menu-link-desc {
  display: block;
  font-size: .78rem;
  color: #8897a9;
  margin-top: 1px;
}

/* Desktop only */
@media (max-width: 1199px) {
  .mega-menu-dropdown {
    display: none !important;
  }
}

/* ========================
   JOB CARD (JS-rendered from external API)
   ======================== */
.job-card {
  background: var(--white, #fff);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-lighter, #e5e7eb);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.job-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary, #33b8e8);
}
.job-card .icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.job-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.job-card:hover .icon img { transform: scale(1.05); }
.job-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.job-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.job-info p {
  flex: 1;
  color: var(--gray, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full, 20px);
  font-size: 0.8rem;
  font-weight: 500;
}
.job-meta .type {
  background: #e0f2fe;
  color: #0369a1;
}
.job-meta .location {
  background: #fef3c7;
  color: #92400e;
}
.job-salary {
  margin-top: 0.75rem;
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ========================================================
   Gallery Styles
   ======================================================== */
.gallery-section { background: #f8fafc; }
.sec-desc {
  max-width: 600px;
  margin: 0.5rem auto 0;
  color: var(--gray, #64748b);
  font-size: 1rem;
}

/* Filter Buttons */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.gallery-filter-btn {
  padding: 8px 24px;
  border: 2px solid var(--gray-lighter, #e5e7eb);
  border-radius: var(--radius-full, 50px);
  background: #fff;
  color: var(--dark, #1e293b);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-filter-btn:hover {
  border-color: var(--primary, #33b8e8);
  color: var(--primary, #33b8e8);
}
.gallery-filter-btn.active {
  background: var(--primary, #33b8e8);
  border-color: var(--primary, #33b8e8);
  color: #fff;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Gallery Card */
.gallery-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.gallery-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-img img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-overlay { opacity: 1; pointer-events: auto; }
.gallery-zoom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark, #1e293b);
  font-size: 1.2rem;
  text-decoration: none;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-zoom { transform: scale(1); }
.gallery-zoom:hover {
  background: var(--primary, #33b8e8);
  color: #fff;
}
.gallery-info {
  padding: 1rem 1.25rem;
}
.gallery-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark, #1e293b);
}
.gallery-info p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--gray, #64748b);
  line-height: 1.5;
}
.gallery-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full, 20px);
  background: #f1f5f9;
  color: var(--gray-dark, #475569);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: #fff;
  font-size: 1rem;
  margin-top: 12px;
  font-weight: 500;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Hero Slider — Soliloquy-style
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide */
.hero-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.hero-slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide transition */
.hero-slider[data-transition="slide"] .hero-slider-slide {
  transition: transform 0.6s ease, opacity 0.6s ease, visibility 0.6s ease;
  transform: translateX(100%);
}
.hero-slider[data-transition="slide"] .hero-slider-slide.active {
  transform: translateX(0);
}
.hero-slider[data-transition="slide"] .hero-slider-slide.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

/* Zoom transition */
.hero-slider[data-transition="zoom"] .hero-slider-slide {
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  transform: scale(1.1);
}
.hero-slider[data-transition="zoom"] .hero-slider-slide.active {
  transform: scale(1);
}

/* Background image */
.hero-slider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ken Burns */
.hero-slider-slide[data-kenburns="true"] .hero-slider-bg {
  animation: sliderKenburns 20s ease infinite alternate;
}

@keyframes sliderKenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.12) translate(1%, 0%); }
}

/* Overlay */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Content */
.hero-slider-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 120px 15px 60px;
}

.hero-slider-text {
  max-width: 800px;
}

.hero-slider-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slider-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-slider-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
}

/* CTA Buttons */
.hero-slider-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-slider-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full, 9999px);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}

.hero-slider-btn-primary {
  background: transparent;
  color: var(--primary, #33b8e8);
  border-color: var(--primary, #33b8e8);
}
.hero-slider-btn-primary:hover {
  background: var(--primary, #33b8e8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-slider-btn-outline {
  background: transparent;
  color: var(--primary, #33b8e8);
  border-color: var(--primary, #33b8e8);
}
.hero-slider-btn-outline:hover {
  background: var(--primary, #33b8e8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-slider-btn-rounded {
  background: transparent;
  color: var(--primary, #33b8e8);
  border-color: var(--primary, #33b8e8);
  border-radius: var(--radius-full, 9999px);
}
.hero-slider-btn-rounded:hover {
  background: var(--primary, #33b8e8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-slider-btn-glow {
  background: transparent;
  color: var(--primary, #33b8e8);
  border-color: var(--primary, #33b8e8);
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 0 20px rgba(51,184,232,0.3);
}
.hero-slider-btn-glow:hover {
  background: var(--primary, #33b8e8);
  color: #fff;
  box-shadow: 0 0 35px rgba(51,184,232,0.5);
  transform: translateY(-2px);
}

/* Navigation Arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}
.hero-slider:hover .hero-slider-arrow {
  opacity: 1;
}
.hero-slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}
.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

/* Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-slider-dot.active,
.hero-slider-dot:hover {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* Progress Bar */
.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.hero-slider-progress-bar {
  height: 100%;
  background: var(--primary-color, #4f46e5);
  width: 0;
  transition: width linear;
}

/* Text Animations */
.hero-slider-slide.active .hero-slider-text.anim-fadeInUp {
  animation: sliderFadeInUp 0.8s ease forwards;
}
.hero-slider-slide.active .hero-slider-text.anim-fadeInDown {
  animation: sliderFadeInDown 0.8s ease forwards;
}
.hero-slider-slide.active .hero-slider-text.anim-fadeInLeft {
  animation: sliderFadeInLeft 0.8s ease forwards;
}
.hero-slider-slide.active .hero-slider-text.anim-fadeInRight {
  animation: sliderFadeInRight 0.8s ease forwards;
}
.hero-slider-slide.active .hero-slider-text.anim-zoomIn {
  animation: sliderZoomIn 0.8s ease forwards;
}
.hero-slider-slide:not(.active) .hero-slider-text {
  opacity: 0;
}

@keyframes sliderFadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sliderFadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sliderFadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes sliderFadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes sliderZoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slider-arrow { display: none; }
  .hero-slider-content { padding: 100px 15px 50px; }
  .hero-slider-title { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .hero-slider-subtitle { font-size: 1rem; }
  .hero-slider-btn { padding: 12px 24px; font-size: 14px; }
  .hero-slider-dots { bottom: 16px; gap: 8px; }
  .hero-slider-dot { width: 10px; height: 10px; }
}


