html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: url("../images/Blur.png") center/cover no-repeat;
    background-color: rgb(29, 48, 50);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5e7c1;
    --secondary-color: #1d3032;
    --tertiary-color: #dcdcd5;
}

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

.secondary-color {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    a {
        color: var(--secondary-color) !important;
    }
    p {
        color: var(--secondary-color) !important;
    }
}

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

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

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
p {
    color: var(--primary-color);
    transition: 0.4s ease-in-out;
    font-weight: 300;
    margin: 0;
}

h1 {
    font-size: 70px;
    font-family: cormorant garamond;
}

h2 {
    font-size: 55px;
    font-family: cormorant garamond;
}

h3 {
    font-size: 45px;
    font-family: cormorant garamond;
}

h4 {
    font-size: 30px;
    font-family: open sans;
}

h5 {
    font-size: 25px;
    font-family: open sans;
}

p {
    font-size: 20px;
    font-family: open sans;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

button {
    font-family: Montserrat;
    text-transform: uppercase;
    padding: 20px;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    &:hover {
        a {
            color: var(--secondary-color);
        }
        color: var(--secondary-color);
        background: var(--primary-color);
        border: 1px solid var(--primary-color);
        transition: all 0.3s ease-in-out;
    }
}

.container-fluid {
    padding: 0 140px;
}

.navbar-container {
    position: fixed;
    top: 30px;
    left: 140px;
    right: 140px;
    height: 115px;
    border-radius: 40px;
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    z-index: 999;
    .logo {
        width: 180px;
        height: 75px;
        image {
            object-fit: contain;
        }
    }
    .hamburger {
        display: none;
    }
    .mobile-items {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        padding: 35px;
        gap: 15px;

        display: flex;
        flex-direction: column;
        align-items: start;

        background-color: var(--secondary-color);
        border: 1px solid var(--primary-color);
        border-radius: 20px;
        opacity: 0;
        transform: translateY(-15px);
        pointer-events: none;

        transition: all 0.3s ease;
    }

    .items {
        display: flex;
        width: 85%;
        justify-content: space-between;
        .item {
            font-family: open sans;
            align-content: center;
            opacity: 0.5;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
            &:hover {
                opacity: 1;
                transition: all 0.3s ease-in-out;
            }
        }
        .item.active {
            opacity: 1;
        }
    }
}

.glass-blur {
    box-shadow: 0px 3px 6px #00000029;
    background: #ffffff25 0% 0% no-repeat padding-box;
    border: 1px solid #ffffff33;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Video background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Optional: dark overlay for readability */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* adjust */
    z-index: 0;
}

/* Ensure content is above overlay */
.hero-section .container-fluid {
    position: relative;
    z-index: 1;
}

.stats-container {
    display: flex;
    gap: 15px;
    .number {
        color: var(--secondary-color);
        font-size: 100px;
        font-family: cormorant garamond;
    }
    .label {
        color: var(--secondary-color);
        font-size: 25px;
        font-family: open sans;
    }
    .floating-image1 {
        position: absolute;
        top: 0;
        left: -250px;
        z-index: 5;
    }
    .floating-image2 {
        position: absolute;
        right: -250px;
        bottom: -250px;
        z-index: 5;
    }
    .floating-image3 {
        position: absolute;
        bottom: -350px;
        left: 27%;
        z-index: 5;
    }

    .column-1 {
        transform: translateY(100px);
    }
    .column-3 {
        transform: translateY(30px);
    }
    .column-4 {
        transform: translateY(200px);
    }
}

.card-img {
    height: 500px;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
    }
}

.card-text {
    line-height: 1.2;
    background-color: var(--tertiary-color);
    border-radius: 30px;
    text-align: center;
    align-content: center;
    height: 260px;
    justify-items: center;
    color: #1d3032 !important;
}

/* stagger effect */
.stats-grid > :nth-child(4),
.stats-grid > :nth-child(8) {
    transform: translateY(130px);
}

.stats-grid > :nth-child(5),
.stats-grid > :nth-child(9) {
    transform: translateY(-225px);
}

.stats-grid > :nth-child(6),
.stats-grid > :nth-child(10) {
    transform: translateY(60px);
}
.bar-card {
    position: relative;
    height: 675px;
    border-radius: 30px !important;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.owl-carousel,
.owl-stage-outer {
    border-radius: 30px;
}

/* overlay */
.bar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.4s ease;
}

