/* style.css — cleaned & consolidated */

/* ======= Base Styles ======= */
:root {
  --primary: #0056b3;
  --primary-dark: #004494;
  --primary-light: #3378c5;
  --secondary: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;

  --secure-green: #2ecc71;
  --alert-amber: #f39c12;
  --critical-red: #e74c3c;

  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;

  --font-family-sans-serif: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-monospace: 'Roboto Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  --border-radius-sm: 0.2rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  --transition-base: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
  --transition-fast: all 0.1s ease-in-out;
}

body {
  font-family: var(--font-family-sans-serif);
  color: var(--gray-800);
  line-height: 1.6;
  position: relative;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 1rem; color: var(--gray-900); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition-base); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; } /* NOTE: !important defeats Bootstrap's bg-opacity-* utilities — use a dedicated custom class instead of layering opacity onto this */

.btn { font-weight: 500; padding: 0.5rem 1.5rem; border-radius: var(--border-radius); transition: var(--transition-base); }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }


/* ======= Two-Tier Header: Utility Strip + Main Nav ======= */
.utility-strip {
    background: linear-gradient(90deg, #0a1628 0%, #14213d 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 0.5rem clamp(1rem, 3vw, 2rem);
    letter-spacing: 0.03em;
}

.utility-strip-inner { max-width: 1320px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.utility-announcement { font-size: 0.8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.utility-announcement span {
    color: #22d3ee;
    font-weight: 600;
}
.utility-announcement a {
    color: var(--alert-amber);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.utility-announcement a:hover { color: #ffcf4d; text-decoration: underline; }


.utility-info { display: flex; align-items: center; gap: 1.25rem; }
.utility-info a, .utility-hours { color: rgba(255,255,255,0.85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.utility-info a:hover { color: #fff; text-decoration: none; }
.utility-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.utility-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: rgba(255,255,255,0.9); transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.utility-icon-link:hover { background-color: rgba(255,255,255,0.18); color: #fff; text-decoration: none; transform: translateY(-1px); }
.utility-social { display: flex; gap: 0.9rem; padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,0.2); }
.utility-social a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.utility-social a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 1050;
  background-color: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1320px; margin-inline: auto; padding: 0.75rem clamp(1rem, 3vw, 2rem); transition: padding 0.25s ease; }
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; object-fit: contain; transition: transform 0.2s ease, height 0.25s ease; }
.logo-link:hover .logo-img { transform: scale(1.04); }

.nav-bar { display: flex; align-items: center; gap: 0.25rem; }
.nav-chip-wrap { position: relative; }
.nav-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0.55rem 1rem; border-radius: 100px; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-chip:hover { color: var(--primary); background-color: var(--gray-100); text-decoration: none; }
.nav-chip.active { color: #fff; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); box-shadow: 0 4px 10px -4px rgba(0,86,179,0.5); }
.nav-chip.active .chip-caret { color: #fff; }
.chip-caret { transition: transform 0.2s ease; }
.nav-chip-wrap:hover .chip-caret, .nav-chip-wrap:focus-within .chip-caret { transform: rotate(180deg); }

.services-mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 320px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 10;
}
.nav-chip-wrap:hover .services-mega-menu, .nav-chip-wrap:focus-within .services-mega-menu, .services-mega-menu.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.mega-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border-radius: var(--border-radius); text-decoration: none; color: inherit; transition: background-color 0.2s ease; }
.mega-item:hover { background-color: var(--gray-100); text-decoration: none; }
.mega-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--border-radius); background-color: rgba(0,86,179,0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.mega-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.mega-desc { display: block; font-size: 0.78rem; color: var(--gray-600); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.site-header .cta-btn { border-radius: 100px; padding: 0.65rem 1.4rem; white-space: nowrap; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); border: none; box-shadow: 0 4px 12px -4px rgba(0,86,179,0.5); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.site-header .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(0,86,179,0.55); }

/* Header state when scrolled past the top of the page */
.site-header.header-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.08); background-color: rgba(255,255,255,0.97); }
.site-header.header-scrolled .logo-img { height: 40px; }
.site-header.header-scrolled .header-row { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.back-to-top-btn {
  position: fixed; bottom: 100px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; font-size: 1rem;
  box-shadow: 0 6px 16px -4px rgba(0,86,179,0.5); display: flex; align-items: center; justify-content: center;
  z-index: 998; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.back-to-top-btn.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-btn:hover { box-shadow: 0 10px 22px -4px rgba(0,86,179,0.6); }
@media (max-width: 576px) { .back-to-top-btn { width: 42px; height: 42px; right: 18px; bottom: 90px; } }

.mobile-cta-icon, .mobile-menu-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-800); background-color: var(--gray-100); border: none; flex-shrink: 0; transition: background-color 0.2s ease, transform 0.2s ease; }
.mobile-cta-icon:hover, .mobile-menu-btn:hover { background-color: var(--gray-200); color: var(--primary); transform: translateY(-1px); }

.mobile-menu { position: fixed; inset: 0; z-index: 1040; background: #fff; padding: 6.5rem 1.5rem 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-list { display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-card-group { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-card { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.1rem 1.25rem; background-color: var(--gray-100); border: none; border-radius: var(--border-radius); color: var(--gray-900); font-size: 1rem; font-weight: 600; text-decoration: none; text-align: left; transition: background-color 0.2s ease; }
.mobile-card:hover, .mobile-card:active { background-color: var(--gray-200); text-decoration: none; color: var(--gray-900); }
.mobile-card.active { background-color: rgba(0,86,179,0.06); color: var(--primary); }
.mobile-card-caret { transition: transform 0.2s ease; }
.mobile-card-expandable[aria-expanded="true"] .mobile-card-caret { transform: rotate(90deg); }
.mobile-submenu { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 0.75rem; margin-top: 0.4rem; }
.mobile-subcard { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background-color: var(--gray-100); border-radius: var(--border-radius); text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.9rem; }
.mobile-subcard:hover { background-color: var(--gray-200); text-decoration: none; color: var(--gray-800); }
.mobile-subcard-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--border-radius); background-color: rgba(0,86,179,0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.mobile-cta { border-radius: var(--border-radius); padding: 1rem; text-align: center; font-weight: 600; margin-top: auto; }

@media (max-width: 991.98px) {
  .utility-strip { padding: 0.35rem clamp(1rem, 4vw, 1.5rem); }
  .utility-info { gap: 0.75rem; }
  .header-row { padding: 0.6rem clamp(1rem, 4vw, 1.5rem); }
  .logo-img { height: 42px; }
}
@media (max-width: 767.98px) { .utility-announcement { display: none; } .utility-hours, .utility-divider { display: none; } }
@media (max-width: 480px) { .utility-strip-inner { gap: 0.75rem; } .utility-info a { font-size: 0.75rem; } .utility-social { padding-left: 0.75rem; gap: 0.6rem; } }


/* ======= Site Search ======= */
.search-trigger-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-700); background-color: var(--gray-100); border: none; flex-shrink: 0; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.search-trigger-btn:hover { background-color: var(--gray-200); color: var(--primary); transform: translateY(-1px); }
.search-overlay { position: fixed; inset: 0; z-index: 1070; display: flex; align-items: flex-start; justify-content: center; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(20,22,28,0.55); opacity: 0; transition: opacity 0.2s ease; }
.search-overlay.is-open .search-overlay-backdrop { opacity: 1; }
.search-overlay-panel { position: relative; width: min(600px, 92vw); margin-top: 12vh; background: transparent; opacity: 0; transform: translateY(-12px); transition: opacity 0.2s ease, transform 0.2s ease; }
.search-overlay.is-open .search-overlay-panel { opacity: 1; transform: translateY(0); }
.search-overlay-form { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.4rem; background: #fff; border-radius: 100px; box-shadow: var(--shadow-lg); }
.search-overlay-icon { color: var(--gray-500); flex-shrink: 0; }
.search-overlay-input { flex: 1; border: none; outline: none; background: transparent; font-size: 1.05rem; color: var(--gray-900); min-width: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.search-overlay-input::-webkit-search-cancel-button, .search-overlay-input::-webkit-search-decoration, .search-overlay-input::-ms-clear { -webkit-appearance: none; appearance: none; display: none; }
.search-overlay-close { background: var(--gray-100); border: none; color: var(--gray-600); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color 0.15s ease, color 0.15s ease; }
.search-overlay-close:hover { background: var(--gray-200); color: var(--gray-800); }
.search-overlay-input:focus { outline: none; }
.search-overlay-form:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px rgba(0,86,179,0.25); }
.search-suggestions { max-height: 60vh; overflow-y: auto; padding: 0.5rem; margin-top: 0.75rem; background: #fff; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); }
.search-suggestions:empty { display: none; margin-top: 0; }
.search-suggestion-group-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); padding: 0.6rem 0.75rem 0.3rem; }
.search-suggestion-item { display: block; padding: 0.65rem 0.75rem; border-radius: var(--border-radius); text-decoration: none; color: inherit; transition: background-color 0.15s ease; }
.search-suggestion-item:hover { background-color: var(--gray-100); text-decoration: none; }
.search-suggestion-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-900); }
.search-suggestion-snippet { font-size: 0.8rem; color: var(--gray-600); margin-top: 2px; }
.search-suggestion-empty, .search-suggestion-hint { padding: 1.5rem 0.75rem; text-align: center; color: var(--gray-500); font-size: 0.85rem; }
@media (max-width: 575.98px) {
  .search-overlay-panel { width: 94vw; margin-top: 5.5rem; }
  .search-overlay-form { padding: 0.7rem 1rem; border-radius: 100px; }
  .search-overlay-icon { width: 16px; height: 16px; }
  .search-overlay-input { font-size: 0.95rem; }
  .search-overlay-close { width: 28px; height: 28px; }
  .search-suggestions { max-height: 55vh; padding: 0.4rem; }
}


/* ======= Homepage Hero ======= */
.home-hero-outer { padding: 2rem clamp(1rem, 3vw, 2rem) 1.5rem; }
.home-hero-card { position: relative; overflow: hidden; border-radius: 24px; max-width: 1320px; margin-inline: auto; min-height: 60vh; display: flex; align-items: center; background-image: url('../images/hero-bg.jpg'); background-size: cover; background-position: center; box-shadow: 0 20px 48px -20px rgba(0,0,0,0.35); }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 100%); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 2; width: 100%; padding: 4rem 2rem; }
.hero-text-wrap { max-width: 720px; margin-inline: auto; text-align: center; color: #fff; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 1.5rem; }
.hero-text-wrap h1 { color: #fff; font-size: 2.75rem; font-weight: 700; margin-bottom: 1.25rem; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.hero-subtext { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.hero-stat-line { font-size: 1.05rem; color: #ffe9b3; margin-bottom: 2rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero-primary-btn { box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3); }
.btn.hero-secondary-btn { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35); }
.btn.hero-secondary-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.hero-security-badge { position: absolute; bottom: -24px; right: 5%; width: 100px; z-index: 3; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@media (max-width: 1024px) { .home-hero-card { border-radius: 20px; min-height: 56vh; } .hero-text-wrap h1 { font-size: 2.25rem; } }
@media (max-width: 640px) { .home-hero-outer { padding: 1.25rem 1rem 1rem; } .home-hero-card { border-radius: 16px; min-height: auto; } .home-hero-inner { padding: 3rem 1.25rem; } .hero-text-wrap h1 { font-size: 1.85rem; } .hero-security-badge { width: 70px; bottom: -16px; } }
@media (max-width: 380px) { .home-hero-card { border-radius: 14px; } .home-hero-inner { padding: 2.5rem 1rem; } }


/* ======= Section / Page Header ======= */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { position: relative; display: inline-block; margin-bottom: 1rem; font-weight: 700; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--primary); }
.section-title p { color: var(--gray-600); font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.page-header-outer { padding: 2rem clamp(1rem, 3vw, 2rem) 0; }
.page-header { padding: 5rem 2rem 4rem; min-height: 38vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); position: relative; overflow: hidden; border-radius: 24px; max-width: 1320px; margin-inline: auto; box-shadow: 0 20px 48px -20px rgba(0,0,0,0.35); }
.page-header::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-header--primary::before { background-image: url('../images/page-header-bg-main.png'); }
.page-header--secondary::before { background-image: url('../images/page-header-bg-secondary.png'); }
.page-header-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%); }
.page-header .container { position: relative; z-index: 2; }
.page-header-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); padding: 0.4rem 1.1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 1.25rem; color: #fff; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.25); margin-bottom: 0.75rem; }
.page-header p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.92); max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .page-header { border-radius: 20px; min-height: 36vh; } }
@media (max-width: 767.98px) { .page-header-outer { padding: 1.25rem 1rem 0; } .page-header { padding: 4.5rem 1.5rem 3rem; min-height: 32vh; border-radius: 16px; } .page-header h1 { font-size: 2rem; } }
@media (max-width: 380px) { .page-header { border-radius: 14px; } }


