:root {
    --theme-color: #1A284D;
    --theme-color-dark: #1A284D;
    --theme-color-light: #e9f0f3;
    --theme-dark: #1A1A1A;
    --theme-white: #F5F5F5;
    --theme-yellow: #ff8f00;
    --theme-green: #97cb4d;
    --theme-darkgray: #7d7d7d;
    --theme-gray: #f2f2f2;
}

body {
    font-family: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--theme-dark);
    overflow-x: hidden;
    top: 0 !important;
}

.bg-theme {
    background-color: var(--theme-color) !important;
}

.text-theme {
    color: var(--theme-color) !important;
}

.text-theme-yellow {
    color: var(--theme-yellow) !important;
}

.bg-theme-yellow {
    background-color: var(--theme-yellow) !important;
}

.text-theme-gray {
    color: var(--theme-gray) !important;
}

.bg-theme-gray {
    background-color: var(--theme-gray) !important;
}

.text-theme-darkgray {
    color: var(--theme-darkgray) !important;
}

.bg-theme-darkgray {
    background-color: var(--theme-darkgray) !important;
}

.bg-theme-light {
    background-color: var(--theme-color-light) !important;
}

.bg-theme-dark {
    background-color: var(--theme-color-dark) !important;
}

.text-theme-light {
    color: var(--theme-color-light) !important;
}

.text-theme-dark {
    color: var(--theme-color-dark) !important;
}

.navbar-brand img {
    height: 50px;
}

/* Mobile-only logo size */
@media (max-width: 991px) {
    .navbar-brand .brand-logo {
        height: 35px;
        width: auto;
    }
}

.list-group-item.active {
    background-color: var(--theme-color) !important;
}

.navbar-scroll {
    /* border-bottom: 3px solid var(--theme-yellow); */
    transition: border-color .3s ease, background-color .3s ease;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* #header {
    border-bottom: 2px solid #1C1F23;
} */

/****************************************
 *  DESKTOP (>= 992px)
 ****************************************/
@media (min-width: 992px) {

    .nav-link {
        color: #fff !important;
        transition: all 0.2s ease-in-out;
    }

    /* Show dropdown on hover */
    .navbar .dropdown:hover>.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Base dropdown menu */
    .dropdown-menu {
        margin-top: 0;
        background-color: var(--theme-color-dark) !important;
        border: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease-in-out;
        border-radius: 6px;
        position: absolute;
    }

    .dropdown-item {
        color: #fff !important;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease-in-out;
        white-space: nowrap;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: transparent !important;
        color: var(--theme-yellow) !important;
    }

    /* LEVEL 2 dropdown container */
    .dropdown-menu .dropdown-submenu {
        position: relative;
    }

    /* LEVEL 3 dropdown menu (appears on the right) */
    .dropdown-menu .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: -1px;
        border-radius: 6px;
    }

    /* Show level 3 on hover */
    .dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Parent menu hover effect */
    .navbar-nav>.nav-item>a.nav-link:hover {
        color: var(--theme-yellow) !important;
    }

    .navbar-nav>.nav-item.dropdown:hover a.nav-link.dropdown-toggle {
        color: var(--theme-yellow) !important;
    }

    .nav-item.dropdown:hover a.nav-link.dropdown-toggle {
        color: var(--theme-yellow) !important;
    }

    .navbar-nav>.nav-item>.nav-link.active {
        color: var(--theme-yellow) !important;
    }

    .dropdown-toggle-mobile {
        display: none !important;
    }
}

/****************************************
 *  MOBILE (<= 991px)
 ****************************************/
@media (max-width: 991px) {

    /* .navbar,
    .navbar-nav,
    .navbar-collapse,
    .dropdown-menu {
        border-bottom: none !important;
    } */

    .nav-link,
    .dropdown-item {
        color: #fff !important;
        margin-top: 0.5rem;
    }

    .nav-link:hover,
    .dropdown-item:hover {
        background: transparent !important;
        color: var(--theme-yellow) !important;
    }

    .dropdown-toggle::after {
        display: none !important;
    }

    .dropdown-menu {
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        background-color: transparent !important;
    }

    .dropdown-toggle-mobile {
        display: inline-block;
        background: none;
        border: none;
        font-size: 20px;
        padding: 0 10px;
        color: #fff;
    }
}

