/**
* Template Name: Arsha
* Template URL: https://bootstrapmade.com/arsha-free-bootstrap-html-template-corporate/
* Updated: Feb 22 2025 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Jost", sans-serif;
    --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --background-color: #ffffff;
    /* Background color for the entire website, including individual sections */
    --default-color: #444444;
    /* Default color used for the majority of the text content across the entire website */
    --heading-color: #37517e;
    /* Color for headings, subheadings and title throughout the website */
    --accent-color: #47b2e4;
    /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff;
    /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff;
    /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
    --nav-color: #ffffff;
    /* The default color of the main navmenu links */
    --nav-hover-color: #47b2e4;
    /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #ffffff;
    /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #ffffff;
    /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #444444;
    /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #47b2e4;
    /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
    --background-color: #f5f6f8;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #37517e;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #4668a2;
    --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    font-size: 20px;
    /* <-- add this */
    /* line-height: 1.6; optional, improves readability */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
    --background-color: #3d4d6a;
    --heading-color: #ffffff;
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 1050;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 36px;
    margin-right: 8px;
}

.header .logo h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 500;
    color: var(--heading-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-size: 14px;
    padding: 8px 25px;
    margin: 0 0 0 30px;
    border-radius: 50px;
    transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
    color: var(--contrast-color);
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
    .header .logo {
        order: 1;
    }

    .header .btn-getstarted {
        order: 2;
        margin: 0 15px 0 0;
        padding: 6px 15px;
    }

    .header .navmenu {
        order: 3;
    }
}

/* Home Page Header
------------------------------*/
.home-page .header {
    --background-color: rgba(255, 255, 255, 0);
    --heading-color: #ffffff;
    --nav-color: #ffffff;
}

/* Home Page Header on Scroll
------------------------------*/
.home-page.scrolled .header {
    --background-color: rgba(40, 58, 90, 0.9);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 15px;
        font-size: 15px;
        font-family: var(--nav-font);
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }

    .navmenu li:last-child a {
        padding-right: 0;
    }

    .navmenu li:hover>a,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-hover-color);
    }

    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: var(--nav-dropdown-background-color);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 14px;
        top: 130%;
        opacity: 0;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu .dropdown ul li {
        min-width: 200px;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: var(--nav-dropdown-color);
    }

    .navmenu .dropdown ul a i {
        font-size: 12px;
    }

    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover>a {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: -90%;
        visibility: hidden;
    }

    .navmenu .dropdown .dropdown:hover>ul {
        opacity: 1;
        top: 0;
        left: -100%;
        visibility: visible;
    }

    .navmenu .megamenu {
        position: static;
    }

    .navmenu .megamenu ul {
        margin: 0;
        padding: 10px;
        background: var(--nav-dropdown-background-color);
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 130%;
        left: 0;
        right: 0;
        visibility: hidden;
        opacity: 0;
        display: flex;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
    }

    .navmenu .megamenu ul li {
        flex: 1;
    }

    .navmenu .megamenu ul li a,
    .navmenu .megamenu ul li:hover>a {
        padding: 10px 20px;
        font-size: 15px;
        color: var(--nav-dropdown-color);
    }

    .navmenu .megamenu ul li a:hover,
    .navmenu .megamenu ul li .active,
    .navmenu .megamenu ul li .active:hover {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .megamenu:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navmenu .dd-box-shadow {
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu {
        padding: 0;
        z-index: 9997;
    }

    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        right: 20px;
        top: 60px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: var(--nav-mobile-background-color);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        min-width: 200px;
    }

    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-dropdown-color);
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background-color: var(--accent-color);
        color: var(--contrast-color);
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    .navmenu .dropdown ul {
        position: static;
        display: none;
        z-index: 99;
        padding: 10px 0;
        margin: 10px 20px;
        background-color: var(--nav-dropdown-background-color);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
        box-shadow: none;
        transition: all 0.5s ease-in-out;
    }

    .navmenu .dropdown ul ul {
        background-color: rgba(33, 37, 41, 0.1);
    }

    .navmenu .dropdown>.dropdown-active {
        display: block;
        background-color: rgba(33, 37, 41, 0.03);
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(33, 37, 41, 0.8);
        transition: 0.3s;
    }

    .mobile-nav-active .navmenu>ul {
        display: block;
    }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding-bottom: 50px;
    position: relative;
    width: 100%;
}

