
/* =========================================================
   ROUSHAN BACHPAN UTSAV
   Standalone Event Landing Page
   ========================================================= */


/* ---------------------------------------------------------
   1. GLOBAL RESET AND PAGE FOUNDATION
   --------------------------------------------------------- */

.rns-bu-standalone-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #073b78;
}

.rns-bu-standalone-page #rns-bu-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.rns-bu-page {
    --rns-blue: #073b78;
    --rns-dark-blue: #052b5c;
    --rns-yellow: #ffc928;
    --rns-red: #e53232;
    --rns-white: #ffffff;

    width: 100%;
    margin: 0;
    color: var(--rns-blue);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.rns-bu-page *,
.rns-bu-page *::before,
.rns-bu-page *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   2. HERO SECTION
   --------------------------------------------------------- */

.rns-bu-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--rns-blue);
}

.rns-bu-hero-artwork {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.rns-bu-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}


/* ---------------------------------------------------------
   3. OFFICIAL SCHOOL LOGO
   --------------------------------------------------------- */

.rns-bu-actual-logo {
    position: absolute;
    top: 2.5%;
    left: 5%;
    z-index: 3;

    display: block;
    width: clamp(150px, 22vw, 300px);
    height: auto;
    max-height: 100px;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left center;
}


/* ---------------------------------------------------------
   4. HOMEPAGE BUTTON
   --------------------------------------------------------- */

