/*
Theme Name: Jagole
Theme URI: https://jagole.com
Author: Jay Chong
Author URI: https://iamjaychong.com
Description: Official WordPress theme for Jagole Sdn Bhd. Premium hosting brand for Malaysian SMEs.
Version: 3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: jagole
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --blue:         #0F6FF5;
  --blue-mid:     #2563EB;
  --blue-light:   #3B82F6;
  --blue-pale:    #93C5FD;
  --dark:         #06101E;
  --dark-mid:     #0A1628;
  --dark-card:    #0D1E33;
  --white:        #FFFFFF;
  --grey:         #F8FAFB;
  --grey-border:  #E2E8F0;
  --grey-mid:     #EEF3F9;
  --text:         #1E293B;
  --text-mid:     #475569;
  --text-muted:   #64748B;
  --text-faint:   #94A3B8;

  --font:         'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;

  --header-h: 56px;

  --grad-blue:  linear-gradient(135deg, #0F6FF5, #2563EB);
  --grad-text:  linear-gradient(135deg, #93C5FD 0%, #3B82F6 100%);
  --grad-bar:   linear-gradient(90deg, #0F6FF5, #93C5FD);
}

/* =========================================================
   BASE RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-mid);
  letter-spacing: -.3px;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);   font-weight: 800; }
h3 { font-size: 1.25rem;  font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }
h5 { font-size: 1rem;     font-weight: 600; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .875rem;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-sm); }

/* =========================================================
   ADMIN BAR OFFSET
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6,16,30,.97);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: var(--header-h);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }
.site-logo__wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}
.site-logo__wordmark em { color: var(--blue-light); font-style: normal; }

/* Primary Nav */
.primary-nav { display: none; }
@media (min-width: 768px) {
  .primary-nav { display: flex; align-items: center; gap: .25rem; }
}
.primary-nav__menu { display: flex; align-items: center; gap: .125rem; }
.primary-nav__menu a {
  display: block;
  padding: .375rem .625rem;
  font-size: .6875rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.primary-nav__menu a:hover,
.primary-nav__menu .current-menu-item > a,
.primary-nav__menu .current-page-ancestor > a {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.primary-nav__cta { margin-left: .75rem; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: .5rem;
  border-radius: var(--r-md);
  background: none; border: none;
}
.nav-hamburger:hover { background: rgba(255,255,255,.08); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: all .25s;
  transform-origin: center;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__menu { text-align: center; }
.mobile-nav__menu li { margin-bottom: 1.25rem; }
.mobile-nav__menu a {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.5px;
}
.mobile-nav__menu a:hover { color: var(--blue-pale); }
.mobile-nav__cta { margin-top: 2rem; }
.mobile-nav__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: none; border-radius: var(--r-full);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

/* =========================================================
   BUTTON COMPONENTS
   (targets both custom HTML and WP block buttons)
   ========================================================= */
.jag-btn-primary,
.jag-btn-primary.wp-block-button .wp-block-button__link,
.jag-btn-primary .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--grad-blue) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  padding: .625rem 1.25rem !important;
  font-size: .8125rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(15,111,245,.45);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: -.1px;
}
.jag-btn-primary:hover,
.jag-btn-primary .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(15,111,245,.55) !important;
  color: var(--white) !important;
}

.jag-btn-secondary,
.jag-btn-secondary.wp-block-button .wp-block-button__link,
.jag-btn-secondary .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue) !important;
  border-radius: var(--r-md) !important;
  padding: .625rem 1.25rem !important;
  font-size: .8125rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.jag-btn-secondary:hover,
.jag-btn-secondary .wp-block-button__link:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}

.jag-btn-ghost,
.jag-btn-ghost.wp-block-button .wp-block-button__link,
.jag-btn-ghost .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.8) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: var(--r-md) !important;
  padding: .625rem 1.25rem !important;
  font-size: .8125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.jag-btn-ghost:hover,
.jag-btn-ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: var(--white) !important;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.jag-hero {
  background: var(--dark) !important;
  background-image:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(15,111,245,.3) 0%, transparent 65%),
    radial-gradient(ellipse 300px 200px at 10% 80%, rgba(15,111,245,.12) 0%, transparent 55%),
    radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px) !important;
  background-size: auto, auto, 22px 22px !important;
  padding: 72px 0 !important;
  margin: 0 !important;
}

.jag-hero .wp-block-group__inner-container,
.jag-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.jag-hero-left { flex: 1; min-width: 0; }
.jag-hero-right { width: 240px; flex-shrink: 0; }

.jag-hero-label {
  display: inline-flex !important;
  align-items: center;
  font-size: .625rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #93C5FD !important;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 1rem !important;
}