.footer .footer-top {
    padding-top: 50px;
}

.footer .copyright {
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
    margin-bottom: 0;
}

.footer .credits {
    margin-top: 6px;
    font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.6s ease-out;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #ffffff;
    border-color: var(--accent-color) transparent var(--accent-color) transparent;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 20px 0;
    position: relative;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
    font-size: 14px;
}

.page-title .breadcrumbs ol li+li {
    padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    scroll-margin-top: 88px;
    overflow: clip;
}

@media (max-width: 768px) {

    section,
    .section {
        scroll-margin-top: 66px;
    }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    text-align: center;
    padding-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.section-title h2:before {
    content: "";
    position: absolute;
    display: block;
    width: 160px;
    height: 1px;
    background: color-mix(in srgb, var(--default-color), transparent 60%);
    left: 0;
    right: 0;
    bottom: 1px;
    margin: auto;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.section-title p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section (Home Page)
--------------------------------------------------------------*/
.home-hero {
    width: 100%;
    min-height: 80vh;
    position: relative;
    padding: 120px 0 60px 0;
    display: flex;
    align-items: center;
    background: url('../img/banner2.jpg') center center/cover no-repeat;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    font-size: 80px;
    font-weight: 700;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.home-hero p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0px 0 90px 0;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero .animated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 60px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .home-hero p {
        font-size: 24px;
        line-height: 1.1;
        margin-bottom: 30px;
    }
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(-10px);
    }
}

/*--------------------------------------------------------------
# About Section (Home Page)
--------------------------------------------------------------*/

.home-about .content p {
    text-align: center;
    font-size: 26px;
    font-style: italic;
    font-weight: 250;
}

/*--------------------------------------------------------------
# Mission Section (Home Page)
--------------------------------------------------------------*/
.home-mission .research-tile {
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-mission .research-tile .icon {
    margin-bottom: 15px;
}

.home-mission .research-tile .icon i {
    font-size: 48px;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.home-mission .research-tile:hover .icon i {
    color: var(--accent-color);
}

.home-mission .research-tile .title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.home-mission .research-tile .title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-mission .research-tile:hover .title a {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .home-mission .research-tile {
        padding: 10px 20px;
    }

    .home-mission .research-tile .icon i {
        font-size: 40px;
    }

    .home-mission .research-tile .title {
        font-size: 20px;
    }

    .home-mission .row .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/*--------------------------------------------------------------
# Team Section (Home Page)
--------------------------------------------------------------*/
.home-team .card {
    background: transparent;
    border: none;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-team .card:hover {
    transform: translateY(-5px);
}

.home-team .img {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #47b2e4;
    transition: all 0.3s ease;
}

.home-team .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-team .card.principal-investigator .img {
    width: 170px;
    height: 170px;
    border: 4px solid #47b2e4;
    box-shadow: 0 8px 25px rgba(71, 178, 228, 0.3);
}

.home-team .card:hover .img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.home-team .info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c4964;
}

.home-team .info h5 {
    font-size: 1rem;
    color: #47b2e4;
    font-weight: 500;
}

.home-team .card.principal-investigator .info h4 {
    color: #2c4964;
    font-size: 1.5rem;
    font-weight: 700;
}

.home-team .card .principal-investigator .info h5 {
    color: #47b2e4;
    font-size: 1.1rem;
    font-weight: 600;
}

.home-team .read-more {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
}


/*--------------------------------------------------------------
# Publications Section (Home Page)
--------------------------------------------------------------*/

.home-pubs .paper-list {
    font-size: 16px;
}

.home-pubs .paper {
    margin-bottom: 10px;
}

.home-pubs .review-tag {
    font-weight: bold;
    font-style: italic;
    color: var(--heading-color);
}

.home-pubs .read-more {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
}

/*--------------------------------------------------------------
# Events Section (Home Page)
--------------------------------------------------------------*/
.home-events .swiper {
    position: relative;
    width: 70%;
}

.home-events .swiper-button-prev,
.home-events .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #47b2e4;
    font-size: 18px;
    top: 40%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.home-events .swiper-button-prev:hover,
.home-events .swiper-button-next:hover {
    background: #47b2e4;
    color: white;
    transform: translateY(-50%) scale(1.1);
}


/* Responsive positioning for smaller screens */
@media (max-width: 768px) {
    .home-events .swiper {
        position: relative;
        width: 100%;
    }

    .home-events .swiper-button-prev {
        top: 35%;
    }

    .home-events .swiper-button-next {
        top: 35%;
    }
}

.home-events .swiper-button-prev:after,
.home-events .swiper-button-next:after {
    display: none;
}

.home-events .read-more {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
}

.home-events .event-item {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.home-events .event-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-events .event-item p {
    font-size: 1.1rem;
    color: var(--default-color);
    margin: 0;
    font-weight: 500;
}

.home-events .swiper-pagination {
    bottom: 40px;
}

.home-events .swiper-pagination-bullet {
    background: var(--accent-color);
    opacity: 0.5;
}

.home-events .swiper-pagination-bullet-active {
    opacity: 1;
}

/*--------------------------------------------------------------
# Books Section (Home Page)
--------------------------------------------------------------*/
.home-books {
    padding: 80px 0;
}

.home-books .book-card {
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-books .book-card:hover {
    transform: translateY(-10px);
}

.home-books .book-image {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.home-books .book-image img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.home-books .book-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.home-books .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 10px;
}

.home-books .book-info h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.home-books .book-info .subtitle {
    font-size: 1.2rem;
    color: var(--heading-color);
    font-style: italic;
    font-weight: 500;
    margin: 0;
}

.home-books .read-more {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .home-books .book-card {
        margin-bottom: 40px;
    }
}

/*--------------------------------------------------------------
# Home Media Section
--------------------------------------------------------------*/
.home-media {
    padding: 80px 0;
}

.home-media .container {
    max-width: 1400px;
}

.home-media .row {
    margin: 0 -10px;
}

@media (min-width: 769px) {
    .home-media .row {
        justify-content: center;
    }
}

.home-media .row>* {
    padding-left: 10px;
    padding-right: 10px;
}

.home-media .media-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.home-media .media-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
    width: 100%;
    max-width: 280px;
}

.home-media .media-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.home-media .media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-media .media-image:hover img {
    transform: scale(1.1);
}

.home-media .media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px 20px;
    color: white;
}

.home-media .media-overlay h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-media .media-link {
    text-decoration: none;
    display: block;
}

.home-media .media-link:hover .media-overlay h4 {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .home-media .media-image {
        height: 200px;
        width: 280px;
        max-width: 280px;
        min-width: 280px;
        margin: 0 auto;
    }

    .home-media .media-overlay h4 {
        font-size: 14px;
    }

    .home-media .media-item {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }

    .home-media .row {
        margin: 0 -5px;
        justify-content: flex-start;
    }

    .home-media .row>* {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
    background-color: var(--surface-color);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding: 30px;
    height: 100%;
}


.contact .info-wrap h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.contact .info-item {
    margin-bottom: 20px;
}

.contact .info-item i {
    font-size: 20px;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    margin-right: 15px;
}

.contact .info-item h3 {
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact .info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: 16px;
}

/*--------------------------------------------------------------
# Publications Section
--------------------------------------------------------------*/

.publications .col-lg-3 {
    flex: 0 0 30%;
    max-width: 30%;
}

.publications .sidebar {
    position: sticky;
    top: 150px;
    /* Adjust this value to account for the header height */
    align-self: flex-start;
    z-index: 1000;
}

.publications .col-lg-9 {
    flex: 0 0 70%;
    max-width: 70%;
}

@media (max-width: 768px) {
    .publications .col-lg-3 {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .publications .col-lg-9 {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

.publications .desc-text {
    margin-bottom: 50px;
    font-size: 18px;
    color: var(--default-color);
}

.publications .filter-btn {
    display: block;
    text-align: left;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
    font-family: var(--nav-font);
    font-weight: 550;
    font-size: 18px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    background: none;
    color: var(--heading-color);
    width: fit-content;
    min-width: 180px;
}

/* Hover state */
.publications .filter-btn:hover {
    color: var(--accent-color);
}

/* Hover state for filter count */
.publications .filter-btn:hover .filter-count {
    background: rgba(71, 178, 228, 0.8);
    color: white;
}

/* Active state */
.publications .filter-btn.active {
    background: var(--heading-color);
    color: var(--contrast-color);
    padding: 5px 15px;
    border-radius: 4px;
}

/* Active hover state */
.publications .filter-btn.active:hover {
    background: var(--accent-color);
}

.publications .filter-btn.active:hover .filter-count {
    color: var(--accent-color);
}

/* Make the "All Publications" button bigger */
.publications .filter-btn[filter="all"] {
    font-size: 22px;
    font-weight: 600;
    padding: 8px 18px;
}

/* Filter count badges */
.publications .filter-count {
    display: inline-block;
    background: rgba(55, 81, 126, 0.8);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.publications .filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.8);
    color: var(--heading-color);
}

.publications .paper {
    border: 0px solid #ccc;
    margin-bottom: 10px;
    font-size: 16px;
    transition: opacity 0.3s ease,
        transform 0.3s ease,
        margin 0.3s ease,
        height 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    height: auto;
    position: relative;
}

.publications .paper.hidden {
    opacity: 0;
    transform: translateY(15px);
    margin-bottom: -100%;
    height: 0;
    pointer-events: none;
}

.publications .year-section {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.publications .paper .review-tag {
    font-weight: bold;
    font-style: italic;
    color: var(--heading-color);
}

.publications h3 {
    margin-top: -5px;
}

.filter-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-loading-overlay.show {
    opacity: 1;
}

.loading-spinner {
    position: absolute;
    top: 400px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #47b2e4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 992px) {
    .loading-spinner {
        top: 350px;
    }

    .publications .filter-btn {
        font-size: 14px;
    }

    .publications .filter-btn[filter="all"] {
        font-size: 16px;
    }

    .publications .sidebar-toggle {
        position: fixed;
        top: 220px;
        left: -22px;
        z-index: 100;
        background: var(--heading-color);
        color: var(--background-color);
        border: none;
        padding: 10px 15px;
        border-radius: 30px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        opacity: 0.6;
    }

    .publications .sidebar-toggle:hover {
        opacity: 1;
    }

    .publications .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--heading-color);
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .publications .sidebar-close:hover {
        background: #f8f9fa;
        color: var(--accent-color);
    }

    .publications .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 500;
        padding: 50px 20px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .publications .sidebar.show {
        left: 0;
    }

    .publications .sidebar .tab-btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: left;
        padding: 12px 15px;
        display: block;
        border-radius: 4px;
    }

    /* Add overlay when sidebar is open */
    .publications .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 400;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .publications .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when sidebar is open */
    .publications .sidebar-open {
        overflow: hidden;
    }

    /* Default state: sidebar collapsed, main content expanded */
    .publications .col-lg-3 {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto;
    }

    .publications .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) {
    .media .sidebar-toggle {
        display: none;
    }
}

/* Freeze UI during loading */
body.loading-freeze {
    pointer-events: none;
}

body.loading-freeze .filter-btn {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

body.loading-freeze .filter-loading-overlay {
    pointer-events: auto;
    /* Allow loading overlay to be visible */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# People Section
--------------------------------------------------------------*/
@media (min-width: 768px) {
    .people .container {
        max-width: 1000px;
    }
}

.people h2 {
    font-weight: bolder;
    margin-bottom: 30px;
}

.people .member {
    margin-bottom: 40px;
}

.people .bold {
    font-weight: bold;
}

.people .pic {
    margin-right: 60px;
    overflow: hidden;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    flex-shrink: 0;
}

.people .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.people .member-info {
    flex: 1;
}

.people .member-info h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 28px;
    display: inline;
}

.people .member-info h4 span {
    display: inline;
    font-size: 20px;
    color: var(--heading-color);
    font-weight: 500;
    margin-left: 10px;
}

.people .member-info span {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--heading-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

.people .member-info p {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.7;
}

.people .member-info .alumni {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.7;
}

/* Social Icons Styles */
.people .social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.people .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.people .social a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.people .social-icon {
    width: 20px;
    height: 20px;
    filter: opacity(0.8);
    transition: all 0.3s ease;
}

.people .social a:hover .social-icon {
    filter: brightness(0) invert(1);
}

.recruitment {
    border-radius: 12px;
    padding: 40px 30px;
    margin: 50px 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recruitment:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.recruitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.recruitment .widget-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.recruitment h3 {
    color: var(--heading-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.recruitment p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .recruitment {
        padding: 30px 20px;
        margin: 30px 30px;
    }

    .recruitment h3 {
        font-size: 1.8rem;
    }

    .recruitment p {
        font-size: 1rem;
    }
}

/*--------------------------------------------------------------
# Events Section
--------------------------------------------------------------*/
.events {
    padding: 50px 0;
}

@media (min-width: 768px) {
    .events .container {
        max-width: 1000px;
    }
}


.events .year-section {
    margin-bottom: 30px;
}


.events .year-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}


.events .event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


.events .event-item {
    margin-bottom: 30px;
    padding: 0;
    background: none;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
    padding-bottom: 30px;
}


.events .event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}


.events .event-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    flex: 1;
}


.events .event-date {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}


.events .event-description {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 1.1rem;
}


/* Event Photo Slider */
.events .event-photos {
    position: relative;
    max-width: 800px;
    margin: 25px auto 0 auto;
    text-align: center;
}


.events .photo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
}


.events .photo-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}


.events .photo-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}


.events .photo-slide img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}


/* Single photo - no slider needed */
.events .single-photo {
    text-align: center;
}


.events .single-photo img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


/* Slider Navigation */
.events .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}


.events .slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}


.events .slider-nav.prev {
    left: 10px;
}


.events .slider-nav.next {
    right: 10px;
}


.events .slider-nav i {
    color: var(--accent-color);
    font-size: 1.2rem;
}


/* Slider Dots */
.events .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}


