:root {
    --primary-color: #1a3d64;
    --secondary-color: #0c2b4e;
    --bs-light: #f0e9ff;
    --text-color: #0b0b0b;
    --title-color: #000000;
    --text-white: #ffffff;
    --text-orange: #eb5757;
    --bg-black: #000000;
}
/* Prefixed CSS to avoid conflicts */
body.kg-modal-open {
    overflow: hidden;
}

.kg-college-finder-section {
    font-family: "Poppins", sans-serif;
    background-color: #f0f2f5; /* Light grey background */
    padding: 20px 0;
    position: relative;
    margin: 0 auto;
}

.kg-breadcrumb {
    margin-bottom: 1rem;
}

.kg-breadcrumb .breadcrumb {
    margin-bottom: 0.5rem;
}

.kg-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
}

.kg-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

.kg-ad-banner {
    margin-bottom: 1.5rem;
}

.kg-ad-banner img {
    width: 100%;
    border-radius: 8px;
}

.kg-main-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background-color: #d9e9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Results Count Styling */
.kg-results-count {
    background-color: #fff;
    padding: 20px;
    /* height: 77px; */
    align-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Filter Sidebar Styling */
.kg-filters-sidebar {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    position: sticky;
    top: 36%;
    bottom: 38%;
}

.kg-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.kg-filters-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.kg-reset-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.custom-link:hover {
    text-decoration: underline; /* hover पर underline */
    cursor: pointer; /* cursor pointer */
}
/* Accordion Customization */
.kg-filters-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
}

.kg-filters-accordion .accordion-item:last-child {
    border-bottom: none;
}

.kg-filters-accordion .accordion-button {
    font-weight: 600;
    padding: 15px 0;
    color: #212529;
    background-color: #fff;
}

.kg-filters-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: var(--secondary-color);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}
.kg-filters-accordion .accordion-button:focus {
    box-shadow: none;
}

.kg-filters-accordion .accordion-button::after {
    display: none; /* Hide default bootstrap icon */
}

.kg-filters-accordion .kg-accordion-icon {
    transition: transform 0.2s ease-in-out;
    margin-left: auto;
}

.kg-filters-accordion .accordion-button:not(.collapsed) .kg-accordion-icon {
    transform: rotate(180deg);
}

.kg-filters-accordion .accordion-body {
    padding: 0 0 15px 0;
}

.kg-filter-search {
    position: relative;
    margin-bottom: 10px;
}

.kg-filter-search input {
    padding-left: 30px;
    font-size: 0.9rem;
}

.kg-filter-search .fa-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.kg-filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.kg-filter-options::-webkit-scrollbar {
    width: 5px;
}
.kg-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.kg-filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.kg-filter-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.kg-filter-options .form-check {
    margin-bottom: 8px;
}
.kg-filter-options .form-check-label {
    font-size: 0.9rem;
}
.kg-filter-options .form-check-label span {
    color: #6c757d;
}