/* content initial state */
.bar-content {
    position: absolute;
    bottom: 3%;
    left: 3%;
    transition: all 0.4s ease;
}

/* hide paragraph smoothly */
.bar-content-hover p {
    opacity: 0;
    transition:
        opacity 0.4s ease-in-out,
        transform 0.4s ease-in-out;
    position: absolute;
    left: 50%;
    bottom: 37%;
    transform: translateX(-50%);
    text-align: center;
    width: 70%;
}

.bar-content-hover button {
    opacity: 0;
    transition:
        opacity 0.4s ease-in-out,
        transform 0.4s ease-in-out;
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    text-align: center;
}

.bar-content-hover .links {
    opacity: 0;
    width: 100%;
    transition:
        opacity 0.4s ease-in-out,
        transform 0.4s ease-in-out;
    position: absolute;
    left: 50%;
    bottom: 3%;
    transform: translateX(-50%);
    text-align: center;
}

/* hover state */
.bar-card:hover .bar-content {
    bottom: 70%;
    left: 50%;
    width: 90%;
    text-align: center;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

/* paragraph reveal */
.bar-card:hover .bar-content-hover p {
    opacity: 1;
}

.bar-card:hover .bar-content-hover button {
    opacity: 1;
}

.bar-card:hover .bar-content-hover .links {
    opacity: 1;
}

/* overlay effect */
.bar-card:hover::before {
    background: rgba(30, 47, 49, 0.8);
}

.bar-card {
    transition: transform 0.5s ease;
    height: 650px;
}

.owl-nav .owl-prev {
    left: -90px !important;
    font-size: 90px !important;
    font-weight: 100 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease-in-out !important;
    &:hover {
        background-color: transparent !important;
        left: -95px !important;
        transition: all 0.3s ease-in-out !important;
    }
}

.owl-nav .owl-next {
    right: -90px !important;
    font-size: 90px !important;
    font-weight: 100 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease-in-out;
    &:hover {
        background-color: transparent !important;
        right: -95px !important;
        transition: all 0.3s ease-in-out !important;
    }
}

.br-20 {
    border-radius: 20px;
}

.br-30 {
    border-radius: 30px;
}

.br-40 {
    border-radius: 40px;
}

.bg-img {
    position: relative;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* overlay */
.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.4s ease;
}

/* content initial state */
.event-content {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
}

/* hide  */
.event-content a {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 0.4s ease-in-out,
        transform 0.4s ease-in-out;
}

/* hover state */
.event-card:hover .event-content {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

/* paragraph reveal */
.event-card:hover .event-content a {
    opacity: 1;
    transform: translateY(0);
    width: 79px;
    height: 79px;
}

/* overlay effect */
.event-card:hover::before {
    background: rgba(30, 47, 49, 0.8);
}

.event-card {
    transition: transform 0.5s ease;
}

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

.event-container {
    height: 450px;
    margin-top: 3rem;
}

.horizontal-scroll {
    overflow-x: auto;
    overflow-y: scroll; /* hide any vertical overflow */
    width: 100%;
    height: 600px; /* enough to fit 2 rows if tall items span 2 rows */
    z-index: 9999;
    margin-left: 140px;
}

.gallery {
    display: grid;
    grid-auto-flow: column; /* horizontal placement */
    grid-auto-columns: 398px; /* width of each base column */
    grid-auto-rows: 290px; /* row height */
    gap: 20px;
    height: 100%; /* ensure gallery fits container height */
}

.item.tall {
    grid-row: span 2; /* tall items span 2 rows */
}

.item.wide {
    grid-column: span 2;
}

.item.center {
    grid-column: span 2;
    grid-row: span 2;
    .playbutton {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 112px;
        height: 112px;
        z-index: 200;
    }
}

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

footer {
    font-size: 20px;
    .top {
        display: flex;
        justify-content: space-between;
        margin-bottom: 65px;
        .category {
            margin: 0;
            list-style: none;
            padding: 0;
            gap: 10px;
            display: flex;
            flex-direction: column;
        }
    }
    .page {
        margin-bottom: 4px;
    }
    .section {
        opacity: 0.6;
        transition: all 0.3s ease-in-out;

        &:hover {
            opacity: 1;
            transition: all 0.3s ease-in-out;
        }
    }
    .bottom {
        a {
            gap: 15px;
            align-items: center;
        }
        p {
            margin: 0;
        }
        .signature {
            opacity: 0.7;
            align-self: center;
            margin-top: 45px;
            line-height: 2;
            text-align: right;
        }
    }
}

.blog-paragraph {
    h1 {
        font-size: 55px;
    }
    h2 {
        font-size: 30px;
        padding-left: 20px;
        &::before {
            content: "";
            display: block;
            position: absolute;
            width: 5px;
            height: 22px;
            background: var(--primary-color);
            left: 0px;
            transform: translateY(5px);
        }
    }
    h3 {
        font-size: 25px;
        padding-left: 20px;
        &::before {
            content: "";
            display: block;
            position: absolute;
            width: 5px;
            height: 22px;
            background: var(--primary-color);
            left: 0px;
            transform: translateY(5px);
        }
    }
}

.blog-opacity {
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    &:hover {
        opacity: 1;
        transition: all 0.3s ease-in-out;
        &::after {
            opacity: 1;
            transition: all 0.3s ease-in-out;
        }
    }
    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 50px;
        height: 3px;
        background: var(--primary-color);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        margin-top: 5px;
    }
}

.blog-active {
    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 50px;
        height: 3px;
        background: var(--primary-color);
        opacity: 1;
        transition: all 0.3s ease-in-out;
        margin-top: 5px;
    }
}

