/* ================================================================
   COMPANY CMS — MASTER STYLESHEET
   Theme inspired by getpylon.com
   Deep navy + electric blue + cream accents
   Mobile-first · Responsive · FontAwesome 6 · Bootstrap 5.3.8
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f1e33;
  --navy-700: #15294a;
  --navy-600: #1e3a5f;

  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-100: #dbeafe;

  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;

  --cream:    #f8f6f1;
  --cream-100:#efede6;
  --cream-200:#e5e1d6;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #dc2626;

  --text-dark:  #0a1628;
  --text-body:  #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg:         #ffffff;
  --border:     #e2e8f0;
  --border-md:  #cbd5e1;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  --shadow-xs: 0 1px 2px rgba(10,22,40,.06);
  --shadow-sm: 0 1px 3px rgba(10,22,40,.08), 0 1px 2px rgba(10,22,40,.04);
  --shadow-md: 0 8px 24px rgba(10,22,40,.10), 0 2px 6px rgba(10,22,40,.05);
  --shadow-lg: 0 20px 50px rgba(10,22,40,.15), 0 8px 16px rgba(10,22,40,.06);
  --shadow-xl: 0 30px 80px rgba(10,22,40,.20);

  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur-fast:  .2s;
  --dur:       .3s;
  --dur-slow:  .45s;

  --header-h: 68px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--blue-500); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--blue-400); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue-500); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1rem; line-height: 1.7; }
small { font-size: .875rem; }
code, pre { font-family: var(--font-mono); font-size: .9em; }

/* ----------------------------------------------------------------
   4. LAYOUT HELPERS
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: .75rem;
}
.section-dark .eyebrow { color: var(--cyan-400); }

.page-header {
  background: linear-gradient(180deg, var(--cream), #fff);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0; }
.page-header .text-muted { color: var(--text-muted); }

/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  border: none;
  color: #fff;
  padding: .8rem 1.75rem;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  border: 1.5px solid var(--navy-900);
  color: var(--navy-900);
  background: transparent;
  padding: .8rem 1.75rem;
}
.btn-outline-dark:hover, .btn-outline-dark:focus-visible {
  background: var(--navy-900);
  color: #fff;
}

.btn-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border: none;
  padding: .6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
}
.btn-cta:hover, .btn-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ----------------------------------------------------------------
   6. STICKY HEADER
   ---------------------------------------------------------------- */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1030;
}

.header-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 3rem);
  padding-right: clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .navbar { padding: .55rem 0; min-height: var(--header-h); }

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { color: var(--text-dark); }

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { color: var(--text-dark); }
.logo { max-height: 42px; width: auto; }

.nav-link-desktop {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-link-desktop:hover, .nav-link-desktop:focus-visible {
  background: var(--cream);
  color: var(--blue-500);
  outline: none;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
}
.nav-link:hover { background: var(--cream); color: var(--blue-500); }

/* ----------------------------------------------------------------
   7. MOBILE MENU
   ---------------------------------------------------------------- */
.mobile-toggle {
  background: transparent;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background var(--dur-fast);
}
.mobile-toggle:hover { background: var(--cream); }
.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) ease;
}
body.mobile-menu-open .mobile-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-menu-open .mobile-toggle .bar:nth-child(2) { opacity: 0; }
body.mobile-menu-open .mobile-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility 0s var(--dur-slow);
  overflow-y: auto;
}
.mobile-menu-overlay.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease), visibility 0s;
}

.mobile-menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
.mobile-menu-topbar .navbar-brand { color: #fff; display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; }
.mobile-menu-topbar .brand-text { color: #fff; }
.mobile-menu-topbar .brand-mark { background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); }
.mobile-menu-topbar .logo { max-height: 40px; }

.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background var(--dur-fast), transform var(--dur) var(--ease);
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible { background: rgba(255,255,255,.15); transform: rotate(90deg); outline: none; }

.mobile-menu-nav { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem .25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--dur) ease, transform var(--dur) ease, color var(--dur-fast);
  transition-delay: calc(.08s + (var(--i, 0) * .05s));
}
.mobile-menu-overlay.open .mobile-menu-link { opacity: 1; transform: translateX(0); }
.mobile-menu-link:hover, .mobile-menu-link:focus-visible { color: var(--cyan-400); outline: none; }
.mobile-menu-link i { font-size: .85rem; color: rgba(255,255,255,.4); transition: transform var(--dur-fast), color var(--dur-fast); }
.mobile-menu-link:hover i, .mobile-menu-link:focus-visible i { color: var(--cyan-400); transform: translateX(4px); }