.events .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 70%);
    cursor: pointer;
    transition: all 0.3s ease;
}


.events .slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}


/* Hide navigation for single photos */
.events .single-photo .slider-nav,
.events .single-photo .slider-dots {
    display: none;
}


/* Video embed styling */
.events .event-item .video-embed {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.events .event-item .video-embed iframe {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

}

/* Linked photo styling */
.events .event-photos a {
    display: inline-block;
    transition: transform 0.3s ease;
}


.events .event-photos a:hover {
    transform: scale(1.02);
}

/*--------------------------------------------------------------
# Media Section
--------------------------------------------------------------*/

.media .col-lg-3 {
    flex: 0 0 20%;
    max-width: 20%;
}

.media .divider {
    border: none;
    height: 1px;
    background: color-mix(in srgb, var(--default-color), transparent 70%);
    margin: 40px 0;
    width: 100%;
}

.media .sidebar {
    position: sticky;
    top: 150px;
    /* Adjust this value to account for the header height */
    align-self: flex-start;
    z-index: 1000;
}

/* Mobile sidebar styles */
@media (max-width: 992px) {
    .media .sidebar-toggle {
        position: fixed;
        top: 220px;
        left: -22px;
        z-index: 100;
        background: var(--heading-color);
        color: var(--background-color);
        border: none;
        padding: 10px 15px;
        border-radius: 30px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        opacity: 0.6;
    }

    .media .sidebar-toggle:hover {
        opacity: 1;
    }

    .media .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--heading-color);
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .media .sidebar-close:hover {
        background: #f8f9fa;
        color: var(--accent-color);
    }

    .media .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 500;
        padding: 50px 20px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .media .sidebar.show {
        left: 0;
    }

    .media .sidebar .tab-btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: left;
        padding: 12px 15px;
        display: block;
        border-radius: 4px;
    }

    /* Add overlay when sidebar is open */
    .media .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 400;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .media .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when sidebar is open */
    .media .sidebar-open {
        overflow: hidden;
    }

    /* Default state: sidebar collapsed, main content expanded */
    .media .col-lg-3 {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto;
    }

    .media .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Keep desktop behavior unchanged */
