/* static/css/main.css */

/* General styles */
body {
    background-color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif; /* Clean and modern font */
    color: #355; /* Dark gray for better readability */
    background-color: #f8f9fa; /* Light gray background for a modern look */
}

.container {
    max-width: 80%;
    margin: 0 auto; /* Centers horizontally */
    text-align: left; /* Ensures all content aligns */
    background-color: #ffffff;
    border-radius: 5px;
    padding: 20px;
    font-size: 1rem;
    color: #011d3d;
}

/* Targeting the specific list in User's Manual */
.container ul {
    list-style: none;
    padding-left: 10px;
    margin-left: 0;
}

.container ul li {
    list-style-type: none;
    margin-left: 10px;
    padding-left: 0;
}

.container h2 {
    font-size: 2rem; /* Increase font size */
    font-weight: 700; /* Make it bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-align: center; /* Center align */
    margin-bottom: 15px;
    border-bottom: 1px solid #009688;
    display: block;
    width: 100%; /* Ensure full width */

    /* 🔥 Gradient Text Effect */
    background: linear-gradient(to right, #003c8f, #009688);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Hide default text color */
}

.carousel-container {
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #00c77b;
    background-image: linear-gradient(45deg, #003c8f, #00c77b);
    overflow: hidden; /* Prevent image overflow */
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    width: 100%;
    border: 1px solid #ddd; /* Light gray border for each card */
    border-radius: 5px; /* Optional: Slight rounding for a softer look */
    overflow: hidden; /* Prevents overflow issues */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for better separation */
}

.section-content {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: linear-gradient(90deg, #ddd 0%, #777 100%);
}

.carousel-background {
    width: 100%;
    height: 500px; /* Or your desired height */
    background-size: cover;
    background-position: center;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.carousel-caption {
    position: relative; /* Remove absolute positioning */
    left: 0;
    right: 0;
    bottom: 0;
    width: auto; /* Adjust width as needed */
    max-width: 90%; /* Prevent caption from overflowing */
    margin: 20px auto; /* Center caption horizontally */
    background: rgba(0, 125, 225, 0.75);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.caption-overlay {
    text-align: center; /* Center text within caption */
}

.carousel-control-prev, .carousel-control-next {
    /* Style controls to be visible on dark backgrounds */
    filter: invert(100%); /* Invert colors to make them white */
}

.thin-green-line {
    height: 1px; /* Or 2px if you prefer */
    margin: 20px 0;
    width: 100%;
    background-image: linear-gradient(to left, #009a88, #003c8f); /* to left for inverted gradient */
}

footer {
    color: #121212;
    font-size: 0.9rem;
    background-color: #ffffff;
}

/* Navbar styles */

.navbar {
    background-color: #ffffff;
    color: #113737;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 10px;
}

.navbar .nav-item .nav-link {
    color: #121212;
    text-shadow: none;
    font-size: 1rem;
    font-weight: 550;
    position: relative;
    text-decoration: none;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 1px transparent; /* Default transparent border */
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link:focus {
    background-color: #11578a;
    color: #fff;
    border-bottom: 3px solid red;
}

.navbar .nav-item.no-op > .nav-link {
    border-bottom: 3px solid gray;
}

/* added 26feb2025 */
.menu-item-selected {
    display: block; /* Make the <li> elements take up full width */
    width: 100%; /* Ensure full width */
    text-align: left; /* Align text to the left */
    padding: 10px; /* Add padding for spacing */
}

/* Optional: Remove background from <a> tags */
.menu-item-selected a {
    background-color: transparent; /* Remove background from <a> */
}

/* Submenu styles */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 5px;
    min-width: 200px;
    font-size: 1rem;
    border: 1px solid #ddd;
    list-style: none;
    padding-left: 0;
}

.nav-item:hover > .submenu,
.nav-item.active > .submenu {
    display: block;
}

.submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    border-left: 1px solid #ddd;
    padding-left: 10px;
    min-width: 200px;
}

.nav-item:hover > .submenu > .submenu {
    display: block;
}

.submenu.show {
    display: block;
}

.submenu a {
    font-size: 1rem;
    color: #121212;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #33a8a8; /* Light turquoise background */
}

/* Ensure parent container has relative positioning for correct submenu placement */
.navbar-nav {
    position: relative;
}

/* Fix submenu alignment issue */
.nav-item {
    position: relative;
}

/* Media Display */
#media-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.media-item {
    background: #f9f9f9;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.media-item img,
.media-item video,
.media-item audio {
    border-radius: 10px;
    max-width: 100%;
}


/* Sticky top navbar */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.service-card img {
    width: 100%;  /* Ensures image fills the card */
    height: 500px; /* Adjust this value for uniform height */
    object-fit: cover; /* Ensures the image is properly cropped */
}

.section {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.section-header {
    width: 100%;
    background: linear-gradient(90deg, #003c8f 0%, #009a88 100%); /* Darker blue-to-teal */
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-bottom: 10px; /* Adds 5px spacing below section headers */
}

/* Optional Hover Effect */
.section-header:hover {
    background: linear-gradient(90deg, #004494 0%, #00897b 100%);
}

.section-header span {
    font-size: 1.25rem; /* Increase font size */
    font-weight: 600;  /* Make it semi-bold */
    letter-spacing: 0.5px; /* Slight letter spacing */
    text-transform: initial; /* Convert to [uppercase] */
    font-family: 'Poppins', sans-serif; /* Use a modern font */
}

/* Increase Icon Size */
.toggle-icon {
    font-size: 1.3rem;
}

/* Center-align headers and buttons */
.modal-title, .modal-footer button {
    text-align: center;
}

/* Left-align body content (table and modal text) */
.modal-body {
    text-align: left;
}

/* Left-align table headers */
#chartDataHead th {
    text-align: center;
}

/* Left-align table content */
#chartDataBody td {
    text-align: left;
}

/* Ensure lists inside the table don't have bullet points */
#chartDataBody td ul {
    list-style-type: none;  /* Remove bullet points */
    padding-left: 0; /* Remove extra padding */
    margin: 0; /* Remove default margin */
}

/* Optional: Add padding for better readability */
#chartDataBody td {
    padding: 5px 10px;
}
/* ✅ Left-align text for content pages (like "About Us") */
.page-content, .content-wrapper {
    text-align: left !important;
}

/* ✅ Keep headers, buttons, and carousel elements centered */
h1, h2, h3, h4, h5, h6, .btn, .carousel, .main-title {
    text-align: center !important;
}

/* ✅ Remove bullet points from lists inside content sections */
.page-content ul, .page-content ol,
.content-wrapper ul, .content-wrapper ol {
    list-style: none; /* Removes bullets */
    padding-left: 0 !important; /* Ensures no indentation */
    margin-left: 0 !important;
}

/* ✅ Preserve spacing for list items */
.page-content ul li, .page-content ol li,
.content-wrapper ul li, .content-wrapper ol li {
    padding: 5px 0;
}

/* ✅ Ensure nested lists inside content sections remain structured */
.page-content ul ul, .page-content ol ol,
.content-wrapper ul ul, .content-wrapper ol ol {
    margin-left: 15px !important;
}

/* Align About Us content to the left and remove bullets */
.about-us-content {
    text-align: left;
    padding: 20px;
}

.about-us-content ul {
    list-style-type: none; /* Remove bullet points */
    padding-left: 0; /* Remove default padding */
}

.about-us-content li {
    margin-bottom: 10px; /* Optional: Add spacing between list items */
}

/* Ensure the chart container takes full width */
/* Ensure the chart container takes the full width */
#chart-container {
    width: 100vw;  /* Force full viewport width */
    max-width: 100vw;
    height: 500px;  /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure canvas stretches properly */
#chartCanvas {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 500px;
}


/* Forcefully remove bullet points */
ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Apply to all nested lists */
ul li {
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}


.container p,
.container ul,
.container ul li,
.container ul li a {
    text-align: left !important;
}

.container h1 {
    padding-left: 10px;
}

.container ul {
    padding-left: 20px;
}

.container ul li a {
    text-decoration: none;
    color: #007bff;
}

.container ul li a:hover {
    text-decoration: underline;
}

.list-group-item input[type="checkbox"] {
    margin-left: 15px !important; /* Force left padding */
}

.accordion-button:not(.collapsed) { /*When expanded*/
    color: darkblue !important;
    background-color: white !important;
}