.w-80 {
    width: 80%;
}

.w-85 {
    width: 85%;
}

.w-90 {
    width: 90%;
}

.hero {
    position: relative;
    background-position: center;
    background-size: cover;
    height: 520px;
    h1 {
        position: absolute;
        width: 65%;
        text-align: center;
        top: 65%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.team-container {
    width: 100%;
    height: 404px; /* enough to fit 2 rows if tall items span 2 rows */
    z-index: 9999;
}
.team-grid {
    display: grid;
    grid-auto-flow: column; /* horizontal placement */
    gap: 20px;
}

.team.tall {
    grid-row: span 2; /* tall teams span 2 rows */
}

.team.wide {
    grid-column: span 1;
}

.team.center {
    grid-column: span 2;
    grid-row: span 2;
}

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

/* Base styles (your original improved) */
input,
select {
    width: 100%;
    background-color: transparent;
    border: none;
    height: 60px;
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--primary-color);
}

input::placeholder {
    color: var(--primary-color);
}

input:focus,
select:focus {
    outline: none;
}

/* Remove default select arrow */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Remove default date icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.input-wrapper input,
.input-wrapper select {
    margin-bottom: 0;
}

/* Wrapper for custom icons */
.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

/* Shared icon styles */
.input-wrapper::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Select arrow */
.input-wrapper.select::after {
    background: url("../images/Arrow.svg") no-repeat center;
    background-size: contain;
}

/* Date icon */
.input-wrapper.date::after {
    background: url("../images/Calendar.svg") no-repeat center;
    background-size: contain;
}

.about-card {
    background-color: var(--primary-color);
    border-radius: 40px;
}

.border-primary-color {
    border: 1px solid var(--primary-color);
}

.popup-container {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;

    /* 👇 ADD THIS */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
    .popup {
        background-color: rgba(29, 48, 50, 0.9);
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 5%;
        .popup-close {
            position: absolute;
            top: 30px;
            right: 30px;
            cursor: pointer;
        }
        .col-lg-6 {
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* push one image to top, one to bottom */
            align-items: stretch; /* full width */
        }
        .popup-image-container {
            padding: 4% 1%;
            height: 100%;
            .popup-images {
                height: 100%;
            }
            .popup-image {
                height: 56%;
                width: 100%;
                object-fit: cover;
                border-radius: 40px;
            }
        }
    }
}

.popup-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

/* 👇 ACTIVE STATE */
.popup-container.active {
    opacity: 1;
    visibility: visible;
}

.popup-container.active .popup {
    transform: translateY(0) scale(1);
}

.h-460 {
    height: 460px;
}

.h-500 {
    height: 500px;
}

.image-container {
    width: 90%;
}

.event-card2 {
    display: flex;
    gap: 44px;

    .event-card-image-container {
        width: 300px;
        height: 300px;
        aspect-ratio: 1/1;
    }
    .icon {
        width: 84px;
        height: 84px;
    }
    .icon-container {
        position: relative;
    }

    .icon-container::before,
    .icon-container::after {
        content: "";
        position: absolute;
        left: 0;
        width: 385px;
        height: 1px;
        background: linear-gradient(
            to right,
            var(--primary-color) 0%,
            var(--primary-color) 70%,
            transparent 100%
        );
    }

    .icon-container::before {
        top: 0;
    }

    .icon-container::after {
        bottom: 0;
    }
}

.event-horizontal-card {
    height: 590px;
    .event-image1 {
        transform: translate(-140px, 75px);
        width: 340px;
        height: 404px;
    }
    .event-image2 {
        width: 340px;
        height: 404px;
    }
}

.testimonial-card {
    height: 415px;
    gap: 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    &.odd {
        background-color: var(--primary-color);
        h5,
        p,
        i {
            color: var(--secondary-color);
        }
    }
    &.even {
        color: var(--primary-color);
        background-color: transparent;
    }
    i {
        font-size: 45px;
        font-weight: 100;
        color: var(--primary-color);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    position: relative; /* important */
    overflow: hidden;
    height: 520px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* overlay */
.blog-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.716); /* overlay color */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.blog-card .top {
    position: relative;
    height: 50%;
    width: 100%;
}

.blog-card .date {
    position: absolute;
    top: 30px;
    left: 30px;
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    z-index: 2;
}

.blog-card .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.blog-card .bottom {
    height: 50%;
    width: 100%;
    h5 {
        min-height: 90px;
    }
}

.blog-card .bottom .content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        font-size: 20px;
    }
    * {
        font-family: inherit;
    }
}

