/* Base Variables (Default Theme - Blue) */
:root {
    --primary-color: #fd7e14; /* Dark Orange */
    --secondary-color: #FFF0DB; /* Light Orange */
    --text-color: #4B2F00;
    --light-text-color: #ffffff;
    --accent-color: #fd7e14; /* Medium Orange */
    --card-bg-color: #FFFFFF; /* White for cards */
    --footer-bg-color: #8B4513; /* Saddle Brown */
    --footer-text-color: #ffffff;
    --border-color: #FFDAB9;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.2);
}

/* Green Theme */
body.theme-green {
    --primary-color: #1a5e2e; /* Dark Green */
    --secondary-color: #e6ffe6; /* Light Green */
    --text-color: #222222;
    --light-text-color: #ffffff;
    --accent-color: #28a745; /* Bootstrap Green */
    --card-bg-color: #f0fff0;
    --footer-bg-color: #0d3b19;
    --footer-text-color: #ffffff;
    --border-color: #c9e6c9;
    --shadow-light: 0 4px 10px rgba(0,0,0,0.15);
}

/* Orange Theme */

body.theme-orange {
    --primary-color: #fd7e14; /* Dark Orange */
    --secondary-color: #FFF0DB; /* Light Orange */
    --text-color: #4B2F00;
    --light-text-color: #ffffff;
    --accent-color: #fd7e14; /* Medium Orange */
    --card-bg-color: #FFFFFF; /* White for cards */
    --footer-bg-color: #8B4513; /* Saddle Brown */
    --footer-text-color: #ffffff;
    --border-color: #FFDAB9;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.2);
}

/* Red Theme */
body.theme-red {
    --primary-color: #B22222;            /* Firebrick (Primary Red) */
    --secondary-color: #FFE5E5;          /* Very Light Red (Background highlights) */
    --text-color: #4B0000;               /* Dark Red (for headings/text) */
    --light-text-color: #ffffff;         /* White (for buttons or dark backgrounds) */
    --accent-color: #FF4C4C;             /* Accent Red (for buttons/links) */
    --card-bg-color: #FFFFFF;            /* White (neutral card background) */
    --footer-bg-color: #8B0000;          /* Dark Red (footer) */
    --footer-text-color: #ffffff;        /* White (footer text) */
    --border-color: #FFC0CB;             /* Light Pink (soft borders) */
    --shadow-light: 0 4px 12px rgba(178, 34, 34, 0.2);  /* Light red shadow */
}

body.theme-blue {
 --primary-color: #005691; /* Dark Blue */
    --secondary-color: #f0f8ff; /* Light Blue */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --accent-color: #007bff; /* Bootstrap Blue */
    --card-bg-color: #ffffff;
    --footer-bg-color: #343a40; /* Dark Grey */
    --footer-text-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 4px 8px rgba(0,0,0,0.1);
}


/* Body and General Styles */
body {
    font-family: 'Inter', sans-serif;
    /* background-color: var(--secondary-color); */
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    padding-top: 0; /* Initially no padding-top */
    margin-top: 0; /* Ensure no default margin affecting calculations */
}

/* General Section Styling */
section {
    padding: 40px 0; /* More vertical padding for sections */
}

/* Header Top Bar - Now scrolls with content */
.header-top {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 8px 100px;
    font-size: 0.85rem;
}

.accessibility-options button, .language-options button, .theme-options button {
    background: none;
    border: 1px solid var(--light-text-color);
    color: var(--light-text-color);
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease;
}
.accessibility-options button:hover, .language-options button:hover, .theme-options button:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.accessibility-options button:focus-visible, .language-options button:focus-visible, .theme-options button:focus-visible {
    outline: 2px solid yellow; /* Stronger focus indicator */
    outline-offset: 2px;
}

/* Main Header */
.header-main {
    background-color: var(--card-bg-color);
    padding: 15px 100px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}
.header-main h1 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation Bar - Will be made sticky by JS adding `fixed-top` */
.navbar-custom {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    /* border-radius: 0 0 0.75rem 0.75rem; rounded-b-xl */
    position: relative; /* Default state: relative, scrolls with content */
    z-index: 1040; /* Standard Bootstrap fixed-top z-index */
    transition: all 0.3s ease; /* Smooth transition for sticky effect */
}
/* When `fixed-top` is added by JS */
.navbar-custom.fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    border-radius: 0; /* Remove border-radius when fixed to top edge */
}

.collapse {
    visibility: visible !important;
}

 @media (max-width: 991.98px) {
   
    .header-main {
    background-color: var(--card-bg-color);
    padding: 15px 0px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    }

    .navbar-custom {
        border-radius: 0; /* No border radius on mobile nav */
    }
    .navbar-custom .navbar-collapse {
        background-color: var(--primary-color); /* Ensure background for collapsed menu */
        max-height: 80vh; /* Limit height for scrollability */
        overflow-y: auto; /* Enable scrolling for long menus */
    }
    .navbar-custom .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator for mobile links */
    }
}

