/* ==================================================
   FOOTER SECTION
   ================================================== */
.footer-section {
    padding: 100px 0 40px;
    background: #ffffff;
    color: var(--footer-text);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.footer-left {
    max-width: 500px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    display: block;
}

.subscribe-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-subscribe-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    border-radius: 50px;
    border: 1px solid #d5d5d5;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--primary-black);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary-black);
}

.subscribe-btn {
    background: var(--accent-yellow);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    background: #ffffff;
    color: var(--accent-yellow);
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 24px;
}

.footer-col-link {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #777;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.footer-col-link:hover {
    color: var(--primary-black);
}

.footer-social-text {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.footer-social-text a {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-text a:hover {
    color: var(--text-gray);
}

.footer-bottom-bar {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.footer-bottom-bar p {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
}

/* Responsiveness */
@media (max-width: 991px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col-brand {
        grid-column: span 2;
    }

    .footer-social-text {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col-brand {
        grid-column: span 2;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col:nth-child(4) {
        grid-column: span 2;
    }

    .footer-subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }

    .input-wrapper {
        max-width: 100%;
        width: 100%;
        min-width: unset;
    }

    .subscribe-btn {
        width: 100%;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .footer-logo-img {
        height: 60px;
    }
}

/* ==================================================
   VIDEO MODAL (Global)
   ================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 10000;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-video-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close-video-btn:hover {
    color: var(--accent-yellow);
}

/* ==================================================
   NEWSLETTER OVERLAP BOX
   ================================================== */
.newsletter-overlap-box {
    background-color: var(--accent-yellow);
    /* Theme yellow */
    padding: 50px 60px;
    margin-top: -150px;
    /* Overlaps top section */
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    /* Added theme rounding */
}

.newsletter-content {
    flex: 1;
    color: #ffffff;
}

.newsletter-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex: 1;
    max-width: 500px;
    background: #ffffff;
    padding: 5px;
    border-radius: 50px;
    /* Theme pill shape */
    position: relative;
    /* For floating bubbles */
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: var(--primary-black);
    border-radius: 50px 0 0 50px;
}

/* Fix for Chrome's pale blue autofill background */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus,
.newsletter-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #ffffff inset !important;
    -webkit-text-fill-color: var(--primary-black) !important;
    border-radius: 45px 0 0 45px;
    transition: background-color 5000s ease-in-out 0s;
}

.newsletter-form button {
    position: relative;
    overflow: hidden;
    background: var(--accent-yellow);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.newsletter-form button:hover {
    background: #ffffff;
    color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(79, 148, 210, 0.4);
    transform: translateY(-2px);
}

.subscribe-btn-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: bubbleAnim 0.6s linear;
    pointer-events: none;
    z-index: 3;
}

@keyframes bubbleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Bubbles from Behind Button */
.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, rgba(200, 230, 255, 0.2), rgba(180, 220, 255, 0.6));
    box-shadow: inset 6px 2px 8px rgba(255, 255, 255, 0.9), inset -2px -2px 6px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 0;
    /* Stays behind the button */
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .newsletter-overlap-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        margin-top: -140px;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .newsletter-overlap-box {
        padding: 30px 20px;
        margin-top: -130px;
        gap: 20px;
    }

    .newsletter-content h3 {
        font-size: 26px;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
    }

    .newsletter-form input {
        background: #ffffff;
        width: 100%;
        border-radius: 50px;
    }

    .newsletter-form input:-webkit-autofill,
    .newsletter-form input:-webkit-autofill:hover,
    .newsletter-form input:-webkit-autofill:focus,
    .newsletter-form input:-webkit-autofill:active {
        border-radius: 50px;
    }

    .newsletter-form button {
        width: 100%;
    }
}