.blog-card .link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    z-index: 11; /* above overlay */
}

/* hover effect */
.blog-card:hover::after {
    opacity: 1;
}

.blog-card:hover .link {
    opacity: 1;
}

.back-button {
    width: 15px;
    height: 30px;
    cursor: pointer;
}

.back-button-position {
    position: absolute;
    bottom: 60px;
}

.blog-title {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
    .date {
        border-radius: 30px;
        padding: 10px 20px;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        text-transform: uppercase;
        min-width: 100px;
    }
    h1 {
        font-size: 50px;
    }
}

.blog-card .blog-image {
    transition: transform 0.4s ease;
}

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

.tab:hover {
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    p {
        color: var(--secondary-color);
    }
}

.tab.active {
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-color: var(--secondary-color);
    p {
        color: var(--secondary-color);
    }
}

.tab {
    min-width: calc(100% / 5);
    transition: all 0.3s ease-in-out;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin: 0;
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

label {
    cursor: pointer;
}

.quote-bar-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}

/* Hide default checkbox */
.quote-bar-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom circle */
.custom-checkbox {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 18px;
    height: 18px;
    border: 2px solid #d6c6a5; /* your beige color */
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Inner dot (hidden by default) */
.custom-checkbox::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d6c6a5;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.2s ease;
}

/* ✅ When checked */
.quote-bar-card input:checked + .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Optional: glow or border effect when selected */
.quote-bar-card input:checked ~ p,
.quote-bar-card input:checked + .custom-checkbox {
    border-color: var(--primary-color);
}

/* Optional: overlay when selected */
.quote-bar-card input:checked ~ .overlay {
    opacity: 1;
}

.quote-bar-card {
    p {
        position: absolute;
        bottom: 15px;
        left: 20px;
    }
}

/* LOADER */
/* Loader base */
#page-loader {
    position: fixed;
    inset: 0;
    background: #f4f4f0;
    z-index: 99999;
    overflow: hidden;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

/* Filled part */
.loader-fill {
    height: 100%;
    width: 0%;
    background: #dcdcd6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Percentage */
.loader-text {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    font-size: 180px;
    color: #ffffff;
    will-change: transform, left;
}

/* 🔥 Page blur effect */
#main-content {
    filter: blur(10px);
    opacity: 0;
    transition: all 0.8s ease;
}

/* When loaded */
body.loaded #main-content {
    filter: blur(0);
    opacity: 1;
}

.only-mobile {
    display: none;
}