/* Results Area Styling */
.kg-results-topbar {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.kg-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.kg-filter-tag {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 500;
}

/* Custom Dropdown Styling */
.kg-sort-dropdown {
    position: relative;
    min-width: 200px;
}

.kg-dropdown-toggle {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem; /* Adjusted padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    box-shadow: none;
    white-space: nowrap;
}

.kg-dropdown-toggle:focus {
    outline: none;
}

.kg-dropdown-toggle svg {
    width: 1rem;
    height: 1rem;
}

.kg-dropdown-menu {
    display: block; /* Keep it as block for animations */
    visibility: hidden; /* Control visibility */
    opacity: 0; /* Start fully transparent */
    transform: translateY(-10px); /* Start slightly moved up */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 10;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.kg-dropdown-menu.kg-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.kg-dropdown-item {
    padding: 0.75rem 1rem; /* Adjusted padding */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.kg-dropdown-item:hover {
    background-color: #f8f9fa;
}

.kg-dropdown-item.active {
    font-weight: 700;
}

.kg-dropdown-item.active .fa-check {
    display: inline-block;
}

.kg-dropdown-item .fa-check {
    display: none;
    color: #0d6efd;
}

/* College Card Styling */
.kg-college-card {
    background-color: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: relative;
}

.kg-featured-tag {
    position: absolute;
    top: -1px;
    left: 20px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: 4px 12px 6px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.kg-featured-tag .fa-star {
    font-size: 0.7rem;
    margin-right: 5px;
}

.kg-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.kg-college-logo {
    width: 50px;
    height: 50px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
    object-fit: contain;
}

.kg-college-title h6 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1rem;
}

.kg-college-meta {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px; /* row-gap column-gap */
}

.kg-college-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kg-info-item {
    text-align: left;
}

.kg-info-item .kg-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 400;
}

.kg-info-item .kg-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
}

.kg-info-item .kg-value.kg-highlight {
    color: var(--text-orange);
    font-weight: 600;
}

.kg-info-item a {
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.kg-btn-compare {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.kg-btn-compare:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.kg-btn-brochure {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
}

.kg-btn-brochure:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
}

.kg-btn-apply {
    background-color: var(--bg-black);
    color: var(--text-white);
    border: none;
}

.kg-btn-apply:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
}

.kg-card-footer {
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kg-card-footer .kg-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.kg-card-footer .kg-links::-webkit-scrollbar {
    display: none;
}

.kg-card-footer .kg-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.kg-card-footer .kg-links .kg-separator {
    width: 1px;
    height: 16px;
    background-color: #dee2e6;
    flex-shrink: 0;
}

.kg-ranking {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Floating Contact Icon */

/* Mobile Filter Bar */
.kg-mobile-filter-bar-container {
    position: sticky;
    top: 4.3rem;
    z-index: 1020; /* High z-index to stay on top */
    background-color: #f0f2f5;
}
.kg-mobile-filter-bar {
    background-color: #fff;
    padding: 0.625rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
}

.kg-mobile-filter-bar::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.kg-mobile-filter-bar .kg-filter-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    background-color: #fff;
}

.kg-mobile-filter-bar .kg-main-filter-btn {
    border-color: #d9534f;
    color: #d9534f;
}

.kg-main-filter-btn svg {
    stroke: #d9534f;
}

.kg-main-filter-btn div {
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Modal */
.kg-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    align-items: flex-end;
}
.kg-filter-modal.kg-show {
    display: flex;
}
.kg-modal-content {
    background-color: #fff;
    width: 100%;
    height: 80vh;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.kg-filter-modal.kg-show .kg-modal-content {
    transform: translateY(0);
}

.kg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.kg-modal-header h5 {
    font-weight: 600;
    margin: 0;
}

.kg-selected-filters-area {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 40px;
}

.kg-selected-filter-chip {
    background-color: rgba(217, 83, 79, 0.1);
    color: #d9534f;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.kg-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
}

.kg-modal-main {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.kg-modal-nav {
    flex: 2;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.kg-modal-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    background-color: #fff;
    font-size: 0.875rem;
}

.kg-modal-nav-item.active {
    background-color: #e9ecef;
    font-weight: 600;
    color: #0d6efd;
}

.kg-modal-nav-item .kg-filter-count {
    font-weight: normal;
    color: #6c757d;
}

.kg-modal-pane-container {
    flex: 3;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8fafc;
}

.kg-modal-pane {
    display: none;
}

.kg-modal-pane.active {
    display: block;
}

.kg-modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.kg-modal-footer button {
    flex: 1;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
}

.kg-btn-clear {
    background-color: #fff;
    border: 1px solid #0d6efd;
    color: #0d6efd;
}

.kg-btn-apply-filters {
    background-color: #0d6efd;
    color: #fff;
    border: none;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .kg-mobile-filter-bar-container,
    .kg-mobile-results-count {
        display: none;
    }
    .kg-card-actions-desktop {
        width: 180px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    /* .kg-college-finder-section {
        margin-top: 105px;
    } */

    .kg-card-actions-desktop .kg-btn {
        width: 100%;
        border-radius: 8px;
        font-weight: 600;
        padding: 10px 15px;
        border: 1px solid;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .kg-card-main-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 1rem;
        align-content: space-between;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 12px;
    }
    .kg-card-details {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 20px 0 0 0;
    }
    .kg-card-actions-mobile {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .kg-filters-sidebar-col,
    .kg-results-count.d-none.d-lg-block,
    .kg-card-actions-desktop {
        display: none;
    }
    /* .kg-college-finder-section {
        margin-top: 3rem;
    } */
    .rating-stars {
        font-size: 14px;
    }
    .kg-card-main-wrapper {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 1rem;
        padding-top: 12px;
    }

    .kg-card-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding-top: 1rem;
    }
    .kg-card-actions-mobile {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .kg-card-actions-mobile .kg-btn {
        border-radius: 8px;
        font-weight: 600;
        padding: 9px 10px;
        border: 1px solid;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s ease;
    }
    .kg-card-actions-mobile .flex-shrink-1 {
        flex-shrink: 1 !important;
    }
    .kg-card-actions-mobile .flex-grow-1 {
        flex-grow: 1 !important;
    }
}

@media (max-width: 768px) {
    .kg-main-heading {
        font-size: 1.5rem;
        padding: 1rem;
    }
    .kg-results-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .container {
        /* Override bootstrap container padding on mobile */
        padding-left: 0;
        padding-right: 0;
        /* overflow-x: hidden; */
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .kg-content-padding {
        padding: 0 15px;
    }
}
/* Listing grid Page */
#long-content {
    color: #212529;
    font-size: 15px;
    max-height: 209px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

/* Gradient fade when collapsed */
#long-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    /* height: 60px; */
    width: 100%;
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); */
    transition: opacity 0.3s ease;
}

/* Expanded State */
#long-content .expanded {
    max-height: 1200px;
}

#long-content .expanded::after {
    opacity: 0;
}

/* Headings */
#long-content h1 {
    font-size: 22px !important;
    font-weight: 700;
    /* color: #1d3970; */
    margin-bottom: 10px;
}

#long-content h2 {
    font-size: 20px;
    font-weight: 600;
    /* color: #31508d; */
    margin-top: 18px;
}

#long-content p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2rem;
    letter-spacing: 0.025rem;
    margin-bottom: 8px;
    text-align: justify;
}

