.fs-90 {
    font-size: 2.625rem;
}

/* Define the keyframes for rotating */
@keyframes rotate-logo {
    0% {
        transform: rotateY(0deg);
        /* Start from 0 degrees */
    }

    50% {
        transform: rotateY(180deg);
        /* Rotate to 180 degrees */
    }

    100% {
        transform: rotateY(0deg);
        /* Return to 0 degrees */
    }
}

/* Apply animation to the images */
.navbar-brand img {
    animation: rotate-logo 4s infinite;
    /* 4 seconds for one full cycle */
    animation-timing-function: ease-in-out;
    /* Smooth easing */
}

/* Top Section */
.top-section {
    /* Light Pinkish Background */
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.top-left button,
.top-right button {
    background: white;
    border: none;
    padding: 0px 10px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 10px;
}

.top-left button:hover,
.top-right button:hover {
    background: #b98e44;
    color: white;
}

/* Extra Header Section */
.extra-header {
    /* background: linear-gradient(to right, #d63384, #e83e8c); */
    color: white;
    text-align: center;
    /* padding: 10px 20px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 3px solid #c82333; */
}

/* Logo Sections */
.left-logos,
.right-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-logos img,
.right-logos img {
    height: 90px;
    /* width: 150px;
    height: 150px; */
}

/* Center Heading */
.header-text h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.header-text p {
    font-size: 14px;
    margin: 5px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        text-align: center;
    }

    .extra-header {
        flex-direction: column;
        text-align: center;
    }

    .left-logos,
    .right-logos {
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-text p {
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    header .container-fluid {
        padding-left: 0px !important;
    }
}

.swiper-slide.cover-background {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 0;
    overflow: hidden;
}

.swiper-slide.cover-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Adjust this for the desired opacity */
    z-index: 1;
}

.swiper-slide .container {
    position: relative;
    z-index: 2;
}

.cover-background-overlay {
    position: relative;
    overflow: hidden;
}

.cover-background-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Adjust opacity/color as needed */
    z-index: 1;
    pointer-events: none;
    border-radius: 6px;
}

.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

.dark-theme .navbar,
.dark-theme .top-section {
    background-color: #1e1e1e !important;
}

.dark-theme a,
.dark-theme button {
    color: #ffffff !important;
}


.mt-30px {
    margin-top: 65px !important;
}

/* Main Layout */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.5s ease;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

.wrapper.shifted {
    justify-content: flex-start;
    transform: translateX(-200px);
}

/* Hexagon Grid */
.hex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    gap: 10px;
}

.hex-row {
    display: flex;
    margin-bottom: -30px;
}

.hex-row:nth-child(even) {
    transform: translateX(80px);
}

/* Individual Hexagons */
.hex {
    width: 150px;
    height: 150px;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background-color: #D8CFD0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    /* margin: 0 -5px; */
    z-index: 1;
    /* transform: scale(1.1); */
    /* z-index: 10; */
    background-color: transparent !important;
    background-image: var(--bg-image) !important;
}

/* Hover State - Clear Background Image */
.hex:hover {
    transform: scale(1.2);
    z-index: 10;
    background-color: transparent !important;
    background-image: var(--bg-image) !important;
}

/* Active State */
.hex.active {
    transform: scale(1.2);
    z-index: 20;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    background-color: transparent;
    background-image: var(--bg-image);
}

/* Content Display */
.content-display {
    width: 400px;
    height: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.5s;
    position: absolute;
    right: 50px;
    top: 50%;
    left: 90%;
    transform: translateY(-50%);
}

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

#hex-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

#hex-description {
    color: #666;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1000px) {
    .wrapper.shifted {
        transform: none;
        flex-direction: column;
        align-items: center;
    }

    .content-display {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 30px auto;
        width: 90%;
        max-width: 400px;
    }

    .hex-row:nth-child(even) {
        transform: none;
    }

    .hex {
        width: 120px;
        height: 120px;
        font-size: 18px;
    }
}

:root {
    --base-color: #b98e44;
    --primary: #b98e44;
    --secondary: #d4a24e;
    --bg: #f9f5ee;
    --text: #3a3226;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    /* background: linear-gradient(90deg, #f1e8d8, #f5efe5); */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}

.tab-button {
    padding: 10px 80px;
    border: none;
    /* background: rgba(255,255,255,0.7);
      color: #7a6b54; */
    background-color: var(--dark-gray);
    color: var(--white);
    font-weight: bold;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(185, 142, 68, 0.2);
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: 0.5s;
}

.tab-button:hover {
    color: #4a3f30;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(185, 142, 68, 0.2);
}

.tab-button.active {
    background: var(--primary);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(185, 142, 68, 0.5);
}

.tab-button.active::before {
    left: 100%;
}

.tab-content {
    display: none;
    padding: 30px;
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1350px !important;
    /* border: 1px solid rgba(185, 142, 68, 0.1); */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

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

.tab-content h4 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(185, 142, 68, 0.2);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tab-content h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.marquee-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(185, 142, 68, 0.1);
}

.marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(249, 245, 238, 1), transparent);
    z-index: 2;
}

.marquee-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(0deg, rgba(249, 245, 238, 1), transparent);
    z-index: 2;
}

.marquee-container:hover .news-grid {
    animation-play-state: paused;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    animation: scroll-up 25s linear infinite;
}

.news-box {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    width: calc(50% - 10px);
    box-sizing: border-box;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.news-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(185, 142, 68, 0.1), transparent);
    transition: 0.5s;
}

.news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(185, 142, 68, 0.2);
    background: rgba(255, 255, 255, 1);
}

.news-box:hover::before {
    left: 100%;
}

.news-box i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 20px;
}

.news-date {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary);
    opacity: 0.8;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 80%;
    }

    .news-box {
        width: 100%;
    }

    .marquee-container {
        height: 400px;
    }
}

/* Glow effect for the entire container */
.tab-content.active {
    position: relative;
}

.tab-content.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    filter: blur(20px);
    opacity: 0.15;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.2;
    }
}
.breadcrumb-bg-image{
    background-image: url(/static/medical/assets/img/slide3.jpg); 
    height:350px !important;
}