/* ======= Elevated Section Treatments ======= */
.section-badge { display: flex; align-items: center; gap: 0.5rem; width: fit-content; background: rgba(0,86,179,0.08); color: var(--primary); padding: 0.4rem 1.1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px; margin: 0 auto 1rem; }
.section-badge-light { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cta-gradient-card { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 1.5rem; padding: 3.5rem 2.5rem; box-shadow: 0 20px 48px -16px rgba(0,86,179,0.45); color: #fff; }
.trust-icon-circle { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 0.5rem 1rem rgba(0,86,179,0.25); }
.trust-section-card { background: #fff; border-radius: 1.5rem; padding: 3rem 2.5rem; box-shadow: var(--shadow); }
.trust-item-card { background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition-slow); }
.trust-item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-section-card .badge-item { background-color: var(--gray-100); }

.service-feature-icon-circle { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 0.5rem 1rem rgba(0,86,179,0.25); margin-bottom: 1.5rem; }
.service-feature-card { border: none; box-shadow: var(--shadow-sm); transition: var(--transition-slow); }
.service-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.industry-card-v3 { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-slow); }
.industry-card-v3:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.industry-card-v3-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(0,86,179,0.06) 0%, rgba(74,111,220,0.06) 100%); border-bottom: 1px solid var(--gray-200); }
.industry-card-v3-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 0.4rem 0.8rem rgba(0,86,179,0.25); }
.industry-card-v3-header h4 { margin-bottom: 0; }
.industry-card-v3-body { padding: 1.5rem; }
.industry-card-v3-body p { color: var(--gray-700); }
.industry-solution-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.industry-solution-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(46,204,113,0.1); color: #1a8f4c; border-radius: 100px; padding: 0.4rem 0.9rem; font-size: 0.82rem; font-weight: 500; }
.industry-solution-chip i { font-size: 0.75rem; }

.custom-solution-list li { padding: 0.4rem 0; color: var(--gray-700); }

/* Package cards — distinct per type */
.wdcard { background: #fff; border-radius: 1rem; border-left: 5px solid var(--primary); box-shadow: var(--shadow-sm); padding: 2rem; height: 100%; transition: var(--transition-slow); }
.wdcard:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.wdcard-price { font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }

.seccard { background: linear-gradient(160deg, #14213d 0%, #1e2a4a 100%); color: #fff; border-radius: 1rem; padding: 2rem; height: 100%; box-shadow: var(--shadow-sm); transition: var(--transition-slow); position: relative; overflow: hidden; }
.seccard::before { content: ''; position: absolute; top: -30%; right: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 70%); }
.seccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.seccard h4, .seccard .card-title { color: #fff; }
.seccard p, .seccard .card-text { color: rgba(255,255,255,0.75); }
.seccard .secprice { font-size: 1.9rem; font-weight: 700; color: var(--secure-green); margin-bottom: 0.25rem; }
.seccard ul li { color: rgba(255,255,255,0.85); }
.seccard .btn-outline-primary { color: #fff; border-color: rgba(255,255,255,0.4); }
.seccard .btn-outline-primary:hover { background: var(--secure-green); border-color: var(--secure-green); color: #14213d; }

.combocard { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-sm); padding: 2rem; height: 100%; position: relative; transition: var(--transition-slow); border: 2px dashed rgba(0,86,179,0.25); }
.combocard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.combocard-badge { position: absolute; top: -12px; left: 2rem; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 0.35rem 0.9rem; border-radius: 100px; box-shadow: 0 4px 10px -4px rgba(0,86,179,0.5); }
.combocard-price { font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }

.maintenance-card { position: relative; background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-slow); height: 100%; display: flex; flex-direction: column; }
.maintenance-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.maintenance-card.featured { box-shadow: 0 20px 40px -16px rgba(0,86,179,0.35); border: 2px solid var(--primary); }
.maintenance-card-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; padding: 2rem 1.75rem 1.5rem; text-align: center; position: relative; }
.maintenance-card.featured .maintenance-card-header { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); }
.maintenance-popular-tag { position: absolute; top: -1px; right: 1.5rem; background: #ffc107; color: #212529; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.35rem 0.9rem; border-radius: 0 0 0.5rem 0.5rem; }
.maintenance-card-header h4 { color: #fff; margin-bottom: 0.5rem; }
.maintenance-card-header p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 0; }
.maintenance-price { font-size: 2.25rem; font-weight: 700; color: #fff; margin: 1rem 0 0; }
.maintenance-price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.8); }
.maintenance-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.maintenance-card-body ul { flex: 1; }

.featured-package-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 100px; box-shadow: 0 4px 12px -4px rgba(0,86,179,0.5); }

.faq-card-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-card-item { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-sm); overflow: hidden; border: none; transition: var(--transition-base); }
.faq-card-item:hover { box-shadow: var(--shadow); }
.faq-card-item .accordion-button { border-radius: 1rem; font-size: 1rem; }
.faq-card-item .accordion-button:not(.collapsed) { border-radius: 1rem 1rem 0 0; }
.faq-card-item .accordion-body { border-radius: 0 0 1rem 1rem; }

