.hero-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Hardware acceleration for smoother scrolling */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* will-change: transform; Removed - causes performance issues when always active */
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* will-change: opacity; Removed - only use when actively animating */
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay,
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-left: 4vw;
    padding-top: 8%;
    box-sizing: border-box;
}

.hero-event-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(30, 44, 116, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    width: 50%;
    min-width: 340px;
    max-width: 900px;
    min-height: 400px;
    max-height: 600px;
    padding: 0;
    gap: 0;
    text-align: left;
    color: #1E2C74;
    font-family: var(--main-font);
    margin-bottom: 2rem;
    /* backdrop-filter: blur(8px); Removed for performance - causes jank */
    animation: fadeInUp 0.7s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
    overflow: hidden;
    /* transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); Removed - not needed */
}

.hero-event-split {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
}

.hero-event-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 48px 36px;
    min-width: 0;
}

.hero-event-image-side {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-width: 0;
    background: none;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.hero-event-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 0 18px 18px 0;
    box-shadow: none;
    background: #eee;
    display: block;
    flex-shrink: 0;
}

.hero-event-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1E2C74;
    letter-spacing: 1px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-event-desc {
    font-size: 1.15rem;
    color: #1E2C74;
    margin: 0 0 18px 0;
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-event-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.hero-event-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    outline: none;
    min-width: 0;
    min-height: 0;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.hero-event-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-event-btn:hover::before {
    left: 100%;
}

.hero-event-btn:hover,
.hero-event-btn:focus {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: scale(1.08);
}


/* Desktop - Left-aligned card */
@media (min-width: 1200px) {
    .hero-content {
        justify-content: flex-start;
        padding-left: 6vw;
        padding-top: 6%;
    }

    .hero-event-card {
        width: 50%;
        max-width: 700px;
        min-width: 340px;
    }
}

/* Tablet - One full-width card */
@media (max-width: 1199px) and (min-width: 769px) {
    .hero-section {
        height: auto;
        min-height: 400px;
    }

    .hero-content {
        justify-content: center;
        padding-left: 2vw;
        padding-right: 2vw;
        padding-top: 5%;
    }

    .hero-event-card {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .hero-event-dots-scroll-btn {
        font-size: 20px;
    }
}

/* Mobile - Full-width card, swipeable */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bg-carousel {
        height: 50vh;
        min-height: 300px;
        position: relative;
        flex-shrink: 0;
        z-index: 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
        position: relative;
        height: auto;
        min-height: auto;
        z-index: 1;
        background: transparent;
    }

    .hero-event-card {
        width: 92vw;
        max-width: 92vw;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 0 4vw;
        gap: 0;
        touch-action: auto;
        position: relative;
        margin-top: 0;
        margin-bottom: 2rem;
        min-height: 500px;
        max-height: 700px;
        border-style: double;
    }

    .hero-event-split {
        flex-direction: column;
        min-height: 500px;
        max-height: 700px;
    }

    .hero-event-info {
        padding: 28px 10px;
        align-items: center;
        gap: 18px;
        flex: 1;
    }

    .hero-event-image-side {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        flex-shrink: 0;
    }

    .hero-event-image {
        border-radius: 18px 18px 0 0;
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        object-fit: cover;
        object-position: center;
    }

    .hero-event-title {
        font-size: 1.3rem;
    }

    .hero-event-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .hero-event-dots-scroll-btn {
        font-size: 18px;
    }

    .hero-event-list-dot {
        width: 10px;
        height: 10px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-event-progress-container {
    width: calc(100% - 0px);
    height: 10px;
    background: rgba(215, 38, 61, 0.18);
    border-radius: 0 0 4px 4px;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-event-progress-bar {
    transform: scaleX(0);
    transform-origin: left;
    height: 100%;
    width: 100%;
    /* Full width, use transform to scale */
    background: #d7263d;
    border-radius: 4px;
    transition: transform 9s linear;
}

.hero-event-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.hero-event-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
    height: 16px;
    /* Fixed height to prevent layout shifts */
}

.hero-event-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: 2px solid rgba(215, 38, 61, 0.3);
    flex-shrink: 0;
    opacity: 1;
    transform: scale(1);
    position: relative;
    margin: 0;
    /* Remove any default margins */
}

.hero-event-list-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #d7263d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.hero-event-list-dot:hover {
    border-color: rgba(215, 38, 61, 0.6);
    transform: scale(1.3);
}

.hero-event-list-dot.active {
    border-color: #d7263d;
    transform: scale(1.4);
}

.hero-event-list-dot.active::before {
    width: 100%;
    height: 100%;
}

.hero-event-list-dot.edge-dot {
    transform: scale(0.8);
    opacity: 0.5;
    border-color: rgba(215, 38, 61, 0.2);
}

.hero-event-list-dot.edge-dot.active {
    transform: scale(1.2);
    opacity: 1;
    border-color: #d7263d;
}

/* Dot animation classes */
.hero-event-list-dot.dot-fade-in {
    animation: dotFadeIn 0.3s ease-out forwards;
}

.hero-event-list-dot.dot-fade-out {
    animation: dotFadeOut 0.3s ease-out forwards;
}

@keyframes dotFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

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

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

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.hero-event-dots-scroll-btn {
    color: #d7263d;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    user-select: none;
}

.hero-event-dots-scroll-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #ff5252;
}

.hero-event-dots-scroll-left {
    margin-right: 10px;
}

.hero-event-dots-scroll-right {
    margin-left: 10px;
}

.hero-event-overflow-dot {
    font-size: 12px;
    color: #d7263d;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.services-offered-section {
    width: 100%;
    /* background: #fffbe9; */
    padding: 48px 0 36px 0;
    display: flex;
    justify-content: center;
    min-height: 420px;
    height: auto;
    margin-top: 32px;
}

.services-offered-container {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    width: 100%;
    max-width: 1500px;
    padding: 0 2rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: stretch;
    position: relative;
    height: fit-content;
    overflow-x: hidden;
}

.service-block {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(30, 44, 116, 0.08);
    padding: 20px 10px 18px 10px;
    min-width: 160px;
    max-width: 400px;
    width: 32%;
    flex-basis: 32%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    will-change: auto;
    left: auto;
    top: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 24px;
    box-sizing: border-box;
    overflow: visible;
    margin-top: 18px;
}

/* Service block swim styles handled by JavaScript */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.service-title {
    font-family: var(--font-title);
    font-weight: 400;
    color: #d7263d;
    font-size: 2.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-desc {
    font-size: 1.05rem;
    color: #444;
    opacity: 0.92;
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-knob {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d7263d;
    border: 3px solid #fffbe9;
    box-shadow: 0 2px 8px rgba(30, 44, 116, 0.10);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
    z-index: 3;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-knob:active {
    background: #8B0000;
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.18);
    cursor: grabbing;
}

.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 900px) {
    .service-image {
        height: 100px;
    }
}

@media (max-width: 900px) {
    .services-offered-container {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding: 0 2vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .service-block {
        max-width: 420px;
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
        margin-bottom: 24px;
        padding: 12px 4vw;
        box-sizing: border-box;
    }

    .service-title {
        font-size: 1.2rem;
    }
}