.navbar-custom .nav-link, .navbar-custom .navbar-brand {
    color: var(--light-text-color) !important;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar-custom .nav-link:hover, .navbar-custom .navbar-brand:hover, .navbar-custom .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text-color) !important;
    border-radius: 0.375rem;
}
.navbar-custom .nav-link:focus-visible {
    outline: 2px solid yellow;
    outline-offset: -2px;
    border-radius: 0.375rem;
}
.navbar-custom .dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Deeper shadow for dropdown */
    z-index: 1060; /* Ensure dropdowns are above other nav elements */
}
/* Desktop hover for dropdowns: Bootstrap default behavior */
.navbar-custom .dropdown:hover > .dropdown-menu {
    display: block;
}
/* Custom CSS for dropdown-item */
.navbar-custom .dropdown-item {
    color: var(--light-text-color) !important;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 400; /* Regular weight for items */
    white-space: normal; /* Allow text to wrap within item */
}
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more prominent hover */
    color: var(--light-text-color) !important;
}
.navbar-custom .dropdown-item:focus-visible {
    outline: 2px solid yellow;
    outline-offset: -2px;
    background-color: rgba(255, 255, 255, 0.2); /* Even more prominent for focus */
}
/* Style for nested dropdowns */
.navbar-custom .dropdown-submenu {
    position: relative;
}
.navbar-custom .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%; /* Position to the right */
    margin-top: -1px;
    min-width: 220px; /* Ensure enough width for nested items */
    display: none; /* Hide by default, will be shown on hover/click */
}
.navbar-custom .dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Show nested dropdowns on hover for desktop */
}

.navbar-toggler-icon {
    background-image: url("../icons/burger.png");
    color: white;
}

/* Announcement Scroller */
.announcement-scroller {
    margin: 20px;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 10px 10px; /* same top and bottom */
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0.75rem;
    position: relative;
    line-height: 1.5;
}

.announcement-scroller .icon {
    margin: 0 15px 0 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.announcement-scroller .announcement-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center; /* ✅ vertical centering */
}

.announcement-items {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
    gap: 12px;
}

.announcement-items span {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: inherit;
}

.announcement-items span a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.announcement-items span a:hover {
    text-decoration: underline;
}

/* Pipe Divider */
.announcement-items span:not(:last-child)::after {
    content: '|';
    margin-left: 12px;
    color: var(--light-text-color);
    font-size: 1.2rem;
    opacity: 0.6;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -1px; /* Adjust to align pipe visually */
}



/* Scroll Animation */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.announcement-scroller.paused .announcement-items {
    animation-play-state: paused;
}

/* Pause Button */
.announcement-scroller .pause-btn {
    background: none;
    border: 1px solid var(--light-text-color);
    color: var(--light-text-color);
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.announcement-scroller .pause-btn:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.announcement-scroller .pause-btn:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

 
 
/* h1, h2, h3, h4, h5, h6 {
  font-size: revert !important;
  font-weight: revert !important;
}

h1 { font-size: 2.5rem; font-weight: 500; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.75rem; font-weight: 500; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }
  */

 /* Explicitly define grid behavior */
.section-wrapper {
    background-color: var(--card-bg-color);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.section-wrapper h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-wrapper .section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: center;
}

@media (max-width: 768px) {
    .section-wrapper h1 {
        font-size: 1.5rem;
    }

    .section-wrapper .section-description {
        font-size: 0.95rem;
    }
}
.authority-card {
    background-color: var(--secondary-color);
   border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* transition: all 0.3s ease-in-out; */
}

.authority-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.authority-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.authority-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}


.authority-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.authority-card p {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.authority-heading {
    color: var(--primary-color);
}

.authority-name {
    color: var(--primary-color);
}

.authority-description {
    color: var(--text-color);
}

 
.authority-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem; /* space between cards */
    justify-content: center; /* centers grid if narrower than container */
    max-width: 1400px;      /* optional: limits grid width on very large screens */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .authority-grid {
        grid-template-columns: repeat(4, 1fr); /* Adjust for medium screens */
    }
}

@media (max-width: 768px) {
    .authority-grid {
        grid-template-columns: repeat(2, 1fr); /* Adjust for tablets */
    }
}

@media (max-width: 480px) {
    .authority-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}


.authority-card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authority-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.authority-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto; /* Center the image */
}

.authority-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 auto; /* Center the placeholder */
}

