:root {
    --jamb-green: #198754;
    --jamb-dark-green: #14532D;
    --jamb-yellow: #F6BA66;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #EFEFEF;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}

.bg-jamb-green {
    background-color: var(--jamb-green);
}

.bg-dark-green {
    background-color: var(--jamb-dark-green);
}

.bg-yellow {
    background-color: var(--jamb-yellow);
}

.btn-color {
    background-color: var(--jamb-green);
    color: #fff;
}

    .btn-color:hover {
        background-color: var(--jamb-dark-green);
        color: #fff;
    }

.section1-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-hover {
    transition: transform 0.3s ease;
}

    .card-hover:hover {
        transform: scale(1.05);
    }

/* Swiper Styles */
.slide-container {
    max-width: 1120px;
    width: 100%;
    padding: 40px 0;
}

.cards {
    border-radius: 25px;
    background-color: #FFF;
    padding: 20px;
}

.image-content {
    position: relative;
    row-gap: 5px;
    padding: 25px 0;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--jamb-green);
    border-radius: 25px;
}

.card-image {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: #FFF;
    padding: 3px;
    margin: 0 auto;
}

    .card-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid var(--jamb-green);
    }

.name a {
    color: #333;
    text-decoration: none;
}

    .name a:hover {
        color: var(--jamb-green);
    }

.title {
    color: var(--jamb-green);
    text-align: center;
}

/* Download section */
.app-info {
    display: flex;
    column-gap: 16px;
}

.app-info-icon {
    min-width: 80px;
    height: 80px;
    background: #3b3d40;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-info-content {
    padding-left: 10px;
}

.app-info-content__name {
    margin-bottom: 4px;
    color: #141415;
    font-weight: 600;
    font-size: 1rem;
}

/* Carousel */
.carousel-item {
    min-height: 40vh;
}

.carousel img {
    filter: brightness(50%);
    object-fit: cover;
    height: 400px;
}

.carousel .card-body {
    position: absolute;
    bottom: 10%;
    left: 15%;
    color: #fff;
    padding: 1rem;
    text-align: center;
    width: 70%;
}

    .carousel .card-body h4 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .carousel .card-body h5 {
        font-size: 1.2rem;
        font-weight: 400;
    }

/* Gallery Styles */
.gallery-container {
    padding: 20px 0;
}

    .gallery-container .col-md-3 {
        margin-bottom: 20px;
    }

    .gallery-container img {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

        .gallery-container img:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

/* Category Card Styles */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .category-card:hover {
        transform: scale(1.05);
    }

    .category-card h4 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        z-index: 2;
        text-align: center;
        width: 90%;
    }

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
        transition: background 0.3s ease;
    }

    .category-card:hover::before {
        background: rgba(0, 0, 0, 0.3);
    }

/* News Styles */
.news-card {
    transition: all 0.3s ease;
    border-left: 4px solid #198754;
}

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

.news-title-link {
    color: #198754;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .news-title-link:hover {
        color: #14532D;
        text-decoration: underline;
    }

/* Bulletin Styles */
.bulletin-card {
    transition: all 0.3s ease;
}

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

/* Gallery Styles */
.gallery-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .gallery-image:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }


/* ============================================ */
/* ADVISORY SECTION - Professional Design      */
/* ============================================ */

.advisory-section {
    padding: 1rem 0;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.divider {
    width: 60px;
    height: 4px;
    background: #198754;
    margin: 1rem auto;
    border-radius: 2px;
}

/* Advisory Card Base */
.advisory-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

    .advisory-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

.advisory-card-warning {
    border-top: 4px solid #ffc107;
}

.advisory-card-success {
    border-top: 4px solid #198754;
}

.advisory-card-info {
    border-top: 4px solid #0dcaf0;
}

.advisory-card-danger {
    border-top: 4px solid #dc3545;
}

/* Advisory Icon */
.advisory-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.advisory-card-warning .advisory-icon {
    color: #ffc107;
}

.advisory-card-success .advisory-icon {
    color: #198754;
}

.advisory-card-info .advisory-icon {
    color: #0dcaf0;
}

.advisory-card-danger .advisory-icon {
    color: #dc3545;
}

/* Advisory Badge */
.advisory-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    color: #fff;
}

.advisory-card-warning .advisory-badge {
    background: #ffc107;
}

.advisory-card-success .advisory-badge {
    background: #198754;
}

