/* ════════════════════════════════════════════════════════════
   CSWDO Design System – Bootstrap 5 + Custom CSS
   ════════════════════════════════════════════════════════════ */

:root {
    --navy:        #1b3a70;
    --navy-dark:   #112952;
    --navy-medium: #1e4d9e;
    --red:         #e03232;
    --red-dark:    #c02020;
    --gold:        #f5a623;
    --teal:        #0ea5a0;
    --orange:      #f97316;
    --green:       #16a34a;
    --text:        #1e293b;
    --muted:       #64748b;
    --border:      #dee2e6;
    --bg:          #eef2f7;
    --white:       #ffffff;
}

/* ── Reset helpers ── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); }
a    { text-decoration: none; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar-cswdo {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    padding: .5rem 0;
}
.navbar-cswdo .brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: var(--navy);
    line-height: 1.25;
    max-width: 260px;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.navbar-cswdo .brand-sub {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
}
.navbar-cswdo .nav-link {
    color: #000000 !important;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .5rem .6rem !important;
    transition: color .2s;
    position: relative;
}
.navbar-cswdo .nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: .6rem; right: .6rem;
    height: 2px; background: var(--red);
    transform: scaleX(0); transition: transform .2s;
}
.navbar-cswdo .nav-link:hover::after,
.navbar-cswdo .nav-link.active::after { transform: scaleX(1); }
.navbar-cswdo .nav-link.active,
.navbar-cswdo .nav-link:hover { color: var(--red) !important; }
.navbar-cswdo .dropdown-menu {
    border: none; border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12); font-size: .82rem;
    min-width: 200px;
}
.navbar-cswdo .dropdown-item:hover { background: #eef2f7; color: var(--navy); }

/* ════════════════════════════════════════════════════════════
   HERO – two-column split layout
   ════════════════════════════════════════════════════════════ */
.hero-split {
    position: relative;
    overflow: hidden;
}
.hero-split-row {
    min-height: 520px;
}

/* ── Left text panel ── */
.hero-text-col {
    background: linear-gradient(145deg, #f2f6fc 0%, #e6eef8 55%, #d9e6f4 100%);
    display: flex;
    align-items: center;
    padding: 5rem 10rem ;
}
.hero-text-inner {
    padding: 0 3rem 0 4rem;
    max-width: 580px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--navy);
    background: rgba(27,58,112,.09);
    border: 1px solid rgba(27,58,112,.14);
    border-radius: 999px;
    padding: .32rem .9rem;
    margin-bottom: 1.5rem;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.hero-split-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--navy);
    line-height: 1.05;
    margin-bottom: .35rem;
}
.hero-title-accent { color: var(--red); }

.hero-split-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.hero-text-divider {
    width: 48px; height: 3px;
    background: linear-gradient(to right, var(--red), var(--gold));
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.hero-split-desc {
    font-size: .95rem;
    color: #374151;
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 1.75rem;
}

.hero-info-row {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}
.hero-info-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--navy);
    background: rgba(27,58,112,.07);
    border: 1px solid rgba(27,58,112,.13);
    border-radius: 6px;
    padding: .38rem .8rem;
}
.hero-info-badge i { color: var(--red); font-size: .76rem; }