.mobile-menu-footer { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(37,99,235,.35);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.mobile-menu-cta:hover, .mobile-menu-cta:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,99,235,.45); }
.mobile-menu-social { display: flex; gap: .75rem; justify-content: center; }
.mobile-menu-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.mobile-menu-social a:hover, .mobile-menu-social a:focus-visible { background: var(--blue-500); transform: translateY(-2px); outline: none; }

body.mobile-menu-open { overflow: hidden; touch-action: none; }

@media (min-width: 992px) { .mobile-menu-overlay { display: none !important; } }

/* ----------------------------------------------------------------
   8. HERO
   ---------------------------------------------------------------- */
.hero {
  background: radial-gradient(ellipse at top right, rgba(37,99,235,.15), transparent 55%), linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(59,130,246,.08) 0%, transparent 30%), radial-gradient(circle at 80% 70%, rgba(34,211,238,.06) 0%, transparent 30%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .badge-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin: 1.25rem 0; }
.hero .lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 640px; }

/* ----------------------------------------------------------------
   9. CARDS / FEATURES / POSTS
   ---------------------------------------------------------------- */
.card-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.3); }
.card-feature .icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.card-feature h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.card-feature p { color: var(--text-muted); font-size: .95rem; margin: 0; }

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--cream-100) center/cover no-repeat; width: 100%; display: block; }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.post-card h3 a { color: var(--text-dark); }
.post-card h3 a:hover { color: var(--blue-500); }
.post-card p { color: var(--text-muted); font-size: .92rem; flex: 1; margin-bottom: 0; }

/* ----------------------------------------------------------------
   10. IMAGE & VIDEO GALLERY
   ---------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--cream-100); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,.85));
  color: #fff;
  padding: 1rem;
  font-size: .85rem;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.gallery-item:hover .caption { opacity: 1; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.video-item { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; position: relative; }
.video-item iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-item.vertical { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.video-badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  z-index: 2;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ----------------------------------------------------------------
   11. LIGHTBOX & ARTICLE
   ---------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(10,22,40,.95); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-xl); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur) var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

.article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-body); }
.article-content h2 { margin-top: 2rem; font-size: 1.6rem; }
.article-content h3 { margin-top: 1.5rem; font-size: 1.3rem; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; }
.article-content blockquote { border-left: 4px solid var(--blue-500); padding: .5rem 1.5rem; margin: 1.5rem 0; background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-muted); font-style: italic; }
.article-content pre { background: var(--navy-900); color: #e2e8f0; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.article-content code { background: var(--cream-100); padding: .15rem .4rem; border-radius: 6px; font-size: .9em; }
.article-content pre code { background: none; padding: 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: .6rem 1rem; text-align: left; }
.article-content th { background: var(--cream); font-weight: 700; }

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #fff; margin-top: auto; }
.site-footer .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-brand i { color: var(--blue-300); }
.text-muted-light { color: rgba(255,255,255,.55); font-size: .92rem; }
.footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-links a:hover { color: var(--blue-300); }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.social-links a:hover { background: var(--blue-500); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .85rem; color: rgba(255,255,255,.5); text-align: center; }

/* ----------------------------------------------------------------
   13. PAGINATION
   ---------------------------------------------------------------- */