.rns-bu-topbar {
    position: absolute;
    top: 24px;
    right: 5%;
    z-index: 5;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.rns-bu-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 22px;

    border: 2px solid var(--rns-blue);
    border-radius: 40px;

    background: var(--rns-white);
    color: var(--rns-blue);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.rns-bu-home-button:hover,
.rns-bu-home-button:focus {
    background: var(--rns-yellow);
    border-color: var(--rns-blue);
    color: var(--rns-blue);
    text-decoration: none;
}

.rns-bu-home-button:focus-visible {
    outline: 3px solid var(--rns-yellow);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   5. REGISTRATION SECTION
   --------------------------------------------------------- */

.rns-bu-registration {
    width: min(100% - 40px, 1100px);
    margin: 45px auto;
    padding: 40px;

    border: 3px solid var(--rns-yellow);
    border-radius: 22px;

    background: var(--rns-white);
    color: var(--rns-blue);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.rns-bu-registration form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.rns-bu-registration p {
    margin: 0 0 20px;
    padding: 0;
}

.rns-bu-registration label {
    display: block;
    margin-bottom: 8px;

    color: var(--rns-dark-blue);

    font-size: 15px;
    font-weight: 700;
}

.rns-bu-registration input[type="text"],
.rns-bu-registration input[type="tel"],
.rns-bu-registration input[type="email"],
.rns-bu-registration textarea {
    display: block;
    width: 100%;
    min-height: 48px;

    margin: 0;
    padding: 12px 15px;

    border: 1px solid #b8c9dd;
    border-radius: 10px;

    background: #ffffff;
    color: #172b46;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;

    box-shadow: none;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.rns-bu-registration textarea {
    min-height: 100px;
    resize: vertical;
}

.rns-bu-registration input:focus,
.rns-bu-registration textarea:focus {
    border-color: var(--rns-blue);
    box-shadow: 0 0 0 3px rgba(7, 59, 120, 0.12);
}


/* ---------------------------------------------------------
   6. REGISTRATION SUBMIT BUTTON
   --------------------------------------------------------- */

.rns-bu-registration button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;

    margin: 10px 0 0;
    padding: 15px 25px;

    border: 2px solid var(--rns-blue);
    border-radius: 12px;

    background: var(--rns-blue);
    color: var(--rns-white);

    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.rns-bu-registration button[type="submit"]:hover {
    background: var(--rns-yellow);
    color: var(--rns-dark-blue);
    transform: translateY(-2px);
}

.rns-bu-registration button[type="submit"]:focus-visible {
    outline: 3px solid var(--rns-yellow);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   7. HONEYPOT FIELD
   --------------------------------------------------------- */

.rns-bu-honeypot {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* ---------------------------------------------------------
   8. STATUS NOTICES
   --------------------------------------------------------- */

.rns-bu-notice {
    width: 100%;
    margin: 0 auto 25px;
    padding: 16px 20px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.rns-bu-notice--error {
    border: 1px solid #efb4b4;
    background: #fff1f1;
    color: #a51e1e;
}


/* ---------------------------------------------------------
   9. GATE PASS AREA
   --------------------------------------------------------- */

.rns-bu-registration > *:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   10. TABLET RESPONSIVENESS
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    .rns-bu-topbar {
        top: 18px;
        right: 4%;
    }

    .rns-bu-home-button {
        padding: 11px 17px;
        font-size: 13px;
    }

    .rns-bu-actual-logo {
        width: clamp(140px, 24vw, 240px);
        max-height: 80px;
    }

    .rns-bu-registration {
        width: min(100% - 32px, 900px);
        margin: 35px auto;
        padding: 32px;
    }
}


/* ---------------------------------------------------------
   11. MOBILE RESPONSIVENESS
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .rns-bu-topbar {
        top: 10px;
        right: 3%;
    }

    .rns-bu-home-button {
        gap: 6px;
        padding: 8px 11px;

        border-width: 1px;

        font-size: 10px;
    }

    .rns-bu-actual-logo {
        top: 2%;
        left: 3%;

        width: clamp(105px, 32vw, 165px);
        max-height: 55px;
    }

    .rns-bu-registration {
        width: calc(100% - 24px);
        margin: 24px auto;
        padding: 22px 16px;

        border-width: 2px;
        border-radius: 16px;
    }

    .rns-bu-registration label {
        font-size: 14px;
    }

    .rns-bu-registration input[type="text"],
    .rns-bu-registration input[type="tel"],
    .rns-bu-registration input[type="email"],
    .rns-bu-registration textarea {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 16px;
    }

    .rns-bu-registration button[type="submit"] {
        min-height: 54px;
        padding: 13px 16px;
        font-size: 16px;
    }
}


/* ---------------------------------------------------------
   12. SMALL MOBILE DEVICES
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .rns-bu-home-button {
        padding: 7px 9px;
        font-size: 9px;
    }

    .rns-bu-actual-logo {
        width: 110px;
        max-height: 45px;
    }

    .rns-bu-registration {
        padding: 18px 12px;
    }
}



/* =========================================
   BACHHPAN UTSAV - ACTIVITIES SLIDER
========================================= */

.rns-bu-activities {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 30px;
    background: linear-gradient(180deg, #fff0c9 0%, #fff9e9 100%);
    border-left: 7px solid #ffbd16;
    border-right: 7px solid #ffbd16;
    border-bottom: 7px solid #ffbd16;
    border-radius: 0 0 28px 28px;
    box-sizing: border-box;
}

/* Red carnival heading */

.rns-bu-activities-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto 24px;
    padding: 12px 35px;
    color: #fff;
    background: #d92727;
    border-radius: 10px;
    text-align: center;
    transform: rotate(-1deg);
    box-shadow: 0 5px 0 #a71919;
}

.rns-bu-activities-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.2;
}

.rns-bu-heading-star {
    color: #ffcf27;
    font-size: 23px;
}

/* Slider viewport */

.rns-bu-activities-slider {
    width: 100%;
    overflow: hidden;
}

/* Moving track */

.rns-bu-activities-track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: rnsBuActivityScroll 32s linear infinite;
    will-change: transform;
}

/* Individual activity card */

.rns-bu-activity-card {
    flex: 0 0 132px;
    min-height: 135px;
    padding: 13px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-radius: 22px;
    border: 2px solid #fff;
    box-shadow: 0 4px 0 #efd09a;
    box-sizing: border-box;
    text-align: center;
}

.rns-bu-activity-icon {
    display: block;
    font-size: 47px;
    line-height: 1.2;
}

.rns-bu-activity-name {
    display: block;
    color: #092d67;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

/* Seamless movement across one set of cards */

@keyframes rnsBuActivityScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 7px));
    }
}

/* Pause while the visitor interacts */

.rns-bu-activities-slider:hover .rns-bu-activities-track {
    animation-play-state: paused;
}

/* Mobile */

@media (max-width: 767px) {

    .rns-bu-activities {
        padding: 18px 0 23px;
        border-radius: 0 0 18px 18px;
        border-width: 0 4px 5px;
    }

    .rns-bu-activities-heading {
        gap: 9px;
        padding: 10px 16px;
        margin-bottom: 19px;
    }

    .rns-bu-activities-heading h2 {
        font-size: 18px;
    }

    .rns-bu-heading-star {
        font-size: 17px;
    }

    .rns-bu-activities-track {
        gap: 10px;
        animation-duration: 26s;
    }

    .rns-bu-activity-card {
        flex-basis: 112px;
        min-height: 118px;
        padding: 10px 7px;
        border-radius: 17px;
    }

    .rns-bu-activity-icon {
        font-size: 39px;
    }

    .rns-bu-activity-name {
        font-size: 15px;
    }
}

/* Respect visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
    .rns-bu-activities-track {
        animation: none;
    }
}



/* =========================================
   REGISTRATION PANEL
========================================= */

.rns-bu-registration {
    width: 100%;
    padding: 45px 4%;
    box-sizing: border-box;
    background: #063d80;
}

.rns-bu-registration-panel {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 35px 30px;
    display: grid;
    grid-template-columns: 32% 68%;
    align-items: stretch;
    background: #fff;
    border: 2px solid #d6e5f5;
    border-radius: 28px;
    box-shadow: 0 8px 25px rgba(0, 20, 65, 0.18);
    box-sizing: border-box;
}

/* Left promotional column */

.rns-bu-registration-promo {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 2px solid #c8d6e7;
}

.rns-bu-promo-stars {
    width: 100%;
    margin-bottom: 20px;
    color: #ffbd00;
    font-size: 30px;
    text-align: center;
    letter-spacing: 18px;
}

.rns-bu-promo-stars span {
    font-size: 22px;
    vertical-align: top;
}

/* Golden free registration ticket */

.rns-bu-free-ticket {
    width: 100%;
    max-width: 280px;
    min-height: 145px;
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #07316e;
    background: linear-gradient(145deg, #ffe66b, #ffb900);
    border: 5px double #e69a00;
    border-radius: 12px;
    transform: rotate(-6deg);
    box-shadow: 0 7px 0 rgba(177, 111, 0, 0.18);
    text-align: center;
    box-sizing: border-box;
}

.rns-bu-free-ticket span {
    font-size: clamp(35px, 4vw, 53px);
    font-weight: 900;
    line-height: 1;
}

.rns-bu-free-ticket strong {
    margin-top: 5px;
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.1;
}

/* Red limited passes ribbon */

.rns-bu-limited-ribbon {
    width: 100%;
    max-width: 275px;
    margin-top: 35px;
    padding: 14px 12px;
    color: #fff;
    background: #d92727;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-3deg);
    clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
    box-sizing: border-box;
}

/* Right form column */

.rns-bu-registration-content {
    min-width: 0;
    padding: 0 25px 0 45px;
}

.rns-bu-registration-content h2 {
    margin: 0 0 8px;
    color: #092e70;
    font-size: clamp(27px, 3.4vw, 42px);
    font-weight: 850;
    line-height: 1.15;
}

.rns-bu-registration-description {
    margin: 0 0 20px;
    color: #102b58;
    font-size: 18px;
    line-height: 1.45;
}

/* Form fields */

.rns-bu-registration-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.rns-bu-form-field {
    width: 100%;
}

.rns-bu-form-field label {
    display: block;
    margin-bottom: 5px;
    color: #12346b;
    font-size: 14px;
    font-weight: 700;
}

.rns-bu-form-field input,
.rns-bu-form-field textarea {
    display: block;
    width: 100%;
    min-height: 51px;
    padding: 12px 17px;
    color: #172d50;
    background: #fff;
    border: 2px solid #c4d2e2;
    border-radius: 15px;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
}

.rns-bu-form-field textarea {
    min-height: 65px;
    resize: vertical;
}

.rns-bu-form-field input:focus,
.rns-bu-form-field textarea:focus {
    outline: none;
    border-color: #0754a5;
    box-shadow: 0 0 0 3px rgba(7, 84, 165, 0.12);
}

/* Submit button */

.rns-bu-submit-button {
    width: 100%;
    min-height: 68px;
    margin-top: 8px;
    padding: 14px 20px;
    color: #fff;
    background: linear-gradient(110deg, #0755a8, #063477);
    border: 0;
    border-radius: 17px;
    font-family: inherit;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 850;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rns-bu-submit-button:hover {
    background: #052c67;
    transform: translateY(-2px);
}

.rns-bu-submit-button span {
    margin-right: 12px;
    font-size: 28px;
}

/* Existing notices */

.rns-bu-registration-content .rns-bu-notice {
    margin: 0 0 16px;
    padding: 13px 16px;
    border-radius: 10px;
}

/* Mobile layout */

@media (max-width: 767px) {

    .rns-bu-registration {
        padding: 25px 14px;
    }

    .rns-bu-registration-panel {
        grid-template-columns: 1fr;
        padding: 22px 17px;
        border-radius: 20px;
    }

    .rns-bu-registration-promo {
        padding: 5px 10px 25px;
        border-right: 0;
        border-bottom: 2px solid #c8d6e7;
    }

    .rns-bu-promo-stars {
        margin-bottom: 12px;
        font-size: 24px;
    }

    .rns-bu-free-ticket {
        max-width: 230px;
        min-height: 115px;
    }

    .rns-bu-free-ticket span {
        font-size: 39px;
    }

    .rns-bu-free-ticket strong {
        font-size: 21px;
    }

    .rns-bu-limited-ribbon {
        max-width: 230px;
        margin-top: 25px;
        font-size: 19px;
    }

    .rns-bu-registration-content {
        padding: 25px 0 0;
    }

    .rns-bu-registration-content h2 {
        font-size: 28px;
    }

    .rns-bu-registration-description {
        font-size: 16px;
    }

    .rns-bu-form-field input,
    .rns-bu-form-field textarea {
        font-size: 16px;
    }

    .rns-bu-submit-button {
        min-height: 59px;
        font-size: 19px;
    }
}



/* ========================================
   BACH﻿PAN UTSAV EVENT FOOTER
======================================== */

.rns-bu-footer {
    width: 100%;
    background: #073b78;
    color: #ffffff;
    padding: 55px 5%;
    box-sizing: border-box;
}

.rns-bu-footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.rns-bu-footer-info {
    text-align: center;
}

.rns-bu-footer-info h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.rns-bu-footer-address {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.6;
}

.rns-bu-footer-website {
    display: inline-block;
    color: #ffcc19;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rns-bu-footer-website:hover {
    color: #ffffff;
    text-decoration: underline;
}

.rns-bu-footer-map {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rns-bu-footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
    .rns-bu-footer {
        padding: 38px 20px;
    }

    .rns-bu-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rns-bu-footer-info h2 {
        font-size: 25px;
    }

    .rns-bu-footer-address {
        font-size: 16px;
    }

    .rns-bu-footer-website {
        font-size: 16px;
    }

    .rns-bu-footer-map {
        height: 230px;
    }
}


/* ========================================
   TICKET-STYLE REGISTRATION PANEL
   Concave / reverse-rounded corners
======================================== */

.rns-bu-registration {
    position: relative;
    isolation: isolate;

    width: min(92%, 1180px);
    margin: 45px auto 55px;
    padding: 48px 55px;
    box-sizing: border-box;

    background: #ffffff;
    border: 2px solid #d9e7f5;
    border-radius: 0;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Remove the previous inner rounded frame */
.rns-bu-registration::before {
    content: none !important;
}

/* Create the four inward-curving ticket corners */
.rns-bu-registration::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 2;
    pointer-events: none;

    background:
        radial-gradient(
            circle 34px at 0 0,
            #0b3f7a 0 29px,
            #d9e7f5 30px 32px,
            transparent 33px
        ) top left / 50% 50% no-repeat,

        radial-gradient(
            circle 34px at 100% 0,
            #0b3f7a 0 29px,
            #d9e7f5 30px 32px,
            transparent 33px
        ) top right / 50% 50% no-repeat,

        radial-gradient(
            circle 34px at 0 100%,
            #0b3f7a 0 29px,
            #d9e7f5 30px 32px,
            transparent 33px
        ) bottom left / 50% 50% no-repeat,

        radial-gradient(
            circle 34px at 100% 100%,
            #0b3f7a 0 29px,
            #d9e7f5 30px 32px,
            transparent 33px
        ) bottom right / 50% 50% no-repeat;
}

/* Keep form content above the decorative layer */
.rns-bu-registration > * {
    position: relative;
    z-index: 3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .rns-bu-registration {
        width: calc(100% - 28px);
        margin: 28px auto 35px;
        padding: 30px 22px;
    }

    .rns-bu-registration::after {
        background-size: 50% 50%;
    }
}
