/* General Reset */
body, ul, li, a, span {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

/* General Styles */
body {
    background-color: #f3f4f6;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 500;
    margin: 1.7rem 0 1rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #6200ea;
    text-decoration: underline;
}

a:hover {
    color: #bb86fc;
    text-decoration: none;
}




/* General Menu Styles */
.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 90%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.menu-sidebar.show {
    transform: translateX(0);
}

.menu-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.menu-sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.menu-content {
    padding: 15px;
}

/* Menu List Styles */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list .menu-category,
.menu-list .menu-page {
    margin-bottom: 0px;
}

.menu-list .menu-category:last-child,
.menu-list .menu-page:last-child {
    margin-bottom: 0;
}

.menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Links and Buttons */
.menu-link {
    display: inline-block;
    padding: 8px;
    text-decoration: none;
    color: #0044cc;
    font-weight: 500;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: #6200ea;
    text-decoration: underline;
}

.expand-button {
    background: none;
    border: none;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0 10px;
}

.expand-button:hover {
    color: #6200ea;
}

/* Submenu Styles */
.submenu {
    display: none;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    margin-left: 15px;
    margin-top: 5px;
}

.submenu.show {
    display: block;
}

/* Highlight Active Menu Item */
.menu-list .active > .menu-item-wrapper > .menu-link {
    color: #6200ea;
    font-weight: bold;
}

.menu-list .active > .menu-item-wrapper > .expand-button {
    color: #6200ea;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #6200ea;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand:hover {
    text-decoration: underline;
}

.menu-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Search Form in Navbar */
.search-container {
    flex-grow: 1;
    margin: 0 15px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 8px 15px;
    font-size: 1rem;
    background-color: #fff;
    color: #6200ea;
    border: 1px solid #6200ea;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.search-form button:hover {
    background-color: #6200ea;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Move menu button to the top-right corner */
    .menu-button {
        position: absolute;
        top: 10px;
        right: 20px;
        padding: 0px !important;
    }

    /* Ensure the search container takes full width */
    .search-container {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 10px;
        margin-left: 0px;
        margin-right:0px;
    }

    .search-form {
        display: flex;
        flex-direction: row;
        gap: 5px;
        align-items: center;
        justify-content: space-between;
    }

    .search-form input[type="text"] {
        flex: 1;
        width: 100%; /* Full width */
    }

    .search-form button {
        flex-shrink: 0;
        padding: 8px 15px;
    }
}



/* Content Image */
.content-image {
    float: right;
    margin: 0 0 30px 30px;
    max-width: 500px;
    width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}

@media (max-width: 768px) {
    .content-image {
        float: none;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
}

/* Cards */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.8rem;
    height: 70%;
    text-align: left;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

/* Buttons */
.btn-primary {
    margin-top: auto;
    align-self: stretch;
    background-color: #6200ea;
    border-color: #6200ea;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
}

.btn-primary:hover {
    background-color: #bb86fc;
    border-color: #bb86fc;
}

/* Related Articles Section */
.related-articles-section {
    margin: 2.5rem auto; /* Center horizontally and add vertical spacing */
    padding: 0; /* Remove extra padding */
    width: 100%; /* Full width */
    max-width: 1296px; /* Restrict to match the main content width */
    text-align: center; /* Center align the content */
}

/* Card Container */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: center; /* Center align the cards */
    width: 100%; /* Ensure it spans the entire width of the container */
    margin: 0 auto; /* Center the container itself */
}

/* Card */
.card-container > .card {
    flex: 1 1 calc(33.333% - 20px); /* Take one-third width minus gap */
    max-width: calc(33.333% - 20px); /* Prevent exceeding one-third width */
}

@media (max-width: 768px) {
    .card-container > .card {
        flex: 1 1 calc(50% - 20px); /* Adjust to half width on smaller screens */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card-container > .card {
        flex: 1 1 100%; /* Full width on mobile */
        max-width: 100%;
    }
}




.featured-articles-section {
    clear: both;
}

/* Breadcrumb */
.breadcrumb li {
    display: inline;
    margin-right: 5px;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 5px;
}

.breadcrumb li:last-child::after {
    content: '';
}

/* Card Container */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.card-container > .card {
    flex: 1 1 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    max-width: calc(33.333% - 20px);
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    p {
        margin-bottom: 1rem;
    }

    .card-container > .card {
        flex: 1 1 calc(100% - 20px);
        max-width: 100%;
    }

    .menu-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 0;
        height: 100%;
    }
}

/* Lists */
.page-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Accordion Header */
.accordion-button {
    background-color: #ffffff; /* White background */
    color: #333; /* Dark gray text */
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadow */
    font-size: 1rem; /* Adjust font size */
    padding: 1rem; /* Add padding for spacing */
    text-align: left;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa; /* Light gray when expanded */
    color: #333; /* Keep text color consistent */
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Light blue focus outline */
    border-radius: 5px; /* Optional for rounded corners */
}

.accordion-button:hover {
    background-color: #f8f9fa; /* Light gray on hover */
    color: #333; /* Maintain text color */
}

/* Adjust icons */
.accordion-button::after {
    font-size: 1.2rem; /* Larger arrow icon */
    color: #333; /* Match text color */
}

/* Accordion Item */
.accordion-item {
    border: 1px solid #e0e0e0; /* Light gray border around items */
    border-radius: 5px; /* Rounded corners for modern look */
    margin-bottom: 0.25rem; /* Minimal spacing between items */
}

/* Accordion Body */
.accordion-body {
    background-color: #ffffff; /* Match the accordion header */
    color: #333; /* Ensure text contrast */
    padding: 1rem; /* Space inside the body */
    border-top: 1px solid #e0e0e0; /* Border between header and body */
}

/* Reset default margins for h3 in .accordion-header */
.accordion-item .accordion-header {
    margin: 0; /* Remove margin from the header */
    padding: 0; /* Remove padding if any */
}

.accordion-item .accordion-header h3 {
    margin: 0 !important; /* Remove all margins */
    padding: 0; /* Remove any padding */
    font-size: 1rem; /* Ensure consistent font size */
    line-height: 1.5; /* Adjust for readability */
    font-weight: normal; /* Standardize font weight */
    color: inherit; /* Ensure color matches parent */
}

/* General Reset */
body, ul, li, a, span {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background-color: #6200ea;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.menu-button {
    font-size: 2rem; /* Increase the font size for a bigger icon */
    background: none; /* Ensure no background */
    border: none; /* Remove border */
    color: white; /* Icon color */
    cursor: pointer; /* Change cursor to pointer */
    padding: 0.5rem; /* Optional: Add padding for touch targets */
}


/* Modal */

.btn-close {
    background-color: transparent; /* Ensure no background */
    border: none; /* Remove borders */
    opacity: 1; /* Full visibility */
    position: relative;
}

.btn-close::before {
    content: '×'; /* Add the custom "X" */
    color: white; /* Set color to white */
    font-size: 2rem; /* Adjust size as needed */
    font-weight: bold; /* Make it bold */
    position: absolute; /* Overlay on the button */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position */
}

.btn-close::after {
    content: none; /* Remove Bootstrap's default pseudo-element */
}

.btn-close:hover::before {
    color: #f8f9fa; /* Slightly lighter color on hover */
}

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.menu-modal-content {
    background: white;
    width: 90%;
    max-width: 1200px; /* Wider for a mega menu */
    height: auto;
    max-height: 90%; /* Limit height */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow-y: auto; /* Enable scrolling */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

/* Mega Menu Layout */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Flexible columns */
    gap: 20px; /* Space between columns */
    text-align: left;
}

.menu-category {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
}

.menu-category a {
    color: #0044cc !important;
    text-decoration: none;
}

.menu-category a:hover {
    color: #002a80;
    text-decoration: underline;
}

.menu-page a {
    font-size: 1rem;
    display: block;
    color: #555;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.menu-page a:hover {
    color: #0044cc;
}

/* Highlight active items */
.menu-category.active > a,
.menu-page.active > a {
    font-weight: bold;
    color: #0044cc;
}

/* Add borders between sections */
.menu-category {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 0;
        height: 100%;
    }

    .menu-list {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}

#search-results ul {
    list-style: none;
    padding: 0;
}

