/* =====================================================
   ILOGO REUNIONS — V5 UNIFIED STRUCTURE
===================================================== */

/* ===============================
   ROOT TOKENS
================================ */
:root {
  --content-width: 1380px;

  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;

  --text-sm: 0.9rem;
  --text-base: 1.05rem;
  --text-lg: 1.2rem;
  --text-xl: 1.45rem;

  --text-section: clamp(1.8rem, 3vw, 2.4rem);
  --text-display: clamp(2.2rem, 4vw, 3rem);
  --text-hero: clamp(2.4rem, 6vw, 4.2rem);

  /* =====================================
     BRAND COLOR SYSTEM
  ===================================== */

  --brand-blue: #002a53;          /* Primary iLogo Blue */
  --brand-blue-dark: #001f3f;     /* For hovers, depth, active states */
  --brand-blue-light: #0b3d75;    /* For backgrounds, highlights */

  --brand-orange: #ff7a00;
  --brand-accent: #1c8ed6;

  --text-dark: #111;
  --text-muted: #666;

  --radius-lg: 20px;
  --shadow-soft: 0 20px 50px rgba(0,0,0,0.06);

  --bg-page: #f7f8fa;
}

/* =========================================
   iLOGO — ELITE FAQ EXPERIENCE (STABLE)
========================================= */


/* ========================
   PAGE FOUNDATION
======================== */

.faq-page{
    padding: 40px 0 80px;
    background: radial-gradient(circle at 20% 0%, #f8fbff, #f1f5f9);
}

.faq-row{
    align-items: flex-start;
}


/* ========================
   SIDEBAR LAYOUT
======================== */

.side-nav{
    position: sticky;
    top: 120px;
}


/* ========================
   MAIN CONTENT PANEL
======================== */

.content-box{
    background: #ffffff;
    padding: 48px 54px;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 2px 6px rgba(0,0,0,0.04);
    position: relative;
}

/* top accent */
.content-box:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    border-radius:18px 18px 0 0;
    background: linear-gradient(90deg,#1a73e8,#5aa0ff);
}

/* Question title */
.content-box h1{
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
}

/* Answer body */
.content-box [itemprop="text"]{
    font-size: 17px;
    line-height: 1.95;
    color: #444;
}

.content-box p{ margin-bottom: 18px; }

.content-box a{
    color: #002a53;
    font-weight: 600;
}
.content-box a:hover{ text-decoration: underline; }


/* ========================
   SIDEBAR PANEL
======================== */

.side-nav #accordion{
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 0;
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 8px 24px rgba(15,23,42,0.06);
}

/* Category headers */
.side-nav .card{
    border: none;
    background: transparent;
}

.side-nav .card-header{
    background: transparent;
    border: none;
    padding: 16px 24px 10px;
}

/* =====================================================
    SIDEBAR CATEGORY HEADERS — ALIGNMENT FIX
   ===================================================== */

/* =====================================================
    SIDEBAR CATEGORY HEADERS — RIGHT-ALIGNED ICONS
   ===================================================== */

.side-nav .card-header a {
    display: flex;
    /* Centers the text content vertically */
    align-items: center; 
    width: 100%;
    
    /* Typography & Colors */
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #64748b;
    
    /* Spacing */
    padding: 15px 45px 15px 15px !important; /* Extra 45px padding on right for icon */
    position: relative;
    text-decoration: none !important;
}

.side-nav .card-header a::after {
    /* 1. Force the icon to the absolute right of the padded box */
    position: absolute !important;
    right: 15px !important; /* Distance from the right edge */
    
    /* 2. Perfect Vertical Centering Logic */
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    /* 3. Icon Styling */
    content: "+";
    font-size: 22px;
    line-height: 1;
    margin: 0;
    display: block;
    color: #94a3b8;
}

/* Ensure the minus sign follows the same alignment logic */
.side-nav .card-header a[aria-expanded="true"]::after {
    content: "-";
}