.jag-hero h1,
.jag-hero-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  line-height: 1.15 !important;
  letter-spacing: -.5px !important;
  margin-bottom: .875rem !important;
}

.jag-gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jag-hero p:not(.jag-hero-label):not(.jag-hero-trust) {
  font-size: .875rem !important;
  color: rgba(255,255,255,.5) !important;
  line-height: 1.8 !important;
  max-width: 420px;
  margin-bottom: 1.5rem !important;
}

.jag-hero-trust {
  font-size: .6875rem !important;
  color: rgba(255,255,255,.3) !important;
  margin-top: 1rem !important;
  letter-spacing: .01em;
}

/* Server widget */
.jag-server-widget {
  width: 240px;
  flex-shrink: 0;
}
.sw-card {
  background: rgba(10,22,40,.85);
  border: 1px solid rgba(59,130,246,.28);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 0 30px rgba(15,111,245,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
.sw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sw-name { font-size: .5625rem; font-weight: 700; color: var(--white); }
.sw-live {
  font-size: .5rem;
  color: #22C55E;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-weight: 700;
}
.sw-row {
  display: flex;
  justify-content: space-between;
  padding: 3.5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .5625rem;
}
.sw-row:last-child { border: none; }
.sw-key { color: rgba(255,255,255,.38); }
.sw-val { color: var(--white); font-weight: 600; }
.sw-val--blue { color: #93C5FD; }
.sw-val--green { color: #4ADE80; }
.sw-val--yellow { color: #FCD34D; }
.sw-card2 {
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-card2-label {
  font-size: .5625rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 2px;
}
.sw-card2-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #93C5FD;
  line-height: 1;
}
.sw-card3 {
  background: var(--grad-blue);
  border-radius: 7px;
  padding: 9px 12px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(15,111,245,.35);
  font-size: .5625rem;
}
.sw-card3 span:first-child { color: rgba(255,255,255,.75); }
.sw-card3 span:last-child { color: var(--white); font-weight: 700; }

/* =========================================================
   SECTION BASE
   ========================================================= */
.jag-section {
  padding: 72px 0;
}
.jag-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.jag-section-dark {
  background: var(--dark) !important;
  background-image:
    radial-gradient(ellipse 400px 300px at 80% 60%, rgba(15,111,245,.14) 0%, transparent 55%),
    radial-gradient(rgba(255,255,255,.016) 1px, transparent 1px) !important;
  background-size: auto, 22px 22px !important;
}
.jag-section-dark h2,
.jag-section-dark h3,
.jag-section-dark h4 { color: var(--white) !important; }
.jag-section-dark p,
.jag-section-dark li { color: rgba(255,255,255,.45) !important; }

.jag-section-grey { background: var(--grey) !important; }

.jag-section-founder {
  background: #04080F !important;
  background-image: radial-gradient(ellipse 400px 280px at 72% 50%, rgba(15,111,245,.22) 0%, transparent 58%) !important;
  border-top: 1px solid rgba(59,130,246,.12);
}

/* Section heading accent */
.jag-sh { text-align: center; margin-bottom: 6px !important; }
.jag-sh-bar {
  width: 32px;
  height: 3px;
  background: var(--grad-bar);
  border-radius: 2px;
  margin: 8px auto 20px;
}
.jag-ss {
  text-align: center;
  font-size: .8125rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 2.5rem !important;
  line-height: 1.75;
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.jag-product-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.jag-product-card--featured {
  border: 1.5px solid var(--blue-light) !important;
}
.jag-product-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-bar);
}
.jag-product-tag {
  display: inline-block;
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  background: rgba(15,111,245,.07);
  padding: 3px 9px;
  border-radius: var(--r-full);
  margin-bottom: .75rem;
}
.jag-product-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--dark-mid) !important;
  margin-bottom: .4rem !important;
  letter-spacing: -.3px;
}
.jag-product-sub {
  font-size: .6875rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65;
  margin-bottom: .875rem !important;
}
.jag-product-spec {
  background: var(--grey);
  border: 1px solid #EDF0F3;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: .875rem;
}
.jag-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: .5625rem;
  padding: 2.5px 0;
  border-bottom: 1px solid #F0F2F5;
}
.jag-spec-row:last-child { border: none; }
.jag-spec-key { color: var(--text-faint); font-weight: 500; }
.jag-spec-val { color: var(--text); font-weight: 700; }
.jag-product-list { list-style: none; margin: 0 0 1rem; }
.jag-product-list li {
  font-size: .6875rem;
  color: var(--text-mid);
  padding: 2.5px 0 2.5px 1rem;
  position: relative;
  line-height: 1.5;
}
.jag-product-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: .625rem;
}
.jag-product-from {
  font-size: .625rem;
  color: var(--text-faint);
  margin-bottom: .75rem;
}
.jag-product-from strong {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--blue);
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.jag-trust-bar {
  background: var(--grey-mid) !important;
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
  padding: 20px 0 !important;
}
.jag-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.jag-trust-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jag-trust-label {
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #CBD5E1;
  margin-right: 4px;
}
.jag-trust-logo {
  height: 26px;
  background: #E2EAF3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: .5625rem;
  font-weight: 600;
  color: var(--text-faint);
  min-width: 60px;
}
.jag-trust-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.jag-trust-stat-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.3px;
  line-height: 1;
}
.jag-trust-stat-label {
  font-size: .5625rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* =========================================================
   FEATURE CARDS (dark bg)
   ========================================================= */
.jag-feature-card {
  background: rgba(15,111,245,.04) !important;
  border: 1px solid rgba(59,130,246,.16) !important;
  border-radius: 10px !important;
  padding: 20px 18px !important;
  position: relative;
  height: 100%;
}
.jag-feature-badge {
  display: inline-block;
  font-size: .4375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #93C5FD;
  background: rgba(59,130,246,.18);
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-bottom: .625rem;
}
.jag-feature-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(15,111,245,.28), rgba(59,130,246,.08));
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9375rem;
  margin-bottom: .625rem;
}
.jag-feature-title {
  font-size: .75rem !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin-bottom: .3rem !important;
}
.jag-feature-body {
  font-size: .625rem !important;
  color: rgba(255,255,255,.42) !important;
  line-height: 1.65;
}