/* Responsive image & placeholder sizes */
@media (max-width: 1440px) {
    .authority-img,
    .authority-placeholder {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 1200px) {
    .authority-img,
    .authority-placeholder {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .authority-img,
    .authority-placeholder {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .authority-img,
    .authority-placeholder {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 576px) {
    .authority-img,
    .authority-placeholder {
        width: 120px;
        height: 120px;
    }
}



 @media (max-width: 576px) {
        .pagination-secondary-category-x .page-link {
            padding: 0.25rem 0.5rem;
            font-size: 0.95rem;
        }
        .pagination-secondary-category-x {
            font-size: 0.95rem;
        }
    }

/* Hero Section */
.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for banner, 1/3 for cards */
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 991px) { /* Adjust for smaller screens */
    .hero-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}
.banner-section {
    background-color: var(--card-bg-color);
    box-shadow: var(--shadow-light);
    border-radius: 0.75rem;
    overflow: hidden;
}
.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.7); /* Lighter indicators */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color); /* Border for visibility */
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.carousel-indicators .active {
    background-color: var(--primary-color);
    opacity: 1;
}
.carousel-caption {
    /* background-color: rgba(0, 0, 0, 0.5);   */
    border-radius: 0.5rem;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    /* background-color: var(--primary-color); Match theme */
    color: var(--primary-color)!important; 
    border-radius: 50%;
    padding: 15px;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    background-color: var(--accent-color);
}

 
/* Director's Message */
.directors-message {
    background-color: var(--card-bg-color);
    padding: 40px;
    margin-top: 40px;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--primary-color);
}
.directors-message h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}
.director-info {
    text-align: right;
    margin-top: 20px;
}
.director-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 10px;
}
.director-info p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--primary-color);
}
.director-info small {
    color: var(--text-color);
    font-style: italic;
}
 h1, h2, h3, h4, h5, h6 {
  font-family: var(--bs-font-sans-serif, "Inter", sans-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

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; }

    /* High contrast mode */
body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}



body.high-contrast a {
  color: #0ff !important; /* Cyan links */
}

body.high-contrast .card,
body.high-contrast .table,
body.high-contrast .btn,
body.high-contrast .navbar,
body.high-contrast .list-group-item {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast th,
body.high-contrast td {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.high-contrast #theme-orange {
  background-color: #ffc107 !important; /* Bootstrap warning */
  border: 1px solid #fff;
  box-shadow: 0 0 2px #fff;
}

body.high-contrast #theme-red {
  background-color: #dc3545 !important; /* Bootstrap danger */
  border: 1px solid #fff;
  box-shadow: 0 0 2px #fff;
}

body.high-contrast #theme-green {
  background-color: #198754 !important; /* Bootstrap success */
  border: 1px solid #fff;
  box-shadow: 0 0 2px #fff;
}

body.high-contrast #theme-blue {
  background-color: #0d6efd !important; /* Bootstrap primary */
  border: 1px solid #fff;
  box-shadow: 0 0 2px #fff;
}
 
/* Latest Updates Tab Section */
.latest-updates-section {
    margin-top: 40px;
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
}
.latest-updates-section .nav-tabs {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}
.latest-updates-section .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.latest-updates-section .nav-tabs .nav-link.active,
.latest-updates-section .nav-tabs .nav-link:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--secondary-color);
    border-radius: 0.5rem 0.5rem 0 0;
}
.latest-updates-section .nav-tabs .nav-link:focus-visible {
    outline: 2px solid yellow;
    outline-offset: -2px;
    border-radius: 0.5rem 0.5rem 0 0;
}
.tab-pane ul {
    list-style: none;
    padding: 0;
    max-height: 300px; /* Fixed height for scrolling */
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--secondary-color);
}
.tab-pane ul li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.tab-pane ul li:last-child {
    border-bottom: none;
}
.tab-pane ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.tab-pane ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.tab-pane ul li a:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}
.tab-pane ul li .date {
    font-size: 0.8rem;
    color: #666;
    flex-shrink: 0; /* Prevent date from shrinking */
}
/* Scrollbar styling for tab panes */
.tab-pane ul::-webkit-scrollbar {
    width: 8px;
}
.tab-pane ul::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}
.tab-pane ul::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.tab-pane ul::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Important Links Scroller */
.important-links-section {
    color: white;
    background-color:#00579146;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;

}
.important-links-wrapper { /* New wrapper for controlling overflow and animation */
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
    background-color: var(--card-bg-color);
}
.important-links-logos-inner { /* This inner div will actually scroll */
    display: flex;
    align-items: center;
    padding: 20px 0;
    white-space: nowrap; /* Prevent items from wrapping */
    animation: scroll-links 30s linear infinite; /* Apply animation here */
    width: max-content; /* Allow content to dictate width */
    will-change: transform; /* Optimize for animation */
}
.important-links-wrapper:hover .important-links-logos-inner {
    animation-play-state: paused; /* Pause on hover */
}

@keyframes scroll-links {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Scrolls half the duplicated width */
}

.important-links-logos-inner img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    height: 70px;
    width: auto;
    margin: 0 20px;
    flex-shrink: 0; /* Prevent shrinking */
}
.important-links-logos-inner img:hover {
    filter: grayscale(0%);
}




/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 40px 0 20px 0;
    margin-top: 40px;
    border-radius: 0.75rem 0.75rem 0 0; /* rounded-xl at top, flat at bottom */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.footer a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}
