/* ============================================
   KH GENEVA HOLDING - CONSOLIDATED STYLES
   Professional, optimized CSS leveraging Bootstrap
   ============================================ */

/* ============================================
   1. ROOT & BASE CONFIGURATION
   ============================================ */
:root {
    --primary-gold: rgb(255, 193, 7);
    --text-gold: rgb(255, 178, 34);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.golden-text {
    color: var(--primary-gold) !important;
}

.tracking-widest {
    letter-spacing: 0.25em !important;
}

/* ============================================
   3. NAVBAR
   ============================================ */
.blur-navbar {
    background-color: rgba(20, 20, 35, 0.55) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

/* Scrolled state - more opaque for better readability */
.blur-navbar.scrolled {
    background-color: rgba(20, 20, 35, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blur-navbar .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.blur-navbar .navbar-brand,
.blur-navbar .nav-link {
    color: #ffffff !important;
}

.blur-navbar .nav-link {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Brand Enhancement */
.navbar-brand .brand-kh {
    color: var(--primary-gold);
    font-weight: 700;
    letter-spacing: -0.05em;
}

/* Active State - Better visibility with lighter color */
.blur-navbar .nav-link.active {
    color: #ff6b6b !important;
    position: relative;
}

.blur-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

.blur-navbar .nav-link:hover {
    color: #ff6b6b !important;
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-brand { font-size: 1.35rem !important; }
    
    .blur-navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-collapse {
        background-color: rgba(20, 20, 35, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav .nav-link {
        padding: 0.85rem 1rem !important;
        font-size: 1.1rem;
    }
    
    .blur-navbar .nav-link.active::after {
        bottom: 0;
        left: 0;
        transform: none;
        width: 3px;
        height: 100%;
    }
    
    .blur-navbar .nav-link.active {
        background-color: rgba(255, 107, 107, 0.15);
        border-radius: 6px;
    }
}

@media (max-width: 575px) {
    .navbar-brand { font-size: 1.2rem !important; }
    
    .blur-navbar .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-collapse {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}

/* ============================================
   4. MEGA MENU
   ============================================ */
.mega-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.mega-menu-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
}

.mega-menu-category {
    color: #6c757d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
}

.mega-menu .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: normal;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
}

.mega-menu .dropdown-item i {
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.mega-menu .dropdown-item strong {
    display: block;
    color: #212529;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.mega-menu .dropdown-item:hover {
    background-color: rgba(218, 41, 28, 0.05);
    transform: translateX(5px);
}

.mega-menu .dropdown-item:hover i,
.mega-menu .dropdown-item:hover strong {
    color: var(--primary-gold);
}

@media (max-width: 991px) {
    .mega-menu {
        position: relative !important;
        transform: none !important;
        border-radius: 8px;
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mega-menu .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    .mega-menu .col-lg-3 {
        padding: 0;
    }
    
    .mega-menu-category {
        margin-top: 1rem;
    }
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    background-color: #000;
    padding-top: 80px;
    cursor: pointer;
}

.hero-bg video,
.hero-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Editorial Title Polish */
.hero h1 {
    letter-spacing: -0.03em;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* Ensure display-2 looks good on mobile */
@media (max-width: 768px) {
    .hero .display-2 {
        font-size: 3rem;
    }
}

/* ============================================
   6. HOMEPAGE SECTIONS
   ============================================ */
.holding-intro {
    padding: 120px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

/* .intro-reveal {
    opacity: 0;
}

.pillar-card-item {
    opacity: 0;
} */

.pillar-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 2rem;
    /* height: 100%; */
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
  background-color: var(--primary-gold) !important; /* Dark background on hover */
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.pillar-card:hover .card-title,
.pillar-card:hover .card-text,
.pillar-card:hover .pillar-icon-wrapper i {
  color: #000 !important;
}
.pillar-card:hover .pillar-icon-wrapper {
    background-color: #fff !important;
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Icon Styling */
.pillar-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.pillar-icon-wrapper i {
  font-size: 1.6rem;
  color: #0d6efd;
}





/* Chairman Section */
.chairman-message {
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
    padding: 100px 0;
    color: #ffffff;
    /* overflow: hidden; */
}

.chairman-image-container {
    padding: 20px;
}
.chairman-frame::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 0;
    left: 30px;
    border: 10px solid rgb(255, 178, 34); /* Gold frame offset */
    z-index: 1;
}

.chairman-img {
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
    filter: contrast(1.05);

    /* border-radius: 8px;
    box-shadow: 30px 30px 0px -10px rgba(218, 41, 28, 0.15); */
}

.chairman-experience {
    position: absolute;
    bottom: 50px;
    right: -20px;
    background: #1a1a1a;
    color: white;
    padding: 25px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.chairman-experience .chair-exp-txt {
    text-transform: uppercase;
}

.chairman-text-box {
    color: #1a1a1a;
}

.chairman-quote p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #1a1a1a;
    font-size: 1.3rem;
    line-height: 1.6;
    border-left: 3px solid #c5a059;
    padding-left: 25px;
    margin-bottom: 1.2rem;
}

.chairman-body p {
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.chairman-reveal {
    opacity: 1;
}

@media (max-width: 768px) {
    .chairman-frame {
        padding: 0 15px 15px 0;
    }
    .chairman-experience {
        right: 10px;
        bottom: 20px;
        padding: 15px;
    }
    .chairman-experience .chair-exp-txt {
        font-size: 16px;
        text-transform: capitalize;
    }
}





/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: 'Inter', sans-serif;
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background: #ffffff;
}

.vision-image-wrapper {
    position: relative;
}

/* ============================================
   7. PORTFOLIO ACCORDION SECTION
   ============================================ */
.portfolio-section  { background: #111; padding-bottom: 0; }

.portfolio-header {
    padding: 100px 0 64px 0;
    background: #111;
}
.portfolio-header h2  { color: #ffffff; }
.portfolio-header p   { color: rgba(255,255,255,0.5) !important; }

.portfolio-accordion { display: flex; flex-direction: column; width: 100%; }

.pa-item {
    position: relative;
    height: 88px;
    overflow: hidden;
    cursor: pointer;
    border-top: 1px solid rgba(255,255,255,0.09);
    transition: height .6s cubic-bezier(.77,0,.175,1);
    will-change: height;
}
.pa-item:last-child  { border-bottom: 1px solid rgba(255,255,255,0.09); }
.pa-item--active     { height: 540px; }

.pa-item::after {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary-gold);
    opacity: .18;
    transition: opacity .4s ease;
    z-index: 5;
}
.pa-item:hover::after,
.pa-item--active::after { opacity: 1; }

.pa-item__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.08);
    opacity: .12;
    transition:
        transform .65s cubic-bezier(.77,0,.175,1),
        opacity   .5s ease;
    will-change: transform, opacity;
}
.pa-item--active .pa-item__bg                { transform: scale(1); opacity: 1; }
.pa-item:not(.pa-item--active):hover .pa-item__bg { opacity: .22; }

.pa-item__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.1)  50%,
        rgba(0,0,0,0) 100%
    );
    opacity: 0;
    transition: opacity .55s ease;
    z-index: 1;
}
.pa-item--active .pa-item__overlay { opacity: 1; }

.pa-item__collapsed {
    position: absolute; inset: 0; z-index: 3;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    padding: 0 2.5rem 0 1.75rem;
    transition: opacity .28s ease;
}
.pa-item--active .pa-item__collapsed { opacity: 0; pointer-events: none; }

.pa-item__num {
    font-family: 'Inter', sans-serif;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .18em;
    color: rgba(255,255,255,.48);
    transition: color .3s ease;
    padding-left: .5rem;
}
.pa-item:hover .pa-item__num { color: var(--primary-gold); }

.pa-item__label {
    display: flex; flex-direction: column; gap: .22rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255,255,255,.1);
}
.pa-item__name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 400;
    color: rgba(255,255,255,.88);
    letter-spacing: .01em; line-height: 1.2;
    transition: color .3s ease;
}
.pa-item:hover .pa-item__name { color: #ffffff; }

.pa-item__tagline {
    font-family: 'Lato', sans-serif;
    font-size: .78rem; font-weight: 300;
    color: rgba(255,255,255,0.9);
    letter-spacing: .01em; line-height: 1.3;
    transition: color .3s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 520px;
}
.pa-item:hover .pa-item__tagline { color: rgba(255,255,255,1); }

.pa-item__arrow {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: rgba(255,255,255,.35);
    font-size: .85rem; flex-shrink: 0;
    transition: all .35s ease;
}
.pa-item:hover .pa-item__arrow {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: rotate(45deg);
}

.pa-item__expanded {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: flex-end;
    padding: 3.5rem 3rem 3.5rem;
    opacity: 0; pointer-events: none;
    transition: opacity .38s ease .2s;
}
.pa-item--active .pa-item__expanded { opacity: 1; pointer-events: auto; }

.pa-item__expanded-inner {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    width: 100%; gap: 3rem;
    transform: translateY(18px);
    transition: transform .48s ease .22s;
}
.pa-item--active .pa-item__expanded-inner { transform: translateY(0); }

.pa-item__sector {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .63rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .22em;
    color: var(--primary-gold);
    margin-bottom: .7rem;
}
.pa-item__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 300; color: #fff;
    letter-spacing: -.025em; line-height: 1.05;
    margin-bottom: 1rem;
}
.pa-item__desc {
    font-size: .95rem; line-height: 1.75;
    color: rgba(255,255,255,.62);
    max-width: 520px; margin-bottom: 2rem;
}
.pa-item__cta {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: 'Lato', sans-serif;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .13em;
    color: #fff; text-decoration: none;
    padding: .72rem 1.7rem;
    border: 1px solid rgba(255,255,255,.32);
    transition: background .3s ease, border-color .3s ease;
}
.pa-item__cta:hover { background: var(--primary-gold); border-color: var(--primary-gold); color: #fff; }
.pa-item__cta i     { transition: transform .3s ease; }
.pa-item__cta:hover i { transform: translateX(5px); }

.pa-item__meta {
    flex-shrink: 0;
    display: flex; flex-direction: column;
    gap: 1.6rem; text-align: right; min-width: 165px;
}
.pa-item__meta-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .22em;
    color: rgba(255,255,255,.28); margin-bottom: .2rem;
}
.pa-item__meta-value {
    font-family: 'Inter', sans-serif;
    font-size: .92rem; font-weight: 300;
    color: rgba(255,255,255,.72);
}

@media (max-width: 992px) { .pa-item__meta { display: none; } }

@media (max-width: 768px) {
    .pa-item            { height: 80px; }
    .pa-item--active    { height: 480px; }
    .pa-item__collapsed { padding: 0 1.25rem 0 1rem; grid-template-columns: 44px 1fr auto; }
    .pa-item__label     { padding-left: .9rem; }
    .pa-item__name      { font-size: .92rem; }
    .pa-item__tagline   { font-size: .73rem; max-width: calc(100vw - 120px); }
    .pa-item__expanded  { padding: 2rem 1.5rem 2.5rem; }
    .pa-item__expanded-inner { flex-direction: column; align-items: flex-start; gap: 0; }
    .pa-item__title     { font-size: 1.8rem; }
    .pa-item__desc      { font-size: .9rem; margin-bottom: 1.5rem; }
}

@media (max-width: 440px) {
    .pa-item--active  { height: 500px; }
    .pa-item__title   { font-size: 1.5rem; }
    .pa-item__tagline { display: none; }
}

.port-reveal { /* GSAP animates from y:30 opacity:0 */ }

/* ============================================
   8. SUBSIDIARY PAGES
   ============================================ */
.subsidiary-hero {
    height: 85vh;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    overflow: hidden;
}

.subsidiary-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.05) 100%),
        linear-gradient(to top,    rgba(0,0,0,0.55) 0%, transparent 40%);
    z-index: 1;
}

.subsidiary-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
}

