/* Hero Section Styles - Wedding Mele */
.wedding-mele-hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.wedding-mele-carousel {
    width: 100%;
    position: relative;
}

.wedding-mele-carousel-inner {
    width: 100%;
}

/* Desktop: hero slide max-height 450px */
.wedding-mele-carousel-item {
    width: 100%;
    position: relative;
    height: 450px;
    max-height: 450px;
}

.wedding-mele-slide-image {
    width: 100%;
    height: 482px;
    max-height: 484px;
    object-fit: cover;
    display: block;
}


/* Heart Overlay Styles */
.wedding-mele-heart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 11%;
    z-index: 10;
    pointer-events: none;
}

.wedding-mele-heart-container {
    position: relative;
    animation: wedding-mele-heart-float 3s ease-in-out infinite;
}

.wedding-mele-heart-shape {
    position: relative;
    width: 750px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wedding-mele-heart-pulse 2s ease-in-out infinite;
}

/* SVG Heart - Hidden (removed visual heart, keeping sparkles and text) */
.wedding-mele-heart-svg {
    display: none;
}

.wedding-mele-heart-path {
    display: none;
}

/* Sparkling Outline Dots */
.wedding-mele-heart-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.wedding-mele-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    /* Mask so only heart shape shows – no box */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    border: none;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: wedding-mele-sparkle-twinkle 2s ease-in-out infinite;
}

.wedding-mele-sparkle:nth-child(odd) {
    width: 10px;
    height: 10px;
}

.wedding-mele-sparkle:nth-child(3n) {
    width: 6px;
    height: 6px;
}

