/* Rosary Pre-School — colorful theme (inder2.html only) */

:root {
    --ps-coral: #ff6b6b;
    --ps-sun: #ffd93d;
    --ps-mint: #6bcb77;
    --ps-sky: #4d96ff;
    --ps-lavender: #c084fc;
    --ps-peach: #ffb4a2;
    --ps-cream: #fff8f0;
    --ps-ink: #2d3142;
    --ps-white: #ffffff;
    --radius-blob: 2rem;
    --shadow-soft: 0 12px 40px rgba(45, 49, 66, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ps-body {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--ps-ink);
    background: var(--ps-cream);
    overflow-x: hidden;
}

.ps-display {
    font-family: "Fredoka", "Nunito", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ----- Top rainbow bar ----- */
.ps-topbar {
    background: linear-gradient(
        90deg,
        var(--ps-coral),
        var(--ps-sun),
        var(--ps-mint),
        var(--ps-sky),
        var(--ps-lavender)
    );
    color: var(--ps-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ps-topbar a {
    color: var(--ps-ink);
    text-decoration: none;
}

.ps-topbar a:hover {
    text-decoration: underline;
}

.ps-topbar i {
    opacity: 0.9;
}

.ps-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s, background 0.2s;
}

.ps-social a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
}

/* ----- Header ----- */
.ps-header {
    background: var(--ps-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Same logo + name as main site; pre-school look via fonts/colours */
.ps-navbar-brand {
    text-decoration: none;
    color: inherit;
}

.ps-navbar-brand .ps-brand-logo {
    box-shadow: 0 4px 14px rgba(45, 49, 66, 0.12);
    flex-shrink: 0;
}

.ps-navbar-brand .ps-brand-name {
    font-family: "Fredoka", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ps-ink);
    line-height: 1.2;
}

.ps-navbar-brand .ps-brand-loc {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a6fa5;
    line-height: 1.25;
}

.ps-nav .nav-link {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ps-ink) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.ps-nav .nav-link:hover {
    background: rgba(77, 150, 255, 0.15);
    color: var(--ps-sky) !important;
}

.ps-btn-enroll {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--ps-mint), #3daa5c);
    color: #fff !important;
    box-shadow: 0 6px 0 rgba(61, 170, 92, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ps-btn-enroll:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 8px 0 rgba(61, 170, 92, 0.3);
}

.ps-btn-enroll:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(61, 170, 92, 0.35);
}

/* Portal buttons — same labels as index.html */
.ps-btn-student {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, #ffcc00, #ffb020);
    color: #1a1a1a !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 0 rgba(230, 168, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
}

.ps-btn-student:hover {
    background: linear-gradient(135deg, #e6a800, #f59e0b);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(230, 168, 0, 0.3);
}

.ps-btn-staff {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, #004080, #1a6bc4);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 0 rgba(0, 38, 77, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ps-btn-staff:hover {
    background: linear-gradient(135deg, #00264d, #004080);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 38, 77, 0.28);
}

.ps-navbar-toggler {
    border: 3px solid var(--ps-sun);
    border-radius: 12px;
    padding: 0.4rem 0.55rem;
}

.ps-navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 217, 61, 0.45);
}

@media (max-width: 991.98px) {
    .ps-nav .nav-link {
        padding: 0.65rem 0 !important;
    }

    .ps-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ----- Hero ----- */
.ps-hero {
    position: relative;
    padding: 3rem 0 4rem;
    min-height: auto;
}

.ps-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #fff5eb;
    background-image:
        linear-gradient(
            165deg,
            rgba(255, 248, 240, 0.82) 0%,
            rgba(232, 244, 255, 0.78) 45%,
            rgba(243, 255, 245, 0.8) 100%
        ),
        url("pre-school-slider.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ps-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.45;
    animation: ps-float 7s ease-in-out infinite;
}

.ps-blob--1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--ps-peach), var(--ps-coral));
    top: 8%;
    right: 6%;
    animation-delay: 0s;
}

.ps-blob--2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ps-sun), #ff9f1c);
    bottom: 18%;
    left: 4%;
    animation-delay: -2s;
}

.ps-blob--3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ps-mint), var(--ps-sky));
    top: 40%;
    left: 12%;
    animation-delay: -4s;
}

@keyframes ps-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(6deg);
    }
}

.ps-hero .container {
    position: relative;
    z-index: 1;
}

.ps-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    color: var(--ps-ink);
}

.ps-hero .ps-tagline {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 700;
    color: #5a5f73;
    max-width: 26rem;
}

.ps-hero-visual {
    position: relative;
    min-height: 260px;
}

/* Patron — over hero slider, bottom-left of card (balances text column on left) */
.ps-patron-on-slider {
    position: absolute;
    bottom: 0.25rem;
    left: clamp(-0.5rem, -2vw, -0.75rem);
    z-index: 5;
    width: clamp(100px, 28vw, 148px);
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 14px 36px rgba(45, 49, 66, 0.28);
    transform: rotate(-7deg);
    pointer-events: none;
}

.ps-patron-on-slider img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.ps-patron-on-slider__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.3rem 0.25rem 0.25rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent, rgba(45, 49, 66, 0.9));
}

.ps-hero-card {
    position: absolute;
    border-radius: var(--radius-blob);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 5px solid #fff;
}

.ps-hero-card--main {
    width: 88%;
    max-width: 380px;
    right: 0;
    top: 0;
    aspect-ratio: 4/3;
    transform: rotate(3deg);
    z-index: 2;
}

.ps-hero-card--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero mini-slider (Patron + campus life) inside tilted card */
.ps-hero-card--main .ps-hero-inner-slider {
    height: 100%;
}