.subsidiary-hero:has(.subsidiary-hero__overlay)::before {
    display: none;
}

.subsidiary-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.85rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255,255,255,0.88) !important;
    max-width: 540px;
}

.subsidiary-hero h1,
.subsidiary-hero p {
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .btn-md-lg {
        padding: .625rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 50rem !important;
    }
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin-bottom: 2rem;
    transform-origin: left center;
}

.subsidiary-link {
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.4);
}

.subsidiary-link:hover {
    background-color: white !important;
    color: #000000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.subsidiary-image-block {
    box-shadow: 30px 30px 0px -10px rgba(218, 41, 28, 0.05);
    border-radius: 4px;
}

.image-experience-tag {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--primary-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 4px;
}

.vertical-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.vertical-card:hover {
    transform: translateY(-10px);
}

.vertical-img {
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vertical-card:hover .vertical-img {
    transform: scale(1.1);
}

.vertical-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    transition: background 0.3s ease;
}

.vertical-card:hover .vertical-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 80%);
}

.vertical-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 20px;
    right: 20px;
}

.vertical-desc {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vertical-card:hover .vertical-desc {
    opacity: 1 !important;
    transform: translateY(-5px);
}

.vertical-line {
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.4s ease;
}

.vertical-card:hover .vertical-line {
    width: 60px;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(218, 41, 28, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-icon-box i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.card:hover .service-icon-box {
    background: var(--primary-gold);
    transform: scale(1.1);
}

.card:hover .service-icon-box i {
    color: white;
}

/* ============================================
   9. FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
    padding: 4rem 0 0 0;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .brand-kh {
    color: var(--primary-gold);
}

.footer-contact p,
.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a:hover {
    color: var(--primary-gold);
}

.footer-portfolio-title {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-portfolio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.footer-portfolio-list a {
    color: #199fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-portfolio-list a i {
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-portfolio-list a:hover {
    color: rgb(255, 41, 41) !important;
    /* padding-left: 0.5rem; */
}

.footer-portfolio-list a:hover i {
    transform: translateX(3px);
}

.footer-links h6 {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #199fff !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #ffffff;
}

/* ============================================
   10. FORMS & LEGAL PAGES
   ============================================ */
.py-lg-9 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* .text-gold {
    color: var(--text-gold) !important;
} */



/* Policy sidebar - sticky on desktop, normal flow on mobile */
.policy-sidebar {
    position: relative;
}

@media (min-width: 992px) {
    .policy-sidebar {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 120px; /* Stick below navbar; adjust if needed (e.g., 100px) */
        z-index: 100;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 1rem; /* Space for scrollbar */
    }

    .policy-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .policy-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .policy-sidebar::-webkit-scrollbar-thumb {
        background: rgba(218, 41, 28, 0.3);
        border-radius: 3px;
    }

    .policy-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(218, 41, 28, 0.5);
    }
}



/* #policy-index {
    position: relative;
    padding-left: 0;
}

.scrollspy-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-gold), rgba(218, 41, 28, 0.6));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 1;
}

#policy-index .nav-link {
    color: #6c757d !important;
    text-decoration: none;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
    border: none;
    display: block;
}

#policy-index .nav-link:hover {
    color: var(--primary-gold) !important;
    background-color: rgba(218, 41, 28, 0.05);
    padding-left: 1.75rem;
}

#policy-index .nav-link.active {
    color: var(--primary-gold) !important;
    font-weight: 700 !important;
    background-color: rgba(218, 41, 28, 0.08);
    padding-left: 1.75rem;
}

#policy-index.nav-pills .nav-link.active {
    background-color: rgba(218, 41, 28, 0.08) !important;
}

.scroll-section {
    scroll-margin-top: 150px;
}

.hover-red {
    transition: color 0.3s ease;
}

.hover-red:hover {
    color: var(--primary-gold) !important;
    padding-left: 5px;
} */














/* ============================================
   11. RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767px) {
    .footer-brand,
    .footer-contact,
    .footer-social,
    .footer-portfolio-list,
    .footer-links {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center; /* This forces flex items (like the address) to center */
        display: flex; 
        align-items: start;
    }
}