/* ── Right image panel ── */
.hero-img-col {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}
.hero-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: saturate(.78) brightness(.97);
}
/* Full-image cool-tint wash to tie photo into panel palette */
.hero-img-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(214,229,244,.13);
    z-index: 1;
    pointer-events: none;
}
/* Left-edge blend: hold solid then fade so the seam is invisible */
.hero-img-overlay {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 62%;
    background: linear-gradient(
        to right,
        #d9e6f4               0%,
        #d9e6f4               4%,
        rgba(217,230,244,.98)  9%,
        rgba(217,230,244,.90) 20%,
        rgba(217,230,244,.72) 34%,
        rgba(217,230,244,.46) 48%,
        rgba(217,230,244,.20) 62%,
        rgba(217,230,244,.06) 76%,
        transparent           88%,
        transparent          100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ── Bottom wave ── */
.hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 3;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   QUICK ACCESS BAR
   ════════════════════════════════════════════════════════════ */
.quick-bar {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    padding: 0;
    margin-top: -2rem;
    position: relative; z-index: 10;
}
.qa-item {
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: .85rem;
    cursor: pointer; transition: background .2s;
    border-radius: 8px;
}
.qa-item:hover { background: #f8fafc; }
.qa-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--white);
}
.qa-title {
    font-weight: 700; font-size: .8rem;
    color: var(--navy); text-transform: uppercase;
    letter-spacing: .03em; line-height: 1.2; margin-bottom: .15rem;
}
.qa-desc { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.qa-divider {
    width: 1px; background: var(--border);
    align-self: stretch; margin: .75rem 0;
}

/* ════════════════════════════════════════════════════════════
   SECTION HEADERS (inside 3-col cards)
   ════════════════════════════════════════════════════════════ */
.col-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: .9rem;
    color: var(--navy); text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 0;
}
.col-view-all {
    font-size: .78rem; font-weight: 600; color: var(--red);
    transition: color .2s;
}
.col-view-all:hover { color: var(--red-dark); }
.col-heading-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════════════
   STATISTICS BAR
   ════════════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--navy);
    padding: 2.25rem 0;
}
.stats-label-block {
    border-right: 1px solid rgba(255,255,255,.2);
    padding-right: 1.25rem; margin-right: .5rem;
}
.stats-label-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: .85rem;
    color: var(--white); text-transform: uppercase; letter-spacing: .06em;
}
.stats-label-sub {
    font-size: .68rem; color: var(--gold); letter-spacing: .04em;
}
.stat-col { text-align: center; }
.stat-col-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: 1.2rem; color: var(--white); line-height: 1;
}
.stat-col-label { font-size: .65rem; color: rgba(255,255,255,.65); line-height: 1.3; margin-top: .2rem; }
.stat-col-icon { font-size: 1rem; color: var(--gold); margin-bottom: .2rem; }
.stats-quote {
    border-left: 1px solid rgba(255,255,255,.2);
    padding-left: 1.25rem; margin-left: .5rem;
    font-size: .78rem; font-style: italic;
    color: rgba(255,255,255,.75); line-height: 1.6;
    max-width: 200px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER — enhanced
   ════════════════════════════════════════════════════════════ */
.footer-cswdo {
    background: linear-gradient(180deg, #0d2147 0%, #101c3a 55%, #0a1730 100%);
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    position: relative;
    overflow: hidden;
}
/* dot-grid overlay */
.footer-cswdo::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none; z-index: 0;
}
/* gold top accent bar */
.footer-cswdo::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent 0%, #c9a227 25%, #f0c040 50%, #c9a227 75%, transparent 100%);
    z-index: 2;
}
/* gold left radial glow */
.footer-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 55% 70% at -5% 100%, rgba(201,162,39,.12) 0%, transparent 60%),
        radial-gradient(ellipse 35% 50% at 100%   0%, rgba(27,58,112,.4)  0%, transparent 55%);
}
.footer-inner {
    position: relative; z-index: 1;
    padding-top: 3.75rem; padding-bottom: 1rem;
}

/* Brand */
.footer-logo-wrap {
    display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem;
}

.footer-republic-img {
    width: 148px; height: 133px; object-fit: contain;
}

.footer-logo-img {
    width: 54px; height: 54px; border-radius: 50%; object-fit: contain;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.12);
    flex-shrink: 0;
}
.footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: .88rem;
    color: #fff; line-height: 1.28;
}
.footer-brand-city {
    font-size: .63rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: #f0c040; margin-top: .15rem;
    display: inline-flex; align-items: center; gap: .3rem;
}
.footer-brand-city::before {
    content: ''; display: inline-block;
    width: 12px; height: 1.5px;
    background: rgba(240,192,64,.5); border-radius: 2px;
}
.footer-tagline {
    font-size: .77rem; color: rgba(255,255,255,.5);
    font-style: italic; line-height: 1.6;
    border-left: 2px solid rgba(201,162,39,.35);
    padding-left: .65rem; margin-bottom: 1.1rem;
}
.footer-about-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px; padding: .25rem .7rem;
    font-size: .64rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255,255,255,.45);
    margin-bottom: .9rem;
}
.footer-about-badge i { font-size: .72rem; color: #f0c040; }

/* Section headings */
.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: .71rem;
    text-transform: uppercase; letter-spacing: .13em;
    color: #fff; margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    position: relative; display: block;
}
.footer-heading::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, #f0c040, #c9a227);
    border-radius: 2px; transition: width .25s;
}