.pagination { display: flex; gap: .35rem; flex-wrap: wrap; }
.page-link { color: var(--text-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .85rem; font-weight: 500; transition: all var(--dur-fast); }
.page-link:hover { background: var(--cream); border-color: var(--border-md); color: var(--navy-900); }
.page-item.active .page-link { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ----------------------------------------------------------------
   14. ADMIN LAYOUT
   ---------------------------------------------------------------- */
.admin-body { background: #f1f5f9; font-family: var(--font); }
.admin-sidebar {
  width: 260px;
  background: var(--navy-900);
  color: #fff;
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0;
  padding: 1.5rem 1rem;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--dur) var(--ease);
}
.admin-sidebar .brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; padding: 0 .5rem 1.5rem; color: #fff; }
.admin-sidebar .brand a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.admin-sidebar .nav-link:hover { background: rgba(37,99,235,.2); color: #fff; }
.admin-sidebar .nav-link.active { background: rgba(37,99,235,.28); color: #fff; }
.admin-sidebar .nav-link i { width: 18px; text-align: center; }
.admin-sidebar .nav-link .badge { margin-left: auto; font-size: .65rem; padding: .25em .5em; }

.admin-main { margin-left: 260px; padding: 1.5rem 2rem; min-height: 100vh; }
.admin-topbar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.admin-topbar .breadcrumb { margin: 0; font-size: .85rem; }
.admin-topbar .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--text-light); }
.admin-topbar .breadcrumb a { color: var(--text-muted); text-decoration: none; }
.admin-topbar .breadcrumb a:hover { color: var(--blue-500); }

.admin-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.admin-card:last-child { margin-bottom: 0; }

.admin-main .stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--blue-500);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.admin-main .stat-card h3 { font-size: 2rem; margin: .25rem 0; color: var(--navy-900); }
.admin-main .stat-card p { color: var(--text-muted); margin: 0; font-size: .9rem; }

.admin-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,22,40,.5); z-index: 99; }
.admin-backdrop.show { display: block; }

.maint-banner {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(220,38,38,.25);
}
.maint-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.maint-banner .badge-live { background: rgba(255,255,255,.2); padding: .15rem .55rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.media-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; position: relative; background: var(--cream-100); transition: border-color var(--dur-fast); }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item:hover { border-color: var(--blue-500); }

.note-editor.note-frame { border-radius: var(--radius) !important; border-color: var(--border) !important; }
.note-editor .note-toolbar { background: var(--cream) !important; border-radius: var(--radius) var(--radius) 0 0 !important; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow-xl); }