#expand-btn {
    text-decoration: none;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 6px;
}
#expand-btn:hover {
    text-decoration: none;
    cursor: pointer;
}

.expand-btn:hover {
    background-color: #2b437f;
    transform: scale(1.03);
}

/* Responsive Design */
@media (max-width: 768px) {
    #long-content h1 {
        font-size: 19px;
    }
    #long-content h2 {
        font-size: 16px;
    }
    #long-content {
        font-size: 14px;
    }
}
/* Exams grid page  */
.exam-card-parent .exam-card {
    border-color: #d0d5dd;
    border-radius: 0.75rem;
    /* 12px, closer to rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensures rounded corners are respected */
}

.exam-card-parent .exam-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    /* Prevents image from shrinking */
}

.exam-card-parent .exam-title {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    /* 18px / text-lg */
}

.exam-card-parent .exam-title:hover {
    color: var(--secondary-color);
    /* Using the accent color from the button */
    text-decoration: underline;
}

/* Custom utility to clamp text to 2 lines */
.exam-card-parent .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom scrollbar utility */
.exam-card-parent .scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.exam-card-parent .scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Tag section styles */
.exam-card-parent .exam-tags {
    font-size: 0.875rem;
    /* 14px / text-sm */
}

.exam-card-parent .tag-online {
    background-color: var(--primary-color);
    /* Accent color from button */
    color: var(--text-white);
    padding: 0.2rem 0.75rem;
    border-radius: 0.5rem;
    /* rounded-lg */
    font-weight: 500;
}

.exam-card-parent .tag-separator {
    color: #d0d5dd;
    /* Light gray separator */
    padding: 0 0.5rem;
}

/* Using primary color for this as seen in the images */
.exam-card-parent .text-secondary-brand {
    color: var(--primary-color);
    font-weight: 500;
}

/* Using danger color for this as seen in the images */
.exam-card-parent .text-accent-1 {
    color: #dc3545;
}

/* Dates section styles */
.exam-card-parent .date-item {
    font-size: 0.875rem;
    /* 14px / text-sm */
    line-height: 1.4;
}

.exam-card-parent .date-label {
    color: #3d3d3d;
    font-weight: 400;
}

.exam-card-parent .date-value {
    color: #26292e;
    font-weight: 500;
    /* fw-medium */
}

.exam-card-parent .date-value.accent {
    font-weight: 600;
    /* fw-semibold */
}

/* Button styles */
.exam-card-parent .btn-apply {
    background-color: var(--bg-black);
    color: var(--text-white);
    width: 150px;
    font-weight: 500;
    padding: 8px 7px;
}

.exam-card-parent .btn-apply:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.exam-card-parent .btn-details {
    background-color: var(--primary-color);
    color: var(--text-white);
    width: 150px;
    font-weight: 500;
    padding: 8px 7px;
}

.exam-card-parent .btn-details:hover {
    background-color: var(--secondary-color);
}

.exam-card-parent .btn .bi {
    font-size: 0.8rem;
    margin-left: 0;
    vertical-align: middle;
}

/* Bottom links section */
.exam-card-parent .bottom-links {
    font-size: 0.875rem;
    /* 14px / text-sm */
}

.exam-card-parent .bottom-links a {
    color: var(--secondary-color);
    /* Bootstrap primary */
    text-decoration: none;
}

.exam-card-parent .bottom-links a:hover {
    text-decoration: underline;
}

/* Custom font size for text-xs */
.exam-card-parent .fs-small {
    font-size: 0.8rem;
    /* 12.8px */
}