/* =========================================================
   TOOL CARDS
   ========================================================= */
.jag-tool-card {
  background: var(--white);
  border: 1px solid #E8EFF6;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.jag-tool-card:last-child { margin-bottom: 0; }
.jag-tool-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(15,111,245,.1), rgba(59,130,246,.03));
  border: 1px solid rgba(15,111,245,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}
.jag-tool-title {
  font-size: .75rem !important;
  font-weight: 700 !important;
  color: var(--dark-mid) !important;
  margin-bottom: .2rem !important;
  letter-spacing: -.2px;
}
.jag-tool-sub {
  font-size: .625rem !important;
  color: var(--text-muted) !important;
  margin-bottom: .5rem !important;
  line-height: 1.55;
}
.jag-tool-link {
  font-size: .625rem;
  font-weight: 700;
  color: var(--blue);
}

/* =========================================================
   EBOOK CARDS
   ========================================================= */
.jag-ebook-card {
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-border) !important;
}
.jag-ebook-cover {
  height: 100px;
  overflow: hidden;
  background: var(--dark-mid);
}
.jag-ebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.jag-ebook-card:hover .jag-ebook-cover img { transform: scale(1.04); }
.jag-ebook-body { padding: 10px 11px 12px; }
.jag-ebook-type {
  font-size: .4375rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint) !important;
  margin-bottom: .25rem !important;
}
.jag-ebook-link {
  font-size: .625rem !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
}

/* =========================================================
   FOUNDER SECTION
   ========================================================= */
.jag-founder-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.jag-founder-left { flex: 1; }
.jag-founder-tag {
  display: inline-block;
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93C5FD;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  padding: 3px 9px;
  border-radius: var(--r-full);
  margin-bottom: .875rem;
}
.jag-founder-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  line-height: 1.3 !important;
  margin-bottom: .5rem !important;
  letter-spacing: -.3px;
}
.jag-founder-sub {
  font-size: .6875rem !important;
  color: rgba(255,255,255,.42) !important;
  line-height: 1.85;
  max-width: 340px;
  margin-bottom: 1.25rem !important;
}
.jag-founder-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  flex-shrink: 0;
}
.jag-founder-card {
  background: rgba(15,111,245,.07);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 8px;
  padding: 12px 14px;
}
.jag-founder-card-title {
  font-size: .6875rem !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin-bottom: 2px !important;
}
.jag-founder-card-sub {
  font-size: .5625rem !important;
  color: rgba(255,255,255,.35) !important;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(59,130,246,.1);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0 2.25rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}