/* Style for level-2 menus that have children */
.dropdown-menu .dropdown-submenu>.has-children {
    position: relative;
    padding-right: 25px;
    /* space for arrow */
}

/* Arrow for level-2 items */
.dropdown-menu .dropdown-submenu>.has-children::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    opacity: 0.8;
}

/* Show submenu on hover */
.dropdown-submenu:hover>.dropdown-menu {
    display: block !important;
}

/* Position level-3 menu to the right */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

/* Hero Banner */
#hero {
    position: relative;
    width: 100%;
    height: 81vh;
    overflow: hidden;
}

/* Make all slides same height */
#heroCarousel .carousel-item {
    height: 81vh;
}

#heroCarousel .carousel-item img,
#heroCarousel .carousel-item video {
    /* height: 100%; */
    width: 100%;
    object-fit: cover;
}

/* Caption: position at bottom but not too low */
#heroCarousel .carousel-caption {
    position: absolute;
    z-index: 10;
}

.hero-video,
.hero-image {
    height: 81vh;
    object-fit: cover;
}

.carousel-caption {
    /* background: rgba(0, 0, 0, 0.35); */
    backdrop-filter: blur(3px);
    border-radius: 10px;
    z-index: 100;
    margin-bottom: 1rem;
}

.hero-section {
    position: relative;
    height: calc(100vh - 110px);
    overflow: hidden;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    z-index: 10;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.btn-theme {
    background: var(--theme-color);
    color: #fff;
    border: 2px solid var(--theme-color);
    transition: 0.3s ease;
}

.btn-theme:hover {
    background: #fff;
    color: var(--theme-color) !important;
    border-color: var(--theme-color);
}

.btn-theme-yellow {
    background: var(--theme-yellow);
    color: var(--theme-color);
    border: 2px solid var(--theme-yellow);
    transition: 0.3s ease;
}

.btn-theme-yellow:hover {
    background: var(--theme-color);
    color: var(--theme-yellow) !important;
    border-color: var(--theme-color);
}

.btn-theme-reverse {
    background: #fff;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    transition: 0.3s ease;
}

.btn-theme-reverse:hover {
    background: var(--theme-color) !important;
    color: #fff;
    border-color: #fff;
}

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-color);
}

.section-title {
    font-weight: 700;
    color: var(--theme-color);
    position: relative;
    display: inline-block;
}

/* Center underline */
.section-underline-center {
    width: 60px;
    height: 4px;
    background: var(--theme-color);
    margin: 10px auto 0;
    /* centered */
    border-radius: 3px;
}

/* Left/start underline */
.section-underline-start {
    width: 60px;
    height: 4px;
    background: var(--theme-color);
    margin-top: 10px;
    /* no auto margin */
    border-radius: 3px;
}

.section-underline-end {
    width: 60px;
    height: 4px;
    background: var(--theme-color);
    margin-top: 10px;
    /* no auto margin */
    border-radius: 3px;
    margin-left: auto;
    /* align to the right */
    margin-right: 0;
    /* no right margin */
}