/*/////////////////////////  RESPONSIVE  /////////////////////////*/

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 900px) {
    .container-fluid {
        padding: 0 15px;
    }

    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 35px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 25px;
    }

    p {
        font-size: 15px;
    }

    a {
        text-decoration: none;
    }

    button {
        border-radius: 20px;
        font-size: 15px;
        height: 60px;
    }
    .bar-card:hover {
        .bar-content {
            bottom: 77% !important;
        }
        .bar-content-mobile {
            font-size: 30px !important;
        }
        .bar-paragraph-mobile {
            font-size: 12px !important;
            bottom: 20% !important;
        }
        .bar-text-mobile {
            font-size: 12px;
        }
        .bar-icon-mobile {
            width: 15px !important;
            height: 15px !important;
        }
    }

    .navbar-container {
        top: 20px;
        left: 20px;
        right: 20px;
        height: 97px;
        border-radius: 20px;
        padding: 24px 30px;
        .logo {
            width: 120px;
            height: 50px;
        }
        .items {
            display: none;
        }
        .hamburger {
            display: block;
        }

        .mobile-items.open {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
    }

    .loader-text {
        font-size: 100px;
    }

    .mobile-column {
        flex-direction: column !important;
    }

    .mobile-flex {
        display: flex;
    }

    .mobile-text-start {
        text-align: start !important;
    }

    .mobile-align-start {
        align-items: start !important;
    }

    .mobile-justify-content-end {
        justify-content: end;
    }

    .mobile-reverse-direction {
        flex-direction: column-reverse;
        display: flex;
    }

    .w-90,
    .w-80 {
        width: 100%;
    }

    .no-mobile {
        display: none !important;
    }

    .only-mobile {
        display: block;
    }

    .mobile-flex {
        display: flex;
    }

    .stats-container {
        .column-1,
        .column-2,
        .column-3,
        .column-4 {
            transform: translateY(0);
        }

        .floating-image1 {
            top: 350px;
            left: -200px;
        }

        .floating-image2 {
            right: -220px;
            bottom: 600px;
        }

        .floating-image3 {
            bottom: -235px;
            left: -25%;
        }
    }

    .bar-card {
        height: 280px;
    }

    .event-container {
        gap: 20px;
        height: fit-content;
        margin-top: 0;
    }

    .event-card-container {
        height: 350px;
    }

    .horizontal-scroll {
        overflow-x: auto;
        overflow-y: scroll; /* hide any vertical overflow */
        width: 100%;
        height: 360px; /* enough to fit 2 rows if tall items span 2 rows */
        z-index: 9999;
        margin-left: 15px;
    }

    .gallery {
        display: grid;
        grid-auto-flow: column; /* horizontal placement */
        grid-auto-columns: 315px; /* width of each base column */
        grid-auto-rows: 360px; /* row height */
        gap: 20px;
        height: 100%; /* ensure gallery fits container height */
    }

    .item.tall {
        grid-row: span 1; /* tall items span 1 rows */
    }

    .item.wide {
        grid-column: span 1;
    }

    .item.center {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mobile-h-430 {
        height: 430px !important;
    }

    footer {
        .top {
            flex-direction: column;
            gap: 20px;
        }
        .bottom {
            .socials {
                gap: 1rem !important;
            }
            .signature {
                text-align: start;
            }
        }
    }

    .hero {
        h1 {
            width: 100%;
            font-size: 35px;
        }
    }

    .team-container {
        height: fit-content;
        .team-grid {
            display: flex;
            flex-direction: column;
        }
    }
    .popup-container {
        .popup {
            padding: 20px;
        }
        .popup-image3 {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
    }
    .h-460 {
        height: fit-content;
    }
    .image-container {
        width: 100%;
    }
    .gap-4-mobile {
        gap: 2rem !important;
    }
    .blog-hamburger {
        width: 90%;
        margin: 0 auto;
    }

    .blog-mobile-items {
        position: relative;
        width: 100%;
        margin: 20px auto 0;

        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 15px;

        background-color: var(--secondary-color);
        border: 1px solid var(--primary-color);
        border-radius: 20px;

        max-height: 0;
        overflow: hidden;

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        padding: 0 35px;

        transition: all 0.35s ease;
    }

    .blog-mobile-items.open {
        max-height: 500px;
        padding: 35px;

        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .event-card-image-container {
        width: 100% !important;
        height: 100% !important;
    }
    .mobile-scale {
        transform: translate(-70px, -70px) scale(0.6);
    }
    .event-horizontal-card {
        height: fit-content;
    }

    .h-500 {
        height: fit-content;
    }
    #mobileTab p {
        transition: opacity 0.2s ease;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container-fluid {
        padding: 0 40px;
    }
    .navbar-container {
        left: 40px;
        right: 40px;
        .logo {
            width: 140px;
            height: 58px;
        }
    }
    .mobile-column {
        flex-direction: column !important;
    }

    .d-none-991 {
        display: none !important;
    }

    .mobile-flex {
        display: flex;
    }

    .hero-section {
        background-image: url("../images/homepage-hero2.png");
    }

    .mobile-text-start {
        text-align: start !important;
    }

    .mobile-align-start {
        align-items: start !important;
    }

    .mobile-justify-content-end {
        justify-content: end;
    }

    .mobile-reverse-direction {
        flex-direction: column-reverse;
        display: flex;
    }

    .no-mobile {
        display: none;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 45px;
    }

    h3 {
        font-size: 40px;
    }

    h4 {
        font-size: 25px;
    }

    h5 {
        font-size: 30px;
    }

    p {
        font-size: 15px;
    }

    a {
        text-decoration: none;
        font-size: 15px;
    }

    button {
        border-radius: 20px;
        font-size: 15px;
        height: 60px;
        padding: 10px;
    }

    .w-80,
    .w-90 {
        width: 100% !important;
    }

    .only-mobile {
        display: block;
    }

    .mobile-flex {
        display: flex;
    }

    .stats-container {
        .column-1,
        .column-2,
        .column-3,
        .column-4 {
            transform: translateY(0);
        }

        .floating-image1 {
            top: 350px;
            left: -200px;
        }

        .floating-image2 {
            right: -220px;
            bottom: 600px;
        }

        .floating-image3 {
            bottom: -235px;
            left: -25%;
        }
    }

    .bar-card {
        height: 280px;
    }

    .event-container {
        gap: 20px;
        height: fit-content;
        margin-top: 0;
    }

    .event-card-container {
        height: 350px;
    }

    .popup-container {
        .popup {
            padding: 20px;
        }
        .popup-image3 {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
    }
    .h-460 {
        height: fit-content;
    }
    .image-container {
        width: 100%;
    }
    .gap-4-mobile {
        gap: 2rem !important;
    }
    .blog-hamburger {
        width: 90%;
        margin: 0 auto;
    }

    .blog-mobile-items {
        position: relative;
        width: 100%;
        margin: 20px auto 0;

        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 15px;

        background-color: var(--secondary-color);
        border: 1px solid var(--primary-color);
        border-radius: 20px;

        max-height: 0;
        overflow: hidden;

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        padding: 0 35px;

        transition: all 0.35s ease;
    }

    .blog-mobile-items.open {
        max-height: 500px;
        padding: 35px;

        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .event-card-image-container {
        width: 100% !important;
        height: 100% !important;
    }
    .mobile-scale {
        transform: translate(60px, -55px) scale(0.8);
    }
    .event-horizontal-card {
        height: fit-content;
    }

    .h-500 {
        height: fit-content;
    }
    #mobileTab p {
        transition: opacity 0.2s ease;
    }

    .bar-card {
        height: 280px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1500px) {
    .container-fluid {
        padding: 0 50px;
    }

    .navbar-container {
        left: 50px;
        right: 50px;
    }

    .bar-card {
        .bar-content {
            bottom: 80% !important;
        }
    }

    .h-500 {
        height: fit-content;
    }

    .event-horizontal-card {
        height: fit-content;
        flex-direction: column;
        align-items: center;
    }
    .mobile-scale {
        transform: translate(60px, -55px) scale(0.8);
    }

    .tablet-column {
        flex-direction: column;
        gap: 20px;
    }

    .no-tablet {
        display: none;
    }
}

@keyframes floatSlow {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatMedium {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatFast {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-image1 {
    animation: floatFast 3s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-image2 {
    animation: floatMedium 4s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-image3 {
    animation: floatSlow 3.5s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-image1,
.floating-image2,
.floating-image3 {
    will-change: transform;
}

.number::after {
    content: "+";
}

.rich-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 40px;
    margin-bottom: 60px;
}

.rich-content br {
    display: block;
    margin-bottom: 30px;
}

.blog-paragraph {
    table {
        width: 100%;
    }
    td {
        border: 1px solid var(--primary-color);
        padding: 30px;
    }
}

.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.success-popup-content {
    background: #1d3032;
    padding: 40px;
    border-radius: 40px;
    max-width: 1000px;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: 0.3s ease;
    button {
        width: 150px;
        margin-top: 30px;
    }
}

.success-popup.active .success-popup-content {
    transform: translateY(0);
}