.footer h5 {
    color: var(--footer-text-color);
    margin-bottom: 20px;
    font-weight: 600;
}
.footer .list-unstyled li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.footer .social-icons a { /* Keep if you decide to add social icons back */
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Specific styling for the new footer elements */
.footer .visitor-count-details p {
    font-size: 0.95rem; /* Adjust font size for clarity */
    line-height: 1.2;
}

.footer .wcag-logos img {
    width: 88px; /* Standard WCAG logo width */
    height: 31px; /* Standard WCAG logo height */
    margin-bottom: 5px; /* Space between logos */
    display: block; /* Stack logos vertically */
    transition: filter 0.3s ease;
}
.footer .wcag-logos img:hover {
    filter: none; /* Original colors on hover */
}

.footer address p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.footer address a {
    word-break: break-all; /* Break long emails/links */
}

.footer .policy-links a {
    font-size: 0.85rem; /* Smaller font for bottom policy links */
    margin: 0 5px; /* Space between links */
    white-space: nowrap; /* Prevent wrapping for individual links */
    display: inline-block; /* Allow spacing and wrapping of the whole block */
}

/* Responsive adjustments for footer */
@media (max-width: 767.98px) {
    .footer .col-sm-6 {
        margin-bottom: 20px; /* Add space between stacked columns on mobile */
    }
    .footer .col-md-8,
    .footer .col-md-4 {
        text-align: center !important; /* Center align text on mobile */
    }
    .footer .wcag-logos {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center WCAG logos when stacked */
    }
    .footer .policy-links a {
        display: block; /* Stack policy links on very small screens */
        margin: 5px 0;
    }
}

/* High Contrast Mode Overrides (ensure consistency with global style) */
body.high-contrast .footer {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-top: 1px solid #ffff00 !important;
}
body.high-contrast .footer a {
    color: #ffff00 !important;
}
body.high-contrast .footer a:hover {
    color: #fff !important;
}
body.high-contrast .footer h5 {
    color: #ffff00 !important;
}
body.high-contrast .footer .wcag-logos img {
    filter: grayscale(0%) invert(100%) brightness(200%) !important; /* Make white/yellow */
}


/* Scroll-to-Top Button */
#scroll-to-top-btn {

    display: none ;     /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Ensure it's above other content */
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#scroll-to-top-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
#scroll-to-top-btn:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

/* Chatbot Button */
#chatbot-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998; /* Below scroll-to-top, above other content */
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#chatbot-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
#chatbot-btn:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

/* Chatbot Modal Styling */
.chatbot-modal-content {
    background-color: var(--card-bg-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
    overflow: hidden; /* Ensure content stays within rounded corners */
}
.chatbot-modal-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-bottom: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-modal-header .btn-close {
    background-color: transparent; /* Override Bootstrap default */
    color: var(--light-text-color);
    opacity: 1;
    font-size: 1.25rem;
    padding: 0;
    margin: 0;
    filter: brightness(0) invert(1); /* Make it white */
}
.chatbot-modal-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    max-height: 400px; /* Fixed height for chat history */
    overflow-y: auto;
}
.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 0.5rem;
    max-width: 80%;
}
.chat-message.user {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    align-self: flex-end;
}
.chat-message.bot {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}
.chat-loading-indicator {
    text-align: center;
    padding: 10px;
    font-style: italic;
    color: #666;
}
.chatbot-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    gap: 10px;
    background-color: var(--card-bg-color);
}
.chatbot-modal-footer textarea {
    flex-grow: 1;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 8px;
    resize: none; /* Disable manual resize */
    font-size: 0.95rem;
    line-height: 1.3;
}
.chatbot-modal-footer button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 0.5rem;
    padding: 8px 15px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.chatbot-modal-footer button:hover {
    background-color: var(--accent-color);
}