.ps-hero-card--main .ps-hero-inner-slider .carousel-inner,
.ps-hero-card--main .ps-hero-inner-slider .carousel-item {
    height: 100%;
}

.ps-hero-card--main .ps-hero-inner-slider .carousel-item {
    overflow: hidden;
}

.ps-hero-card--main .ps-hero-inner-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    will-change: transform;
    animation: slider-kenburns 14s ease-in-out infinite alternate;
}

@keyframes slider-kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-hero-card--main .ps-hero-inner-slider .carousel-item img {
        animation: none;
    }
}

.ps-hero-inner-slider .carousel-indicators {
    margin-bottom: 0.4rem;
    z-index: 3;
}

.ps-hero-inner-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: transparent;
    opacity: 1;
}

.ps-hero-inner-slider .carousel-indicators .active {
    background: var(--ps-sun);
    border-color: #fff;
}

.ps-hero-inner-slider .carousel-control-prev,
.ps-hero-inner-slider .carousel-control-next {
    width: 14%;
    opacity: 0.9;
}

.ps-hero-inner-slider .carousel-control-prev-icon,
.ps-hero-inner-slider .carousel-control-next-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-size: 60% 60%;
    background-color: rgba(45, 49, 66, 0.45);
}

.ps-hero-sticker {
    position: absolute;
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ps-sticker-a {
    background: var(--ps-sun);
    color: var(--ps-ink);
    top: -8px;
    left: 0;
    transform: rotate(-8deg);
}

.ps-sticker-b {
    background: var(--ps-lavender);
    color: #fff;
    bottom: 12%;
    left: -4%;
    transform: rotate(6deg);
}

@media (max-width: 991.98px) {
    .ps-hero-visual {
        margin-top: 2rem;
        min-height: 220px;
    }

    .ps-hero-card--main {
        margin: 0 auto;
        position: relative;
        transform: none;
        width: 100%;
    }

    .ps-patron-on-slider {
        left: 0.35rem;
        bottom: 0.5rem;
        transform: rotate(-4deg);
        width: clamp(88px, 32vw, 120px);
    }

    .ps-sticker-a,
    .ps-sticker-b {
        position: relative;
        display: inline-block;
        margin: 0.5rem 0.35rem 0 0;
        transform: none;
        left: auto;
        top: auto;
        bottom: auto;
    }

    .ps-hero-visual .d-flex.flex-wrap {
        justify-content: center;
    }
}

.ps-hero-cta .btn {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    border-width: 3px;
}

.ps-btn-outline-play {
    border-color: var(--ps-coral) !important;
    color: var(--ps-coral) !important;
    background: #fff;
}

.ps-btn-outline-play:hover {
    background: var(--ps-coral) !important;
    color: #fff !important;
}

/* ----- Section titles ----- */
.ps-section {
    padding: 3.5rem 0;
}

.ps-section-title {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    color: var(--ps-ink);
    text-align: center;
    margin-bottom: 0.35rem;
}

.ps-section-lead {
    text-align: center;
    font-weight: 700;
    color: #6b7089;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

/* ----- Age cards ----- */
.ps-age-card {
    border: none;
    border-radius: 1.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    color: var(--ps-ink);
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-soft);
}

.ps-age-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.ps-age-card--a {
    background: linear-gradient(160deg, #ffe8e8 0%, #fff 55%);
    border-top: 6px solid var(--ps-coral);
}

.ps-age-card--b {
    background: linear-gradient(160deg, #fff9e0 0%, #fff 55%);
    border-top: 6px solid var(--ps-sun);
}

.ps-age-card--c {
    background: linear-gradient(160deg, #e6ffec 0%, #fff 55%);
    border-top: 6px solid var(--ps-mint);
}

.ps-age-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.ps-age-card--a .ps-age-icon {
    background: rgba(255, 107, 107, 0.2);
}

.ps-age-card--b .ps-age-icon {
    background: rgba(255, 217, 61, 0.35);
}

.ps-age-card--c .ps-age-icon {
    background: rgba(107, 203, 119, 0.25);
}

.ps-age-card h3 {
    font-family: "Fredoka", sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

/* ----- Activities ----- */
.ps-strip {
    background: linear-gradient(120deg, #e8f4ff 0%, #f5e8ff 50%, #fff5e8 100%);
}

.ps-act {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 3px dashed rgba(45, 49, 66, 0.12);
    transition: border-color 0.2s, transform 0.2s;
}

.ps-act:hover {
    border-color: var(--ps-sky);
    transform: translateY(-4px);
}

.ps-act-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.ps-act h4 {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

/* ----- Gallery ----- */
.ps-gallery-item {
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-soft);
    border: 4px solid #fff;
}

.ps-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.ps-gallery-item:hover img {
    transform: scale(1.08);
}

.ps-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ----- Contact CTA ----- */
.ps-cta-box {
    background: linear-gradient(135deg, var(--ps-sky), var(--ps-lavender));
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(77, 150, 255, 0.35);
}

.ps-cta-box h2 {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.ps-cta-box a {
    color: #fff;
    font-weight: 800;
}

.ps-cta-box .btn-light {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.6rem 1.75rem;
    border: none;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

/* ----- Footer ----- */
.ps-footer {
    background: var(--ps-ink);
    color: rgba(255, 255, 255, 0.88);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.ps-footer a {
    color: var(--ps-sun);
    text-decoration: none;
}

.ps-footer a:hover {
    text-decoration: underline;
}

/* Topbar stack on small screens */
@media (max-width: 575.98px) {
    .ps-topbar .row {
        text-align: center;
    }

    .ps-topbar .ps-social {
        justify-content: center !important;
        margin-bottom: 0.35rem;
    }
}