@media (min-width: 992px) {
    .media .sidebar-toggle {
        display: none;
    }
}

.media .col-lg-9 {
    flex: 0 0 80%;
    max-width: 80%;
}

@media (max-width: 768px) {
    .media .col-lg-3 {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .media .col-lg-9 {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

/* Media Tab Styles */
.media .tab-btn {
    display: block;
    text-align: left;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    font-family: var(--nav-font);
    font-weight: 550;
    font-size: 18px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    background: none;
    color: var(--heading-color);
    width: fit-content;
    border-radius: 4px;
}

.media .tab-btn:hover {
    color: var(--accent-color);
    background: none;
}

.media .tab-btn.active {
    color: var(--accent-color);
    background: none;
}

.media .tab-btn.active:hover {
    color: var(--accent-color);
    background: none;
}

/* Tab Content Styles */
.media .tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.media .tab-content.active {
    display: block;
}

.media .tab-content h2 {
    color: var(--heading-color);
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
}

.media .tab-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* In the News tab */
.media .news-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media .news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

.media .news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media .news-card:hover .media .news-image img {
    transform: scale(1.05);
}

.media .news-content {
    padding: 15px 20px 5px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.media .news-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
    transition: color 0.3s ease;
}

.media .news-content p {
    font-size: 16px;
    color: var(--default-color);
    margin-top: 10px;
    padding: 0 20px;
    font-weight: bold;
    text-align: center;
}

.media .news-card:hover .news-content h3 {
    color: var(--accent-color);
}

.media .news-publisher {
    font-size: 10px;
    color: var(--default-color);
    margin-top: 1px;
    padding: 0 20px;
    font-weight: bold;
    text-align: center;
}

/* Talks tab */

.media .ted-talks .ted-embed {
    border-radius: 12px;
    overflow: hidden;
}

.media .talks h3 {
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.media .talk-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-style: italic;
}

.media .talk-card p {
    font-size: 18px;
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
}

.media .talk-card .talk-image {
    max-width: 800px;
    margin: 0 auto;
}

.media .talk-card .talk-image img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.media .talk-card:hover h4 {
    color: var(--accent-color);
}

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

.media .podcast-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.media .podcast-card p {
    font-size: 18px;
    margin-top: 10px;
    font-weight: 500;
}

.media .podcast-card:hover h4 {
    color: var(--accent-color);
}

.media .podcast-image {
    text-align: center;
    padding: 10px;
}

.media .podcast-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media .podcast-image a:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for podcasts */
@media (max-width: 768px) {
    .media .podcast-image img {
        max-width: 200px;
        margin: 0 auto;
    }
}


/*--------------------------------------------------------------
# Video Slider
--------------------------------------------------------------*/
.media .video-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
}

.media .video-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    /* Space for navigation buttons */
}

.media .video-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 20px;
}