/* divider */
.side-nav .card + .card{
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
    padding-top: 10px;
}


/* ========================
   QUESTIONS LIST
======================== */

.faq-nav{
    padding: 4px 12px 12px;
}

.faq-nav .nav-link{
    display: block;
    padding: 10px 14px;
    margin: 10px 0 !important;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: #334155;
    line-height: 1.5;
    transition: all .18s ease;
}

.faq-nav .nav-link:hover{
    background: #f1f5f9;
    color: #0f172a;
    transform: translateX(2px);
}

.faq-nav .nav-link.active{
    background: linear-gradient(90deg, #e0edff 0%, #f0f6ff 100%);
    color: #1d4ed8;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #002a53;
}


/* ========================
   MODERN HERO
======================== */

.faq-hero{
    padding: 64px 0 40px;
}

.faq-hero-inner{
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-hero-text h1{
    font-size: 34px;
    font-weight: 700;
    color: #002a53;
    margin-bottom: 10px;
}

.faq-hero-text p{
    font-size: 17px;
    color: #5b6b7c;
    margin-bottom: 26px;
}


/* ========================
   HERO SEARCH
======================== */

.faq-hero-search{
    display:flex;
    max-width:640px;
    margin:0 auto;
    background:#fff;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    overflow:hidden;
}

.faq-hero-search input{
    flex:1;
    border:none;
    padding:16px 20px;
    font-size:15px;
}

.faq-hero-search button{
    background:#002a53;
    color:#fff;
    border:none;
    padding:0 26px;
    font-weight:600;
}


/* ========================
   MOBILE OPTIMIZATION
======================== */

@media(max-width: 991px){

  .faq-page{ padding: 20px 0 50px; }

  .content-box{
      padding: 28px 22px;
      border-radius: 14px;
  }

  .content-box h1{ font-size: 22px; }

  .side-nav{ margin-top: 30px; }

  .faq-hero{ padding: 40px 0; }

  .faq-hero-text h1{ font-size: 26px; }

  .faq-hero-search{
      flex-direction: column;
      border-radius: 12px;
  }

  .faq-hero-search button{
      padding: 14px;
  }
}

/* ========================
   STICKY SIDEBAR FIX
======================== */

.side-nav{
    position: sticky;
    top: 120px;
    align-self: flex-start;   /* KEY: fixes sticky inside Bootstrap columns */
}

.faq-row{ overflow: visible; }

/* ========================
   POPULAR QUESTIONS
======================== */

.faq-popular{
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-popular h3{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0f172a;
}

.faq-popular-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:14px 18px;
}

.faq-popular-card{
    display:block;
    padding:16px 18px;
    background:#f8fbff;
    border-radius:12px;
    border:1px solid rgba(0,42,83,0.08);
    color:#002a53;
    font-weight:600;
    font-size:16px;
    line-height:1.5;
    text-decoration:none;
    transition: all .18s ease;
}

.faq-popular-card:hover{
    background:#eef4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,42,83,0.08);
}

@media(max-width:991px){
  .faq-popular-grid{ grid-template-columns:1fr; }
}

/* ========================
   UNIFORM QUESTION LINK SIZING
======================== */

.faq-nav .nav-link,
.faq-nav .nav-link.active{
    font-size: 14.5px;
    font-weight: 500;
}
/* =========================
   MOBILE FAQ LINK SIZE FIX
========================= */

@media(max-width:991px){
  .faq-nav .nav-link{
    font-size:18px;
    line-height:1.6;
  }
}

/* =========================
   REMOVE EXTRA ACTIVE BORDERS
========================= */

.side-nav .nav-link.active{
  border-left: none !important;
  border-right: none !important;
}

/* =========================
   STICKY SIDEBAR FIX
========================= */

/* Prevent Bootstrap from stretching columns */
.faq-row{
  align-items: flex-start !important;
}

/* Make sidebar sticky */
.side-nav{
  position: sticky;
  top: 120px;          /* adjust if header height differs */
  align-self: flex-start;
}

/* =========================
   FAQ QUESTION READABILITY FIX
========================= */

.content-box h1{
  font-size: 24px;      /* restore comfortable size */
  line-height: 1.5;     /* natural spacing */
}
}

/* =====================================================
   POPULAR QUESTIONS — PREMIUM POLISH
===================================================== */

/* Section container */
.faq-popular{
  margin: 42px 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}

/* Section heading */
.faq-popular h3{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--brand-blue);
  letter-spacing: .2px;
}