.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.event-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: .2s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.event-img {
    height: 200px;
    object-fit: cover;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 8px;
    transition: 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

footer {
    background: var(--theme-dark);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    /* color: var(--theme-color); */
    transform: scale(1.5) !important;
}

.footer-logo {
    height: 50px;
    width: auto;
}

@media (max-width: 576px) {
    .footer-logo {
        height: 40px;
    }
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-card img {
    transition: transform 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-card .overlay-news {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.news-card.large {
    height: 400px;
}

.news-card.small {
    height: 188px;
}

.news-card h3,
.news-card h5,
.news-card h6 {
    margin: 0;
}

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

.overlay-news {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.news-content {
    position: absolute;
    bottom: 0;
    z-index: 2;
}

.read-link {
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.read-link:hover {
    text-decoration: underline;
}

/* Content always above overlay */
.news-content {
    z-index: 2;
}

/* Fix badge width */
.news-content .badge {
    display: inline-block;
    width: auto;
    white-space: nowrap;
}

/* Optional: card styling */
.news-card.small {
    border-radius: 10px;
    overflow: hidden;
}

/* Agenda Date Box */
.agenda-date {
    background: var(--theme-color);
    width: 70px;
    min-width: 70px;
    padding: 15px 0;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
}

.agenda-date .day {
    font-size: 2rem;
    line-height: 1;
}

.agenda-date .month {
    color: var(--theme-yellow);
    /* yellow accent */
    font-weight: 600;
    margin-top: 5px;
}

.agenda-date .year {
    font-size: 0.85rem;
    margin-top: 3px;
    opacity: 0.9;
}

/* Title & Location */
.agenda-title {
    font-weight: 600;
}

.agenda-location {
    color: #555;
}

/* Cards */
.study-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

/* Icon styling */
.icon-box-study {
    width: 70px;
    height: 70px;
    background: #e8f3f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #116485;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.study-card:hover .icon-box-study {
    background: var(--theme-yellow);
    color: var(--theme-dark);
    transform: scale(1.1);
}

.announcement-card {
    background: #ffffff;
    border: 1px solid #eee;
    transition: all .3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--theme-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
}

.read-more {
    color: var(--theme-color);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.btn-theme {
    background: var(--theme-color);
    color: #fff;
    border-radius: 30px;
}

.btn-theme:hover {
    opacity: 0.9;
    color: #fff;
}

/* Logo container hover effect */
.partner-box {
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.partner-box:hover {
    /* background: #f0f8ff; */
    transform: translateY(-5px);
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
}

/* Logo size control */
.partner-logo {
    max-height: 80px;
    object-fit: contain;
    transition: transform .3s ease;
}

.partner-box:hover .partner-logo {
    transform: scale(1.05);
}

.testimonial-card {
    transition: all 0.4s ease;
    background-color: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.alumni-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.testimonial-card:hover .alumni-photo {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--theme-yellow);
}

.testimonial-card h5 {
    transition: color 0.3s ease;
}

.testimonial-card:hover h5 {
    color: var(--theme-color);
}

.article-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.article-img-wrapper {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

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

.pagination .page-link {
    border-radius: 0% !important;
    margin: 0 4px;
    padding: 8px 14px;
    transition: all .2s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
}

.content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content img {
    max-width: 100%;
    border-radius: 8px;
}

.agenda-date {
    width: 70px;
}

.agenda-date .day {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.agenda-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.agenda-date .year {
    font-size: 12px;
}

.agenda-item-list {
    border-left: 5px solid var(--theme-color);
}

.agenda-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.agenda-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.announcement-card-list {
    border-left: 5px solid var(--theme-color);
    transition: .3s ease;
}

.announcement-card-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--theme-color-rgb), 0.1);
    font-size: 1.4rem;
    color: var(--theme-color);
}

.announcement-title h5 {
    color: #222;
    transition: .3s;
}

.announcement-title h5:hover {
    color: var(--theme-color);
}


.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alumni-photo-list {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.testimonial-card p {
    word-break: break-word;
}

.testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.lecturer-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.lecturer-photo {
    transition: all 0.35s ease;
    /* smooth animation */
}

.lecturer-card:hover .lecturer-photo {
    transform: scale(1.1);
    border: 5px solid var(--theme-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.lecturer-card h5 {
    transition: color 0.3s ease;
}

.lecturer-card:hover h5 {
    color: var(--theme-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.post-content iframe {
    max-width: 100%;
}

.post-content {
    overflow-wrap: break-word;
}

.post-content pre {
    overflow-x: auto;
    white-space: pre;
}

.doc-list {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 10px;
}

.doc-list:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}

.doc-icon {
    font-size: 30px;
    color: var(--theme-color);
}


/* Fixed card height */
#threeCardCarousel .fixed-card {
    /* height: 650px; */
    display: flex;
    flex-direction: column;
}

/* Square 1:1 photos */
#threeCardCarousel .card-img-top {
    height: 400px;
    /* object-fit: cover; */
}

/* Move indicators down */
#threeCardCarousel .carousel-indicators {
    bottom: -50px;
}

/* Indicator colors */
#threeCardCarousel .carousel-indicators [data-bs-target] {
    background-color: #116485;
    opacity: 0.4;
}

#threeCardCarousel .carousel-indicators .active {
    background-color: #116485 !important;
    opacity: 1 !important;
}

/* Move prev button more to the left */
#threeCardCarousel .carousel-control-prev {
    left: -70px;
}

/* Move next button more to the right */
#threeCardCarousel .carousel-control-next {
    right: -70px;
}

/* Custom next/prev buttons */
#threeCardCarousel .carousel-control-prev,
#threeCardCarousel .carousel-control-next {
    width: 55px;
    height: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--theme-yellow) !important;
    border-radius: 50%;
}

/* White arrow icons */
#threeCardCarousel .carousel-control-prev-icon,
#threeCardCarousel .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

#threeCardCarousel .subtitle-box {
    max-height: 150px;
    /* adjust height as needed */
    overflow-y: auto;
    /* enable scrolling if text exceeds */
    padding-right: 5px;
    /* avoid scrollbar covering text */
}

/* force visibility for this specific navbar only */
#top-navbar .dropdown-menu {
    display: none;
}