/* Position sparkles around heart outline - more dense and accurate */
.wedding-mele-sparkle:nth-child(1) { top: 10%; left: 30%; animation-delay: 0s; }
.wedding-mele-sparkle:nth-child(2) { top: 5%; left: 40%; animation-delay: 0.05s; }
.wedding-mele-sparkle:nth-child(3) { top: 2%; left: 50%; animation-delay: 0.1s; }
.wedding-mele-sparkle:nth-child(4) { top: 5%; left: 60%; animation-delay: 0.15s; }
.wedding-mele-sparkle:nth-child(5) { top: 10%; left: 70%; animation-delay: 0.2s; }
.wedding-mele-sparkle:nth-child(6) { top: 18%; left: 76%; animation-delay: 0.25s; }
.wedding-mele-sparkle:nth-child(7) { top: 26%; left: 80%; animation-delay: 0.3s; }
.wedding-mele-sparkle:nth-child(8) { top: 34%; left: 82%; animation-delay: 0.35s; }
.wedding-mele-sparkle:nth-child(9) { top: 42%; left: 83%; animation-delay: 0.4s; }
.wedding-mele-sparkle:nth-child(10) { top: 50%; left: 83%; animation-delay: 0.45s; }
.wedding-mele-sparkle:nth-child(11) { top: 58%; left: 82%; animation-delay: 0.5s; }
.wedding-mele-sparkle:nth-child(12) { top: 66%; left: 80%; animation-delay: 0.55s; }
.wedding-mele-sparkle:nth-child(13) { top: 74%; left: 76%; animation-delay: 0.6s; }
.wedding-mele-sparkle:nth-child(14) { top: 81%; left: 70%; animation-delay: 0.65s; }
.wedding-mele-sparkle:nth-child(15) { top: 85%; left: 60%; animation-delay: 0.7s; }
.wedding-mele-sparkle:nth-child(16) { top: 87%; left: 50%; animation-delay: 0.75s; }
.wedding-mele-sparkle:nth-child(17) { top: 85%; left: 40%; animation-delay: 0.8s; }
.wedding-mele-sparkle:nth-child(18) { top: 81%; left: 30%; animation-delay: 0.85s; }
.wedding-mele-sparkle:nth-child(19) { top: 74%; left: 24%; animation-delay: 0.9s; }
.wedding-mele-sparkle:nth-child(20) { top: 66%; left: 20%; animation-delay: 0.95s; }
.wedding-mele-sparkle:nth-child(21) { top: 58%; left: 17%; animation-delay: 1s; }
.wedding-mele-sparkle:nth-child(22) { top: 50%; left: 17%; animation-delay: 1.05s; }
.wedding-mele-sparkle:nth-child(23) { top: 42%; left: 18%; animation-delay: 1.1s; }
.wedding-mele-sparkle:nth-child(24) { top: 34%; left: 20%; animation-delay: 1.15s; }
.wedding-mele-sparkle:nth-child(25) { top: 26%; left: 24%; animation-delay: 1.2s; }
.wedding-mele-sparkle:nth-child(26) { top: 18%; left: 30%; animation-delay: 1.25s; }
.wedding-mele-sparkle:nth-child(27) { top: 14%; left: 35%; animation-delay: 0.08s; }
.wedding-mele-sparkle:nth-child(28) { top: 8%; left: 45%; animation-delay: 0.12s; }
.wedding-mele-sparkle:nth-child(29) { top: 8%; left: 55%; animation-delay: 0.18s; }
.wedding-mele-sparkle:nth-child(30) { top: 14%; left: 65%; animation-delay: 0.22s; }
.wedding-mele-sparkle:nth-child(31) { top: 22%; left: 73%; animation-delay: 0.28s; }
.wedding-mele-sparkle:nth-child(32) { top: 38%; left: 81%; animation-delay: 0.32s; }
.wedding-mele-sparkle:nth-child(33) { top: 54%; left: 82%; animation-delay: 0.38s; }
.wedding-mele-sparkle:nth-child(34) { top: 70%; left: 78%; animation-delay: 0.42s; }
.wedding-mele-sparkle:nth-child(35) { top: 82%; left: 65%; animation-delay: 0.48s; }
.wedding-mele-sparkle:nth-child(36) { top: 88%; left: 55%; animation-delay: 0.52s; }
.wedding-mele-sparkle:nth-child(37) { top: 88%; left: 45%; animation-delay: 0.58s; }
.wedding-mele-sparkle:nth-child(38) { top: 82%; left: 35%; animation-delay: 0.62s; }
.wedding-mele-sparkle:nth-child(39) { top: 70%; left: 22%; animation-delay: 0.68s; }
.wedding-mele-sparkle:nth-child(40) { top: 54%; left: 18%; animation-delay: 0.72s; }
.wedding-mele-sparkle:nth-child(41) { top: 38%; left: 19%; animation-delay: 0.78s; }
.wedding-mele-sparkle:nth-child(42) { top: 22%; left: 27%; animation-delay: 0.82s; }
.wedding-mele-sparkle:nth-child(43) { top: 30%; left: 30%; animation-delay: 0.88s; }
.wedding-mele-sparkle:nth-child(44) { top: 46%; left: 21%; animation-delay: 0.92s; }
.wedding-mele-sparkle:nth-child(45) { top: 62%; left: 19%; animation-delay: 0.98s; }
.wedding-mele-sparkle:nth-child(46) { top: 78%; left: 26%; animation-delay: 1.02s; }
.wedding-mele-sparkle:nth-child(47) { top: 30%; left: 70%; animation-delay: 1.08s; }
.wedding-mele-sparkle:nth-child(48) { top: 46%; left: 79%; animation-delay: 1.12s; }

.wedding-mele-heart-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
    animation: wedding-mele-text-fade 2s ease-out;
}

.wedding-mele-heart-text-1 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #2F4F75;
    margin-bottom: 15px;
    letter-spacing: 1px;
    animation: wedding-mele-text-slide-up 1s ease-out 0.5s both;
}

.wedding-mele-heart-text-2 {
    font-family: 'Volkhov', serif;
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    color: #2F4F75;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: wedding-mele-text-slide-up 1s ease-out 0.7s both;
}