.opacity-50 { opacity: .5; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #fff !important; }

/* ----------------------------------------------------------------
   15. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .admin-main { margin-left: 0; padding: 1rem; }
  :root { --header-h: 60px; }
  .site-header .navbar { padding: .35rem 0; }
  .header-container { padding-left: 1rem; padding-right: 1rem; }
  .hero h1 { margin: 1rem 0; }
  .hero .lead { font-size: 1rem; }
  .hero .btn-primary, .hero .btn-outline-dark { padding: .7rem 1.4rem; font-size: .95rem; }
}

@media (max-width: 767.98px) {
  .admin-topbar { padding: .85rem 1rem; }
  .admin-card { padding: 1.25rem; border-radius: 12px; }
  .admin-main .stat-card { padding: 1.25rem; }
  .admin-main { padding: .75rem; }
  .section { padding: 2.5rem 0; }
  .page-header { padding: 2rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1rem; }
  .video-item.vertical { max-width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; }
  .post-card-body { padding: 1.15rem; }
  .post-card h3 { font-size: 1.05rem; }
  .card-feature { padding: 1.35rem; }
  .card-feature .icon { width: 44px; height: 44px; font-size: 1.15rem; margin-bottom: 1rem; }
  .mobile-menu-link { font-size: 1.2rem; padding: .9rem .25rem; }
  .mobile-menu-cta { font-size: 1rem; padding: .9rem 1.25rem; }
  .footer-bottom { font-size: .8rem; }
}

@media (max-width: 575.98px) {
  :root { --container-pad: 1rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .hero { padding: 2.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .gallery-item { border-radius: 10px; }
  .gallery-item .caption { font-size: .72rem; padding: .5rem; }
  .lightbox { padding: 1rem; }
  .lightbox img { max-height: 80vh; border-radius: 10px; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.35rem; }
  .article-content h3 { font-size: 1.15rem; }
  .btn-primary, .btn-outline-dark { width: 100%; justify-content: center; }
  .hero .d-flex { flex-direction: column; }
  .hero .btn-primary, .hero .btn-outline-dark { width: 100%; text-align: center; }
  .mobile-menu-overlay { padding-left: 1.25rem; padding-right: 1.25rem; }
  .mobile-menu-topbar .brand-text { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .mobile-menu-overlay, .admin-sidebar, .admin-topbar, .btn, .social-links { display: none !important; }
  body { background: #fff; color: #000; }
  .admin-main { margin-left: 0; padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   16. PRODUCT PAGE & MODALS
   ============================================================ */
.product-hero {
  padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at top, #eef5ff 0%, #ffffff 60%);
}
.hero-eyebrow-pill {
  display: inline-block;
  background: #f4f8ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.product-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.text-gradient-blue { color: #2563eb; }
.text-gradient-multi {
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 45%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.product-hero-sub {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 760px;
  line-height: 1.6;
  margin: 0 auto;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stats-grid .stat-card { background: #fff; border: 1px solid #e9ecef; border-radius: 1rem; padding: 1.25rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.stats-grid .stat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -25px rgba(13,110,253,.3); }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #e7f1ff; color: #0d6efd; border-radius: 12px; margin: 0 auto .75rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; }
.stat-label { font-size: .8rem; color: #6c757d; }

@media (max-width: 767.98px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.module-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.module-search { position: relative; flex: 1 1 280px; }
.module-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #adb5bd; font-size: .9rem; }
.module-search .form-control { padding-left: 38px; border-radius: 999px; }
.module-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { border: 1px solid #e0e6ef; background: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #495057; cursor: pointer; transition: all .15s ease; }
.filter-chip:hover { border-color: #0d6efd; color: #0d6efd; }
.filter-chip.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }

.module-card { background: #fff; border: 1px solid #e9ecef; border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.module-card:hover { transform: translateY(-4px); border-color: #cfe2ff; box-shadow: 0 25px 50px -25px rgba(13,110,253,.25); }
.module-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.module-icon { width: 46px; height: 46px; display: grid; place-items: center; background: linear-gradient(135deg, #e7f1ff, #f3f8ff); color: #0d6efd; border-radius: 12px; font-size: 1.15rem; }
.module-no { font-size: .75rem; font-weight: 700; color: #0d6efd; background: #e7f1ff; padding: .15rem .55rem; border-radius: 999px; letter-spacing: .5px; }
.module-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; }
.module-desc { color: #6c757d; font-size: .875rem; flex: 1; margin-bottom: 1rem; }

.module-card .btn-outline-primary { border-color: #cfe2ff; color: #2563eb; background-color: transparent; transition: all 0.25s ease; }
.module-card .btn-outline-primary:hover { background-color: #2563eb; border-color: #2563eb; color: #ffffff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); transform: translateY(-2px); }
.module-card .btn-outline-primary:hover .badge.bg-primary-subtle { background-color: rgba(255, 255, 255, 0.2) !important; color: #ffffff !important; }

.module-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed #dbe3ee; border-radius: 1rem; color: #6c757d; background: #fafbfd; }
.module-empty i { font-size: 2rem; color: #94a3b8; display: block; margin-bottom: .75rem; }

.modal-custom { border-radius: 1.25rem; border: none; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-custom .modal-header { padding: 1.5rem 1.5rem 0.5rem; }
.modal-custom .btn-close { background-color: #f1f5f9; border-radius: 50%; padding: 0.75rem; opacity: 1; transition: background 0.2s; }
.modal-custom .btn-close:hover { background-color: #e2e8f0; }
.modal-icon { width: 56px; height: 56px; display: grid; place-items: center; background: #f3e8ff; color: #a855f7; border-radius: 12px; font-size: 1.5rem; }
.modal-custom .modal-body { padding: 1rem 1.5rem; }
.modal-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; color: #64748b; text-transform: uppercase; margin-bottom: 0.75rem; }
.feature-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 0.85rem; font-weight: 500; color: #334155; display: flex; align-items: center; }
.tech-badge { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.modal-custom .modal-footer { padding: 1.5rem; gap: 1rem; }
@media (min-width: 576px) { .modal-custom .modal-footer { flex-wrap: nowrap; } }

/* ============================================================
   17. CREATIVE ENQUIRY FORM
   ============================================================ */
.enquiry-section { background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%); }
.enquiry-card-creative { background: #ffffff; border-radius: 1.5rem; padding: 3rem 2.5rem; box-shadow: 0 25px 50px -12px rgba(13, 110, 253, 0.15), 0 0 0 1px rgba(0,0,0,0.02); }
.enquiry-icon-header { width: 64px; height: 64px; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; border-radius: 1rem; display: grid; place-items: center; font-size: 1.75rem; box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4); }

.input-group-creative { position: relative; display: flex; align-items: center; }
.input-group-creative .icon-left { position: absolute; left: 1rem; color: #94a3b8; font-size: 1rem; transition: color 0.3s ease; z-index: 10; pointer-events: none; }
.input-group-creative .form-control, .input-group-creative .form-select { width: 100%; padding: 0.85rem 1rem 0.85rem 2.75rem; font-size: 0.95rem; color: #1e293b; background-color: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 0.75rem; transition: all 0.3s ease; }
.input-group-creative .form-control::placeholder { color: #94a3b8; }
.input-group-creative .form-control:focus, .input-group-creative .form-select:focus { background-color: #ffffff; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); outline: none; }
.input-group-creative:focus-within .icon-left { color: #2563eb; }

/* Pastikan select box mempunyai ruang untuk anak panah bawaan Bootstrap */
.input-group-creative .form-select {
  background-position: right 1rem center;
  padding-right: 2.5rem; /* Ruang untuk anak panah */
  appearance: none; /* Buang anak panah lalai pelayar */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 16px 12px;
}

.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #ffffff; border: none; border-radius: 0.75rem; font-weight: 700; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5); }
.btn-whatsapp:hover { background: linear-gradient(135deg, #1ebe5d, #0f766e); color: #ffffff; transform: translateY(-3px); box-shadow: 0 15px 25px -10px rgba(37, 211, 102, 0.6); }

@media (max-width: 767.98px) { .enquiry-card-creative { padding: 2rem 1.5rem; border-radius: 1rem; } .enquiry-icon-header { width: 52px; height: 52px; font-size: 1.4rem; } }
@media (min-width: 768px) { .w-md-auto { width: auto !important; } }


/* ============================================================
   18. LOGO CAROUSEL (PORTFOLIO & CLIENTS)
   ============================================================ */
.logo-carousel {
  position: relative;
  width: 100vw; /* Gunakan lebar viewport penuh */
  max-width: 100%;
  overflow: hidden; 
  padding: 2rem 0;
  background: #fff;
}

.logo-track {
  display: flex;
  flex-wrap: nowrap; /* Pastikan ia tidak turun ke bawah */
  width: max-content;
  animation: scroll-logos-left 35s linear infinite;
}

.logo-track.track-reverse {
  animation-name: scroll-logos-right;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px; 
  height: 80px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  
  /* Saya gunakan padding sebagai ganti margin untuk jarak */
  margin: 0; 
  padding: 1rem 2rem; 
  
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(13,110,253,0.15);
  border-color: #cfe2ff;
  z-index: 10;
}

@keyframes scroll-logos-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

@keyframes scroll-logos-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .logo-item { 
    width: 120px; 
    height: 60px; 
    padding: 1rem; 
  }
  .logo-track { 
    animation-duration: 25s; 
  }
}

/* ============================================================
   19. FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font, 'Inter', sans-serif);
}

.wa-float-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}

.wa-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
}

.wa-float-btn i {
  font-size: 24px;
}

.wa-ping {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: wa-ping-anim 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes wa-ping-anim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1, 1.3); opacity: 0; }
}

.wa-contact-list {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 260px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.wa-float-container.open .wa-contact-list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.wa-contact-item:hover {
  background: #f1f5f9;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.wa-contact-info {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.wa-role {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  .wa-float-container {
    bottom: 16px;
    right: 16px;
  }
  .wa-float-btn .wa-float-text {
    display: none; /* Sembunyikan teks, tinggalkan ikon di mobile */
  }
  .wa-float-btn {
    padding: 14px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .wa-ping {
    border-radius: 50%;
  }
}