@media (max-width: 768px) {
    .exam-card-parent .exam-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    /* Row gap adjustment for small screens */
    .exam-card-parent .exam-card .row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Logo and title alignment */
    .exam-card-parent .exam-card .d-flex.align-items-center {
        flex-direction: row;
        align-items: flex-start;
    }

    .exam-card-parent .exam-card .exam-logo {
        width: 50px;
        height: 50px;
    }

    .exam-card-parent .exam-card .exam-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    /* Tags section scroll + spacing */
    .exam-card-parent .exam-card .exam-tags {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.25rem 0;
        font-size: 0.8rem;
    }

    /* Date items better stacking */
    .exam-card-parent .exam-card .date-item {
        flex: 1 1 100%;
        text-align: left;
        border-left: 3px solid #f47062;
        padding-left: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Date value readable on small screen */
    .exam-card-parent .exam-card .date-value {
        font-size: 0.85rem;
    }

    /* Hide the right column buttons */
    .exam-card-parent .exam-card .col-md-3 {
        display: none !important;
    }

    /* Make bottom mobile buttons full width */
    .exam-card-parent .exam-card .d-md-none .btn {
        font-size: 0.9rem;
        width: 100%;
        padding: 10px;
        border-radius: 0.6rem;
    }

    .exam-card-parent .exam-card .d-md-none {
        gap: 0.75rem;
    }
}

/* ✅ Small mobile tweaks (max 480px) */
@media (max-width: 480px) {
    .exam-card-parent .exam-card {
        padding: 0.75rem;
    }

    .exam-card-parent .exam-card .exam-title {
        font-size: 0.95rem;
    }

    .exam-card-parent .exam-card .exam-tags span {
        font-size: 0.75rem;
    }

    .exam-card-parent .exam-card .btn {
        padding: 0.6rem 0.8rem;
    }

    .exam-card-parent .exam-card .date-value,
    .exam-card-parent .exam-card .date-label {
        font-size: 0.8rem;
    }
}
/* Blog Page */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    padding: 20px;
}

.article-overlay {
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.8),
        rgba(101, 39, 9, 0.8)
    );
}

.winds-overlay {
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.8),
        rgba(41, 128, 185, 0.8)
    );
}

.unemployment-overlay {
    background: linear-gradient(
        135deg,
        rgba(243, 156, 18, 0.8),
        rgba(211, 84, 0, 0.8)
    );
}

.card-body {
    padding: 20px;
}

.card-category {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    margin-left: 5px;
    font-size: 12px;
}

.share-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: white;
    color: #3498db;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .overlay-text {
        font-size: 18px;
    }

    .card-title {
        font-size: 16px;
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.article-list-section {
    border: 1px solid #e9ecef;
    /* Added a light border like the image */
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Section heading */
.article-list-section .section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--title-color);
}

/* Sub-heading */
.article-list-section .section-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
    /* Placeholder brand color */
    margin-bottom: 1rem;
}

/* Wrapper for all article items */
.article-list-wrapper {
    margin-bottom: 25px;
}

/* Individual article item */
.article-list-section .article-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* Remove border from the last item */
.article-list-section .article-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Article content (title, meta) */
.article-list-section .article-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Article title */
.article-list-section .article-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-list-section .article-item-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-list-section .article-item-title a:hover {
    /* color: #0d6efd;
                                                                    text-decoration: underline; */
    cursor: pointer;
}

/* Article meta (author, date) */
.article-list-section .article-item-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.article-list-section .article-item-meta .author {
    font-weight: 500;
    color: #555;
}

/* Article image */
.article-list-section .article-item-image img {
    width: 100%;
    height: 90px;
    /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Mobile responsiveness for the item */
@media (max-width: 767.98px) {
    /* On mobile, text stacks on top of image */
    .article-list-section .article-item-content {
        order: 2;
    }

    .article-list-section .article-item-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .article-list-section .article-item-image img {
        height: 150px;
        /* Taller image on mobile */
    }
}

/* --- Pagination Styles --- */
.article-list-section .pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
}

.article-list-section .pagination {
    margin-bottom: 0;
    align-items: center;
    overflow-x: auto;
}

.article-list-section .pagination .page-item {
    margin: 0 4px;
}

.article-list-section .pagination .page-link,
.article-list-section .pagination .page-link:hover,
.article-list-section .pagination .page-item.disabled .page-link,
.article-list-section .pagination .page-item.disabled .page-link:hover {
    border: none;
    background-color: transparent;
    border-radius: 8px;

    font-weight: 600;
    /* Bolder font */
    padding: 0.5rem 0.85rem;
    transition: all 0.2s ease;
    color: var(--secondary-color);
}

.article-list-section .pagination .page-item:not(.disabled) .page-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

/* Active page style */
.article-list-section .pagination .page-item.active .page-link {
    background-color: var(--primary-color);

    color: var(--text-white);
    box-shadow: 0 2px 5px rgba(26, 42, 77, 0.3);
}

/* Disabled "Previous/Next" and "..." style */
.article-list-section .pagination .page-item.disabled .page-link {
    color: #adb5bd;
    /* Light grey for disabled */
    background-color: transparent;
}

/* Tablet view  */
@media (max-width: 992px) and (min-width: 768px) {
    body {
        padding-top: 65px;
    }
}