/* High Contrast Mode Overrides */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
    --primary-color: #000 !important;
    --secondary-color: #000 !important;
    --text-color: #ffff00 !important; /* Yellow for text */
    --light-text-color: #ffff00 !important;
    --accent-color: #ffff00 !important;
    --card-bg-color: #222 !important;
    --footer-bg-color: #000 !important;
    --footer-text-color: #ffff00 !important;
    --border-color: #ffff00 !important;
    --shadow-light: none !important; /* Remove shadows in high contrast */
}
body.high-contrast .header-top,
body.high-contrast .navbar-custom,
body.high-contrast .announcement-scroller,
body.high-contrast .hero-section,
body.high-contrast .footer {
    background-color: #000 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .header-main {
    background-color: #333 !important;
    border-bottom-color: #555 !important;
}
body.high-contrast .header-main h1,
body.high-contrast .navbar-custom .nav-link,
body.high-contrast .navbar-custom .navbar-brand,
body.high-contrast .section-title,
body.high-contrast .card-title,
body.high-contrast .card-text,
body.high-contrast .footer a,
body.high-contrast .tab-pane ul li a {
    color: #ffff00 !important;
}
body.high-contrast .btn-light {
    background-color: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .btn-outline-info,
body.high-contrast .btn-outline-success {
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}
body.high-contrast .btn-outline-info:hover,
body.high-contrast .btn-outline-success:hover {
    background-color: #ffff00 !important;
    color: #000 !important;
}
body.high-contrast .authority-card {
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .authority-card img {
    border-color: #ffff00 !important;
}
body.high-contrast .directors-message {
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .director-info img {
    border-color: #ffff00 !important;
}
body.high-contrast .latest-updates-section .nav-tabs {
    border-bottom-color: #ffff00 !important;
}
body.high-contrast .latest-updates-section .nav-tabs .nav-link.active,
body.high-contrast .latest-updates-section .nav-tabs .nav-link:hover {
    border-bottom-color: #ffff00 !important;
    background-color: #222 !important;
}
body.high-contrast .tab-pane ul {
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .tab-pane ul li {
    border-bottom-color: #555 !important;
}
body.high-contrast .tab-pane ul li .date {
    color: #ccc !important;
}
body.high-contrast .important-links-wrapper, /* Updated to new wrapper */
body.high-contrast .important-links-logos-inner {
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .important-links-logos-inner img {
    filter: grayscale(0%) invert(100%) brightness(200%) !important; /* Make white/yellow */
}
body.high-contrast #scroll-to-top-btn,
body.high-contrast #chatbot-btn { /* Apply high contrast to chatbot button */
    background-color: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}
body.high-contrast #scroll-to-top-btn:hover,
body.high-contrast #chatbot-btn:hover {
    background-color: #fff !important; /* Lighter yellow on hover */
}
body.high-contrast .chatbot-modal-content { /* Chatbot modal in high contrast */
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .chatbot-modal-header {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .chatbot-modal-header .btn-close {
    filter: none; /* Reset filter for close button */
    color: #ffff00;
}
body.high-contrast .chatbot-modal-body .chat-message.bot {
    background-color: #222 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}
body.high-contrast .chatbot-modal-body .chat-message.user {
    background-color: #ffff00 !important;
    color: #000 !important;
}
body.high-contrast .chatbot-modal-footer {
    background-color: #222 !important;
    border-color: #ffff00 !important;
}
body.high-contrast .chatbot-modal-footer textarea {
    background-color: #000 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}
body.high-contrast .chatbot-modal-footer button {
    background-color: #ffff00 !important;
    color: #000 !important;
}
body.high-contrast .chatbot-modal-footer button:hover {
    background-color: #fff !important;
}
body.high-contrast .footer {
    border-top: 1px solid #ffff00 !important;
}

/* Skip link styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 0.375rem 0.375rem; /* rounded-b-md */
}
.skip-link:focus {
    top: 0;
    outline: 2px solid yellow;
    color: yellow;
}


.container{
    width: 90% !important;
}

/* updates sections  */
/* Latest News Section (Left Panel) */
.latest-updates-container {
    margin-top: 40px; /* Space from content above */
}

.latest-news-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    overflow: hidden; /* Ensure content is clipped */
    display: flex;
    flex-direction: column; /* Stack header, body, footer */
}

.latest-news-card .card-header {
    background-color: var(--accent-color); /* A soft red for news header */
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: none; /* No default border */
    border-radius: 0.75rem 0.75rem 0 0; /* Rounded top corners */
}

.latest-news-body {
    flex-grow: 1; /* Allow body to take available height */
    padding: 1rem;
    overflow: hidden; /* Hide overflowing news items */
    position: relative; /* For inner content positioning */
    min-height: 250px; /* Set a fixed minimum height for the news body */
}

.latest-news-body .news-content-inner {
    position: absolute; /* Position for vertical scrolling */
    width: 100%;
    top: 100%; /* Start from bottom */
    animation: scroll-up 25s linear infinite; /* Vertical scroll animation */
    padding-right: 15px; /* Prevent text from hitting scrollbar */
    box-sizing: border-box; /* Include padding in width */
}

.latest-news-card:hover .news-content-inner {
    animation-play-state: paused; /* Pause on hover */
}

@keyframes scroll-up {
    0% { top: 100%; }
    100% { top: -100%; } /* Scroll to top, adjust based on content height */
}

.latest-news-body .news-item {
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: left;
}
.latest-news-body .news-item:last-child {
    margin-bottom: 0;
}

.latest-news-card .card-footer {
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 0.75rem 0.75rem; /* Rounded bottom corners */
    padding: 0.75rem;
}
.latest-news-card .card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.latest-news-card .card-footer a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Right Panel: Tabs (Circular, Training, GR, Tender) */
.tabs-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack header, content */
}

.tabs-card .card-header {
    background-color: var(--card-bg-color); /* Match card background */
    border-bottom: 2px solid var(--primary-color); /* Bottom border matching primary color */
    padding: 0; /* Remove default padding as nav-pills handle it */
}

.tabs-card .nav-pills {
    padding: 0.5rem 1rem; /* Padding around pills */
    border-radius: 0.75rem 0.75rem 0 0; /* Rounded top of the tab container */
    background-color: var(--card-bg-color); /* Light background for tab buttons */
}
.tabs-card .nav-pills .nav-item {
    flex-grow: 1; /* Distribute tabs evenly */
    text-align: center;
}

.tabs-card .nav-pills .nav-link {
    color: var(--text-color);
    font-weight: 600;
    background-color: transparent;
    border-radius: 0.5rem; /* Rounded pills */
    padding: 0.75rem 0.5rem; /* Adjust padding for smaller tabs */
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Subtle border for definition */
}

.tabs-card .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.tabs-card .nav-pills .nav-link:hover:not(.active) {
    background-color: var(--border-color); /* Lighter hover for non-active */
    color: var(--primary-color);
}
.tabs-card .nav-pills .nav-link:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

.tabs-card .tab-content {
    padding: 1rem;
    overflow-y: auto; /* Enable vertical scrolling for tab content */
    max-height: 400px; /* Max height for tab content */
    min-height: 400px; /* Fixed minimum height for the tab content */
    border-radius: 0 0 0.75rem 0.75rem; /* Rounded bottom corners */
    background-color: var(--card-bg-color); /* Ensure consistent background */
    flex-grow: 1; /* Allow tab content to expand if taller than min-height */
}
.tabs-card .tab-content::-webkit-scrollbar {
    width: 8px;
}
.tabs-card .tab-content::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}
.tabs-card .tab-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.tabs-card .tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.tabs-card table {
    width: 100%; /* Ensure table takes full width */
    margin-bottom: 0;
    border-collapse: collapse; /* Ensure borders render correctly */
}

.tabs-card table th, .tabs-card table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.tabs-card table th {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
}

.tabs-card table tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05); /* Light hover effect for rows */
}

.tabs-card table a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.tabs-card table a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.tabs-card .card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.tabs-card .card-footer a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}
.tabs-card .card-footer {
   background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 0.75rem;
}



