/* Bright Kid — premium preschool theme */
:root {
    --bk-red: #e63946;
    --bk-blue: #4361ee;
    --bk-yellow: #ffd166;
    --bk-green: #06d6a0;
    --bk-purple: #9b5de5;
    --bk-orange: #ff9f1c;
    --bk-sky: #4cc9f0;
    --bk-dark: #1d3557;
    --bk-cream: #fff8f0;
    --bk-radius: 1.35rem;
    --bk-shadow: 0 12px 40px rgba(29, 53, 87, 0.12);
    --bk-shadow-hover: 0 20px 50px rgba(29, 53, 87, 0.18);
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 88%;
}

body {
    font-family: var(--font-body);
    color: var(--bk-dark);
    background: linear-gradient(180deg, #fff 0%, var(--bk-cream) 45%, #fff 100%);
    overflow-x: hidden;
}

.container {
    max-width: min(96%, 1500px);
}

h1, h2, h3, h4, h5, h6, .bk-brand-title {
    font-family: var(--font-display);
}

.bk-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(29, 53, 87, 0.06);
}

.bk-header .nav-link {
    font-weight: 600;
    color: #0f2545 !important;
    font-size: 0.95rem;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.bk-header .nav-link:hover {
    color: var(--bk-blue) !important;
}

.bk-header .nav-link.active {
    color: #1f4f89 !important;
    border-bottom-color: #1f4f89;
}

.bk-brand-title {
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    color: #1f4f89;
}

.bk-brand-title span {
    color: var(--bk-red);
}

.bk-logo-icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--bk-red), var(--bk-orange));
    box-shadow: var(--bk-shadow);
}

.bk-logo-icon--sm {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
}

/* Hero carousel */
.bk-hero {
    position: relative;
    border-radius: 0 0 var(--bk-radius) var(--bk-radius);
    overflow: hidden;
    box-shadow: var(--bk-shadow);
}

.bk-hero .carousel-item {
    min-height: 420px;
}

@media (min-width: 992px) {
    .bk-hero .carousel-item {
        min-height: 520px;
    }
}

.bk-hero .carousel-item img {
    object-fit: cover;
    height: 100%;
    min-height: 420px;
    filter: brightness(0.92);
}

@media (min-width: 992px) {
    .bk-hero .carousel-item img {
        min-height: 520px;
    }
}

.bk-hero .carousel-caption {
    text-align: left;
    left: 8%;
    right: 8%;
    bottom: 15%;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--bk-radius);
    max-width: 560px;
    box-shadow: var(--bk-shadow);
    animation: bk-float-caption 6s ease-in-out infinite;
}

@media (max-width: 767.98px) {
    .bk-hero .bk-carousel-cap {
        left: 4%;
        right: 4%;
        bottom: 8%;
        padding: 1rem 1.1rem;
        max-width: none;
    }
    .bk-hero .bk-carousel-cap h2 {
        font-size: 1.2rem;
    }
    .bk-hero .bk-carousel-cap p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }
    .bk-hero .bk-carousel-cap .btn-hero {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

.bk-hero .carousel-caption h2 {
    color: var(--bk-dark);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.bk-hero .carousel-caption p {
    color: #444;
    font-weight: 600;
}

.bk-hero .btn-hero {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bk-green), var(--bk-blue));
    border: none;
    color: #fff;
}

.bk-hero .carousel-control-prev,
.bk-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    box-shadow: var(--bk-shadow);
}

.bk-hero .carousel-control-prev-icon,
.bk-hero .carousel-control-next-icon {
    filter: invert(0.5);
}

.bk-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bk-purple);
}

