/* ==========================================================================
   NOVEXA — Multipurpose HTML Template
   Core Stylesheet
   ========================================================================== */

/* -------------------- 1. CSS VARIABLES -------------------- */
:root {
  /* Brand colors — replace these to re-skin the whole template */
  --primary-color: #4338ca;      /* deep indigo */
  --primary-dark: #332aa3;
  --primary-light: #eceafd;
  --secondary-color: #14b8a6;    /* teal accent */
  --secondary-dark: #0e9488;

  --dark-color: #12142b;
  --dark-color-soft: #1c1f3d;
  --light-color: #f7f8fb;

  --text-color: #383b52;
  --text-muted: #6b6f8d;
  --heading-color: #14152b;

  --border-color: #e6e7f0;
  --white: #ffffff;

  --success-color: #16a34a;
  --warning-color: #f59e0b;
  --danger-color: #e11d48;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 10px rgba(18, 20, 43, 0.06);
  --shadow-md: 0 12px 30px rgba(18, 20, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 20, 43, 0.12);

  --transition: all 0.25s ease;
  --header-height: 84px;
}

/* Dark mode variable overrides live in dark-mode.css */

/* -------------------- 2. RESET / BASE -------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { color: var(--text-color); }

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* -------------------- 3. LAYOUT HELPERS -------------------- */
.container-custom {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

@media (max-width: 991px) {
  .section { padding: 70px 0; }
  .section-sm { padding: 44px 0; }
}

.section-header { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-header.text-start { margin: 0 0 40px; text-align: left; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-header p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.bg-light-soft { background: var(--light-color); }
.bg-dark-soft { background: var(--dark-color); color: #cfd1ea; }
.bg-dark-soft h1, .bg-dark-soft h2, .bg-dark-soft h3, .bg-dark-soft h4 { color: var(--white); }
.bg-dark-soft p { color: #a8abcf; }

.text-primary-c { color: var(--primary-color) !important; }
.text-muted-c { color: var(--text-muted) !important; }

/* -------------------- 4. BUTTONS -------------------- */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary-c {
  background: var(--primary-color);
  color: var(--white);
}
.btn-primary-c:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

.btn-outline-c {
  background: transparent;
  border-color: var(--border-color);
  color: var(--heading-color);
}
.btn-outline-c:hover { border-color: var(--primary-color); color: var(--primary-color); }

.btn-light-c {
  background: var(--white);
  color: var(--heading-color);
}
.btn-light-c:hover { background: var(--primary-color); color: var(--white); }

.btn-sm-c { padding: 10px 22px; font-size: 0.9rem; }
.btn-block-c { width: 100%; }

/* -------------------- 5. HEADER -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading-color);
}
.brand-logo .logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--heading-color);
  border-radius: var(--radius-sm);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--primary-color); }

.has-dropdown { position: relative; }
.dropdown-menu-c {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.has-dropdown:hover .dropdown-menu-c {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu-c li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text-color);
}
.dropdown-menu-c li a:hover { background: var(--primary-light); color: var(--primary-color); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--heading-color);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

.hamburger-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  align-items: center; justify-content: center;
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .hamburger-btn { display: flex; }
}

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 86%);
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  box-shadow: var(--shadow-lg);
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 24px;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 20, 0.5);
  z-index: 1100;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu-close { width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.mobile-menu ul { margin-top: 30px; }
.mobile-menu ul li a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border-color); font-weight: 500; }
.mobile-submenu { padding-left: 14px; display: none; }
.mobile-submenu.is-open { display: block; }
.mobile-menu .cta-wrap { margin-top: 24px; }

/* -------------------- 6. HERO SECTIONS -------------------- */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-color);
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }
.hero-cta-group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-1 .hero-media { position: relative; }
.hero-1 .hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-float-card.card-a { top: -6%; left: -8%; }
.hero-float-card.card-b { bottom: -6%; right: -6%; }
.hero-float-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.hero-float-card strong { display: block; font-size: 1rem; color: var(--heading-color); }
.hero-float-card span { font-size: 0.82rem; color: var(--text-muted); }

.hero-2 { text-align: center; }
.hero-2 .hero-cta-group { justify-content: center; }
.hero-2 p.lead { margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--heading-color); }
.hero-stats .stat-label { color: var(--text-muted); font-size: 0.92rem; }

.hero-4 { background: var(--dark-color); color: var(--white); }
.hero-4 h1, .hero-4 h4 { color: var(--white); }
.hero-4 p.lead { color: #a8abcf; }
.hero-4 .hero-badge { background: rgba(255,255,255,0.08); color: var(--white); }

.hero-5 {
  background: linear-gradient(135deg, var(--primary-color), #6a5bf0 55%, var(--secondary-color));
  color: var(--white);
}
.hero-5 h1, .hero-5 h4 { color: var(--white); }
.hero-5 p.lead { color: rgba(255,255,255,0.85); }
.hero-5 .hero-badge { background: rgba(255,255,255,0.16); color: var(--white); }
.hero-5 .btn-outline-c { border-color: rgba(255,255,255,0.5); color: var(--white); }

.hero-shape {
  position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: 0.5;
}
.hero-shape.s1 { width: 380px; height: 380px; background: var(--primary-light); top: -10%; right: -6%; }
.hero-shape.s2 { width: 260px; height: 260px; background: rgba(20,184,166,0.18); bottom: -10%; left: -6%; }

@media (max-width: 767px) {
  .hero { padding: 130px 0 60px; text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-float-card { display: none; }
  .hero-stats { gap: 30px; }
}

/* Logo strip */
.logo-strip { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.logo-strip img { height: 28px; filter: grayscale(1); }

/* -------------------- 7. CARDS -------------------- */
.card-custom {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

/* Service card */
.service-card { padding: 34px 28px; height: 100%; }
.service-card .service-icon {
  width: 58px; height: 58px; border-radius: 15px;
  background: var(--primary-light); color: var(--primary-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 22px;
}
.service-card h4 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 18px; }
.service-card .service-link { font-weight: 600; color: var(--heading-color); display: inline-flex; align-items: center; gap: 6px; font-size: 0.93rem; }
.service-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.service-card:hover .service-link { color: var(--primary-color); }

/* Blog card */
.blog-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.blog-card .blog-thumb { position: relative; overflow: hidden; aspect-ratio: 16/11; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-card .blog-cat {
  position: absolute; top: 16px; left: 16px;
  background: var(--white); color: var(--primary-color);
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-pill);
}
.blog-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 16px; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 12px; }
.blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }
.blog-card .read-more { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--primary-color); display: inline-flex; align-items: center; gap: 6px; }

/* Portfolio card */
.portfolio-item { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.portfolio-item .p-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-item .p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover .p-thumb img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(18,20,43,0.85), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: rgba(255,255,255,0.75); font-size: 0.83rem; }
.portfolio-overlay h4 { color: var(--white); margin-top: 4px; }

/* Pricing card */
.pricing-card { padding: 40px 32px; text-align: center; position: relative; }
.pricing-card.is-featured { border: 2px solid var(--primary-color); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary-color); color: var(--white);
  font-size: 0.78rem; font-weight: 700; padding: 6px 18px; border-radius: var(--radius-pill);
}
.pricing-card .plan-name { font-weight: 700; color: var(--text-muted); text-transform: none; margin-bottom: 14px; }
.pricing-price { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--heading-color); }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card .plan-desc { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0 26px; }
.pricing-features { text-align: left; margin-bottom: 30px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.94rem; }
.pricing-features li i { color: var(--secondary-color); margin-top: 3px; }
.pricing-features li.disabled { color: var(--text-muted); opacity: 0.55; }
.pricing-features li.disabled i { color: var(--text-muted); }

/* Team card */
.team-card { text-align: center; overflow: hidden; }
.team-card .team-photo { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-social {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(20px);
  display: flex; gap: 8px; opacity: 0; transition: var(--transition);
}
.team-card:hover .team-social { opacity: 1; transform: translateX(-50%) translateY(0); }
.team-social a { width: 36px; height: 36px; background: var(--white); color: var(--heading-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.team-social a:hover { background: var(--primary-color); color: var(--white); }
.team-card-body { padding: 22px; }
.team-card-body h4 { margin-bottom: 4px; }
.team-card-body span { color: var(--primary-color); font-size: 0.9rem; font-weight: 600; }

/* Testimonial card */
.testimonial-card { padding: 34px; }
.testimonial-rating { color: var(--warning-color); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--text-color); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.83rem; }

/* Process step */
.process-step { text-align: center; position: relative; padding: 0 16px; }
.process-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--dark-color); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 22px;
}
.process-step h4 { margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.93rem; }

/* Stats */
.stat-block { text-align: center; }
.stat-block .stat-num { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--white); }
.stat-block .stat-label { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 6px; }

/* Product card (ecommerce) */
.product-card { overflow: hidden; height: 100%; }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--light-color); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-badge { position: absolute; top: 14px; left: 14px; background: var(--danger-color); color: var(--white); font-size: 0.76rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.product-wish { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.product-body { padding: 20px; }
.product-rating { color: var(--warning-color); font-size: 0.82rem; margin-bottom: 8px; }
.product-body h4 { font-size: 1rem; margin-bottom: 8px; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-price .now { font-weight: 700; font-size: 1.15rem; color: var(--heading-color); }
.product-price .old { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }

/* -------------------- 8. FAQ ACCORDION -------------------- */
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; font-weight: 600; font-size: 1rem; color: var(--heading-color); text-align: left;
}
.faq-question i { transition: transform 0.3s ease; color: var(--primary-color); flex-shrink: 0; margin-left: 14px; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 26px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* -------------------- 9. FORMS -------------------- */
.form-group-c { margin-bottom: 20px; }
.form-label-c { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--heading-color); }
.form-control-c {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  font-size: 0.95rem; background: var(--white); color: var(--text-color);
  transition: var(--transition);
}
.form-control-c:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
textarea.form-control-c { resize: vertical; min-height: 140px; }
.form-control-c.is-invalid { border-color: var(--danger-color); }
.form-error { color: var(--danger-color); font-size: 0.82rem; margin-top: 6px; display: none; }
.form-control-c.is-invalid + .form-error { display: block; }

.password-field { position: relative; }
.password-toggle { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* -------------------- 10. ALERTS / BADGES / TABLES -------------------- */
.alert-c { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.94rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.alert-success-c { background: #e9f8ef; color: var(--success-color); }
.alert-danger-c { background: #fdecef; color: var(--danger-color); }
.alert-warning-c { background: #fef6e7; color: #92650a; }

.badge-c { display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; }
.badge-primary-c { background: var(--primary-light); color: var(--primary-color); }
.badge-dark-c { background: var(--dark-color); color: var(--white); }

.table-c { width: 100%; border-collapse: collapse; }
.table-c th { text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding: 14px 18px; border-bottom: 2px solid var(--border-color); }
.table-c td { padding: 16px 18px; border-bottom: 1px solid var(--border-color); font-size: 0.94rem; }
.table-responsive-c { overflow-x: auto; }

.breadcrumb-c { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb-c a { color: var(--text-muted); }
.breadcrumb-c a:hover { color: var(--primary-color); }

.pagination-c { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination-c a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-color); font-weight: 600; font-size: 0.9rem;
}
.pagination-c a.active, .pagination-c a:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

/* -------------------- 11. TABS -------------------- */
.tabs-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; flex-wrap: wrap; }
.tabs-nav button { padding: 14px 22px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs-nav button.active { color: var(--primary-color); border-color: var(--primary-color); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* -------------------- 12. MODAL -------------------- */
.modal-overlay-c { position: fixed; inset: 0; background: rgba(10,10,20,0.55); z-index: 1400; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); padding: 20px; }
.modal-overlay-c.is-open { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); max-width: 480px; width: 100%; padding: 36px; transform: translateY(20px); transition: var(--transition); }
.modal-overlay-c.is-open .modal-box { transform: translateY(0); }
.modal-close-c { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; margin-left: auto; margin-bottom: 14px; }

/* -------------------- 13. FILTER BUTTONS (portfolio) -------------------- */
.filter-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn { padding: 11px 24px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.portfolio-grid-item { transition: all 0.4s ease; }
.portfolio-grid-item.is-hidden { display: none; }

/* -------------------- 14. CTA BANNER -------------------- */
.cta-banner {
  background: var(--dark-color);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--white); max-width: 480px; }
.cta-banner p { color: #a8abcf; margin-top: 12px; }
@media (max-width: 767px) { .cta-banner { padding: 46px 28px; text-align: center; justify-content: center; } }

/* -------------------- 15. FOOTER -------------------- */
.site-footer { background: var(--dark-color); color: #a8abcf; padding-top: 90px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-logo { color: var(--white); }
.footer-brand p { margin: 18px 0 22px; font-size: 0.93rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: var(--white); }
.footer-social a:hover { background: var(--primary-color); border-color: var(--primary-color); }
.footer-col h5 { color: var(--white); font-size: 1rem; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a { font-size: 0.92rem; color: #a8abcf; }
.footer-col ul li a:hover { color: var(--white); }
.footer-newsletter .form-control-c { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: var(--white); margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.88rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--white); }

@media (max-width: 991px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* -------------------- 16. BACK TO TOP -------------------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-color); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* -------------------- 17. PRELOADER -------------------- */
.preloader { position: fixed; inset: 0; background: var(--white); z-index: 2000; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader .loader-spin { width: 42px; height: 42px; border: 3px solid var(--primary-light); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------- 18. SCROLL ANIMATIONS -------------------- */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* -------------------- 19. PAGE HEADER (inner pages) -------------------- */
.page-header { padding: 150px 0 70px; background: var(--light-color); text-align: center; }
.page-header h1 { margin-bottom: 14px; }

/* -------------------- 20. UTILITIES -------------------- */
.rounded-img { border-radius: var(--radius-lg); }
.shadow-c { box-shadow: var(--shadow-md); }
.mb-0-c { margin-bottom: 0 !important; }
.gap-24 { gap: 24px; }
.d-flex-c { display: flex; align-items: center; }
.w-100-c { width: 100%; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(18,20,43,0.97); z-index: 1500; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay form { width: min(640px, 90%); position: relative; }
.search-overlay input { width: 100%; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.3); color: var(--white); font-size: 1.8rem; padding: 14px 40px 14px 0; }
.search-overlay input:focus { outline: none; border-color: var(--white); }
.search-overlay input::placeholder { color: rgba(255,255,255,0.4); }
.search-close { position: absolute; top: 40px; right: 40px; color: var(--white); font-size: 1.6rem; }

/* Comments UI */
.comment-item { display: flex; gap: 18px; margin-bottom: 30px; }
.comment-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-item.is-reply { margin-left: 74px; }
.comment-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.comment-head span { font-size: 0.8rem; color: var(--text-muted); }
.comment-reply-btn { font-weight: 600; font-size: 0.85rem; color: var(--primary-color); margin-top: 8px; display: inline-block; }

/* 404 */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 0; }
.error-page .error-code { font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: linear-gradient(160deg, var(--primary-color), var(--dark-color)); position: relative; display: flex; align-items: flex-end; padding: 60px; }
.auth-visual h3 { color: var(--white); }
.auth-visual p { color: rgba(255,255,255,0.75); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .brand-logo { margin-bottom: 34px; }
.social-auth { display: flex; gap: 12px; margin: 22px 0; }
.social-auth button { flex: 1; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 0.85rem; margin: 22px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
@media (max-width: 991px) { .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* -------------------- 21. IMAGE PLACEHOLDERS --------------------
   The demo ships with lightweight, license-free CSS/SVG placeholders
   instead of stock photography, so buyers can drop in their own
   licensed images without hunting down credits. See documentation
   for recommended free-image sources (Unsplash, Pexels). */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #f0eefe);
  color: var(--primary-color);
  font-size: 2rem;
  min-height: 100px;
}
html[data-theme="dark"] .img-placeholder { background: linear-gradient(135deg, #1c1e42, #171935); }
.img-placeholder.tone-dark { background: linear-gradient(135deg, #232658, #171935); color: var(--secondary-color); }
.img-placeholder.tone-teal { background: linear-gradient(135deg, #e3faf6, #eaf2ff); color: var(--secondary-dark); }
.img-placeholder i { opacity: 0.8; }

.avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white); font-family: var(--font-heading); font-weight: 700;
  flex-shrink: 0;
}

/* Sidebar (blog) */
.sidebar-widget { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 26px; margin-bottom: 26px; }
.sidebar-widget h5 { margin-bottom: 20px; }
.sidebar-search { position: relative; }
.sidebar-search button { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 7px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-pill); font-size: 0.85rem; }
.tag-list a:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.cat-list li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 0.93rem; }
.mini-post { display: flex; gap: 14px; margin-bottom: 16px; }
.mini-post img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.mini-post h6 { font-size: 0.9rem; margin-bottom: 6px; line-height: 1.4; }
.mini-post span { font-size: 0.78rem; color: var(--text-muted); }

/* Article content typography */
.article-content h2, .article-content h3 { margin: 34px 0 16px; }
.article-content p { margin-bottom: 18px; }
.article-content blockquote { border-left: 4px solid var(--primary-color); padding: 18px 26px; background: var(--light-color); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; margin: 26px 0; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content ul li, .article-content ol li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-md); margin: 26px 0; }
.share-buttons { display: flex; gap: 10px; align-items: center; }

/* Dropdown search server locations map */
.location-chip { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.location-chip .flag { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary-color); }
