
/**
* Adapted for Academic Profile
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - Academic Palette */
:root { 
  /* Deep Sapphire Blue Theme */
  --background-color: #ffffff; 
  --default-color: #2D3142;       /* Neutral 2: Charcoal (Body Text) */
  --heading-color: #0A2463;       /* Primary: Deep Sapphire Blue (Headings) */
  --accent-color: #3E92CC;        /* Secondary: Celestial Blue (Links/Buttons) */
  --surface-color: #ffffff; 
  --contrast-color: #ffffff; 

  /* Additional Custom Variables */
  --highlight-color: #FFC145;     /* Accent 1: Honey Yellow (CTAs) */
  --energy-color: #FF6B6B;        /* Accent 2: Coral */
  --success-color: #4ECDC4;       /* Success: Emerald Green */
}

/* Nav Menu Colors */
:root {
  --nav-color: #0A2463;           /* Deep Sapphire */
  --nav-hover-color: #3E92CC;     /* Celestial Blue */
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #2D3142;
  --nav-dropdown-hover-color: #3E92CC;
}

/* Color Presets */
.light-background {
  --background-color: #F8F9FA;    /* Neutral 1: Light Gray */
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0A2463;    /* Deep Sapphire Blue */
  --default-color: #F8F9FA;       /* Light Gray Text */
  --heading-color: #ffffff;
  --surface-color: #153378;       /* Slightly lighter blue for contrast */
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}



/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 1050;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1); /* Always show slight shadow */
}

.header .logo h1 {
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--highlight-color);
}

/* CTA Button Styling */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: #0A2463; /* Dark Text */
  background: var(--highlight-color); /* Honey Yellow */
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
  font-weight: 600;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: color-mix(in srgb, var(--highlight-color), black 10%);
  color: #0A2463;
}

.section {
    margin: 10px 0 !important;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu li:hover>a, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0; padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block; position: absolute; visibility: hidden;
    left: 14px; top: 130%; opacity: 0;
    transition: 0.3s; border-radius: 4px; z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a { padding: 10px 20px; font-size: 15px; text-transform: none; color: var(--nav-dropdown-color); }
  .navmenu .dropdown ul a:hover, .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .dropdown:hover>ul { opacity: 1; top: 100%; visibility: visible; }
}