@keyframes bk-float-caption {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Section titles */
.bk-section-title {
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    background: linear-gradient(90deg, var(--bk-red), var(--bk-blue), var(--bk-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bk-section-lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    font-weight: 600;
}

/* Cards */
.bk-card {
    border: none;
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
    overflow: hidden;
}

.bk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bk-shadow-hover);
}

.bk-card .bk-icon-round {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    animation: bk-bob 3s ease-in-out infinite;
}

.bk-icon-round--1 { background: linear-gradient(135deg, #ffe066, #ff9f1c); }
.bk-icon-round--2 { background: linear-gradient(135deg, #9b5de5, #4361ee); }
.bk-icon-round--3 { background: linear-gradient(135deg, #06d6a0, #4cc9f0); }
.bk-icon-round--4 { background: linear-gradient(135deg, #e63946, #ff6b6b); }

@keyframes bk-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Course pills */
.bk-course {
    border-radius: var(--bk-radius);
    padding: 2rem 1.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--bk-shadow);
}

.bk-course::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.bk-course--nursery { background: linear-gradient(145deg, #4361ee, #9b5de5); }
.bk-course--lkg { background: linear-gradient(145deg, #06d6a0, #4cc9f0); }
.bk-course--ukg { background: linear-gradient(145deg, #ff9f1c, #e63946); }

/* Gallery — exactly 5 per row on desktop (xl+) */
.bk-gallery-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (min-width: 1200px) {
    .bk-gallery-grid .bk-gallery-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .bk-gallery-grid .bk-gallery-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .bk-gallery-grid .bk-gallery-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.bk-gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--bk-shadow);
    cursor: pointer;
    aspect-ratio: 1;
}

.bk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.bk-gallery-item:hover img {
    transform: scale(1.08);
}

.bk-gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(29,53,87,0.65));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.bk-gallery-item:hover::before {
    opacity: 1;
}

.bk-gallery-item .bk-gallery-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.bk-gallery-item:hover .bk-gallery-cap {
    transform: translateY(0);
}

/* Reviews stars */
.bk-stars {
    color: var(--bk-yellow);
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

/* Footer */
.bk-footer-top {
    background: linear-gradient(135deg, #1d3557 0%, #4361ee 50%, #9b5de5 100%);
    border-radius: var(--bk-radius) var(--bk-radius) 0 0;
}

.bk-footer-heading {
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    opacity: 0.95;
}

.bk-footer-bar {
    background: #152a45;
    color: rgba(255, 255, 255, 0.85);
}

.bk-icon-inline {
    font-style: normal;
}

/* Floating quick actions */
.bk-float-action {
    position: fixed;
    bottom: 18px;
    z-index: 1080;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

.bk-float-action:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.bk-float-action svg {
    width: 27px;
    height: 27px;
    fill: #fff;
}

.bk-float-phone {
    left: 18px;
}

.bk-float-whatsapp {
    right: 18px;
}

@media (max-width: 767.98px) {
    .bk-float-action {
        width: 54px;
        height: 54px;
        bottom: 14px;
    }
    .bk-float-phone {
        left: 14px;
    }
    .bk-float-whatsapp {
        right: 14px;
    }
}

/* Trust ribbon */
.bk-trust {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bk-purple);
    letter-spacing: 0.04em;
}

/* About page accents */
.bk-blob {
    border-radius: var(--bk-radius);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(155, 93, 229, 0.12));
    padding: 2rem;
    box-shadow: var(--bk-shadow);
}

/* Forms */
.bk-form .form-control,
.bk-form .form-select {
    border-radius: 0.85rem;
    border: 2px solid #e8ecf4;
    padding: 0.65rem 1rem;
}

.bk-form .form-control:focus {
    border-color: var(--bk-blue);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.bk-btn-primary {
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bk-blue), var(--bk-purple));
    border: none;
    color: #fff;
}

.bk-btn-primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Announcement modal */
#bkAnnouncementModal .modal-content {
    border: none;
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow-hover);
}

#bkAnnouncementModal .modal-header {
    border: none;
    background: linear-gradient(135deg, var(--bk-yellow), var(--bk-orange));
}

#bkAnnouncementModal .modal-title {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Lightbox */
#bkLightbox .modal-content {
    background: transparent;
    border: none;
}

#bkLightbox .modal-body img {
    border-radius: 1rem;
    max-height: 85vh;
    width: auto;
    margin: 0 auto;
    display: block;
    box-shadow: var(--bk-shadow-hover);
}

#bkLightbox .bk-lightbox-title {
    color: var(--bk-dark);
}

.bk-map-wrap iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
}

/* Utilities */
.bk-soft-bg {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
}

/* Screenshot-matched homepage */
.bk-ref-wrap {
    background: linear-gradient(180deg, #0c2f67 0%, #072b63 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.6rem !important;
}

.bk-home-hero {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 59, 122, 0.18);
    border: 1px solid #dce9f8;
    background: transparent;
}

.bk-home-hero-fw {
    width: 100%;
    margin: 0;
    background: #fff;
}

.bk-home-hero-fw .carousel {
    width: 100%;
}

.bk-home-hero-fw .carousel-item {
    height: clamp(260px, 42vw, 560px);
}

.bk-home-hero-fw .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-home-hero-caption {
    left: 6%;
    right: 6%;
    bottom: 8%;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: rgba(8, 38, 79, 0.55);
    text-align: left;
    max-width: 620px;
}

.bk-home-hero-caption h1 {
    margin: 0;
    font-size: clamp(1.05rem, 2.4vw, 2rem);
    line-height: 1.2;
    color: #fff;
}

.bk-home-hero-caption p {
    margin: 0.35rem 0 0;
    color: #dceeff;
    font-size: clamp(0.88rem, 1.3vw, 1.05rem);
}

.bk-home-hero-fw .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bk-home-hero-fallback {
    min-height: clamp(280px, 42vw, 470px);
    background: #fff;
}

.bk-home-top {
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr minmax(180px, 280px);
    gap: 1rem;
    padding: 2.2rem 2rem 1.5rem;
    align-items: center;
    background: #fff;
}

.bk-kid-photo {
    min-height: 280px;
    border-radius: 2rem;
    background: radial-gradient(circle at 35% 20%, #d9ebff 0%, #eff6ff 55%, #ffffff 100%);
    border: 2px dashed #c8ddf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-kid-photo span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #2d4f7c;
}

.bk-home-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    line-height: 1.14;
    color: #123d77;
    margin-bottom: 1.2rem;
}

.bk-home-copy h1 span {
    color: #dc254f;
}

.bk-home-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.bk-point-chip {
    background: #f7fbff;
    border: 1px solid #d9e8fa;
    border-radius: 999px;
    padding: 0.48rem 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #355176;
}

.bk-point-chip i {
    font-style: normal;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d9e8fa;
}

.bk-home-logo {
    text-align: center;
}

.bk-home-logo-mark {
    border: 4px solid #2f64a8;
    border-radius: 50%;
    width: clamp(160px, 17vw, 215px);
    aspect-ratio: 1;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    color: #2f64a8;
    font-weight: 700;
    background: radial-gradient(circle, #ffffff 0%, #f6fbff 100%);
}

.bk-home-logo p {
    margin: 0;
    font-weight: 700;
    color: #2f64a8;
}

.bk-admission-strip {
    background: linear-gradient(180deg, #0c2f67 0%, #072b63 100%);
    color: #fff;
    text-align: center;
    padding: 1.2rem 1.1rem 0.9rem;
}

.bk-admission-strip h2 {
    font-family: var(--font-display);
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.bk-admission-strip h2::after {
    content: " Bright Kid!";
    color: #f3c330;
}

.bk-admission-strip p {
    margin: 0.2rem 0 1rem;
    font-weight: 700;
    color: #ffe58f;
}

.bk-admission-form {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}

.bk-admission-form input,
.bk-admission-form select {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 0.55rem;
    padding: 0 0.8rem;
    font-weight: 700;
    color: #1b3154;
}

.bk-admission-form button {
    height: 42px;
    border: 0;
    border-radius: 0.55rem;
    font-weight: 800;
    background: #f5c72f;
    color: #0c2f67;
}

.bk-admission-caption {
    margin-top: 0.65rem;
    font-size: 0.88rem;
}

.bk-admission-caption strong {
    color: #f3c330;
}

@media (max-width: 1199.98px) {
    .bk-brand-title {
        font-size: 1.8rem;
    }
    .bk-home-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bk-home-points {
        grid-template-columns: 1fr 1fr;
    }
    .bk-admission-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bk-brand-title {
        font-size: 1.5rem;
    }
    .bk-home-hero-fw .carousel-item {
        height: 220px;
    }
    .bk-home-hero-caption {
        left: 4%;
        right: 4%;
        bottom: 5%;
        padding: 0.55rem 0.7rem;
    }
    .bk-home-top {
        padding: 1.2rem 1rem;
    }
    .bk-home-points {
        grid-template-columns: 1fr;
    }
    .bk-admission-strip {
        padding: 1rem 0.7rem 0.75rem;
    }
    .bk-admission-form {
        grid-template-columns: 1fr;
    }
}

.bk-footer.mt-5 {
    margin-top: 0 !important;
}

#admission-application {
    scroll-margin-top: 90px;
}