.media .video-slide {
    flex: 0 0 calc(35% - 14px);
    /* Make videos slightly bigger */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.media .video-slide:hover {
    transform: translateY(-3px);
}

.media .video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.media .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.media .video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.media .video-thumbnail:hover {
    opacity: 0.8;
}

.media .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media .video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(71, 178, 228, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.media .video-thumbnail:hover .play-button {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.media .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: white;
    padding: 30px 15px 10px 15px;
    text-align: left;
}

.media .video-info h5 {
    font-family: var(--heading-font);
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.media .video-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.media .video-slider-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.media .video-slider-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(71, 178, 228, 0.3);
}

.media .video-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.media .video-slider-btn:disabled:hover {
    background: white;
    color: var(--accent-color);
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.media .prev-btn {
    left: 10px;
}

.media .next-btn {
    right: 10px;
}

/* Responsive design */
@media (max-width: 992px) {
    .media .video-slide {
        flex: 0 0 calc(50% - 10px);
        /* Show 2 videos on tablets */
    }

    .media .video-slider-wrapper {
        padding: 0 50px;
    }

    .media .video-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .media .video-slide {
        flex: 0 0 100%;
        /* Show 1 video on mobile */
    }

    .media .video-slider-wrapper {
        padding: 0 45px;
    }

    .media .video-slides {
        gap: 15px;
    }

    .media .video-info h5 {
        font-size: 1rem;
    }

    .media .video-info {
        padding: 15px 12px 12px 12px;
    }

    .media .video-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .media .prev-btn {
        left: 5px;
    }

    .media .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .media .video-slider-container {
        margin: 0 10px;
    }

    .media .video-slider-wrapper {
        padding: 0 40px;
    }

    .media .video-slide {
        border-radius: 6px;
    }

    .media .video-embed,
    .media .video-thumbnail {
        border-radius: 6px;
    }

    .media .video-info {
        padding: 12px 10px 10px 10px;
    }

    .media .video-info h5 {
        font-size: 0.9rem;
    }

    .media .video-info p {
        font-size: 0.8rem;
    }
}

/* Movies tab */
.media .movie-card {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.media .movie-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.media .movie-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-style: italic;
    color: var(--default-color);
}

.media .movies a {
    transition: all 0.3s ease;
}

.media .movies a:hover h3 {
    color: var(--accent-color);
}

.media .movie-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media .movies a:hover .movie-image img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Video container for responsive iframe */
.media .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding-bottom: 45%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.media .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Responsive adjustments for movies */
@media (max-width: 768px) {
    .media .movie-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .media .movie-card h3 {
        font-size: 1.5rem;
    }

    .media .movie-content p {
        font-size: 0.95rem;
    }
}

/* Books tab */
.media .books {
    padding: 0 0 40px 0;
}

.media .book-item {
    margin-bottom: 60px;
}

.media .book-cover {
    text-align: center;
    margin-bottom: 30px;
    padding-right: 40px;
}

.media .book-info {
    padding-left: 20px;
}

.media .book-cover img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.media .book-cover img:hover {
    transform: scale(1.05);
}

.media .book-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.media .book-info h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.media .book-title-link h3,
.media .book-title-link h4 {
    color: var(--heading-color);
    text-decoration: underline;
    display: block;
    transition: all 0.3s ease;
}

.media .book-title-link:hover h3,
.media .book-title-link:hover h4 {
    color: var(--accent-color);
    text-decoration: underline;
}

.media .book-info h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.media .book-info h5 span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--default-color);
    margin-bottom: 20px;
}

.media .book-description {
    font-size: 1rem;
    color: var(--default-color);
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media .book-cover {
        margin-bottom: 0;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .media .book-cover img {
        max-width: 200px;
        width: 200px;
        height: auto;
        object-fit: contain;
    }

    .media .book-info {
        padding-left: 0;
        padding-top: 30px;
    }

    .media .book-item {
        padding: 25px;
        margin-bottom: 40px;
    }

    .media .book-info h3 {
        font-size: 1.6rem;
    }


    .media .book-info h4 {
        font-size: 1.4rem;
    }

    .media .book-description {
        font-size: 1rem;
    }
}

/* Organizations Section Styles */
.media .organizations {
    padding: 2rem 0;
}

.media .organizations h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 3rem;
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.media .org-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 100px;
    width: 180px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.media .org-item:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.media .org-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.85);
    transition: filter 0.3s ease;
}