/* ────────────────────────────────────────────────
   Active state for policy index (scroll spy)
───────────────────────────────────────────────── */

#policy-index {
    --active-color: var(--primary-gold, #da291c);
    --active-bg: rgba(218, 41, 28, 0.06);
}

#policy-index a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 1.1rem;
    margin: 0.15rem 0;
    border-radius: 6px;
    transition: all 0.22s ease;
    position: relative;
    color: #6c757d;
}

#policy-index a:hover {
    color: #343a40;
    background: rgba(0,0,0,0.04);
}

/* Active / current section style */
#policy-index a.active {
    color: var(--active-color) !important;
    font-weight: 600;
    background: var(--active-bg);
    border-left: 3px solid var(--active-color);
    margin-left: -3px;          /* compensate for the added border-left */
    padding-left: 1.1rem;       /* keep visual padding consistent */
}

/* Optional: subtle indicator line on the very left of the whole block */
#policy-index.has-active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent 20%, var(--active-color) 40%, var(--active-color) 60%, transparent 80%);
    opacity: 0.4;
    border-radius: 3px;
}

/* Make sure sticky block doesn't get too narrow on ultra-small screens */
@media (max-width: 991px) {
    #policy-index {
        padding-left: 0.75rem;
    }
    #policy-index a {
        padding: 0.6rem 0.9rem;
    }
}




/* ============================================
   12. CONTACT FORM
   ============================================ */
/* --- Contact Form Input Enhancements --- */
#contactForm .form-control, 
#contactForm .form-select {
    border: 1.5px solid #adb5bd; /* Darker, more prominent gray border */
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.2s ease-in-out;
}

/* KH Brand Focus State */
#contactForm .form-control:focus, 
#contactForm .form-select:focus {
    border-color: var(--primary-gold); /* Becomes KH Red when active */
    box-shadow: 0 0 0 0.25rem rgba(218, 41, 28, 0.1); /* Subtle red glow */
    outline: 0;
}

/* Label styling for better readability */
#contactForm label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.4rem;
}