.site-footer__logo img { height: 32px; width: auto; margin-bottom: .625rem; }
.site-footer__logo-fallback {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: .375rem;
}
.site-footer__tagline {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-light);
  margin-bottom: .2rem;
}
.site-footer__sub {
  font-size: .5625rem;
  color: rgba(255,255,255,.28);
}
.site-footer__col-title {
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.site-footer__links { display: flex; flex-direction: column; gap: .375rem; }
.site-footer__links a {
  font-size: .625rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .15s;
}
.site-footer__links a:hover { color: rgba(255,255,255,.7); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .875rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
}
.site-footer__copyright {
  font-size: .5625rem;
  color: rgba(255,255,255,.2);
  margin: 0;
}

/* =========================================================
   PAGE CONTENT (standard pages)
   ========================================================= */
.page-content { padding: 4rem 0; }
.page-content .entry-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -.4px;
}
.entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { list-style: revert; margin-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content img { border-radius: var(--r-lg); margin: 2rem 0; }

/* =========================================================
   BLOG INDEX
   ========================================================= */
.posts-section { padding: 4rem 0; background: var(--grey); }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3,1fr); } }
.post-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 1.25rem; }
.post-card__meta { font-size: .625rem; color: var(--text-faint); margin-bottom: .5rem; }
.post-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; }
.post-card__more { font-size: .6875rem; font-weight: 700; color: var(--blue); }
.posts-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.posts-pagination a, .posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  font-size: .8125rem;
  font-weight: 500;
  border: 1px solid var(--grey-border);
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.posts-pagination a:hover { border-color: var(--blue); color: var(--blue); }
.posts-pagination .current { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post { padding: 4rem 0; }
.single-post__meta { font-size: .75rem; color: var(--text-faint); margin-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.single-post__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.4px; }
.single-post__thumbnail { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 2.5rem; }
.single-post__back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--grey-border); }

/* =========================================================
   404
   ========================================================= */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--grey);
}
.error-404__code {
  font-size: 7rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .1;
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.error-404__message { color: var(--text-muted); margin-bottom: 2rem; }

/* =========================================================
   WP BLOCK OVERRIDES
   ========================================================= */
.entry-content .alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.entry-content .alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: var(--r-lg); }
.wp-block-quote { border-left: 3px solid var(--blue); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--text-muted); }
.wp-block-code { background: var(--grey); border: 1px solid var(--grey-border); border-radius: var(--r-md); padding: 1.25rem; font-size: .875rem; overflow-x: auto; }
/* Make cover blocks truly full width */
.entry-content > .wp-block-group.alignfull,
.entry-content > .wp-block-cover.alignfull {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  .jag-hero-inner,
  .jag-hero .wp-block-group__inner-container { flex-direction: column; gap: 32px; }
  .jag-hero-right,
  .jag-server-widget { width: 100%; max-width: 320px; margin: 0 auto; }
  .jag-hero h1, .jag-hero-h1 { font-size: 1.75rem !important; }
  .jag-founder-inner { flex-direction: column; gap: 28px; }
  .jag-founder-right { width: 100%; }
  .jag-trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .jag-trust-stats { gap: 16px; }
  .site-footer__grid { padding: 2rem 0 1.75rem; }
}

@media (max-width: 600px) {
  .jag-section { padding: 52px 0; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .mobile-nav, .nav-hamburger, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* =========================================================
   ELEMENTOR COMPATIBILITY FIXES
   ========================================================= */

/* Force all HTML widgets to fill their column width */
.elementor-widget-html .elementor-widget-container {
    width: 100% !important;
    box-sizing: border-box;
}

/* Force all widget containers to stretch */
.elementor-column .elementor-widget-wrap {
    width: 100%;
}

/* Hero gradient overlay */
.elementor-section:first-of-type {
    background-image:
        radial-gradient(ellipse 600px 400px at 78% 25%, rgba(15,111,245,.32) 0%, transparent 65%),
        radial-gradient(ellipse 300px 220px at 8% 82%, rgba(15,111,245,.14) 0%, transparent 55%),
        radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px) !important;
    background-size: auto, auto, 22px 22px !important;
}

/* Section stretched fix — ensure background covers full viewport */
.elementor-section.elementor-section-stretched {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Product cards grid — equal height columns */
.elementor-widget-html .elementor-widget-container > div[style*="display:grid"] {
    width: 100%;
    box-sizing: border-box;
}

/* Feature cards — equal height */
.elementor-widget-html .elementor-widget-container > div[style*="grid-template-columns:repeat(3"] {
    width: 100%;
}

/* Ebook covers fill their grid cell */
.elementor-widget-html img {
    width: 100%;
    display: block;
}

/* Remove Elementor default column padding that causes right-side gap */
.elementor-column-gap-default .elementor-column > .elementor-element-populated {
    padding: 0;
}

.elementor-column-gap-no .elementor-column > .elementor-element-populated {
    padding: 0;
}