.newsletter-card { background: #fff; border-radius: 1.25rem; padding: 3rem 2.5rem; box-shadow: var(--shadow); }
.newsletter-input-wrap { position: relative; }
.newsletter-input { height: 58px; padding: 0 1.2rem 0 2.7rem; font-size: 0.92rem; border-radius: 100px; border: 1.5px solid var(--gray-300); background-color: #fff; transition: var(--transition-base); }
.newsletter-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.15); outline: none; }
.newsletter-input-icon { position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--gray-500); font-size: 0.9rem; pointer-events: none; transition: opacity 0.15s ease; z-index: 2; }
.newsletter-input:focus ~ .newsletter-input-icon, .newsletter-input:not(:placeholder-shown) ~ .newsletter-input-icon { opacity: 0; }
.newsletter-input-label { position: absolute; left: 2.6rem; top: 50%; transform: translateY(-50%); padding: 0 0.4rem; color: var(--gray-500); font-size: 0.92rem; background: transparent; pointer-events: none; transition: var(--transition-base); margin: 0; }
.newsletter-input:focus ~ .newsletter-input-label, .newsletter-input:not(:placeholder-shown) ~ .newsletter-input-label { left: 1.4rem; top: 0; transform: translateY(-50%); font-size: 0.72rem; font-weight: 600; color: var(--primary); background: #fff; }
.newsletter-card .btn-lg { border-radius: 100px; height: 58px; display: flex; align-items: center; justify-content: center; padding: 0 1.75rem; }

.contact-field-wrap { position: relative; margin-bottom: 1.5rem; }
.contact-input { width: 100%; padding: 1rem 1rem 1rem 2.8rem; border-radius: var(--border-radius); border: 1.5px solid var(--gray-300); background: #fff; font-size: 0.95rem; transition: var(--transition-base); }
.contact-input.contact-textarea { padding-top: 1.5rem; }
.contact-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.15); outline: none; }
.contact-field-icon { position: absolute; left: 1.1rem; top: 1.15rem; color: var(--gray-500); font-size: 0.95rem; pointer-events: none; transition: opacity 0.15s ease; z-index: 2; }
.contact-input:focus ~ .contact-field-icon, .contact-input:not(:placeholder-shown) ~ .contact-field-icon { opacity: 0; }
.contact-field-label { position: absolute; left: 2.7rem; top: 1.1rem; padding: 0 0.4rem; color: var(--gray-500); font-size: 0.95rem; background: transparent; pointer-events: none; transition: var(--transition-base); margin: 0; }
.contact-input:focus ~ .contact-field-label, .contact-input:not(:placeholder-shown) ~ .contact-field-label { left: 1rem; top: 0; transform: translateY(-50%); font-size: 0.72rem; font-weight: 600; color: var(--primary); background: #fff; }
.contact-field-hint { font-size: 0.8rem; color: var(--alert-amber); margin-top: 0.35rem; opacity: 0; height: 0; overflow: hidden; transition: opacity 0.2s ease; }
.contact-field-hint.show { opacity: 1; height: auto; }

.approach-content-card { background: #fff; border-radius: 1rem; padding: 2.5rem; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); }
.approach-content-card p { color: var(--gray-700); line-height: 1.8; }
.approach-content-card p.lead { color: var(--gray-900); font-weight: 500; }
.contact-form-card { background: #fff; border-radius: 1rem; padding: 2.5rem; border-top: 4px solid var(--primary); box-shadow: var(--shadow-lg); }

.security-cta-box { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); border-radius: 1rem; padding: 2.5rem; color: #fff; text-align: center; }
.security-cta-box h2 { color: #fff; }
.security-cta-box h2::after { background-color: rgba(255,255,255,0.6); }
.security-cta-box p { opacity: 0.95; font-size: 1.1rem; }

.legal-content-card { background: #fff; border-radius: 1rem; padding: 3rem; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.legal-content-card h2, .legal-content-card h4 { color: var(--gray-900); margin-top: 2rem; }
.legal-content-card h2:first-child, .legal-content-card h4:first-child { margin-top: 0; }
.legal-content-card p, .legal-content-card li { color: var(--gray-700); line-height: 1.75; }
.legal-content-card ul { margin-bottom: 1.25rem; }


/* ======= Secure Connection Intro (once per session) ======= */
.intro-connection-overlay { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.4s ease; }
.intro-connection-overlay[hidden] { display: none; }
.intro-connection-overlay.fade-out { opacity: 0; pointer-events: none; }
.intro-connection-inner { text-align: center; color: #fff; }
.intro-shield-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.intro-shield-icon { color: #fff; opacity: 0.95; }
.intro-shield-check { stroke-dasharray: 12; stroke-dashoffset: 12; animation: intro-check-draw 0.5s ease forwards 0.7s; }
@keyframes intro-check-draw { to { stroke-dashoffset: 0; } }
.intro-connection-wordmark { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.3px; margin: 0 0 1.25rem; color: #fff; }
.intro-progress-track { width: 180px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; margin: 0 auto 1rem; overflow: hidden; }
.intro-progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 3px; animation: intro-progress-fill 1.1s ease forwards; }
@keyframes intro-progress-fill { to { width: 100%; } }
.intro-connection-text { font-size: 0.85rem; letter-spacing: 0.4px; opacity: 0.85; margin: 0; }
@media (prefers-reduced-motion: reduce) { .intro-connection-overlay { display: none !important; } }

/* Slim top progress bar — page navigation feedback */
.page-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--primary) 0%, #4a6fdc 100%); z-index: 10000; transition: width 0.5s ease; box-shadow: 0 0 8px rgba(0,86,179,0.6); pointer-events: none; }
.page-progress-bar.active { width: 82%; }
@media (prefers-reduced-motion: reduce) { .page-progress-bar { transition: none; } }


/* ======= Cards / General ======= */
.card { border: none; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: var(--transition-base); overflow: hidden; }
.card:hover { box-shadow: var(--shadow); }
.card-title { font-weight: 600; margin-bottom: 1rem; }
.card-body { padding: 1.5rem; }

.service-card { text-align: center; border-radius: var(--border-radius); transition: var(--transition-slow); }
.service-card:hover { transform: translateY(-10px); }
.service-card .icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.service-card h4 { margin-bottom: 1rem; font-weight: 600; }
.service-benefits { margin: 1rem 0; }
.service-benefits .badge { padding: 0.5rem 0.75rem; font-weight: 500; margin-right: 0.5rem; margin-bottom: 0.5rem; border-radius: var(--border-radius-sm); }

/* Portfolio items */
.portfolio-item { position: relative; overflow: hidden; border-radius: var(--border-radius); margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.portfolio-item img { width: 100%; height: auto; transition: var(--transition-slow); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; opacity: 0; transition: var(--transition-base); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-card { transition: all 0.3s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important; }
@media (max-width: 991.98px) {
  .portfolio-item { display: block; background: #fff; border-radius: 1rem; overflow: hidden; }
  .portfolio-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
  .portfolio-overlay { position: static; opacity: 1; background: #fff; color: var(--gray-900); align-items: flex-start; text-align: left; padding: 1.5rem; }
  .portfolio-overlay h4 { color: var(--gray-900); }
  .portfolio-overlay p { color: var(--gray-600); }
  .portfolio-overlay .industry-badge { position: static; display: inline-block; margin-bottom: 0.75rem; background-color: rgba(0,86,179,0.08); color: var(--primary); }
  .portfolio-item:hover img { transform: none; }
}

/* Industry badges (context-dependent variants) */
.case-study-content .industry-badge, .section .industry-badge { display: inline-block; padding: 0.5rem 1rem; background-color: rgba(var(--bs-primary-rgb), 0.1); border-radius: 2rem; font-weight: 500; color: var(--bs-primary); position: static; }
.card .industry-badge { position: absolute; top: 1rem; left: 1rem; background-color: var(--primary); color: var(--white); padding: 0.25rem 0.75rem; border-radius: var(--border-radius-sm); font-size: 0.8rem; font-weight: 500; z-index: 2; }
.bg-primary .industry-badge, .text-white .industry-badge { background-color: rgba(255,255,255,0.2); color: white; }
.industry-badge-large { display: inline-block; background-color: rgba(255,255,255,0.2); color: var(--white); padding: 0.5rem 1.5rem; border-radius: var(--border-radius); font-size: 1rem; font-weight: 500; }
.page-header .industry-badge { background-color: rgba(255,255,255,0.2); color: white; }


/* ======= Testimonials ======= */
.testimonial-carousel-item { padding: 2rem 0; }
.testimonial { background-color: var(--white); border-radius: var(--border-radius); padding: 3rem 2rem 2rem; position: relative; box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition-base); height: 100%; margin-bottom: 2rem; }
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.testimonial img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: var(--shadow-sm); margin: 0 auto 1.5rem; display: block; }
.testimonial .quote-icon { position: absolute; top: 1.5rem; left: 2rem; color: var(--gray-200); font-size: 1.5rem; }
.testimonial .quote { font-style: italic; margin-bottom: 1.5rem; position: relative; font-size: 1.1rem; padding-left: 1.5rem; }
.testimonial .quote::before { content: '"'; font-size: 3rem; position: absolute; left: 0; top: -1rem; color: var(--gray-300); font-family: Georgia, serif; }
.testimonial .name { font-weight: 600; margin-bottom: 0.25rem; }
.testimonial .company { color: var(--gray-600); font-size: 0.9rem; }
.testimonial .industry-tag { position: absolute; top: 1rem; right: 1rem; background-color: var(--primary-light); color: var(--white); padding: 0.25rem 0.75rem; border-radius: var(--border-radius-sm); font-size: 0.8rem; }
.testimonial-avatar-svg { width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-sm); }
.testimonial-avatar-svg svg { width: 100%; height: 100%; display: block; }

.carousel-control-prev, .carousel-control-next { width: 10%; }
.carousel-indicators { bottom: -10px; }
.carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; background-color: var(--primary); opacity: 0.5; }
.carousel-indicators button.active { opacity: 1; }
#testimonialCarousel .carousel-control-prev, #testimonialCarousel .carousel-control-next { background: rgba(0,0,0,0.1); border-radius: 50%; width: 40px; height: 40px; top: 50%; transform: translateY(-50%); opacity: 0; transition: var(--transition-base); }
#testimonialCarousel:hover .carousel-control-prev, #testimonialCarousel:hover .carousel-control-next { opacity: 0.7; }
#testimonialCarousel .carousel-control-prev { left: -20px; }
#testimonialCarousel .carousel-control-next { right: -20px; }
.row.equal-height { display: flex; flex-wrap: wrap; }
.row.equal-height > [class*='col-'] { display: flex; flex-direction: column; }
.row.equal-height .testimonial { flex: 1; }
@media (max-width: 767px) {
  .testimonial { padding: 1.5rem; margin-bottom: 1.5rem; }
  #testimonialCarousel .carousel-control-prev, #testimonialCarousel .carousel-control-next { display: none; }
  .testimonial img { width: 60px; height: 60px; }
}


/* ======= Team Members ======= */
.team-member { text-align: center; background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); transition: var(--transition-base); }
.team-member:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.team-member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 5px solid var(--gray-100); }
.team-member h4 { margin-bottom: 0.5rem; }
.team-member p { color: var(--gray-600); margin-bottom: 1rem; }
.team-member .social { margin-bottom: 1rem; }
.team-member .social a { display: inline-block; width: 36px; height: 36px; line-height: 36px; background-color: var(--gray-100); color: var(--gray-700); border-radius: 50%; margin: 0 0.25rem; transition: var(--transition-base); }
.team-member .social a:hover { background-color: var(--primary); color: var(--white); transform: translateY(-3px); }

.founder-image img { border-radius: 50%; border: 5px solid var(--white); box-shadow: var(--shadow); }
.social-links a { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; background-color: var(--gray-100); color: var(--gray-700); border-radius: 50%; margin: 0 0.25rem; transition: var(--transition-base); }
.social-links a:hover { background-color: var(--primary); color: var(--white); transform: translateY(-3px); }
.specialist-expertise { margin-top: 1rem; }
.specialist-expertise .badge { margin-right: 0.5rem; margin-bottom: 0.5rem; }


/* ======= Process / Timeline (legacy) ======= */
.process-timeline { position: relative; padding-left: 3rem; padding-top: 2rem; padding-bottom: 2rem; }
.process-timeline::before { content: ''; position: absolute; left: 15px; top: 0; height: 100%; width: 2px; background-color: var(--bs-primary); }
.process-step { position: relative; padding-left: 60px; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); transition: var(--transition-slow); }
.process-step.animate { opacity: 1; transform: translateY(0); }
.process-step:last-child { margin-bottom: 0; }
.process-step-number { position: absolute; left: -3rem; top: 0; width: 32px; height: 32px; background-color: var(--bs-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 1; }
.process-step::before { content: ''; position: absolute; left: 20px; top: 40px; bottom: -40px; width: 2px; background-color: var(--gray-300); }
.process-step:last-child::before { display: none; }
.step-number { position: absolute; left: 0; top: 0; width: 40px; height: 40px; background-color: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; z-index: 2; }
.step-content h4 { margin-bottom: 0.5rem; }

.approach-step { text-align: center; padding: 1.5rem; background-color: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: var(--transition-base); height: 100%; }
.approach-step:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.step-icon { margin-bottom: 1rem; color: var(--primary); }

.timeline { position: relative; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background-color: var(--gray-300); }
.timeline-item { position: relative; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); transition: var(--transition-slow); }
.timeline-item.animate { opacity: 1; transform: translateY(0); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--border-radius); font-weight: 600; z-index: 2; }
.timeline-content { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); width: 45%; margin-top: 2rem; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }

/* Process grid v2 — replaces the old vertical timeline with a card grid */
.process-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step-v2 { background: #fff; border-radius: 1rem; padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center; position: relative; transition: var(--transition-slow); }
.process-step-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process-step-v2-number { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -4px rgba(0,86,179,0.5); }
.process-step-v2-icon { font-size: 1.75rem; color: var(--primary); margin: 0.75rem 0 1rem; }
.process-step-v2 h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.process-step-v2 p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0; }
.process-grid-v2--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .process-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .process-grid-v2--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .process-grid-v2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .process-grid-v2--4 { grid-template-columns: 1fr; } }