.media .org-item:hover .media .org-logo {
    filter: grayscale(0%) opacity(1);
}

/* Responsive adjustments for organizations */
@media (max-width: 768px) {
    .organizations-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem 1rem;
    }

    .media .org-item {
        height: 80px;
        width: 140px;
        padding: 0.75rem;
    }

    .media .org-logo {
        max-height: 65px;
    }

    .organizations-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.loading-spinner {
    position: absolute;
    top: 400px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #47b2e4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .loading-spinner {
        top: 350px;
    }
}

/* Freeze UI during loading */
body.loading-freeze {
    pointer-events: none;
}

body.loading-freeze .filter-btn {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

body.loading-freeze .filter-loading-overlay {
    pointer-events: auto;
    /* Allow loading overlay to be visible */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Error 404 Section
--------------------------------------------------------------*/
.error-404 {
    padding: 80px 0;
    margin: 0 auto;
}

.error-404 .error-icon {
    font-size: 5rem;
    color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    color: color-mix(in srgb, var(--heading-color), transparent 10%);
    font-family: var(--heading-font);
    line-height: 1;
}

.error-404 .error-title {
    font-size: 2rem;
    color: var(--heading-color);
    font-weight: 600;
}

.error-404 .error-text {
    font-size: 1.1rem;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .search-box {
    max-width: 500px;
    margin: 0 auto;
}

.error-404 .search-box .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-404 .search-box .form-control {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--default-color);
    background-color: var(--surface-color);
    border-radius: 50px;
}

.error-404 .search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.error-404 .search-box .form-control::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.error-404 .search-box .search-btn {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.error-404 .search-box .search-btn:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-action .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    border: none;
    color: var(--contrast-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.error-404 .error-action .btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .error-404 {
        padding: 60px 0;
    }

    .error-404 .error-code {
        font-size: clamp(4rem, 12vw, 8rem);
    }

    .error-404 .error-title {
        font-size: 1.5rem;
    }

    .error-404 .error-text {
        font-size: 1rem;
        padding: 0 20px;
    }

    .error-404 .search-box {
        margin: 0 20px;
    }
}