/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .tabs-card .nav-pills {
        flex-direction: column; /* Stack pills vertically on small screens */
        padding: 0.5rem;
    }
    .tabs-card .nav-pills .nav-item {
        margin-bottom: 5px; /* Space between stacked pills */
    }
    .tabs-card .nav-pills .nav-link {
        width: 100%; /* Full width for stacked pills */
    }
}







.section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Styles specific to Mission Vision sections */
#vision-section,
#mission-section {
    background-color: var(--card-bg-color); /* Uses theme's card background */
    padding: 40px; /* Generous padding inside the section */
    border-radius: 0.75rem; /* Rounded corners for the card-like appearance */
    box-shadow: var(--shadow-light); /* Soft shadow from theme variables */
    margin-bottom: 30px; /* Space between sections */
    border: 1px solid var(--border-color); /* Subtle border matching theme */
}

#mission-section .list-unstyled li {
    font-size: 1rem; /* Standard font size for list items */
    color: var(--text-color); /* Main text color from theme */
    line-height: 1.5; /* Good line spacing for readability */
}

#mission-section .list-unstyled li i.fas.fa-check-circle {
    /* Styles for the checkmark icon */
    color: var(--accent-color); /* Uses theme's accent color for icons */
    margin-right: 10px; /* Space between icon and text */
}


/* Technical & Administration Section Layout */
.technical-admin-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.technical-admin-section .card-header {
    background-color: var(--primary-color); /* Match primary theme color */
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Left Column: Vertical Tabs */
.list-group-flush {
    border-radius: 0 0 0.75rem 0.75rem; /* Rounded bottom for the list group */
    border: 1px solid var(--border-color); /* Add a subtle border */
    border-top: none; /* No top border if header already has one */
}

.list-group-item-action {
    background-color: var(--secondary-color); /* Lighter background for items */
    color: var(--text-color);
    padding: 1rem 1.25rem;
    border: none; /* Remove default list group item borders */
    border-bottom: 1px solid var(--border-color); /* Custom separator */
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}
.list-group-item-action:last-child {
    border-bottom: none;
    border-radius: 0 0 0.75rem 0.75rem; /* Round bottom last item */
}

.list-group-item-action.active {
    background-color: var(--primary-color) !important; /* Active background */
    color: var(--light-text-color) !important; /* Active text color */
    border-left: 5px solid var(--accent-color); /* Accent border on active */
    font-weight: 700;
}

.list-group-item-action:hover:not(.active) {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Light hover effect */
    color: var(--primary-color);
}
.list-group-item-action:focus-visible {
    outline: 2px solid yellow;
    outline-offset: -2px;
}

/* Right Column: Horizontal Tabs and Content */
.tabs-card .card-body {
    min-height: 400px; /* Fixed minimum height for the card body */
    overflow-y: auto; /* Allow scrolling if content exceeds min-height */
    display: flex; /* Use flexbox to organize content within the card body */
    flex-direction: column; /* Stack children vertically */
}

.horizontal-tabs {
    border-bottom: 2px solid var(--border-color); /* Separator under horizontal tabs */
    margin-bottom: 1rem; /* Space below tabs */
    padding-bottom: 0.5rem; /* Padding below tabs */
    flex-wrap: nowrap; /* Prevent tabs from wrapping, allow scroll */
    overflow-x: auto; /* Enable horizontal scrolling for many tabs */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    flex-shrink: 0; /* Prevent horizontal tabs from shrinking */
}
.horizontal-tabs::-webkit-scrollbar {
    height: 8px; /* Thin scrollbar */
}
.horizontal-tabs::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}
.horizontal-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.horizontal-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.horizontal-tabs .nav-item {
    flex-shrink: 0; /* Prevent tabs from shrinking */
    margin-right: 10px; /* Space between horizontal tabs */
}
.horizontal-tabs .nav-item:last-child {
    margin-right: 0;
}

