body {
    background-image: linear-gradient(to bottom, rgba(0, 1, 22, 0.7), rgba(0, 1, 22, 0.7)), url('../images/Gallery/1.jpg');
    /* Change this to your image path */
    background-size: cover;
    /* Cover the entire viewport */
    background-attachment: fixed;
    /* Fix the background image */
    background-position: center;
    /* Center the background image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
}

:root {
    --white-color: #ffffff;
    --primary-color: #008DDA;
    --secondary-color: #41c4e2;
    --section-bg-color: #0c4062;
    --custom-btn-bg-color: #F7EEDD;
    --custom-btn-bg-hover-color: #3AA6B9;
}

.tab-control {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    background: transparent;
    justify-content: space-evenly;
    gap: 20px;
    transition: margin-bottom 0.3s ease;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    padding: 20px;
}

.tab {
    text-wrap: nowrap;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s, color 0.3s;
    flex: 1;
    width: 20vw !important;
    /* Makes tabs equal width */
    text-align: center;
    /* Centers the text */
    border: none;
    border-radius: 5px;
    /* Rounded corners */
    background: linear-gradient(to bottom, #0c4062, #008dda);
    color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tab:hover {
    background: linear-gradient(to top, #0c4062, #008dda);
    color: var(--white-color);
}

.tab.active {
    background: linear-gradient(to top, #0c4062, #008dda);
    color: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--white-color);
    border-radius: 8px;
}

.tab.active span {
    position: relative;
    z-index: 1;
    /* On top of the underline */
}

.active-tab-indicator {
    display: none;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px;
    padding: 20px;
    position: relative;
    color: #fff !important;
    text-align: center;
}

.active-tab-indicator::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 25px);
}

.tab-content {
    position: relative;
    width: 100%;
    margin: auto;
}

.content {
    position: relative;
    width: 100%;
    display: none;
    animation: fadeIn 0.5s ease;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    margin: 0;
    background-color: #010101;
    color: #eee;
    margin-top: 150px;
}

.content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hint {
    line-height: 1.6;
    margin: 40px 15px 80px 15px;
    color: #D3D3D3;
    font-weight: 400;
    font-size: 20px;
}

/* Optional button styling for interactions */
.custom-button {
    background-color: var(--custom-btn-bg-color);
    border: none;
    color: var(--section-bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-button:hover {
    background-color: var(--custom-btn-bg-hover-color);
}

.show-tab-button {
    margin: auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
}

.show-tab-button i {
    color: var(--custom-btn-bg-hover-color);
}

.tab-header.animate {
    animation: tabHeaderAnimation 0.3s ease-in-out forwards;
    -webkit-animation: tabHeaderAnimation 0.3s ease-in-out forwards;
}

.active-tab-indicator.animate {
    animation: smoothActiveTabIndicatorAnimation 0.5s ease-in-out forwards;
    -webkit-animation: smoothActiveTabIndicatorAnimation 0.5s ease-in-out forwards;
}

@keyframes activeTabIndicatorAnimation {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes tabHeaderAnimation {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes smoothActiveTabIndicatorAnimation {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    40% {
        transform: translateY(5px);
        opacity: 0.5;
    }

    80% {
        transform: translateY(-2px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.active-tab-indicator {
    animation: smoothActiveTabIndicatorAnimation 0.5s ease-in-out forwards;
    -webkit-animation: smoothActiveTabIndicatorAnimation 0.5s ease forwards;
}

.tab-header {
    animation: tabHeaderAnimation 0.3s ease-in-out;
    -webkit-animation: tabHeaderAnimation 0.3s ease-in-out;
}

.active-tab-indicator {
    animation: activeTabIndicatorAnimation 0.5s ease-in-out;
    -webkit-animation: activeTabIndicatorAnimation 0.5s ease-in-out;
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.show-tab-button {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* charts */
section.charts {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Individual Chart Container */
section.charts div {
    background-color: #0000007e;
    border-radius: 12px;
    padding: 20px;
    width: 45%;
    /* Responsive width */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.charts div:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Chart Title Styling */
section.charts div p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

/* Canvas Styling */
section.charts canvas {
    width: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    section.charts {
        flex-direction: column;
        padding: 20px;
    }

    section.charts div {
        width: 80% !important;
    }

   
}

.CSRContainer {
    margin: 50px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.containerr {
    width: 1000px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #0c4062, #008dda);
    padding: 4rem 5rem;
    position: relative;
    display: flex;
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    -ms-border-radius: 25px !important;
    -o-border-radius: 25px !important;
}

.textblock .title {
    text-align: center;
    text-transform: uppercase;
    color: #FFF;
    margin-top: 30px;
    margin-bottom: 1.5rem;
    font-size: 30px;
}

.textblock {
    font-family: "Poppins", system-ui;
    font-weight: 400;
    font-style: normal;

}

.textblock .subtitle {
    text-align: left;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.8rem;
}

.textblock p {
    justify-content: center;
    margin-bottom: 1.3rem;
    color: #fff !important;
    display: flex;
    flex-direction: column;
}

.describe {
    width: fit-content;
    margin: auto;
    background-color: #fff;
    color: #8f8e8e;
    padding: 25px;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
}

.describe p {
    font-weight: 500;
    margin: 0;
    text-align: justify !important;
}

.containerFacility {
    max-width: 1500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px auto;
    padding: 0;
}

.itemSelect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #333;

}

.itemSelect img {
    width: 100%;
    height: 400px;
    display: block;
    transition: transform 0.5s ease;
}

.itemSelect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black overlay with 60% opacity */
    transition: opacity 0.5s ease;
    z-index: 1;
}

.itemSelect:hover::before {
    opacity: 0;
    /* Remove overlay on hover */
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
    color: var(--white-color);
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 1px;
    display: flex;
    transition: color 0.5s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Text animation styling */
.text span {
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    animation: colorShift 3s ease infinite alternate;
    -webkit-animation: colorShift 3s ease infinite alternate;
}

.text span:nth-child(odd) {
    animation-delay: 0.1s;
}

.text span:nth-child(even) {
    animation-delay: 0.2s;
}


@keyframes colorShift {
    0% {}

    50% {
        color: var(--secondary-color);
    }

    100% {
        color: var(--custom-btn-bg-hover-color);
    }
}

.banner-leganCSR {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
    text-align: left;
    margin-left: 20%;
    font-family: "Playwrite CU", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

@media only screen and (max-width:992px) {

    .containerr {
        width: 100% !important;
    }

    .containerr .textblock,
    .containerr .textblock p {
        font-size: 100%;
        text-wrap: wrap;
    }

    .banner-leganCSR {
        font-size: 18px !important;
    }
}

@media only screen and (max-width:500px) {

    .containerr .textblock p {
        font-size: 80%;
    }

    .containerr .textblock .title {
        font-size: 100%;
    }

    .containerr .textblock .subtitle {
        font-size: 90%;
    }
}

@media (max-width:1150px) {
    .text {
        font-size: 1.3em;
    }
}

@media (max-width:1015px) {
    .text {
        font-size: 1.2em;
    }
}

@media (max-width:945px) {
    .text {
        font-size: 1.1em;
    }
}

@media (max-width:882px) {
    .containerFacility {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .containerFacility {
    grid-template-columns: repeat(1, 1fr);
    }
}