/* ======= Industry / Risk / Expertise Cards ======= */
.industry-card { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-base); }
.industry-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.industry-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.industry-card h4 { margin-bottom: 1rem; }
.industry-challenges { margin-top: 1.5rem; }
.industry-challenges h6 { color: var(--gray-700); margin-bottom: 0.75rem; }

.risk-card { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-base); }
.risk-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.risk-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.risk-card h4 { margin-bottom: 1rem; }

.expertise-card { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-base); }
.expertise-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.expertise-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; text-align: center; }
.expertise-card h4 { margin-bottom: 1rem; text-align: center; }
.expertise-features { margin-top: 1.5rem; text-align: center; }

/* Service pillar cards (Web Dev / Cybersecurity intro) */
.service-pillar-card { border-radius: 1.25rem; padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-sm); transition: var(--transition-slow); display: flex; flex-direction: column; }
.service-pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-pillar-icon { width: 72px; height: 72px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: #fff; margin-bottom: 1.5rem; }
.service-pillar-card--web { background: #fff; border-left: 5px solid var(--primary); }
.service-pillar-card--web .service-pillar-icon { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); }
.service-pillar-card--security { background: linear-gradient(160deg, #14213d 0%, #1e2a4a 100%); color: #fff; }
.service-pillar-card--security .service-pillar-icon { background: linear-gradient(135deg, var(--secure-green) 0%, #22a35d 100%); }
.service-pillar-card--security h3, .service-pillar-card--security p.lead { color: #fff; }
.service-pillar-card--security ul li { color: rgba(255,255,255,0.85); }
.service-pillar-card--security .btn-primary { background: var(--secure-green); border-color: var(--secure-green); color: #0f1a12; font-weight: 600; }
.service-pillar-card--security .btn-primary:hover { background: #22a35d; border-color: #22a35d; }

/* Category tiles */
.category-tile-card { display: block; background: #fff; border-radius: 1rem; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; height: 100%; transition: var(--transition-slow); }
.category-tile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.category-tile-icon { width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.category-tile-card h4 { margin-bottom: 0.75rem; }
.category-tile-card p { color: var(--gray-600); }
.category-tile-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.category-tile-card:hover .category-tile-link { gap: 0.6rem; }

/* Service sidebar cards (Service Detail / Package Detail / Portfolio Detail) */
.service-sidebar-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.service-sidebar-card-header { padding: 1.1rem 1.5rem; background: var(--gray-100); font-weight: 600; font-size: 1rem; color: var(--gray-900); border-bottom: 1px solid var(--gray-200); }
.service-sidebar-card-header i { color: var(--primary); margin-right: 0.5rem; }
.service-sidebar-card-body { padding: 1.5rem; }
.service-sidebar-card-cta { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; }
.service-sidebar-card-cta h4, .service-sidebar-card-cta p { color: #fff; }
.service-sidebar-card-cta i { color: rgba(255,255,255,0.85); }
.service-sidebar-card-cta .btn-light { color: var(--primary); font-weight: 600; }


/* ======= Stats ======= */
.stat-item { padding: 2rem 1.5rem; border-radius: 1rem; background-color: rgba(255,255,255,0.1); backdrop-filter: blur(10px); transition: var(--transition-slow); height: 100%; }
.stat-item:hover { transform: translateY(-5px); background-color: rgba(255,255,255,0.15); }
.stat-number { font-size: 2.75rem; font-weight: 700; margin-bottom: 0.75rem; background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item p { margin-bottom: 0; opacity: 0.95; }

.numbers-stat-card { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 1.5rem; padding: 3rem 2rem; box-shadow: 0 20px 48px -20px rgba(0,86,179,0.4); }
.numbers-stat-card .h1 { color: #fff !important; background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.numbers-stat-card p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

.case-study-stats { margin: 2rem 0; }
.stat-box { padding: 1rem; border-radius: var(--border-radius-sm); background-color: var(--gray-100); }
.stat-value { font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 1px; }


/* ======= Contact Info / Map ======= */
.contact-info { margin-bottom: 2rem; }
.contact-icon { width: 50px; height: 50px; background-color: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary); transition: var(--transition-base); }
.contact-info:hover .contact-icon { background-color: var(--primary); color: var(--white); transform: scale(1.1); }
.contact-info h5 { margin-bottom: 0.25rem; }
.map-container { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.contact-page .social-icons a, .mt-4 .social-icons a { display: inline-block; width: 50px; height: 50px; line-height: 50px; text-align: center; background-color: rgba(0,0,0,0.1); color: var(--dark); border-radius: 50%; margin-right: 0.5rem; transition: var(--transition-base); }
.contact-page .social-icons a:hover, .mt-4 .social-icons a:hover { background-color: var(--primary); transform: translateY(-3px); color: var(--white); }
.mt-4 .social-icons a i { display: flex; align-items: center; justify-content: center; height: 100%; }


/* ======= Accordion ======= */
.accordion-item { border: none; margin-bottom: 1rem; border-radius: var(--border-radius) !important; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 1.25rem; background-color: var(--white); box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--primary); background-color: var(--gray-100); }
.accordion-button:focus { box-shadow: none; border-color: var(--gray-300); }
.accordion-button::after { background-size: 1rem; transition: var(--transition-base); }
.accordion-body { padding: 1.25rem; background-color: var(--white); }


/* ======= Pricing / Feature / Benefit Items ======= */
.price { text-align: center; margin-bottom: 1.5rem; }
.price h3 { color: var(--primary); font-weight: 700; margin-bottom: 0.25rem; }
.discount { font-weight: 500; }
.feature-item, .benefit-item, .approach-item { margin-bottom: 1.5rem; }
.feature-icon, .benefit-icon, .approach-icon { font-size: 1.25rem; color: var(--primary); }
.security-features { margin: 1.5rem 0; }
.security-features .badge { padding: 0.5rem 0.75rem; margin-right: 0.5rem; margin-bottom: 0.5rem; font-weight: 500; }
.benefit-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.benefit-icon { margin-right: 1rem; color: var(--warning); font-size: 1.25rem; }
.ideal-item { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.ideal-icon { margin-right: 1rem; color: var(--primary); font-size: 1.25rem; }
.featured-badge { margin-top: 1rem; }
.featured-badge .badge { font-size: 1rem; padding: 0.5rem 1rem; border-radius: var(--border-radius); }

.industry-application-card { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; height: 100%; transition: var(--transition-base); }
.industry-application-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.industry-benefits { margin-top: 1.5rem; }

.outcome-card { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-base); }
.outcome-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.outcome-icon { font-size: 2.5rem; color: var(--primary); }
.outcome-card h4 { font-size: 2rem; font-weight: 700; margin: 1rem 0; }


/* ======= Case Study ======= */
.case-study-content h2 { margin-bottom: 1rem; }
.case-study-content .lead { margin-bottom: 2rem; color: var(--gray-600); }
.case-study-featured { background-color: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow); }
.challenge-solution h5 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 600; }

.cs-challenge-card, .cs-solution-card { background: #fff; border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-sm); }
.cs-challenge-card { border-left: 5px solid var(--alert-amber); }
.cs-solution-card { border-left: 5px solid var(--primary); }
.cs-card-text { color: var(--gray-700); line-height: 1.8; }
.cs-card-text p:last-child { margin-bottom: 0; }
.cs-quote-card { background: #fff; border-radius: 1.25rem; padding: 2.5rem; box-shadow: var(--shadow); position: relative; }
.cs-quote-mark { position: absolute; top: 1.5rem; left: 1.5rem; font-size: 2.5rem; color: var(--primary); opacity: 0.12; }
.cs-compare-card { border-radius: 1rem; padding: 1.75rem; height: 100%; box-shadow: var(--shadow-sm); }
.cs-compare-card h4 { margin-bottom: 1.25rem; }
.cs-compare-card--before { background: rgba(231,76,60,0.05); border: 1px solid rgba(231,76,60,0.15); }
.cs-compare-card--after { background: rgba(46,204,113,0.05); border: 1px solid rgba(46,204,113,0.15); }
.cs-tech-item { background: #fff; border-radius: 1rem; padding: 1.5rem 1rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-slow); }
.cs-tech-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cs-testimonial-avatar { width: 72px; height: 72px; margin: 0 auto 1.25rem; }
.cs-testimonial-avatar svg { width: 100%; height: 100%; display: block; }


/* ======= Trust Indicators ======= */
.trust-item { margin-bottom: 2rem; }
.trust-icon { font-size: 1.5rem; color: var(--primary); }
.trust-badges .badge-item { background-color: var(--white); border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition-base); }
.trust-badges .badge-item:hover { box-shadow: var(--shadow); transform: translateY(-5px); }


/* ======= Newsletter / Thank You ======= */
.newsletter-form { max-width: 600px; margin: 0 auto; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.thank-you-message { animation: fadeIn 0.5s ease-out forwards; padding: 2rem; border-radius: 8px; background-color: rgba(var(--bs-primary-rgb), 0.05); }
@keyframes successPulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.thank-you-message .fa-check-circle { animation: successPulse 1.5s ease-in-out infinite; }


/* ======= Footer ======= */
.footer { background: linear-gradient(180deg, var(--dark) 0%, #212836 100%); color: var(--gray-300); padding: 5rem 0 2rem; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, #4a6fdc 50%, var(--secure-green) 100%); }
.footer h5 { color: var(--white); margin-bottom: 1.5rem; font-weight: 600; position: relative; padding-bottom: 0.75rem; }
.footer h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, #4a6fdc 100%); border-radius: 2px; }
.footer ul li { margin-bottom: 0.75rem; }
.footer a { color: var(--gray-300); transition: var(--transition-base); display: inline-block; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; text-align: center; background-color: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--white); border-radius: 50%; margin-right: 0.5rem; transition: var(--transition-base); }
.footer .social-icons a:hover { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); border-color: transparent; transform: translateY(-3px); box-shadow: 0 6px 14px -4px rgba(0,86,179,0.5); }
.footer ul.list-unstyled a { padding: 0.4rem 0.5rem; margin-left: -0.5rem; border-radius: 6px; transition: all 0.25s ease; position: relative; display: inline-flex; align-items: center; }
.footer ul.list-unstyled a::before { content: ''; width: 0; height: 6px; background: var(--primary); border-radius: 3px; margin-right: 0; transition: width 0.25s ease, margin-right 0.25s ease; }
.footer ul.list-unstyled a:hover { background-color: rgba(255,255,255,0.06); color: var(--white); padding-left: 0.75rem; }
.footer ul.list-unstyled a:hover::before { width: 6px; margin-right: 8px; }
.footer address a { padding: 0.25rem 0.5rem; margin-left: -0.5rem; border-radius: 4px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.footer address a:hover { background-color: var(--primary); transform: translateY(-3px); color: var(--white); }
.footer .btn { position: relative; overflow: hidden; }
.footer ul.list-unstyled a::after, .footer address a::after, .footer .btn::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0.5rem; background-color: var(--white); transition: width 0.3s ease; opacity: 0.8; }
.footer ul.list-unstyled a:hover::after, .footer address a:hover::after, .footer .btn:hover::after { width: calc(100% - 1rem); }
.footer .social-icons a::after { display: none; }
.footer hr { border-color: rgba(255,255,255,0.1); }
.footer address .footer-contact-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer address .footer-contact-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--primary-light); font-size: 0.85rem; }
.footer .footer-links .btn { border-radius: 100px; padding: 0.6rem 1.25rem; font-size: 0.85rem; margin-bottom: 0.6rem; width: 100%; justify-content: flex-start; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); border: none; box-shadow: 0 4px 12px -4px rgba(0,86,179,0.4); }
.footer .footer-links .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(0,86,179,0.5); }


/* ======= WhatsApp Button ======= */
.whatsapp-button { position: fixed; bottom: 20px; left: 20px; width: 60px; height: 60px; background-color: #25D366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: var(--shadow); z-index: 999; transition: var(--transition-base); }
.whatsapp-button:hover { transform: scale(1.1); color: var(--white); }


/* ======= Hover Effects / Generic Animations ======= */
.hover-effect { transition: var(--transition-slow); }
.hover-effect:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

@keyframes slideInUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.security-badge { animation: pulse 2s infinite; } /* Distinct from .hero-security-badge (used in home.html) — kept, unconfirmed elsewhere but not proven dead */


/* ======= Forms / Badges / Alerts ======= */
.form-control { border-radius: var(--border-radius); padding: 0.75rem 1rem; border: 1px solid var(--gray-300); transition: var(--transition-base); }
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.25); }
.form-label { font-weight: 500; margin-bottom: 0.5rem; }
#formSpinner { width: 1.5rem; height: 1.5rem; }

.badge { font-weight: 500; padding: 0.5rem 0.75rem; border-radius: var(--border-radius-sm); }
.badge-success { background-color: var(--secure-green); }

.alert { border: none; border-radius: var(--border-radius); padding: 1rem 1.25rem; }
.alert-success { background-color: rgba(46,204,113,0.15); color: var(--secure-green); }
.alert-warning { background-color: rgba(243,156,18,0.15); color: var(--alert-amber); }
.alert-danger { background-color: rgba(231,76,60,0.15); color: var(--critical-red); }


/* ======= Portfolio Filters ======= */
.portfolio-filters button { margin-right: 0.5rem; margin-bottom: 0.5rem; transition: var(--transition-base); }
.portfolio-filters button.active { background-color: var(--primary); color: var(--white); border-color: var(--primary); }


/* ======= Responsive Adjustments ======= */
@media (max-width: 1199.98px) { h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; } }
@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .timeline::before { left: 30px; }
  .timeline-date { left: 30px; transform: none; }
  .timeline-content { width: calc(100% - 80px); margin-left: 80px; margin-top: 2.5rem; }
  .timeline-item:nth-child(odd) .timeline-content { margin-left: 80px; }
}
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .section-title { margin-bottom: 2rem; }
  .section-title h2 { font-size: 1.75rem; }
  .process-step { padding-left: 50px; }
  .step-number { width: 35px; height: 35px; }
  .process-step::before { left: 17px; }
  .stat-number { font-size: 2.5rem; }
}
@media (max-width: 575.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.35rem; }
  .btn-lg { padding: 0.5rem 1.5rem; font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .whatsapp-button { width: 50px; height: 50px; font-size: 1.5rem; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px; padding: 1.5rem; }
  .timeline-date { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .card-body { padding: 1.25rem; }
  .process-step { padding-left: 40px; }
  .step-number { width: 30px; height: 30px; font-size: 0.9rem; }
  .process-step::before { left: 15px; }
}

/* Print Styles */
@media print {
  .navbar, .footer, .cta-section, .whatsapp-button, .chat-privacy-notice { display: none !important; }
  body { font-size: 12pt; }
  .container { max-width: 100%; width: 100%; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .section { padding: 1rem 0; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 90%; }
  .col-lg-4, .col-md-6 { width: 100%; }
}

/* Accessibility */
:focus { outline: 3px solid rgba(0,86,179,0.5); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }


/* ======= Security-Themed Elements ======= */
.security-status { display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--border-radius-sm); font-size: 0.85rem; font-weight: 500; margin-right: 0.5rem; }
.security-status.secure { background-color: rgba(46,204,113,0.15); color: var(--secure-green); }
.security-status.warning { background-color: rgba(243,156,18,0.15); color: var(--alert-amber); }
.security-status.critical { background-color: rgba(231,76,60,0.15); color: var(--critical-red); }
.security-feature-highlight { border-left: 4px solid var(--primary); padding-left: 1rem; margin: 1.5rem 0; }
.security-feature-highlight h5 { color: var(--primary); margin-bottom: 0.5rem; }


/* ======= Video Section (real — plain iframe embed) ======= */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-section { position: relative; }
.video-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../images/security-assessment-illustration.svg'); background-size: cover; opacity: 0.05; pointer-events: none; }
.video-highlights .highlight-item { padding: 1rem; border-radius: 8px; transition: all 0.3s ease; }
.video-highlights .highlight-item:hover { background-color: rgba(0,86,179,0.05); transform: translateY(-5px); }
.video-highlights .highlight-item i { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.video-highlights .highlight-item h5 { font-weight: 600; margin-bottom: 0.5rem; }
.video-section .section-title { margin-bottom: 2.5rem; }
.tech-item { transition: all 0.3s ease; }
.tech-item:hover { transform: translateY(-5px); }

.testimonial-video { position: relative; margin-bottom: 2rem; }
.testimonial-video .video-container { border-radius: 8px; overflow: hidden; }
.testimonial-quote { background-color: white; padding: 2rem; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: -2rem; position: relative; z-index: 2; margin-left: 2rem; margin-right: 2rem; }
.testimonial-quote::before { content: '"'; font-size: 4rem; position: absolute; top: -1rem; left: 1rem; color: var(--primary); opacity: 0.2; font-family: Georgia, serif; }
.testimonial-author { display: flex; align-items: center; margin-top: 1rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; margin-right: 1rem; object-fit: cover; }
.testimonial-author-info h5 { margin-bottom: 0; font-weight: 600; }
.testimonial-author-info p { margin-bottom: 0; color: var(--gray-600); font-size: 0.9rem; }


/* ======= Security Score Calculator ======= */
.bg-gradient-primary-to-secondary { background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); }
.assessment-question { transition: all 0.3s ease; }
.assessment-question:hover { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.score-container { display: flex; flex-direction: column; align-items: center; }
.score-circle { width: 180px; height: 180px; border-radius: 50%; background: conic-gradient(var(--primary) 0%, var(--gray-300) 0%); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; color: var(--dark); position: relative; box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); transition: all 0.5s ease; }
.score-circle::before { content: ''; width: 150px; height: 150px; background: white; border-radius: 50%; position: absolute; z-index: 0; }
.score-circle span { position: relative; z-index: 1; }
.recommendation-list li { padding: 1rem; margin-bottom: 0.75rem; border-radius: 0.5rem; display: flex; align-items: flex-start; }
.recommendation-list li.priority-critical { background-color: rgba(231,76,60,0.08); border-left: 4px solid var(--critical-red); }
.recommendation-list li.priority-high { background-color: rgba(243,156,18,0.12); border-left: 4px solid var(--alert-amber); }
.recommendation-list li.priority-medium { background-color: rgba(0,86,179,0.08); border-left: 4px solid var(--primary); }
.recommendation-list li i { margin-right: 1rem; font-size: 1.25rem; margin-top: 0.125rem; }
.next-steps li { margin-bottom: 0.75rem; }
#scoreBadge { font-size: 1rem; padding: 0.5rem 1rem; }
@keyframes scoreReveal { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.score-circle.animated { animation: scoreReveal 1s ease-out forwards; }


/* ======= Security Assessment Page ======= */
.why-matters-card { border: none; border-radius: 1rem; border-left: 5px solid var(--primary); box-shadow: var(--shadow-sm); overflow: hidden; }
.why-matters-card .card-header { background: #fff !important; border-bottom: 1px solid var(--gray-200); color: var(--primary) !important; padding: 1.5rem; }
.why-matters-card .card-header h3 { color: var(--primary) !important; }
.expert-help-card { border: none; border-radius: 1rem; overflow: hidden; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%); box-shadow: 0 16px 36px -18px rgba(0,86,179,0.45); }
.expert-help-card .card-header { background: rgba(255,255,255,0.08) !important; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1.5rem; }
.expert-help-card .card-header h3, .expert-help-card p { color: #fff !important; }
.expert-help-card .alert-info { background: rgba(255,255,255,0.12); border: none; color: #fff; }
.expert-help-card .btn-primary { background: #fff; color: var(--primary); border: none; font-weight: 600; }
.expert-help-card .btn-primary:hover { background: var(--gray-100); }


/* ======= Security Tip of the Day ======= */
.security-tip-card { background-color: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; }
.security-tip-header { background-color: var(--primary); color: white; padding: 15px 20px; display: flex; align-items: center; }
.security-tip-header i { font-size: 24px; margin-right: 15px; animation: pulse 2s infinite; }
.security-tip-header h3 { margin: 0; font-size: 1.25rem; }
.security-tip-body { padding: 20px; min-height: 100px; display: flex; align-items: center; justify-content: center; }
#securityTip { transition: opacity 0.5s ease; font-size: 1.1rem; line-height: 1.6; }
.security-tip-footer { padding: 15px 20px; border-top: 1px solid #eee; text-align: right; }
#newTipBtn i { transition: transform 1s ease; }
#newTipBtn:hover i { transform: rotate(180deg); }
.fa-spin { animation: fa-spin 1s linear; }


/* ======= Blog ======= */
.blog-card-v2 { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-slow); height: 100%; display: flex; flex-direction: column; }
.blog-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-v2-img-wrap { position: relative; overflow: hidden; height: 200px; }
.blog-card-v2-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card-v2:hover .blog-card-v2-img-wrap img { transform: scale(1.08); }
.blog-card-v2-img-placeholder { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: rgba(255,255,255,0.85); font-size: 2.5rem; }
.blog-card-v2-category { position: absolute; top: 1rem; left: 1rem; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 100px; box-shadow: 0 4px 10px -4px rgba(0,86,179,0.5); text-decoration: none; }
.blog-card-v2-category:hover { color: #fff; }
.blog-card-v2-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-v2-date { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.blog-card-v2-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.blog-card-v2-body h3 a { color: var(--gray-900); text-decoration: none; }
.blog-card-v2-body h3 a:hover { color: var(--primary); }
.blog-card-v2-excerpt { color: var(--gray-600); font-size: 0.9rem; flex: 1; }
.blog-card-v2-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.blog-read-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; }
.blog-read-more:hover { gap: 0.5rem; }

.blog-widget { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.blog-widget-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.blog-widget-icon { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.blog-widget h4 { margin: 0; font-size: 1rem; }
.blog-widget .form-control { border-radius: 100px 0 0 100px; }
.blog-widget .input-group .btn { border-radius: 0 100px 100px 0; }
.blog-category-list a { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: var(--gray-700); text-decoration: none; transition: var(--transition-base); }
.blog-category-list a:hover, .blog-category-list li.active a { background: rgba(0,86,179,0.08); color: var(--primary); }
.blog-tag-chip { display: inline-block; background: var(--gray-100); color: var(--gray-700); font-size: 0.78rem; padding: 0.4rem 0.9rem; border-radius: 100px; margin: 0 0.4rem 0.4rem 0; text-decoration: none; transition: var(--transition-base); }
.blog-tag-chip:hover, .blog-tag-chip.active { background: var(--primary); color: #fff; }
.blog-recent-post { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
.blog-recent-post:last-child { border-bottom: none; }
.blog-recent-post-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,86,179,0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.blog-recent-post a { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); text-decoration: none; }
.blog-recent-post a:hover { color: var(--primary); }

.blog-detail-card { background: #fff; border-radius: 1.25rem; box-shadow: var(--shadow); padding: 2.5rem; }
.blog-detail-card .content { font-size: 1.02rem; line-height: 1.85; color: var(--gray-800); }
.blog-detail-card .content h2, .blog-detail-card .content h3 { margin-top: 2rem; }
.blog-author-card { background: linear-gradient(135deg, rgba(0,86,179,0.04) 0%, rgba(74,111,220,0.04) 100%); border-radius: 1rem; padding: 1.75rem; border-left: 4px solid var(--primary); }
.blog-author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.blog-author-avatar-svg { width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-author-avatar-svg svg { width: 100%; height: 100%; display: block; }
.blog-comment-card { background: var(--gray-100); border-radius: 1rem; padding: 1.5rem; }
.blog-share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-700); margin-right: 0.5rem; transition: var(--transition-base); }
.blog-share-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.blog-search-suggestions { position: relative; margin-top: 0.5rem; }
.blog-search-suggestions:empty { margin-top: 0; }
.blog-search-suggestions .search-suggestion-item { display: block; padding: 0.65rem 0.9rem; border-radius: 0.5rem; background: var(--gray-100); text-decoration: none; margin-bottom: 0.4rem; transition: background-color 0.15s ease; }
.blog-search-suggestions .search-suggestion-item:hover { background: rgba(0,86,179,0.08); }
.blog-search-suggestions .search-suggestion-title { font-size: 0.85rem; font-weight: 600; color: var(--gray-900); }
.blog-search-suggestions .search-suggestion-snippet { font-size: 0.78rem; color: var(--gray-600); margin-top: 2px; }
.blog-search-suggestions .search-suggestion-hint, .blog-search-suggestions .search-suggestion-empty { font-size: 0.8rem; color: var(--gray-500); padding: 0.5rem 0.25rem; }


/* ======= Error Pages (404 / 500 / rate-limited) ======= */
.error-page-icon { width: 90px; height: 90px; margin: 0 auto 1.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 12px 30px -10px rgba(0,86,179,0.5); }
.error-page-icon--warning { background: linear-gradient(135deg, var(--alert-amber) 0%, #e0850c 100%); box-shadow: 0 12px 30px -10px rgba(243,156,18,0.45); }
.error-page-code { font-size: 5rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary) 0%, #4a6fdc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.error-page-code--warning { background: linear-gradient(135deg, var(--alert-amber) 0%, #e0850c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-page-card { background: #fff; border-radius: 1.25rem; padding: 2.5rem 2rem; box-shadow: var(--shadow-sm); }


/* ======= Booking Timeslot section ======= */

.slot-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.slot-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary, #0056b3);
    margin-bottom: 0.5rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.slot-btn {
    padding: 0.55rem 0.25rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #495057;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    /* Same standalone floating-card treatment now used across the
       whole booking flow (service cards, calendar days) — soft shadow
       at rest, lifts on hover, presses on click. */
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.slot-btn:hover {
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary, #0056b3);
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.slot-btn:active {
    transform: translateY(0);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

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


/* ===== Booking Calendar ===== */
.booking-calendar-card {
    padding: 1.75rem;
}

.booking-calendar {
    max-width: 340px;
    margin: 0 auto;
}

/* Desktop/laptop only — a fixed, proportioned width rather than
   stretching to fill the accordion body. Centered so it doesn't look
   lost, but the day cells stay evenly circular instead of stretching
   into ovals. */
@media (min-width: 768px) {
    .booking-calendar {
        max-width: 420px;
    }

    .booking-calendar-grid {
        gap: 10px;
        padding: 18px 14px;
    }

    .cal-day {
        font-size: 0.95rem;
    }
}


.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-month-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: #212529;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #fff;
    color: var(--primary, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--primary, #0056b3);
    color: #fff;
    border-color: var(--primary, #0056b3);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
    border-radius: 16px;
    padding: 14px 10px;
}

.cal-day {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Subtle popped-button 3D look — soft shadow beneath, faint
       highlight along the top edge. */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.cal-day:not(.cal-day--empty):not(.cal-day--disabled):hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.cal-day:not(.cal-day--empty):not(.cal-day--disabled):active {
    transform: translateY(0);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.cal-day--empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.cal-day--disabled {
    background: #f1f3f5;
    box-shadow: none;
    color: #ced4da;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
    background: rgba(0, 86, 179, 0.1);
}

.cal-day--today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary, #0056b3);
}

.cal-day--selected {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow:
        0 4px 10px rgba(0, 86, 179, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.cal-day--disabled {
    color: #dee2e6;
    cursor: not-allowed;
}

.cal-day--empty {
    cursor: default;
}

@media (max-width: 400px) {
    .booking-calendar {
        max-width: 100%;
    }
}


.calendar-month-label--clickable {
    /* Persistent light tint from page load — signals "this is
       clickable" immediately, not only after interaction. */
    background: rgba(0, 86, 179, 0.08);
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.calendar-month-label--clickable:hover {
    background: rgba(0, 86, 179, 0.16);
}

.calendar-month-label--clickable.is-active {
    background: rgba(0, 86, 179, 0.28);
    color: var(--primary, #0056b3);
    font-weight: 700;
}

.booking-calendar-picker {
    position: relative;
}

.calendar-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.calendar-picker-grid--years {
    grid-template-columns: repeat(3, 1fr);
    max-height: 260px;
    overflow-y: auto;
    /* Stops a fast scroll from "escaping" this list and scrolling the
       whole page once this container hits its own scroll boundary. */
    overscroll-behavior: contain;
}


.cal-picker-cell {
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cal-picker-cell:hover:not(.cal-picker-cell--disabled) {
    border-color: var(--primary, #0056b3);
    color: var(--primary, #0056b3);
}

.cal-picker-cell--selected {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

.cal-picker-cell--disabled {
    color: #dee2e6;
    cursor: not-allowed;
}


.calendar-today-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.calendar-today-btn {
    background: rgba(0, 86, 179, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 86, 179, 0.18);
    color: var(--primary, #0056b3);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-today-btn:hover {
    background: rgba(0, 86, 179, 0.16);
    border-color: rgba(0, 86, 179, 0.3);
}

.calendar-today-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.booking-step-list .accordion-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-step-list .accordion-button.collapsed .booking-step-number {
    background: #adb5bd;
}

.cal-day--has-slots:not(.cal-day--selected)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22c55e;
}


.cal-day:focus-visible,
.cal-picker-cell:focus-visible,
.calendar-nav-btn:focus-visible,
.calendar-today-btn:focus-visible {
    outline: 2px solid var(--primary, #0056b3);
    outline-offset: 2px;
}

.slot-btn--selected {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    font-weight: 700;
    box-shadow:
        0 8px 18px -6px rgba(0, 86, 179, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.3) inset !important;
}


/* Shared confirmation-modal styling — applies to EVERY confirmation
   modal across the site (booking cancel, portal sign-out, and any
   future ones), rather than duplicating this per modal ID. */
.confirm-modal .modal-footer,
#cancelModal .modal-footer,
#signOutModal .modal-footer {
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    /* Real, adaptive footer layout — same logic as the document
       action-row: try side-by-side first (flex-wrap handles genuine
       overflow by wrapping to a new line automatically), rather than
       ALWAYS forcing a vertical stack regardless of content length. */
    .confirm-modal .modal-footer,
    #cancelModal .modal-footer,
    #signOutModal .modal-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .confirm-modal .modal-footer .btn,
    #cancelModal .modal-footer .btn,
    #signOutModal .modal-footer .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        margin: 0 !important;
        white-space: normal;
        font-size: 0.85rem;
        padding: 0.55rem 0.75rem;
    }
    /* A lone button (rare, but possible) centers at a natural width
       rather than stretching edge-to-edge. */
    .confirm-modal .modal-footer:has(.btn:only-child) .btn,
    #cancelModal .modal-footer:has(.btn:only-child) .btn,
    #signOutModal .modal-footer:has(.btn:only-child) .btn {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .confirm-modal .modal-header,
    #cancelModal .modal-header,
    #signOutModal .modal-header {
        padding-right: 1rem;
    }
    .confirm-modal .modal-title,
    #cancelModal .modal-title,
    #signOutModal .modal-title {
        font-size: 1.05rem;
    }
    .confirm-modal .modal-body p,
    #cancelModal .modal-body p,
    #signOutModal .modal-body p {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    /* Real placeholder-text scaling — inputs/textareas inside modals
       (e.g. the deactivation/deletion request notes) inherit desktop
       font sizing by default, same oversized-relative-to-everything-
       else issue as the buttons/body text had. */
    .confirm-modal .modal-body input,
    .confirm-modal .modal-body textarea,
    #cancelModal .modal-body input,
    #cancelModal .modal-body textarea {
        font-size: 0.85rem;
    }
    .confirm-modal .modal-body input::placeholder,
    .confirm-modal .modal-body textarea::placeholder,
    #cancelModal .modal-body input::placeholder,
    #cancelModal .modal-body textarea::placeholder {
        font-size: 0.85rem;
    }
    /* Close (X) button — matches the same proportional scale as
       everything else in the modal, rather than staying at its
       larger desktop default. */
    .confirm-modal .modal-header .btn-close,
    #cancelModal .modal-header .btn-close,
    #signOutModal .modal-header .btn-close {
        font-size: 0.75rem;
    }
}



/* ===== Booking — Service Selection Cards ===== */
.service-select-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.service-select-card {
    position: relative;
}

.service-select-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-select-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border: none;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin: 0;
    /* Each row now reads as its own genuinely separated card — no
       shared border line touching the next row, a real gap between
       cards (see .service-select-list), and a more pronounced
       standalone shadow so it visually "sits apart" rather than just
       looking like a bordered list item. */
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.service-select-label:hover {
    background: rgba(0, 86, 179, 0.03);
    transform: translateY(-3px);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.service-select-label:active {
    transform: translateY(0);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.service-select-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.08);
    color: var(--primary, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.service-select-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.service-select-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: #212529;
}

.service-select-meta {
    font-size: 0.82rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.service-select-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.service-select-free-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.service-select-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

/* Selected state — driven by the real checked radio, no JS needed */
.service-select-input:checked + .service-select-label {
    background: rgba(0, 86, 179, 0.05);
    border: 2px solid var(--primary, #0056b3);
    padding: calc(1.25rem - 2px) calc(1.4rem - 2px);
    box-shadow:
        0 10px 24px -6px rgba(0, 86, 179, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.service-select-input:checked + .service-select-label .service-select-icon {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
}

.service-select-input:checked + .service-select-label .service-select-check {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    border-color: transparent;
    color: #fff;
}

.service-select-input:focus-visible + .service-select-label {
    outline: 2px solid var(--primary, #0056b3);
    outline-offset: 2px;
}


/* Portal — password toggle + login card styling */
.contact-field-wrap {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 1.15rem;
    background: none;
    border: none;
    color: var(--gray-500, #adb5bd);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary, #0056b3);
}


/* ===== Django Admin — Project Milestone delete checkbox clarity ===== */
.mykey-delete-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 600;
}

.mykey-delete-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mykey-delete-label input[type="checkbox"]:checked ~ .mykey-delete-text,
.mykey-delete-label input[type="checkbox"]:checked + .mykey-delete-text {
    text-decoration: line-through;
}


.project-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.project-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 140px;
}

@media (max-width: 575.98px) {
    .project-status-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .project-progress-wrap {
        width: 100%;
    }

    .progress-tunnel {
        max-width: none;
        width: 100%;
        gap: 2px;
        height: 14px;
    }

    .progress-tunnel-segment {
        min-width: 3px;
    }
}

.progress-tunnel {
    flex: 1;
    max-width: 200px;
    display: flex;
    gap: 3px;
    height: 12px;
    padding: 2px;
    background: var(--gray-200, #e9ecef);
    border-radius: 100px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-tunnel-segment {
    flex: 1;
    border-radius: 100px;
    background: transparent;
    transition: background 0.4s ease;
}


.portal-subheading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200, #e9ecef);
}

.portal-subheading-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}


.portal-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: var(--border-radius, 6px);
    border: 1.5px solid var(--gray-300, #dee2e6);
    color: var(--gray-700, #495057);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-back-btn:hover {
    background: var(--gray-100, #f8f9fa);
    border-color: var(--primary, #0056b3);
    color: var(--primary, #0056b3);
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .portal-back-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }
}


.service-select-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-100, #f8f9fa);
    color: var(--gray-500, #adb5bd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.service-select-card:hover .service-select-arrow {
    background: var(--primary, #0056b3);
    color: #fff;
}


/* ===== Portal Dashboard Accordion ===== */
.portal-dashboard-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
}

.portal-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
    font-size: 0.9rem;
}

.portal-dashboard-accordion .accordion-button.collapsed .portal-section-icon {
    background: var(--gray-400, #ced4da);
}

.portal-section-count {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary, #0056b3);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
}

@media (max-width: 575.98px) {
    .portal-dashboard-accordion .accordion-button {
        font-size: 0.92rem;
        gap: 0.6rem;
        padding: 1rem;
    }
    .portal-section-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .portal-section-count {
        margin-right: 0.4rem;
        font-size: 0.72rem;
    }
}


@media (max-width: 575.98px) {
    #collapseDocuments .btn-sm,
    #collapseAccount .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    #collapseDocuments .btn-sm i,
    #collapseAccount .btn i {
        font-size: 0.75rem;
    }
}


.portal-dashboard-heading h2 {
    font-size: 1.6rem;
}

.portal-dashboard-heading p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .portal-dashboard-heading h2 {
        font-size: 1.35rem;
    }
    .portal-dashboard-heading p {
        font-size: 0.88rem;
    }
}


/* ===== Mobile restructure — service-select-card at narrow widths ===== */
@media (max-width: 575.98px) {
    .service-select-label {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.6rem;
    }

    /* Icon + name stay together on their own row */
    .service-select-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .service-select-text {
        flex-basis: calc(100% - 3rem);
        min-width: 0;
    }

    .service-select-name {
        font-size: 0.92rem;
        white-space: normal;
        word-break: break-word;
    }

    /* Meta pills wrap cleanly onto their own full-width area below
       the name, rather than fighting for space beside it */
    .service-select-meta {
        flex-basis: 100%;
        margin-top: 0.15rem;
        gap: 0.4rem;
    }

    .service-select-pill {
        font-size: 0.72rem;
        padding: 0.15rem 0.5rem;
    }

    /* Real fix: instead of letting the arrow flow naturally with the
       wrapped flex content (which pushed it down below the pills),
       pin it to the top-right corner of the card via absolute
       positioning — it now stays visually level with the icon/name
       row regardless of how much meta content wraps beneath it. */
    .service-select-arrow {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-left: 0;
    }

    /* Reserve space on the right so the wrapping name/pills never run
       underneath the now-absolutely-positioned arrow. */
    .service-select-label {
        padding-right: 3rem;
    }


    /* Real action-button row: wraps every direct button/link child
       into ONE shared flex row beneath the content, rather than the
       old per-button nth-child guessing that only handled exactly 1
       or 2 buttons correctly. Works cleanly for 1, 2, or 3+ buttons —
       a lone button centers itself; 2 or 3 share the row evenly. */
    .service-select-label {
        position: relative;
    }

    .service-select-action-row {
        flex-basis: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.3rem;
        width: 100%;
    }

    /* Default: 2 buttons share the row evenly */
    .service-select-action-row .btn {
        flex: 1 1 calc(50% - 0.25rem);
        margin: 0 !important;
    }

    /* 3+ buttons: real fix — force exactly 2 per row (wraps to a
       second line) instead of squeezing 3 into one row, which was
       forcing "Archive" past the container edge on narrow phones. */
    .service-select-action-row:has(.btn:nth-child(3)) .btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

    /* A single button in the row should center itself at a natural
       width, not stretch edge-to-edge looking oversized/empty. */
    .service-select-action-row:has(.btn:only-child) {
        justify-content: center;
    }

    .service-select-action-row:has(.btn:only-child) .btn {
        flex: 0 0 auto;
        min-width: 140px;
    }
}


.portal-terms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@media (max-width: 575.98px) {
    .portal-terms-actions {
        flex-direction: column;
    }
    .portal-terms-actions .btn {
        width: 100%;
        font-size: 0.92rem;
        padding: 0.65rem 1rem;
    }
}


.portal-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portal-activity-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}

.portal-activity-item:last-child {
    border-bottom: none;
}

.portal-activity-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.portal-activity-text p {
    font-size: 0.9rem;
    color: #212529;
}

@media (max-width: 575.98px) {
    .portal-activity-text p {
        font-size: 0.85rem;
    }
}


.portal-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-100, #f8f9fa);
    border-radius: 12px;
}

.portal-chat-bubble-row {
    display: flex;
    justify-content: flex-start;
}

.portal-chat-row-self {
    justify-content: flex-end;
}

.portal-chat-bubble {
    max-width: 75%;
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.portal-chat-bubble-self {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    color: #fff;
}

.portal-chat-bubble-self .portal-chat-meta {
    color: rgba(255, 255, 255, 0.75);
}

.portal-chat-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary, #0056b3);
    text-decoration: none;
}

.portal-chat-bubble-self .portal-chat-attachment {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.portal-chat-attachment:hover {
    text-decoration: underline;
}

.portal-chat-meta {
    display: block;
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

@media (max-width: 575.98px) {
    .portal-chat-thread {
        max-height: 400px;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .portal-chat-bubble {
        max-width: 92%;
        padding: 0.6rem 0.8rem;
        font-size: 0.88rem;
    }

    .portal-chat-meta {
        font-size: 0.68rem;
    }

    /* Real-project dropdown + subject/message fields on the new-
       conversation and reply forms — Bootstrap's plain .form-control
       is already responsive by default, but the LABEL above it and
       overall field spacing needed tightening to match the rest of
       the portal's mobile density, not just "technically fits". */
    #new-thread-form .form-label,
    .portal-chat-thread + .approach-content-card .form-label {
        font-size: 0.78rem;
    }

    #new-thread-form select.form-select,
    #new-thread-form input.contact-input,
    #new-thread-form textarea.contact-input {
        font-size: 0.88rem;
    }

    /* Real fix: the dropdown's own width is genuinely correct
       (Bootstrap's form-select is meant to be full-width, same as
       every other field on this form) — but it looked like it was
       "touching the screen edges" because it sits in a plain,
       unpadded wrapper div, unlike the other fields which use
       .contact-field-wrap (which has its own built-in padding).
       Rather than chase the parent container's padding, just give
       this specific wrapper the same visual breathing room directly. */
    #new-thread-form .mb-3 {
        padding: 0 0.75rem;
    }

    /* "Start a New Conversation" button — real, dedicated class
       instead of a fragile compound-utility-class selector, which
       may have been silently losing to a later equal-specificity
       Bootstrap rule elsewhere in the stylesheet. */
    .portal-new-thread-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem 1.1rem;
    }
}


/* ===== Portal — real custom dropdown (replaces native <select> for
   fields where the browser's own popup positioning is unreliable
   across devices) ===== */
.portal-custom-select {
    position: relative;
}

.portal-custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1.5px solid var(--gray-300, #dee2e6);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    color: #212529;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.portal-custom-select-trigger:hover,
.portal-custom-select-trigger[aria-expanded="true"] {
    border-color: var(--primary, #0056b3);
}

.portal-custom-select-trigger i {
    color: var(--gray-500, #adb5bd);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.portal-custom-select-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Desktop/tablet: a normal, anchored dropdown beneath the trigger — no
   real overflow risk at those widths, so no need to change the UX. */
.portal-custom-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.4rem;
}

.portal-custom-select-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: #212529;
    cursor: pointer;
}

.portal-custom-select-option:hover {
    background: rgba(0, 86, 179, 0.06);
}

.portal-custom-select-option.is-selected {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary, #0056b3);
    font-weight: 600;
}

/* Mobile: this is the real fix for the original problem — instead of
   an anchored popup that can overflow the viewport, the panel becomes
   a genuinely centered, fixed-position card overlay with a backdrop,
   fully within our control since it's real HTML/CSS, not a native
   browser popup. */
@media (max-width: 575.98px) {
    /* Same anchored-below-the-field feel as desktop/tablet — the
       real fix for the original overflow bug isn't "don't anchor it
       on mobile," it's "never let the panel's WIDTH exceed the
       viewport" — so we keep the anchor position but hard-cap the
       width to the actual screen, with word-wrap on option text as a
       second safety net for any option name genuinely too long to
       fit in a single line at that width. */
    .portal-custom-select-panel {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 50vh;
        border-radius: 10px;
    }

    .portal-custom-select-option {
        white-space: normal;
        word-break: break-word;
    }
}


.portal-invoice-table th, .portal-invoice-table td {
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .portal-invoice-table {
        font-size: 0.8rem;
    }
    #collapseInvoices .btn-primary.btn-sm {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }
}


/* ===== Portal — real toggle switches for notification settings ===== */
.portal-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}

.portal-toggle-row:last-of-type {
    border-bottom: none;
}

.portal-toggle-row label:first-child {
    flex: 1;
    min-width: 0;
}

.portal-toggle-switch {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.portal-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.portal-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300, #dee2e6);
    border-radius: 100px;
    transition: background 0.2s ease;
}

.portal-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.portal-toggle-input:checked + .portal-toggle-slider {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
}

.portal-toggle-input:checked + .portal-toggle-slider::before {
    transform: translateX(20px);
}

.portal-toggle-input:focus-visible + .portal-toggle-slider {
    outline: 2px solid var(--primary, #0056b3);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .portal-toggle-row {
        padding: 0.85rem 0;
    }
    .portal-toggle-row label:first-child strong {
        font-size: 0.92rem;
    }
    .portal-toggle-row label:first-child .small {
        font-size: 0.78rem;
    }
}


.portal-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .portal-pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-per-page-select select {
        width: 100% !important;
    }
    .portal-pagination-controls .pagination {
        justify-content: center;
    }
}


/* ===== Portal — pill-style search bar (Documents page and future
   list-filtering pages) ===== */
.portal-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--gray-200, #e9ecef);
    border-radius: 100px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-search-bar:focus-within {
    border-color: var(--primary, #0056b3);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.1);
}

.portal-search-icon {
    color: var(--gray-500, #adb5bd);
    font-size: 0.9rem;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.portal-search-bar:focus-within .portal-search-icon {
    color: var(--primary, #0056b3);
}

.portal-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    color: #212529;
}

.portal-search-input::placeholder {
    color: var(--gray-500, #adb5bd);
}

.portal-search-clear {
    background: none;
    border: none;
    color: var(--gray-400, #ced4da);
    font-size: 0.85rem;
    padding: 0.2rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.portal-search-clear:hover {
    color: var(--primary, #0056b3);
}

@media (max-width: 575.98px) {
    .portal-search-bar {
        padding: 0.55rem 1rem;
    }
    .portal-search-input {
        font-size: 0.88rem;
    }
}


/* ===== Portal — filter tabs (Projects page and future filtered lists) ===== */
.portal-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portal-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    background: #fff;
    border: 1.5px solid var(--gray-200, #e9ecef);
    color: var(--gray-700, #495057);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portal-filter-tab:hover {
    border-color: var(--primary, #0056b3);
    color: var(--primary, #0056b3);
    text-decoration: none;
}

.portal-filter-tab.active {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, #4a6fdc 100%);
    border-color: transparent;
    color: #fff;
}

.portal-filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.05rem 0.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-filter-tab.active .portal-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 575.98px) {
    .portal-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.3rem;
        -webkit-overflow-scrolling: touch;
    }
    .portal-filter-tab {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }
}


.footer-portal-cta .btn-outline-light:hover {
    color: #212529 !important;
}


@media (max-width: 575.98px) {
    .contact-field-label {
        font-size: 0.8rem;
        white-space: normal;
    }
}

#id_timezone_name {
    width: 100%;
    box-sizing: border-box;
}

.profile-picture-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.profile-picture-actions form {
    margin: 0;
    display: inline-flex;
    flex: 0 0 auto;
}

.profile-picture-actions .btn {
    white-space: nowrap;
}

/* A lone button (once the photo is removed and only "Add Photo"
   remains) still centers naturally — flex + justify-content:center
   on the parent already handles this correctly with just one child. */

@media (max-width: 575.98px) {
    .profile-picture-actions {
        gap: 0.5rem;
    }
    .profile-picture-actions .btn {
        font-size: 0.82rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .approach-content-card .alert {
        font-size: 0.85rem;
        padding: 0.65rem 0.9rem;
        line-height: 1.5;
    }
}


/* ===== Portal Shell — sidebar + bottom nav ===== */
.portal-shell {
    display: flex;
    min-height: calc(100vh - var(--header-height, 0px));
}

.portal-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--gray-200, #e9ecef);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.portal-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}

.portal-sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.portal-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: var(--gray-700, #495057);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-sidebar-link i {
    width: 20px;
    text-align: center;
    color: var(--gray-400, #ced4da);
    transition: color 0.15s ease;
}

.portal-sidebar-link:hover {
    background: var(--gray-100, #f8f9fa);
    color: var(--primary, #0056b3);
    text-decoration: none;
}

.portal-sidebar-link.active {
    background: linear-gradient(135deg, rgba(0,86,179,0.1) 0%, rgba(74,111,220,0.08) 100%);
    color: var(--primary, #0056b3);
}

.portal-sidebar-link.active i {
    color: var(--primary, #0056b3);
}

.portal-sidebar-divider {
    height: 1px;
    background: var(--gray-100, #f1f3f5);
    margin: 0.75rem 0.9rem;
}

.portal-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--gray-100, #f1f3f5);
}

.portal-sidebar-signout {
    color: var(--gray-600, #6c757d);
}

.portal-nav-badge {
    margin-left: auto;
    background: var(--primary, #0056b3);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

.portal-nav-badge-amber {
    background: #f59e0b;
}

.portal-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 5rem;
}

/* ===== Mobile bottom nav ===== */
.portal-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200, #e9ecef);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.portal-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--gray-500, #adb5bd);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    position: relative;
    padding: 0.2rem 0.5rem;
}

.portal-bottom-nav-item i {
    font-size: 1.1rem;
}

.portal-bottom-nav-item.active {
    color: var(--primary, #0056b3);
}

.portal-bottom-nav-item:hover {
    color: var(--primary, #0056b3);
    text-decoration: none;
}

.portal-nav-badge-small {
    position: absolute;
    top: -2px;
    right: 4px;
    background: var(--primary, #0056b3);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 100px;
    min-width: 15px;
    line-height: 15px;
}

/* Sidebar hidden entirely on mobile — bottom nav takes over */
@media (max-width: 991.98px) {
    .portal-sidebar {
        display: none;
    }
    .portal-main {
        padding-bottom: 4.5rem;
    }
}

/* Tablet: collapsible sidebar */
@media (min-width: 768px) and (max-width: 991.98px) {
    .portal-sidebar {
        display: flex;
    }
}


.portal-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

.portal-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.portal-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.1;
}

.portal-stat-label {
    font-size: 0.78rem;
    color: var(--gray-600, #6c757d);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .portal-stat-value {
        font-size: 1.15rem;
    }
    .portal-stat-label {
        font-size: 0.7rem;
    }
    .portal-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.portal-sidebar-signout,
.portal-sidebar-signout i {
    color: #dc2626;
    font-weight: 600;
}

.portal-sidebar-signout:hover,
.portal-sidebar-signout:hover i {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.portal-bottom-nav-item.portal-sidebar-signout,
button.portal-bottom-nav-item {
    background: none;
    border: none;
}

.portal-sidebar.portal-sidebar-collapsed {
    width: 72px;
}

.portal-sidebar.portal-sidebar-collapsed .portal-sidebar-link span,
.portal-sidebar.portal-sidebar-collapsed .portal-sidebar-brand img,
.portal-sidebar.portal-sidebar-collapsed .portal-nav-badge {
    display: none;
}

.portal-sidebar.portal-sidebar-collapsed .portal-sidebar-link {
    justify-content: center;
}


@media (max-width: 575.98px) {
    #relaunchBannerModal .modal-title {
        font-size: 1.05rem;
    }
    #relaunchBannerModal .modal-body p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    #relaunchBannerModal .modal-footer .btn {
        width: 100%;
        font-size: 0.88rem;
    }
    #relaunchBannerModal .btn-close {
        font-size: 0.75rem;
    }
}
/* ---------- MyKey brand: logo lockup (colours taken from the logo) ---------- */
.logo-img { height: 48px; width: auto; }
.site-header.header-scrolled .logo-img { height: 38px; }
.logo-wordmark { display: flex; flex-direction: column; justify-content: center; margin-left: 0.6rem; line-height: 1; font-family: 'Poppins', sans-serif; }
.logo-name { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.12em; color: #04154f; }
.logo-sub { margin-top: 5px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.26em; color: #0a6cff; }
.site-header.header-scrolled .logo-name { font-size: 1.25rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 4px 6px; }
@media (max-width: 575.98px) {
  .logo-img { height: 38px; }
  .logo-name { font-size: 1.15rem; }
  .logo-sub { font-size: 0.5rem; letter-spacing: 0.22em; }
}