.horizontal-tabs .nav-link {
    background-color: var(--card-bg-color); /* Rectangle box background */
    border: 1px solid var(--border-color);
    border-radius: 0.5rem; /* Rounded corners for rectangle boxes */
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    white-space: nowrap; /* Keep text on one line */
}

.horizontal-tabs .nav-link.active {
    background-color: var(--primary-color); /* Active background */
    color: var(--light-text-color); /* Active text color */
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Shadow for active tab */
}

.horizontal-tabs .nav-link:hover:not(.active) {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Lighter hover for non-active */
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.horizontal-tabs .nav-link:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

.horizontal-tab-content { /* This is the container for the tab panes */
    flex-grow: 1; /* Allow tab content to take up remaining vertical space */
    padding: 1rem 0; /* Padding for content within the tab pane */
}

.staff-detail-box {
    background-color: var(--secondary-color); /* Background for the detail box */
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.staff-detail-box p {
    margin-bottom: 1rem; /* Increased margin for better spacing */
    color: var(--text-color);
    font-size: 1.05rem; /* Slightly larger font size for readability */
    line-height: 1.6; /* Ensure good line spacing */
}
.staff-detail-box p strong {
    color: var(--primary-color); /* Make labels stand out */
    font-weight: 600;
}
.staff-detail-box p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .technical-admin-section .col-lg-3,
    .technical-admin-section .col-lg-9 {
        width: 100%; /* Stack columns on smaller screens */
        flex: none; /* Override flex-grow/shrink */
    }
    .list-group-item-action {
        text-align: center; /* Center text in vertical tabs on mobile */
    }
}



/* Custom Data Table Section */
.custom-data-table-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.custom-data-table-section .card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.custom-data-table-section .card-header {
    font-size: 1.2rem;
}

.custom-data-table {
    width: 100%;
    border-collapse: collapse; /* Ensures single borders between cells */
}

.custom-data-table thead th {
    background-color: var(--primary-color); /* Uses primary theme color */
    color: var(--light-text-color); /* Uses light text color for headers */
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--accent-color); /* Accent color separator */
    font-size: 1rem;
}

.custom-data-table tbody tr {
    background-color: var(--card-bg-color); /* Background for table rows */
    transition: background-color 0.2s ease;
}

.custom-data-table tbody tr:nth-child(even) {
    background-color: rgba(var(--primary-color-rgb), 0.03); /* Slightly different background for even rows */
}

.custom-data-table tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Hover effect */
}

.custom-data-table tbody td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--border-color); /* Row separator */
    color: var(--text-color);
    font-size: 0.95rem;
}

.custom-data-table tbody td:last-child {
    border-right: none;
}

.custom-data-table-section .card-footer {
    font-size: 0.9rem;
    color: var(--text-color); /* Ensures footer text matches theme */
}

/* Pagination Styling for Custom Table */
.custom-table-pagination {
    margin-top: 1rem; /* Space from table */
    margin-bottom: 0;
    flex-wrap: wrap; /* Allow pagination items to wrap */
}

.custom-table-pagination .page-item .page-link {
    color: var(--primary-color);
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    margin: 0 3px; /* Space between page numbers */
    border-radius: 0.375rem; /* Rounded page items */
    transition: all 0.2s ease;
}
.custom-table-pagination .page-item .page-link:hover {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-color: var(--accent-color);
}
.custom-table-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}
.custom-table-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
}
.custom-table-pagination .page-item .page-link:focus-visible {
    outline: 2px solid yellow;
    outline-offset: 2px;
}

/* Responsive adjustments for table */
@media (max-width: 767.98px) {
    .custom-data-table thead {
        display: none; /* Hide table headers on small screens */
    }
    .custom-data-table tbody,
    .custom-data-table tr,
    .custom-data-table td {
        display: block; /* Make table elements behave like block elements */
        width: 100%; /* Take full width */
    }
    .custom-data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        overflow: hidden; /* For rounded corners */
        box-shadow: var(--shadow-light);
    }
    .custom-data-table td {
        text-align: right;
        padding-left: 50%; /* Space for pseudo-element label */
        position: relative;
        border: none; /* Remove individual cell borders */
        padding: 0.5rem 1rem;
    }
    .custom-data-table td:before {
        content: attr(data-label); /* Use data-label for content */
        position: absolute;
        left: 0;
        width: 45%; /* Label width */
        padding-left: 1rem;
        font-weight: 600;
        color: var(--primary-color); /* Label color */
        text-align: left;
    }
}