#top-navbar .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2000 !important;
}

/* Hover dropdown only for desktops (≥992px) */
@media (min-width: 992px) {
    #top-navbar .dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Make toggle look active when hovering */
    #top-navbar .dropdown:hover .dropdown-toggle {
        color: #fff;
    }

    #top-navbar .dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
    }

    #top-navbar .dropdown-toggle::after {
        transition: transform 0.2s;
    }
}

/* ============================
   TOP NAVBAR HOVER (TEXT MENU)
============================ */
.top-nav a,
.top-nav .dropdown-toggle {
    color: #ffffff;
    transition: color 0.25s ease-in-out;
}

.top-nav a:hover,
.top-nav .dropdown-toggle:hover {
    color: var(--theme-white) !important;
}

.separator {
    width: 1px;
    height: 24px;
    background-color: var(--theme-color-light);
    display: inline-block;
    margin: 0 5px;
}



/* Fullscreen overlay (hidden) */
#search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 9999;
}

/* Show overlay */
#search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search box */
.search-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform .3s ease;
}

/* Zoom in when active */
#search-overlay.active .search-box {
    transform: scale(1);
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Remove underline */
.search-card-link {
    text-decoration: none;
    color: inherit;
}

/* Card design */
.search-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    transition: 0.25s ease;
    border: 1px solid #f0f0f0;
}

/* Hover effect */
.search-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Title */
.search-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #212529;
}

/* Description */
.search-desc {
    font-size: 14px;
    color: #555;
    height: 60px;
    overflow: hidden;
}

/* Date */
.search-date {
    font-size: 13px;
    color: #888;
}

/* Type badge */
.search-badge {
    background: var(--theme-color);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Better spacing */
.search-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Floating container */
#accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    /* so main button stays at bottom */
    align-items: flex-start;
    /* align menu to left of button */
    font-family: sans-serif;
    font-size: 16px;
}

/* Main button */
#accessibility-btn {
    background: var(--theme-yellow);
    color: var(--theme-dark);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
    opacity: 0.5;
    /* slightly transparent */
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* smooth transition */
}

#accessibility-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Menu hidden by default */
#accessibility-menu {
    position: absolute;
    /* position relative to widget */
    bottom: 70px;
    /* distance above main button (button height + gap) */
    left: 0;
    /* align with button */
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Show menu when active */
#accessibility-widget.active #accessibility-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu buttons */
#accessibility-menu button {
    background: var(--theme-white);
    color: var(--theme-dark);
    border: 1px solid var(--theme-dark);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 200px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

#accessibility-menu button:hover {
    background: var(--theme-yellow);
    color: var(--theme-dark);
    transform: scale(1.05);
}

body.underline-links a {
    text-decoration: underline !important;
}

body.readable-font {
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* Sidebar Styling */
#organization .list-group-item {
    border: none;
    font-weight: 500;
}

/* Hover state */
#organization .list-group-item:hover {
    background-color: #e8f4f6;
    cursor: pointer;
}

#organization .active-item {
    background: var(--theme-color) !important;
    color: #fff !important;
}

#organization .active-section {
    background: #e8f5f8 !important;
    font-weight: bold;
}

#organization .active-item i {
    color: #ffffff !important;
}

/* Child menu styling */
#organization .child-menu a {
    font-size: 15px;
    color: #555;
}

/* Child hover */
#organization .child-menu a:hover {
    background-color: #eef9fa;
    color: var(--theme-color) !important;
}

/* Active child */
#organization .child-menu .active-child {
    background-color: var(--theme-color) !important;
    color: #fff !important;
}

.gallery-box {
    width: 100%;
    height: 220px;           /* Adjust height as needed */
    overflow: hidden;
    border-radius: 10px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* This makes all images same crop */
    object-position: center;
    border-radius: 10px;
}
