:root {
  --ace-primary: var(--wse-primary, #281F55);
  --ace-secondary: var(--wse-accent, #03A680);
  --ace-accent: var(--wse-accent, #03A680);
  --ace-dark: var(--wse-primary, #281F55);
  --ace-light: var(--wse-light, #F3FFFD);
  --ace-gradient: linear-gradient(135deg, #050a30 0%, #004c6d 55%, #10b981 100%);
}

body { font-family: 'Poppins', 'Segoe UI', sans-serif; color: #333; }
.site-main-header { background: #fff; border-bottom: 1px solid #e8eef5; z-index: 1030; }
.main-menu a { color: var(--ace-dark); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.main-menu a:hover, .main-menu .active > a { color: var(--ace-secondary); }
.main-menu a .nav-icon { font-size: 1.05rem; line-height: 1; color: var(--wse-accent, #03A680); }
.main-menu .active > a .nav-icon { color: var(--wse-accent, #03A680); }
.dropdown-menu .dropdown-item { display: flex; align-items: center; gap: 8px; }
.dropdown-menu .dropdown-item .nav-icon { font-size: 1rem; color: var(--wse-accent, #03A680); min-width: 1.1rem; }
.dropdown-mega-menu .dropdown-item .nav-icon { font-size: 0.95rem; }
.mobile-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #333; text-decoration: none; }
.mobile-nav-link .nav-icon { font-size: 1.15rem; color: var(--wse-accent, #03A680); min-width: 1.25rem; }
.mobile-nav-link:hover { background: var(--wse-light, #F3FFFD); color: var(--wse-primary, #281F55); }
.offcanvas .accordion-button { display: flex; align-items: center; gap: 8px; }
.offcanvas .accordion-button .nav-icon { color: var(--wse-accent, #03A680); }
.site-nav-cta { background: var(--ace-secondary); color: #fff !important; padding: 8px 18px; border-radius: 6px; font-weight: 600; }
.site-nav-login { color: var(--ace-primary); font-weight: 600; }

.hero-aceit {
  background: var(--ace-gradient);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-aceit::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  height: 160%;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-aceit h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.section-title { font-weight: 700; color: var(--ace-primary); margin-bottom: 1.5rem; }
.section-alt { background: var(--ace-light); }
.about-page .section-alt,
.home-page .section-alt { background: var(--wse-light, #F3FFFD); }

.service-card, .product-card, .expertise-card {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}
.service-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(40,31,85,0.12); }
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff; background: var(--ace-gradient);
}

.clients-scroll-wrap { overflow: hidden; background: #fff; padding: 2rem 0; }
.clients-scroll {
  display: flex; gap: 3rem; animation: scroll-logos 30s linear infinite;
  width: max-content;
}
.clients-scroll:hover { animation-play-state: paused; }
.client-logo-item img { max-height: 56px; max-width: 140px; object-fit: contain; filter: grayscale(30%); opacity: 0.85; }
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.page-hero {
  background: var(--ace-light);
  padding: 2.5rem 0;
  border-bottom: 1px solid #e8eef5;
  color: var(--wse-primary, #281f55);
}
.page-hero h1 {
  color: var(--wse-primary, #281f55);
  letter-spacing: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
}
/* Inner pages: avoid Techex h2 display compression (letter-spacing: -3px) */
.page-hero h2,
.py-5 h2,
.search-page-content h2 {
  letter-spacing: 0;
  font-size: inherit;
  line-height: 1.35;
}
.page-hero p,
.page-hero .text-muted {
  color: #4a5568 !important;
  opacity: 1;
}
.page-hero a {
  color: var(--wse-accent, #03a680);
}
.breadcrumb { margin-bottom: 0; }

.course-card-modern { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.course-card-thumb {
  height: 160px;
  overflow: hidden;
  background: #e8eef5;
  position: relative;
}
.course-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card-icon-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wse-accent, #03a680);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.course-card-title-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(3, 166, 128, 0.12);
  color: var(--wse-accent, #03a680);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.course-card-title-icon .bi,
.course-card-icon-badge .bi {
  line-height: 1;
}
.course-card-modern .card-title {
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.course-card-pricing {
  margin: 0.5rem 0 0.75rem;
}
.course-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 2px 0;
}
.course-price-label {
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
}
.course-price-value {
  font-weight: 700;
  color: #281f55;
  text-align: right;
}
.course-price-original {
  text-decoration: line-through;
  color: #dc3545 !important;
  font-weight: 600;
}
.course-price-offer {
  color: var(--wse-accent, #03a680) !important;
  font-size: 0.95rem;
}
.course-detail-hero-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--wse-accent, #03a680);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.course-detail-hero-icon .bi {
  line-height: 1;
}

/* Course listing thumbnails: stable ratio on mobile */
@media (max-width: 767.98px) {
  .course-card-thumb {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .course-card-thumb img {
    display: block;
  }
}

/* Course details hero image: responsive height */
.course-detail-hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: clamp(220px, 45vw, 420px);
}

/* Legacy footer (if used elsewhere) */
.site-footer-dark { background: var(--ace-dark); color: #b8c5d6; }
.site-footer-dark a { color: #dce6f2; text-decoration: none; }
.site-footer-dark a:hover { color: var(--wse-highlight, #7cdec7); }
.site-footer-dark h5 { color: #fff; }

/* WSE-style footer */
:root {
  --footer-teal: #26a69a;
  --footer-teal-dark: #1e9689;
  --footer-dark: #1a242f;
  --footer-dark-deco: rgba(38, 166, 154, 0.08);
}

.footer-cta-bar {
  background: var(--footer-teal);
  padding: 2.25rem 0;
}
.footer-cta-title {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
}
.btn-footer-cta-outline {
  color: #fff !important;
  border: 2px solid #fff !important;
  background: transparent !important;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s;
}
.btn-footer-cta-outline:hover {
  background: #fff !important;
  color: var(--footer-teal) !important;
}

.site-footer-wse {
  position: relative;
  background: var(--footer-dark);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  margin-top: 0;
}
.footer-wse-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 40%, var(--footer-dark-deco) 40%, var(--footer-dark-deco) 42%, transparent 42%),
    linear-gradient(125deg, transparent 55%, rgba(38, 166, 154, 0.06) 55%, rgba(38, 166, 154, 0.06) 58%, transparent 58%),
    linear-gradient(135deg, transparent 70%, rgba(38, 166, 154, 0.05) 70%, rgba(38, 166, 154, 0.05) 73%, transparent 73%);
  opacity: 1;
}
.site-footer-wse .container { z-index: 1; }

.footer-wse-logo img {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-wse-about {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
  max-width: 340px;
}
.footer-wse-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-wse-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.footer-wse-social a:hover {
  background: var(--footer-teal);
  border-color: var(--footer-teal);
  color: #fff;
}
.footer-social-placeholder { cursor: default; opacity: 0.85; }
.footer-social-placeholder:hover { opacity: 1; }

.footer-wse-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-wse-links li { margin-bottom: 0.55rem; }
.footer-wse-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  transition: color 0.2s;
}
.footer-wse-links a i {
  color: var(--footer-teal);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.footer-wse-links a:hover { color: var(--footer-teal); }

.footer-wse-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-wse-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--footer-teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.footer-wse-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.footer-wse-contact a:hover { color: var(--footer-teal); }

.footer-wse-bottom {
  background: var(--footer-teal);
  color: #fff;
}
.footer-wse-copy,
.footer-wse-legal {
  font-size: 0.85rem;
  color: #fff;
}
.footer-wse-legal a {
  color: #fff;
  text-decoration: none;
}
.footer-wse-legal a:hover { text-decoration: underline; }
.footer-wse-sep { margin: 0 0.35rem; opacity: 0.85; }

.footer-wa-float {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.footer-wa-float:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.footer-book-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1035;
  width: 48px;
  height: 72px;
  background: var(--footer-teal);
  color: #fff;
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  transition: width 0.25s, background 0.25s;
}
.footer-book-float:hover {
  color: #fff;
  width: 54px;
  background: var(--footer-teal-dark);
}

@media (max-width: 767.98px) {
  .footer-wa-float { bottom: 72px; right: 16px; width: 50px; height: 50px; font-size: 1.5rem; }
  .footer-wse-legal { text-align: left !important; }
  .footer-wse-copy { text-align: center; }
  .footer-wse-legal { text-align: center; }
}
@media (min-width: 768px) {
  body:not(.admin-body) { padding-bottom: 0; }
}

.stat-box { text-align: center; padding: 1.5rem; }
.stat-box h3 { color: var(--ace-secondary); font-weight: 800; font-size: 2rem; }

.tech-badge {
  display: inline-block; padding: 0.35rem 0.85rem; margin: 0.25rem;
  background: #fff; border: 1px solid #d0dce8; border-radius: 50px; font-size: 0.85rem;
}

.dropdown-mega-menu { min-width: 720px; padding: 1.25rem !important; border: none; box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-radius: 10px; }
.dropdown-mega-menu .dropdown-header { font-weight: 700; color: var(--ace-primary); }

.mobile-footer-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e0e0e0; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1050; padding: 4px 0; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; text-decoration: none; color: #666; font-size: 10px; }
.mobile-nav-item i { font-size: 18px; color: #0d6efd; }
.mobile-footer-nav a[href="index.php"] i { color: #dc3545; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--ace-primary); }
@media (max-width: 767.98px) { body { padding-bottom: 58px; } }
@media (min-width: 768px) { .mobile-footer-nav { display: none !important; } }

@media (max-width: 767.98px) {
  .mobile-nav-item span { font-size: 9.5px; line-height: 1.1; }
}

.product-detail-img { border-radius: 12px; max-height: 400px; object-fit: cover; width: 100%; }

/* Shared CTA banner (About + Home) */
.site-cta-banner {
  background: linear-gradient(135deg, #281F55 0%, #03A680 100%);
  padding: 70px 0;
  color: #fff;
  text-align: center;
}
.site-cta-banner h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: #fff !important;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.site-cta-banner p {
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fff;
}
.site-cta-banner .btn-light {
  color: #281F55;
  font-weight: 600;
}
.site-cta-banner .btn-outline-light:hover {
  color: #281F55;
}

/* aboutus.png — no shadow on default site image panels */
.site-default-img,
.about-us-img,
.about-us-img img,
.home-intro-strip .intro-img,
.home-intro-strip .intro-img img {
  box-shadow: none !important;
}
.module-list li { padding: 0.35rem 0; border-bottom: 1px dashed #e8eef5; }
.menu-pill { display: inline-block; background: var(--ace-light); padding: 0.25rem 0.75rem; border-radius: 20px; margin: 0.2rem; font-size: 0.85rem; }

.site-top-bar {
  background: #f4f4f4;
  border-top: 3px solid #050a30;
  border-bottom: 1px solid #e2e2e2;
  font-size: 0.875rem;
  color: #111;
  position: relative;
  z-index: 1031;
}
.site-top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  min-height: 44px;
  padding: 0.45rem 0;
}
.site-top-bar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.site-top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
}
.site-top-bar-item i {
  font-size: 0.95rem;
  color: #333;
}
.site-top-bar-item:hover {
  color: var(--ace-brand, #03a680);
}
.site-top-bar-search {
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  max-width: 100%;
  margin-left: auto;
  position: relative;
}
.site-top-bar-search-input {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 2.5rem 0.45rem 1rem;
  font-size: 0.875rem;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  outline: none;
}
.site-top-bar-search-input::placeholder {
  color: #9ca3af;
}
.site-top-bar-search-input:focus {
  box-shadow: 0 0 0 2px rgba(3, 166, 128, 0.25);
}
.site-top-bar-search-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #111;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  cursor: pointer;
}
.site-top-bar-search-btn:hover {
  color: var(--ace-brand, #03a680);
}
@media (max-width: 767.98px) {
  .site-top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  .site-top-bar-contact {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
  .site-top-bar-item {
    font-size: 0.8rem;
  }
  .site-top-bar-item span {
    word-break: break-all;
  }
  .site-top-bar-search {
    flex: 1 1 100%;
    margin-left: 0;
    width: 100%;
  }
}
.home-page .site-main-header { background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); }

/* Global heading spacing fix
   The legacy theme uses negative letter-spacing on h1/h2 which can make titles look squashed
   on different screen sizes (mobile/tablet/laptop). */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0 !important;
  word-spacing: normal;
}