.wedding-mele-heart-divider {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wedding-mele-divider-expand 1s ease-out 1s both;
}

.wedding-mele-divider-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    animation: wedding-mele-divider-fade 1.5s ease-out 1s both;
}

.wedding-mele-heart-text-3 {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2F4F75;
    margin-top: 15px;
    letter-spacing: 2px;
    animation: wedding-mele-text-slide-up 1s ease-out 1.2s both;
}

/* Particles Animation */
.wedding-mele-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wedding-mele-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    /* Mask so only heart shape shows – no box */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    border: none;
    outline: none;
    box-shadow: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    animation: wedding-mele-particle-float 8s infinite ease-in-out;
}

.wedding-mele-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.wedding-mele-particle:nth-child(2) {
    left: 20%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.wedding-mele-particle:nth-child(3) {
    left: 30%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.wedding-mele-particle:nth-child(4) {
    left: 40%;
    top: 80%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

.wedding-mele-particle:nth-child(5) {
    left: 50%;
    top: 30%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.wedding-mele-particle:nth-child(6) {
    left: 60%;
    top: 70%;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

.wedding-mele-particle:nth-child(7) {
    left: 70%;
    top: 25%;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.wedding-mele-particle:nth-child(8) {
    left: 80%;
    top: 55%;
    animation-delay: 1.8s;
    animation-duration: 6.8s;
}

.wedding-mele-particle:nth-child(9) {
    left: 15%;
    top: 75%;
    animation-delay: 0.3s;
    animation-duration: 7.2s;
}

.wedding-mele-particle:nth-child(10) {
    left: 25%;
    top: 15%;
    animation-delay: 1.2s;
    animation-duration: 8.2s;
}

.wedding-mele-particle:nth-child(11) {
    left: 35%;
    top: 65%;
    animation-delay: 2.2s;
    animation-duration: 6.3s;
}

.wedding-mele-particle:nth-child(12) {
    left: 45%;
    top: 35%;
    animation-delay: 0.6s;
    animation-duration: 7.8s;
}

.wedding-mele-particle:nth-child(13) {
    left: 55%;
    top: 85%;
    animation-delay: 1.6s;
    animation-duration: 8.8s;
}

.wedding-mele-particle:nth-child(14) {
    left: 65%;
    top: 45%;
    animation-delay: 0.9s;
    animation-duration: 7.3s;
}

.wedding-mele-particle:nth-child(15) {
    left: 75%;
    top: 20%;
    animation-delay: 2.8s;
    animation-duration: 6.7s;
}

.wedding-mele-particle:nth-child(16) {
    left: 85%;
    top: 50%;
    animation-delay: 1.4s;
    animation-duration: 8.3s;
}

/* Animations */
@keyframes wedding-mele-heart-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes wedding-mele-heart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes wedding-mele-heart-glow {
    0%, 100% {
        filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.15));
    }
    50% {
        filter: drop-shadow(0 6px 35px rgba(0, 85, 165, 0.25));
    }
}

@keyframes wedding-mele-sparkle-twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes wedding-mele-heart-draw {
    0% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

@keyframes wedding-mele-text-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes wedding-mele-text-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wedding-mele-divider-expand {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes wedding-mele-divider-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wedding-mele-particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(10px) scale(1.2);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.8;
    }
}

/* Carousel Indicators */
.wedding-mele-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wedding-mele-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.wedding-mele-carousel-indicators button.active {
    background-color: #ffffff;
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.wedding-mele-carousel-indicators button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Controls */
.wedding-mele-carousel-control-prev,
.wedding-mele-carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #0055A5;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

.wedding-mele-carousel-control-prev {
    left: 20px;
}

.wedding-mele-carousel-control-next {
    right: 20px;
}

.wedding-mele-carousel-control-prev:hover,
.wedding-mele-carousel-control-next:hover {
    opacity: 1;
    background-color: #003d7a;
    transform: translateY(-50%) scale(1.1);
}

.wedding-mele-carousel-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wedding-mele-heart-overlay {
        padding-left: 5%;
        justify-content: center;
    }

    .wedding-mele-heart-shape {
        width: 380px;
        height: 340px;
    }

    .wedding-mele-heart-text-2 {
        font-size: 36px;
    }

    .wedding-mele-heart-text-1 {
        font-size: 16px;
    }

    .wedding-mele-heart-text-3 {
        font-size: 20px;
    }
}

@media (max-width: 991.98px) {
    .wedding-mele-carousel-control-prev,
    .wedding-mele-carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .wedding-mele-carousel-control-prev {
        left: 15px;
    }

    .wedding-mele-carousel-control-next {
        right: 15px;
    }

    .wedding-mele-carousel-indicators {
        bottom: 20px;
    }
}

/* iPad / Tablet: slider height 20vh */
@media (min-width: 768px) and (max-width: 1024px) {
    .wedding-mele-carousel-item {
        height: 20vh;
        max-height: 20vh;
    }

    .wedding-mele-slide-image {
        height: 20vh;
        max-height: 20vh;
    }
}

@media (max-width: 767.98px) {
    .wedding-mele-carousel-item {
        height: 60vh;
        max-height: 60vh;
    }

    .wedding-mele-slide-image {
        height: 60vh;
        max-height: 60vh;
    }

    .wedding-mele-heart-overlay {
        padding-left: 0;
        justify-content: center;
        align-items: center;
    }

    .wedding-mele-heart-shape {
        width: 320px;
        height: 280px;
    }

    .wedding-mele-heart-content {
        padding: 30px 20px;
    }

    .wedding-mele-heart-text-1 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .wedding-mele-heart-text-2 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .wedding-mele-heart-text-3 {
        font-size: 18px;
        margin-top: 10px;
    }

    .wedding-mele-heart-divider {
        margin: 15px 0;
    }

    .wedding-mele-divider-image {
        width: 160px;
    }

    .wedding-mele-carousel-control-prev,
    .wedding-mele-carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .wedding-mele-carousel-control-prev {
        left: 10px;
    }

    .wedding-mele-carousel-control-next {
        right: 10px;
    }

    .wedding-mele-carousel-icon {
        width: 16px;
        height: 16px;
    }

    .wedding-mele-carousel-indicators {
        bottom: 15px;
    }

    .wedding-mele-carousel-indicators button {
        width: 10px;
        height: 10px;
    }

    .wedding-mele-carousel-indicators button.active {
        width: 25px;
    }
}

@media (max-width: 575.98px) {
    .wedding-mele-carousel-item {
        height: 15vh;
        max-height: 15vh;
    }

    .wedding-mele-slide-image {
        height: 15vh;
        max-height: 15vh;
    }

    .wedding-mele-heart-shape {
        width: 280px;
        height: 240px;
    }

    .wedding-mele-heart-content {
        padding: 25px 15px;
    }

    .wedding-mele-heart-text-1 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .wedding-mele-heart-text-2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .wedding-mele-heart-text-3 {
        font-size: 16px;
        margin-top: 8px;
    }

    .wedding-mele-heart-divider {
        margin: 12px 0;
    }

    .wedding-mele-divider-image {
        width: 140px;
    }

    .wedding-mele-carousel-control-prev,
    .wedding-mele-carousel-control-next {
        width: 30px;
        height: 30px;
    }

    .wedding-mele-carousel-control-prev {
        left: 8px;
    }

    .wedding-mele-carousel-control-next {
        right: 8px;
    }

    .wedding-mele-carousel-icon {
        width: 14px;
        height: 14px;
    }

    .wedding-mele-carousel-indicators {
        bottom: 10px;
    }

    .wedding-mele-carousel-indicators button {
        width: 8px;
        height: 8px;
    }

    .wedding-mele-carousel-indicators button.active {
        width: 20px;
    }
}