.advisory-card-info .advisory-badge {
    background: #0dcaf0;
    color: #000;
}

.advisory-card-danger .advisory-badge {
    background: #dc3545;
}

/* Advisory Image */
.advisory-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f8f9fa;
}

.advisory-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advisory-card:hover .advisory-image {
    transform: scale(1.05);
}

.advisory-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 4rem;
    color: #198754;
}

.advisory-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100% );
}

/* Advisory Body */
.advisory-body {
    padding: 1.25rem;
}

.advisory-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.advisory-text {
    font-size: 0.9rem;
    color: #4a4a6a;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Advisory Footer Tags */
.advisory-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.advisory-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: #f8f9fa;
    border-radius: 50px;
    font-size: 0.65rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

    .advisory-tag i {
        font-size: 0.6rem;
    }

/* Advisory Buttons */
.advisory-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: #198754;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}

    .advisory-btn-primary:hover {
        background: #15803D;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
    }

    .advisory-btn-primary i:last-child {
        transition: transform 0.3s ease;
    }

    .advisory-btn-primary:hover i:last-child {
        transform: translateX(5px);
    }

.advisory-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    color: #198754;
    border: 2px solid #198754;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

    .advisory-btn-secondary:hover {
        background: #198754;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(25, 135, 84, 0.15);
    }

/* Empty State */
.empty-state i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    .section-heading {
        font-size: 1.8rem;
    }

    .advisory-body {
        padding: 1rem;
    }

    .advisory-title {
        font-size: 1rem;
    }

    .advisory-text {
        font-size: 0.85rem;
    }
}

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

    .advisory-card {
        border-radius: 12px;
    }

    .advisory-image-wrapper {
        padding-bottom: 50%;
    }

    .advisory-body {
        padding: 0.85rem;
    }

    .advisory-title {
        font-size: 0.95rem;
    }

    .advisory-text {
        font-size: 0.8rem;
    }

    .advisory-tag {
        font-size: 0.55rem;
        padding: 1px 8px;
    }

    .advisory-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    .advisory-badge {
        font-size: 0.5rem;
        padding: 2px 10px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 1.2rem;
    }

    .advisory-image-wrapper {
        padding-bottom: 45%;
    }

    .advisory-title {
        font-size: 0.9rem;
    }

    .advisory-text {
        font-size: 0.75rem;
    }

    .advisory-footer {
        gap: 4px;
    }

    .advisory-tag {
        font-size: 0.5rem;
        padding: 1px 6px;
    }
}

/* Dropdown toggle buttons */
.btn-dropdown-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    transition: opacity 0.2s;
}

    .btn-dropdown-toggle:hover {
        opacity: 0.8;
    }

    .btn-dropdown-toggle:focus {
        box-shadow: none !important;
    }

/* Dropdown menu - make it full width and styled */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 8px;
    border: none;
}

    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        transition: background 0.15s;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: #198754;
            color: #fff;
        }

/* Ensure the dropdown appears above other content */
.section1-text {
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* BULLETINS COMPACT - Fits Beside News         */
/* ============================================ */

.bulletin-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.bulletin-compact-item {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

    .bulletin-compact-item:hover {
        transform: scale(1.02);
        border-color: #198754;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .bulletin-compact-item a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.bulletin-compact-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* More compact aspect ratio */
    overflow: hidden;
    background: #fff;
}

    .bulletin-compact-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
        background: #fff;
    }

.bulletin-compact-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 1.8rem;
    color: #198754;
}

.bulletin-compact-year {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #198754;
    color: #fff;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.55rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    z-index: 2;
}

.bulletin-compact-info {
    padding: 2px 6px 4px 6px;
    text-align: center;
}

.bulletin-compact-date {
    font-size: 0.6rem;
    color: #6c757d;
}

    .bulletin-compact-date i {
        font-size: 0.5rem;
        color: #198754;
        margin-right: 2px;
    }

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: transparent;
    color: #198754;
    border: 1.5px solid #198754;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-view-all:hover {
        background: #198754;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(25, 135, 84,0.15);
    }

    .btn-view-all i {
        font-size: 0.7rem;
    }

/* Make bulletins section same height as news */
.bulletin-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bulletin-compact-grid {
    flex: 1;
    align-content: start;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .bulletin-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bulletin-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .bulletin-compact-year {
        font-size: 0.45rem;
        padding: 0 6px;
    }

    .bulletin-compact-date {
        font-size: 0.5rem;
    }
}