/* download section  */



 

        /* Secondary Dynamic Content Table Section */
        .secondary-dynamic-table-section {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .secondary-dynamic-table-section .card {
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-light);
        }

        .secondary-dynamic-table-section .card-header {
            background-color: var(--primary-color); /* Use primary theme color */
            color: var(--light-text-color);
            font-weight: 600;
            font-size: 1.1rem;
            padding: 1rem;
            border-radius: 0.75rem 0.75rem 0 0;
        }

        /* Left Column: Vertical Tabs for Categories */
        .secondary-dynamic-table-section .list-group-flush {
            border-radius: 0 0 0.75rem 0.75rem;
            border: 1px solid var(--border-color);
            border-top: none;
        }

        .secondary-dynamic-table-section .list-group-item-action {
            background-color: var(--secondary-color);
            color: var(--text-color);
            padding: 1rem 1.25rem;
            border: none;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.2s ease, color 0.2s ease;
            font-weight: 500;
        }
        .secondary-dynamic-table-section .list-group-item-action:last-child {
            border-bottom: none;
            border-radius: 0 0 0.75rem 0.75rem;
        }

        .secondary-dynamic-table-section .list-group-item-action.active {
            background-color: var(--primary-color) !important;
            color: var(--light-text-color) !important;
            border-left: 5px solid var(--accent-color);
            font-weight: 700;
        }

        .secondary-dynamic-table-section .list-group-item-action:hover:not(.active) {
            background-color: rgba(var(--primary-color-rgb), 0.1);
            color: var(--primary-color);
        }
        .secondary-dynamic-table-section .list-group-item-action:focus-visible {
            outline: 2px solid yellow;
            outline-offset: -2px;
        }

        /* Right Column: Dynamic Table Content (Tables and Pagination) */
        .secondary-dynamic-table-section .card-body {
            min-height: 450px; /* Fixed minimum height for tables */
            max-height: 550px; /* Max height before scrolling, adjust as needed */
            overflow-y: auto; /* Enable scrolling if content exceeds height */
            padding: 1rem;
            border-radius: 0 0 0.75rem 0.75rem;
            background-color: var(--card-bg-color); /* Card background */
            display: flex; /* Use flex to push pagination to bottom if content is short */
            flex-direction: column;
            justify-content: space-between; /* Push content to top, pagination to bottom */
        }

        /* Style for the tables within dynamic tabs */
        .secondary-dynamic-docs-table {
            width: 100%;
            margin-bottom: 1rem; /* Space between table and pagination */
            border-collapse: collapse;
        }

        .secondary-dynamic-docs-table th, .secondary-dynamic-docs-table td {
            padding: 0.75rem;
            vertical-align: middle;
            border-top: 1px solid var(--border-color);
            text-align: left;
            font-size: 0.9rem;
        }

        .secondary-dynamic-docs-table thead th {
            background-color: var(--primary-color);
            color: var(--light-text-color);
            font-weight: 600;
        }

        .secondary-dynamic-docs-table tbody tr:hover {
            background-color: rgba(var(--primary-color-rgb), 0.05);
        }

        .secondary-dynamic-docs-table .fa-download {
            color: var(--accent-color); /* Download icon color */
            font-size: 1.1rem;
        }

        /* Pagination Styling */
        .secondary-dynamic-table-section .pagination {
            margin-top: auto; /* Push pagination to the bottom of the flex container */
            /* padding-top: 1rem;   */
            flex-wrap: wrap; /* Allow pagination items to wrap */
        }

        .secondary-dynamic-table-section .page-item .page-link {
            color: var(--primary-color);
            background-color: var(--card-bg-color);
            border: 1px solid var(--border-color);
            margin: 0 1px; /* Space between page numbers */
            border-radius: 0.375rem; /* Rounded page items */
            transition: all 0.2s ease;
        }
        .secondary-dynamic-table-section .page-item .page-link:hover {
            background-color: var(--accent-color);
            color: var(--light-text-color);
            border-color: var(--accent-color);
        }
        .secondary-dynamic-table-section .page-item.active .page-link {
            background-color: var(--primary-color);
            color: var(--light-text-color);
            border-color: var(--primary-color);
        }
        .secondary-dynamic-table-section .page-item.disabled .page-link {
            color: #6c757d;
            background-color: #e9ecef;
            border-color: #dee2e6;
            cursor: not-allowed;
        }
        .secondary-dynamic-table-section .page-item .page-link:focus-visible {
            outline: 2px solid yellow;
            outline-offset: -2px;
        }

        /* Responsive Adjustments */
        @media (max-width: 991.98px) {
            .secondary-dynamic-table-section .col-lg-3,
            .secondary-dynamic-table-section .col-lg-9 {
                width: 100%; /* Stack columns on smaller screens */
                flex: none;
            }
            .secondary-dynamic-table-section .list-group-item-action {
                text-align: center;
            }
        }
   