/* Nav lists */
.footer-cswdo ul { list-style: none; padding: 0; margin: 0; }
.footer-cswdo ul li { margin-bottom: .45rem; }
.footer-cswdo ul li a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; transition: color .18s, gap .18s;
}
.footer-cswdo ul li a i {
    font-size: .6rem; color: rgba(201,162,39,.5);
    transition: color .18s, transform .18s;
}
.footer-cswdo ul li a:hover            { color: #f0c040; gap: .5rem; }
.footer-cswdo ul li a:hover i          { color: #f0c040; transform: translateX(2px); }

/* Social icons */
.footer-social-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.footer-social-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); font-size: 1rem;
    transition: background .2s, border-color .2s, transform .2s, color .2s;
    text-decoration: none;
}
.footer-social-icon:hover           { transform: translateY(-3px); color: #fff; }
.footer-social-icon.s-fb:hover      { background: #1877f2; border-color: #1877f2; }
.footer-social-icon.s-yt:hover      { background: #ff0000; border-color: #ff0000; }
.footer-social-icon.s-ig:hover      { background: linear-gradient(135deg,#f09433 0%,#dc2743 50%,#bc1888 100%); border-color: #dc2743; }
.footer-social-icon.s-em:hover      { background: #c9a227; border-color: #c9a227; }

/* Contact items */
.footer-contact-item {
    display: flex; gap: .7rem; align-items: flex-start;
    margin-bottom: .7rem; font-size: .79rem; color: rgba(255,255,255,.62);
}
.footer-contact-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; flex-shrink: 0; margin-top: .05rem;
}
.footer-contact-item a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .18s; }
.footer-contact-item a:hover { color: #f0c040; }

/* Divider */
.footer-divider {
    border: none; height: 1px; margin: 1.75rem 0 1.1rem;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,.08) 15%,
        rgba(201,162,39,.25) 45%, rgba(201,162,39,.25) 55%,
        rgba(255,255,255,.08) 85%, transparent 100%);
}

/* Bottom bar */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .65rem; padding-bottom: 1rem;
}
.footer-copyright { font-size: .69rem; color: rgba(255,255,255,.32); }
.footer-copyright strong { color: rgba(255,255,255,.5); font-weight: 600; }
.footer-bottom-links {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.footer-bottom-links a {
    font-size: .68rem; color: rgba(255,255,255,.3);
    text-decoration: none; transition: color .18s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }
.footer-bottom-sep { width: 1px; height: 10px; background: rgba(255,255,255,.15); }
.footer-back-top {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .67rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px; padding: .28rem .85rem;
    cursor: pointer; transition: all .2s; text-decoration: none;
}
.footer-back-top:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }

/* App download column */
.qr-label {
    font-size: .66rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.45);
    margin-bottom: .6rem;
}
.qr-box {
    background: #fff; border-radius: 10px; padding: .55rem;
    width: 76px; height: 76px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.1rem; color: #0d2147;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.footer-store-btn {
    display: flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px; padding: .38rem .65rem; margin-bottom: .35rem;
    text-decoration: none; transition: background .18s, border-color .18s;
}
.footer-store-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); }
.footer-store-btn i { font-size: 1.05rem; color: #fff; flex-shrink: 0; }
.footer-store-label span { display: block; line-height: 1.25; }
.footer-store-label .store-sub  { font-size: .52rem; color: rgba(255,255,255,.5); }
.footer-store-label .store-name { font-size: .72rem; font-weight: 700; color: #fff; }
.footer-app-name {
    margin-top: .65rem; font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.35);
}

/* ════════════════════════════════════════════════════════════
   MAIN CONTENT CARD WRAPPERS
   ════════════════════════════════════════════════════════════ */
.content-card {
    background: var(--white);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    height: 100%;
}

/* ── Back to top ── */
#back-to-top {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 9999;
    width: 40px; height: 40px;
    background: var(--navy); color: var(--white);
    border: none; border-radius: 50%; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    display: none; align-items: center; justify-content: center;
    font-size: 1rem; transition: background .2s;
}
#back-to-top:hover { background: var(--red); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero-split-row  { min-height: unset; flex-direction: column; }
    .hero-text-col   { padding: 3.5rem 0; }
    .hero-text-inner { padding: 0 1.5rem; max-width: 100%; }
    .hero-img-col    { min-height: 280px; order: -1; }
    .hero-img-overlay { display: none; }
    .quick-bar       { margin-top: 0; border-radius: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
    .stats-bar .stats-label-block,
    .stats-bar .stats-quote { display: none; }
    .stat-col-num    { font-size: 1rem; }
    .gallery-thumb img { height: 75px; }
}
@media (max-width: 575.98px) {
    .hero-text-col   { padding: 3rem 0; }
    .hero-text-inner { padding: 0 1.25rem; }
    .hero-img-col    { min-height: 220px; }
    .hero-split-title { font-size: 2.2rem; }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL SPACING – expanded horizontal breathing room
   ════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .container,
    .container-sm,
    .container-md { padding-right: 1.5rem; padding-left: 1.5rem; }
}
@media (min-width: 992px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg { padding-right: 2rem; padding-left: 2rem; }
}
@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl { padding-right: 2.75rem; padding-left: 2.75rem; }
}
@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl { padding-right: 3.5rem; padding-left: 3.5rem; max-width: 1440px; }
}