#search-results ul li {
    margin-bottom: 1rem;
}

#search-results a {
    text-decoration: none;
    color: #6200ea;
    font-weight: bold;
}

#search-results a:hover {
    color: #bb86fc;
}

#search-results p {
    margin: 0.5rem 0 0;
    color: #555;
}

#search-modal #search-results-list .list-group-item {
    border: none !important; /* Forcefully remove the border */
    border-radius: 0 !important; /* Forcefully remove rounded corners */
    padding: 0.1rem 0; /* Adjust padding */
    box-shadow: none !important; /* Remove shadow */
}



.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #6200ea;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body ul li {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-body ul li a {
    text-decoration: none;
    color: #6200ea;
    font-weight: bold;
}

.modal-body ul li a:hover {
    color: #bb86fc;
    text-decoration: underline;
}

.image-gallery .large-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.image-gallery .thumbnail-gallery {
    overflow-x: auto;
}

.image-gallery .thumbnail {
    max-height: 80px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-gallery .thumbnail:hover {
    transform: scale(1.1);
    border: 2px solid #6200ea;
}
.image-container {
    width: 100%; /* Default for mobile */
    max-width: 100%;
    margin: 0 auto;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left by default */
    width: 100%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.large-image {
    width: 100%; /* Full width on smaller screens */
    margin-bottom: 20px; /* Space between main image and thumbnails */
}

.large-image img {
    width: 100%; /* Ensure the image scales properly */
    border-radius: 8px; /* Optional: Rounded corners */
}

.thumbnail-gallery {
    display: flex;
    justify-content: flex-start; /* Align thumbnails to the left */
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail {
    width: 60px; /* Fixed width for thumbnails */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #6200ea;
}

/* Float the gallery to the right on larger screens */
@media (min-width: 768px) {
    .image-gallery {
        float: right; /* Float the gallery to the right */
        width: 40%; /* Limit the gallery width */
        margin-left: 20px; /* Add space between gallery and content */
    }

    .large-image {
        width: 100%; /* Ensure the large image takes up the gallery's full width */
    }
}

.rating-section {
    margin-top: 20px;
}

.rating-section label {
    margin-right: 10px;
    cursor: pointer;
}

.average-rating {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-content h4 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 20px;
}

#close-popup {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

#close-popup:hover {
    background-color: #0056b3;
}

/* Style for the rating container */
.rating-container {
    width: 100%; /* Default to full width for smaller screens */
    margin-bottom: 20px;
}

/* Media query for desktop screens */
@media (min-width: 768px) {
    .rating-container {
        width: 100% !important; /* Set 33% width for desktop screens */
        float: left; /* Float to the left */
        margin-right: 20px; /* Add spacing to the right */
    }
}

.related-articles-section {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1296px; /* Match the main content width */
}

.related-articles-section .row {
    justify-content: center; /* Center-align the cards */
}

.related-articles-section .card {
    transition: transform 0.2s ease;
}

.related-articles-section .card:hover {
    transform: translateY(-5px); /* Add slight lift effect */
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    gap: 10px; /* Space between input and button */
    max-width: 500px;
    width: 100%;
}

#search-input {
    flex: 1; /* Make the input take as much space as possible */
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#search-input:focus {
    border-color: #6200ea;
    box-shadow: 0 0 4px rgba(98, 0, 234, 0.5);
}

.btn-primary {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    background-color: #6200ea;
    border-color: #6200ea;
    border-radius: 4px;
    color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #bb86fc;
    border-color: #bb86fc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Align Search Form in Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.search-form {
    margin-left: auto; /* Push it to the right */
}

.footer {
    background-color: #333; /* Dark background */
    color: #fff; /* Light text */
}

.footer a {
    color: #bb86fc; /* Light purple links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff; /* White on hover */
}

.footer .list-inline-item {
    margin-right: 15px; /* Spacing between social icons */
}

.footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #bb86fc; /* Purple headings */
}

.footer p, .footer ul {
    font-size: 0.875rem; /* Small text for readability */
    margin-bottom: 0.5rem;
}

.font-weight-bold {
    font-weight: bold !important;
    color: #6200ea; /* Optional: Ensure it matches your active link color */
}
.text-muted {
    color: #000 !important;
}
.footer-links a {
    font-size: 1.3em;
}
.rate-article-heading {
    font-size: 1.1em;
}