/* Mobile Nav */
@media (max-width: 1199px) {
  .mobile-nav-toggle { color: var(--nav-color); font-size: 28px; line-height: 0; margin-right: 10px; cursor: pointer; transition: color 0.3s; }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul { display: none; list-style: none; position: absolute; inset: 60px 20px 20px 20px; padding: 10px 0; margin: 0; border-radius: 6px; background-color: var(--nav-mobile-background-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); box-shadow: none; overflow-y: auto; transition: 0.3s; z-index: 9998; }
  .navmenu a, .navmenu a:focus { color: var(--nav-dropdown-color); padding: 10px 20px; font-family: var(--nav-font); font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; transition: 0.3s; }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus { color: var(--nav-dropdown-hover-color); }
  .mobile-nav-active .navmenu { position: fixed; overflow: hidden; inset: 0; background: rgba(33, 37, 41, 0.8); transition: 0.3s; }
  .mobile-nav-active .navmenu>ul { display: block; }
  
  
  
/* Fix Dropdown position for Mobile */
  .navmenu .dropdown ul {
    position: static;
    display: none;    /* Hidden by default */
    opacity: 1;
    visibility: visible;
    background-color: #fff;
    margin: 10px 20px;
    padding: 10px 0;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  /* This is the missing piece: Show menu when JS adds this class */
  .navmenu .dropdown > ul.dropdown-active {
    display: block;
  }

  /* Rotate the chevron icon when open */
  .navmenu .dropdown > a.active .toggle-dropdown {
    transform: rotate(180deg);
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 40vh;
  position: relative;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
}
.hero img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.4; /* Dim image for text readability */
}
.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 10%); /* Strong Overlay */
  position: absolute; inset: 0; z-index: 2;
}
.hero .container { position: relative; z-index: 3; }
.hero h2 { margin: 0; font-size: 48px; font-weight: 700; color: #fff; }
.hero p { color: color-mix(in srgb, #fff, transparent 20%); margin: 10px 0 0 0; font-size: 24px; }
.hero .btn-get-started {
  font-weight: 600; font-size: 15px; letter-spacing: 1px; display: inline-block; padding: 10px 35px; border-radius: 50px; transition: 0.4s; margin-top: 30px;
  background: var(--highlight-color); color: #0A2463; /* Honey Yellow Button */
}
.hero .btn-get-started:hover {
  background: #fff; color: var(--heading-color);
}

/*--------------------------------------------------------------
# Features / Tools
--------------------------------------------------------------*/
.features .features-item {
  background-color: var(--surface-color);
  display: flex; align-items: center; padding: 20px; transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}
.features .features-item i { font-size: 32px; padding-right: 10px; line-height: 0; color: var(--accent-color); }
.features .features-item h3 { font-weight: 700; margin: 0; padding: 0; line-height: 1; font-size: 16px; }
.features .features-item h3 a { color: var(--heading-color); transition: 0.3s; }
.features .features-item:hover { border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.features .features-item:hover h3 a { color: var(--accent-color); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px; padding-bottom: 50px; position: relative;
}
.footer .footer-top { padding-top: 50px; }
.footer h4 { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }
.footer .social-links a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px; color: color-mix(in srgb, var(--default-color), transparent 30%); margin-right: 10px; transition: 0.3s;
}
.footer .social-links a:hover { color: var(--accent-color); border-color: var(--accent-color); }


/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  /* Use the Deep Sapphire Blue from your :root variables */
  --background-color: var(--heading-color); 
  --default-color: #ffffff;
  
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
  margin-bottom: 20px; /* Ensures no gap below header */
}

/* The dark blue banner area */
.page-title .heading {
  padding: 60px 0; /* Reduced padding for a tighter look */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

.page-title .heading h1 {
  color: #ffffff; /* Force white text on blue background */
  font-size: 38px;
  font-weight: 700;
  margin: 0;
}

.page-title .heading p {
  color: rgba(255, 255, 255, 0.7); /* Slightly transparent white for subtitle */
  margin-top: 10px;
  font-size: 16px;
}

/* The Breadcrumb Bar (Home / Page Name) */
.page-title nav {
  background-color: color-mix(in srgb, var(--heading-color), white 10%); /* Lighter Blue */
  padding: 15px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.page-title nav ol li {
  color: rgba(255, 255, 255, 0.6); /* Dimmed white for inactive items */
}

.page-title nav ol li + li {
  padding-left: 10px;
}

/* The slash separator / */
.page-title nav ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.3);
}

/* Links (Home) */
.page-title nav a {
  color: #ffffff;
  transition: 0.3s;
}

.page-title nav a:hover {
  color: var(--highlight-color); /* Honey Yellow on hover */
}

/* The active page (current) */
.page-title nav li.current {
  color: #ffffff; /* Bright white for current page */
}



/* ------------------login ----------------- */

/* Login Input Icons */
.input-group-text {
    border-color: #ddd;
    color: var(--heading-color); /* Deep Blue */
}

/* Focused Input */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 36, 99, 0.15); /* Blue Glow */
}


    /* --- demorpoj results styling --- */

    /* --- SCREEN STYLES --- */
    .metric-card { transition: transform 0.2s; height: 100%; }
    .metric-card:hover { transform: translateY(-3px); }
    .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; font-weight: 600; }
    .stat-value { font-size: 1.5rem; font-weight: 700; color: #212529; }
    
    .widget-card { height: 100%; display: flex; flex-direction: column; }
    .widget-header { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 12px 15px; flex-shrink: 0; }
    .widget-body { flex-grow: 1; display: flex; flex-direction: column; padding: 15px; }
    .chart-container { position: relative; flex-grow: 1; min-height: 250px; width: 100%; }
    .table-container { height: 250px; overflow-y: auto; font-size: 0.85rem; width: 100%; }
    .btn-xs { padding: 2px 6px; font-size: 0.7rem; }
    .print-header { display: none; }

    /* AI Analysis Box Style */
    .ai-analysis-box { background: #f0f8ff; border-left: 4px solid #0d6efd; padding: 15px; border-radius: 4px; font-size: 0.9rem; color: #333; line-height: 1.6; margin-top: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .ai-title { font-weight: bold; color: #0d6efd; display: flex; align-items: center; margin-bottom: 8px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
    .ai-title i { margin-right: 6px; font-size: 1.1rem; }

    /* Pyramid Table Styling */
    .pyramid-table-container { height: 450px; overflow-y: auto; }
    .pyramid-table th { position: sticky; top: 0; background: #fff; z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

    /* --- PRINT REPORT STYLES --- */
    @media print {
        @page { size: A4; margin: 1cm; }
        body { font-family: "Times New Roman", serif; background: #fff; color: #000; }
        .no-print, .navbar, .footer, .btn, .nav-tabs, .widget-controls, .badge, .form-range, header, .header, #header { display: none !important; }
        .main { padding: 0; margin: 0; }
        .container { max-width: 100%; padding: 0; }
        .row { display: flex; flex-wrap: wrap; }
        .col-md-3 { flex: 0 0 25%; max-width: 25%; } 
        .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
        .col-lg-9 { flex: 0 0 100%; max-width: 100%; } 
        .card { border: 1px solid #eee !important; box-shadow: none !important; margin-bottom: 10px; break-inside: avoid; }
        .metric-card { background: none !important; border: 1px solid #ddd !important; }
        .widget-header { background: #f9f9f9; border-bottom: 1px solid #ccc; padding: 5px 10px; }
        .widget-title { font-size: 14px; font-family: sans-serif; font-weight: bold; }
        .tab-pane { display: block !important; opacity: 1 !important; visibility: visible !important; }
        .tab-content { border: none; padding: 0; }
        /*.chart-container { height: 250px !important; page-break-inside: avoid; } */
        .chart-container {min-height: 200px !important; max-height: 240px !important;height: auto !important;}
        canvas { width: 100% !important; height: 100% !important; }
        .print-header { display: block; font-family: sans-serif; border-bottom: 2px solid #333; padding-bottom: 10px; margin-bottom: 20px; font-size: 18px; font-weight: bold; color: #333; }
        .section-header { font-family: sans-serif; border-bottom: 1px solid #ccc; padding-bottom: 5px; margin-bottom: 15px; margin-top: 20px; font-size: 16px; font-weight: bold; page-break-after: avoid; }
        .report-footer { position: fixed; bottom: 0; left: 0; width: 100%; text-align: center; font-size: 10px; color: #999; border-top: 1px solid #eee; padding-top: 5px; }
        #pyramidChart { height: 400px !important; }
        .print-only { display: block !important; }
        .ai-analysis-box { border: 1px solid #ccc; border-left: 4px solid #333; background: #fff; page-break-inside: avoid; }
    }
    .print-only { display: none; }





/* ==========================================================================
   Learning Interface Styles
   ========================================================================== */

/* 1. Layout & Scoping */
body.learning-mode {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa; /* Softer gray background for less eye strain */
}

.learn-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 2. Navigation Bar (Top) */
.learn-nav {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    z-index: 50;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.course-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0A2463; /* Your Main Brand Color */
    margin-left: 16px;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* 3. Sidebar (Syllabus) */
.syllabus-sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-header {
    padding: 16px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b; /* Muted Slate */
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.lesson-item:hover {
    background-color: #f1f5f9;
    color: #0A2463;
    padding-left: 24px; /* Subtle slide effect */
}

.lesson-item.active {
    background-color: #eff6ff; /* Light Brand Blue */
    border-left: 4px solid #0A2463;
    color: #0A2463;
}

.lesson-icon {
    margin-right: 12px;
    font-size: 1rem;
    min-width: 20px;
    opacity: 0.6;
}

.lesson-item.active .lesson-icon {
    opacity: 1;
    color: #0A2463;
}

/* 4. Main Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
    background-color: #ffffff; /* White page focus */
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 120px; /* Space for scroll */
}

/* Typography & Content Styling */
.lesson-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    line-height: 1.2;
}

.lesson-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151; /* Gray 700 for readability */
}

.lesson-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0A2463;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.lesson-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.lesson-body blockquote {
    border-left: 4px solid #fbbf24; /* Amber accent */
    background: #fffbeb;
    padding: 16px 20px;
    font-style: italic;
    color: #92400e;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.lesson-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lesson-body pre {
    background: #1e293b; /* Dark code theme */
    border-radius: 8px;
    margin: 24px 0;
    padding: 20px;
    color: #e2e8f0;
    font-size: 0.9em;
    overflow-x: auto;
}

/* Tables inside Lesson Content */
.lesson-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.lesson-body table th {
    background-color: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    color: #0A2463;
}

.lesson-body table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

/* 5. Notes Panel (Slide-out) */
.notes-panel {
    position: fixed;
    right: -350px;
    top: 64px; /* Matches navbar height */
    bottom: 0;
    width: 350px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    display: flex;
    flex-direction: column;
}

.notes-panel.open {
    right: 0;
}

.notes-header {
    padding: 20px;
    background: #fffbeb; /* Light yellow header */
    border-bottom: 1px solid #fef3c7;
    font-weight: 600;
    color: #b45309;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.note-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #fbbf24; /* Amber accent */
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
    display: block;
    text-align: right;
    font-weight: 500;
}

/* 6. Responsive Mobile Tweaks */
@media (max-width: 991px) {
    .syllabus-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        transform: translateX(-100%);
        box-shadow: 10px 0 25px -5px rgba(0,0,0,0.1);
    }
    .syllabus-sidebar.show {
        transform: translateX(0);
    }
    .content-area {
        padding: 24px;
    }
    .lesson-title {
        font-size: 1.75rem;
    }
}





/* ==========================================================================
  Researhers team design
   ========================================================================== */

    /* Navigation Styles */
    .team-nav .nav-link {
        border-radius: 8px;
        color: #495057;
        background: #fff;
        border: 1px solid #e9ecef;
        margin-bottom: 10px;
        text-align: left;
        padding: 15px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }
    .team-nav .nav-link:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }
    .team-nav .nav-link.active {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
        box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3);
    }
    .team-nav .nav-link img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 15px;
        border: 2px solid rgba(255,255,255,0.5);
    }

    /* Content Area Styles */
    .competency-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        height: 100%;
        border-left: 4px solid #ffc107;
    }
    
    /* JUSTIFY BIO TEXT */
    .bio-content {
        color: #555;
        line-height: 1.8;
    }
    .bio-content p {
        text-align: justify; /* Forces square edges on text blocks */
        text-justify: inter-word;
        margin-bottom: 1rem;
    }
    
    /* Centered Profile Image Style */
    .profile-highlight-img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        border-radius: 15px; /* Soft rounded corners */
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        margin-bottom: 20px;
    }
    
    
    

    /* =========================================
       SIG LAYOUT STYLES
       ========================================= */

    /* Main Flex Wrapper */
    #sig-wrapper {
        display: flex;
        height: calc(100vh - 80px); /* Adjust based on your Header height */
        position: relative;
        overflow: hidden;
    }

    /* 1. Sidebar */
    #sig-sidebar {
        width: 320px;
        background: #ffffff;
        border-right: 1px solid #dee2e6;
        display: flex;
        flex-direction: column;
        z-index: 900;
        box-shadow: 2px 0 15px rgba(0,0,0,0.05);
    }

    .sidebar-header {
        margin: 0 auto;
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
    }

    .sidebar-body {
        flex: 1;
        overflow-y: auto;
        padding: 15px 20px;
    }

    /* Layer Groups */
    .layer-group-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #adb5bd;
        font-weight: 700;
        margin-bottom: 10px;
        margin-top: 20px;
        border-bottom: 1px solid #f1f1f1;
        padding-bottom: 5px;
    }
    .layer-group-title:first-child { margin-top: 0; }

    .layer-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 6px;
        margin-bottom: 4px;
        transition: background 0.2s;
        cursor: pointer;
        border: 1px solid transparent;
        font-size: 0.9rem;
        color: #495057;
    }
    .layer-item:hover { background: #f8f9fa; border-color: #eee; color: #000; }
    
    .color-dot {
        width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 10px;
    }

    /* 2. Map Area */
    #map {
        flex: 1;
        height: 100%;
        background: #eef2f6;
        z-index: 1;
    }

   /* =========================================
       3. REFINED TIMELINE SLIDER
       ========================================= */
    #timeline-controls {
        position: absolute;
        bottom: 25px;
        left: 350px; /* Sidebar + padding */
        right: 25px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        padding: 10px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 15px;
        border: 1px solid rgba(255,255,255,0.5);
        height: 60px;
    }

    /* Play Button */
    .btn-play {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: #0A2463; /* Brand Blue */
        border: none;
        color: white;
        display: flex; align-items: center; justify-content: center;
        transition: transform 0.2s, background 0.2s;
    }
    .btn-play:hover { transform: scale(1.1); background: #0d6efd; }

    /* Custom Range Slider Styling */
    input[type=range] {
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
    }
    
    /* The Track */
    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 6px;
        cursor: pointer;
        background: #e9ecef;
        border-radius: 3px;
    }
    
    /* The Thumb (Handle) */
    input[type=range]::-webkit-slider-thumb {
        height: 18px; width: 18px;
        border-radius: 50%;
        background: #0A2463;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -6px;
        box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.2);
        transition: box-shadow 0.2s;
    }
    input[type=range]:focus::-webkit-slider-thumb {
        box-shadow: 0 0 0 6px rgba(10, 36, 99, 0.2);
    }

    /* =========================================
       4. BRANDED POPUP STYLES
       ========================================= */
    .leaflet-popup-content-wrapper {
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        border: none;
    }
    .leaflet-popup-content { margin: 0 !important; width: 260px !important; }
    .leaflet-popup-tip { background: white; }
    .leaflet-container a.leaflet-popup-close-button {
        top: 8px; right: 8px; color: white; font-size: 18px; text-shadow: none;
    }
    .leaflet-container a.leaflet-popup-close-button:hover { color: #ddd; background: transparent; }

    .sig-popup-header {
        background: #0A2463; color: white; padding: 12px; text-align: center;
    }
    .sig-popup-body { padding: 0; }
    .sig-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
    .sig-table td { padding: 6px 12px; border-bottom: 1px solid #f1f1f1; color: #555; }
    .sig-table tr:last-child td { border-bottom: none; }
    .sig-table td:first-child { font-weight: 600; color: #777; }
    .sig-table td:last-child { text-align: right; font-weight: 700; color: #333; }
    .sig-table tr:nth-child(even) { background-color: #f9fafb; }

    /* =========================================
       5. FIXED CENTER LOADER
       ========================================= */
    #map-loader {
        position: absolute;
        top: 50%;
        left: 50%; /* Center horizontally relative to map wrapper */
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        padding: 15px 30px;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 2000; /* Above Sidebar (900) and Map (1) */
        display: none; /* Hidden by default */
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: #0A2463;
        border: 1px solid rgba(0,0,0,0.05);
    }
    