/* Grid layout */
.faq-popular-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 22px;
}

/* Cards */
.faq-popular-card{
  display:block;
  background: #f8fbff;
  border-radius: 16px;
  border: 1px solid rgba(0,42,83,0.08);
  padding: 16px 20px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  text-decoration:none;
  transition: all .2s ease;
}

/* Hover effect */
.faq-popular-card:hover{
  background: #eef4ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,42,83,0.10);
}

/* Mobile layout */
@media(max-width:991px){
  .faq-popular-grid{
    grid-template-columns: 1fr;
  }

  .faq-popular-card{
    padding: 18px;
    font-size: 16px;
  }
}
/* =====================================================
   SIDEBAR — PREMIUM FEEL INTERACTIONS
===================================================== */

/* 1️⃣ Smooth expand / collapse animation */
.side-nav .collapse{
  transition: height .28s ease, opacity .22s ease;
}

/* Prevent abrupt snapping */
.side-nav .collapsing{
  transition: height .28s ease;
}

/* 2️⃣ Enhanced hover feedback for question links */
.faq-nav .nav-link{
  transition: background-color .18s ease,
              transform .18s ease,
              box-shadow .18s ease;
}

.faq-nav .nav-link:hover{
  background: #f1f5f9;
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 rgba(0,42,83,0.25);
}

/* 3️⃣ Slight hover effect for category headers */
.side-nav .card-header a{
  transition: color .18s ease;
}

.side-nav .card-header a:hover{
  color: var(--brand-blue);
}

/* 4️⃣ Make active question feel anchored */
.faq-nav .nav-link.active{
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

/* =====================================================
   FAQ ANSWER READABILITY — PREMIUM POLISH
===================================================== */

/* Improve reading width */
.content-box [itemprop="text"]{
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}

/* Improve paragraph spacing */
.content-box p{
  margin-bottom: 18px;
}

/* Improve list styling */
.content-box ul,
.content-box ol{
  padding-left: 22px;
  margin-bottom: 18px;
}

.content-box li{
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Highlight important phrases */
.content-box strong{
  color: var(--brand-blue);
  font-weight: 600;
}

/* Improve link visibility */
.content-box a{
  color: var(--brand-accent);
  font-weight: 600;
}

.content-box a:hover{
  text-decoration: underline;
}

/* Improve spacing between sections */
.content-box h2,
.content-box h3{
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--brand-blue);
}

/* Restore Popular Questions brand color */
.faq-popular-card{
  color: var(--brand-blue) !important;
}

/* =====================================
   FORCE POPULAR QUESTIONS LINK COLOR
===================================== */

.faq-popular .faq-popular-card,
.faq-popular .faq-popular-card:link,
.faq-popular .faq-popular-card:visited{
  color: var(--brand-blue) !important;
}

/* =====================================================
   FAQ PAGE LAYOUT & HEADING ALIGNMENT
===================================================== */

/* 1. Systematic Heading Alignment */
.content-box h1 {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    color: var(--brand-blue) !important;
    font-weight: 800 !important;
}

/* 2. Global Content Alignment */
.content-box [itemprop="text"], 
.content-box p, 
.content-box .faq-page {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important; /* Overrides the 760px constraint if needed */
}

/* 3. Mobile Specific Alignment */
@media (max-width: 767px) {
    .content-box h1 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center;
    }
}