:root {
    --school-blue: #00AEEF;
    --school-blue-dark: #008dcc;
    --school-pink: #EC008C;
    --school-pink-dark: #c60076;
    --school-soft-blue: #ebf8ff;
    --school-soft-pink: #fff1f8;
    --dark: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    color: #1f2937;
    background-color: #f8fafc;
}

.text-school-blue { color: var(--school-blue) !important; }
.text-school-pink { color: var(--school-pink) !important; }
.bg-school-blue { background-color: var(--school-blue) !important; }
.bg-school-pink { background-color: var(--school-pink) !important; }
.bg-school-pink-soft { background-color: var(--school-soft-pink) !important; }
.border-school-blue { border-color: var(--school-blue) !important; }
.border-school-pink { border-color: var(--school-pink) !important; }

.btn-school-blue {
    color: #fff;
    background: var(--school-blue);
    border-color: var(--school-blue);
    border-radius: .85rem;
    font-weight: 600;
}

.btn-school-blue:hover,
.btn-school-blue:focus {
    color: #fff;
    background: var(--school-blue-dark);
    border-color: var(--school-blue-dark);
}

.btn-school-pink {
    color: #fff;
    background: var(--school-pink);
    border-color: var(--school-pink);
    border-radius: .85rem;
    font-weight: 600;
}

.btn-school-pink:hover,
.btn-school-pink:focus {
    color: #fff;
    background: var(--school-pink-dark);
    border-color: var(--school-pink-dark);
}

.btn-outline-school-blue {
    color: var(--school-blue);
    border: 2px solid var(--school-blue);
    border-radius: .85rem;
    font-weight: 600;
}

.btn-outline-school-blue:hover {
    color: #fff;
    background: var(--school-blue);
}

.main-navbar {
    min-height: 82px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
}

.school-logo {
    width: auto;
    height: 52px;
}

.brand-th {
    font-size: 1.2rem;
    line-height: 1.1;
}

.brand-en {
    font-size: .72rem;
    letter-spacing: .03rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #374151;
    margin: 0 .35rem;
}

.navbar-nav .nav-link:hover {
    color: var(--school-blue);
}

.banner-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.hero-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.hero-label {
    color: var(--school-pink);
    background: var(--school-soft-pink);
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.13;
}

.hero-copy {
    color: #64748b;
    line-height: 1.9;
}

.hero-photo-wrap {
    position: relative;
}

.hero-blob-pink,
.hero-blob-blue {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    position: absolute;
    filter: blur(52px);
    opacity: .42;
}

.hero-blob-pink {
    right: -30px;
    top: -35px;
    background: #f9a8d4;
}

.hero-blob-blue {
    left: -30px;
    bottom: -30px;
    background: #93c5fd;
}

.hero-photo {
    z-index: 1;
    position: relative;
    min-height: 390px;
    width: 100%;
    object-fit: cover;
    border-radius: 1.6rem;
}

.link-card {
    border: 1px solid #fce7f3;
    border-radius: 1.6rem;
}

.section-title {
    font-weight: 700;
}

.title-line {
    display: block;
    height: 4px;
    width: 92px;
    background: var(--school-pink);
    margin: 1rem auto 0;
    border-radius: 1rem;
}

.curriculum-section {
    background-color: #f8fafc;
}

.curriculum-card {
    border: 0;
    border-bottom: 4px solid var(--school-blue);
    border-radius: 1rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.curriculum-card.pink {
    border-bottom-color: var(--school-pink);
}

.curriculum-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.09) !important;
}

.curriculum-icon {
    height: 64px;
    width: 64px;
    border-radius: 1rem;
    background: #dff4ff;
    color: var(--school-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
}

.curriculum-card.pink .curriculum-icon {
    background: #ffe5f3;
    color: var(--school-pink);
}

.fees-table {
    overflow: hidden;
    border-radius: 1rem;
}

.fees-table thead th {
    background: var(--school-blue);
    color: #fff;
    border: 0;
    padding: 1.4rem 1.2rem;
    font-size: 1.02rem;
}

.fees-table td {
    padding: 1.25rem 1.2rem;
    vertical-align: middle;
}

.register-section {
    background: #ebf8ff;
}

.register-card {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
}

.register-corner {
    position: absolute;
    right: 0;
    top: 0;
    width: 125px;
    height: 125px;
    background: rgba(236, 0, 140, .1);
    border-bottom-left-radius: 100%;
}

.form-control,
.form-select {
    border-radius: .8rem;
    padding: .76rem .95rem;
    border-color: #e5e7eb;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--school-blue);
    box-shadow: 0 0 0 .2rem rgba(0, 174, 239, .18);
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
}

.footer-school {
    background: #111827;
    color: #fff;
}

.footer-school p,
.footer-school li {
    color: #94a3b8;
}

.social-circle {
    color: #fff;
    background: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    text-decoration: none;
    transition: background .2s;
}

.social-circle:hover {
    color: #fff;
    background: var(--school-blue);
}

.contact-float {
    position: fixed;
    left: 18px;
    bottom: 22px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.contact-float a {
    height: 48px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 0 1rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 .4rem 1rem rgba(0,0,0,.18);
}

.float-phone { background: #10b981; }
.float-line { background: #06c755; }

.bot-toggle {
    position: fixed;
    z-index: 1030;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border: 0;
    background: var(--school-pink);
    color: white;
    border-radius: 50%;
    box-shadow: 0 .8rem 1.6rem rgba(236, 0, 140, .28);
}

.bot-online {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    right: 2px;
    top: 2px;
}

.chat-window {
    position: fixed;
    right: 22px;
    bottom: 98px;
    width: min(360px, calc(100vw - 34px));
    z-index: 1029;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1rem 2.8rem rgba(15,23,42,.2);
}

.chat-header {
    background: linear-gradient(110deg, var(--school-pink), #f472b6);
}

.chat-messages {
    height: 255px;
    overflow-y: auto;
    background: #f8fafc;
}

.chat-bubble {
    font-size: .875rem;
    max-width: 83%;
    padding: .7rem .8rem;
    border-radius: 1rem;
    margin-bottom: .7rem;
}

.chat-bubble.bot {
    background: #fff;
    border-top-left-radius: 0;
    box-shadow: 0 .15rem .5rem rgba(0,0,0,.04);
}

.chat-bubble.user {
    margin-left: auto;
    background: var(--school-blue);
    color: #fff;
    border-top-right-radius: 0;
}

.suggestion-grid {
    max-height: 155px;
    overflow-y: auto;
}

.suggestion-grid .btn {
    font-size: .78rem;
    text-align: left;
    border-radius: .6rem;
}

.thankyou-page {
    background: linear-gradient(135deg, #ecfeff, #fff1f8);
}

.thankyou-card {
    max-width: 650px;
    border-radius: 1.5rem;
}

.success-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: #d1fae5;
    color: #059669;
}

.application-number {
    background: #f1f5f9;
}

@media (max-width: 767px) {
    .hero-photo {
        min-height: 280px;
    }

    .contact-float a span {
        display: none;
    }

    .contact-float a {
        height: 48px;
        width: 48px;
        padding: 0;
        justify-content: center;
    }

    .fees-table table {
        min-width: 650px;
    }
}

/* ===== Phase 3: Admin Dashboard ===== */
.admin-body { background: #f5f7fb; font-family: 'Prompt', sans-serif; color: #1f2937; }
.admin-navbar { background: #fff; }
.admin-navbar .navbar-brand { color: #111827; font-size: 1rem; }
.admin-navbar .navbar-brand small { color: var(--school-pink); font-size: .7rem; font-weight: 600; }
.admin-logo { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--school-blue), var(--school-pink)); }
.admin-login-body { background: linear-gradient(135deg, #eafaff 0%, #fff0f8 100%); font-family: 'Prompt', sans-serif; }
.admin-login-card { width: min(470px, 100%); border-radius: 1.4rem; }
.admin-login-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; font-size: 2rem; background: #fff0f8; }
.admin-kpi { border-radius: 1.1rem; }
.kpi-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; font-size: 1.15rem; }
.admin-table thead th { white-space: nowrap; color: #64748b; background: #f8fafc; font-size: .82rem; font-weight: 600; border-bottom-width: 1px; padding: 1rem .8rem; }
.admin-table td { padding: .9rem .8rem; }
.application-details label { display: block; color: #64748b; font-size: .78rem; margin-bottom: .3rem; }
.application-details strong { display: block; font-weight: 500; }
.detail-note { background: #f8fafc; border-radius: .7rem; padding: .8rem; }
.contact-history { border-color: var(--school-blue) !important; }

/* ===== Phase 4: Public News / Gallery / LINE OA ===== */
.public-news-card { border-radius: 1.1rem; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.public-news-card:hover { transform: translateY(-5px); box-shadow: 0 1rem 2rem rgba(15, 23, 42, .10) !important; }
.public-news-card .card-img-top { width: 100%; height: 210px; object-fit: cover; }
.news-hero-img { width: 100%; max-height: 470px; object-fit: cover; }
.news-content { font-size: 1.02rem; line-height: 1.95; color: #374151; }
.gallery-public-card { overflow: hidden; border-radius: 1rem; transition: transform .18s ease; }
.gallery-public-card:hover { transform: translateY(-4px); }
.gallery-public-card img { width: 100%; height: 235px; object-fit: cover; display: block; }
.gallery-admin-img { width: 100%; height: 190px; object-fit: cover; }
.admin-preview { max-width: 180px; max-height: 120px; object-fit: cover; border-radius: .7rem; }
@media (max-width: 575px) { .gallery-public-card img { height: 150px; } .public-news-card .card-img-top { height: 185px; } }

/* ===== Phase 5: Settings / Kanban / Follow-up ===== */
.kanban-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kanban-column { background: #eef2f7; border-radius: 1rem; min-width: 270px; width: 270px; padding: .8rem; }
.kanban-column header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.kanban-dropzone { min-height: 180px; display: grid; gap: .7rem; transition: background .18s ease; border-radius: .8rem; padding: .2rem; }
.kanban-dropzone.dragover { background: #e0f2fe; outline: 2px dashed var(--school-blue); }
.kanban-card { background: #fff; border-radius: .85rem; padding: .8rem; box-shadow: 0 .1rem .5rem rgba(15,23,42,.08); cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-due { font-size: .75rem; border-radius: .5rem; padding: .32rem .48rem; background: #fff7ed; color: #c2410c; }
.policy-page { max-width: 920px; }
.policy-page h2 { margin-top: 2rem; font-size: 1.2rem; font-weight: 700; }


/* Phase 5.2 Page Builder & Banner Manager */
.btn-outline-pink{--bs-btn-color:#EC008C;--bs-btn-border-color:#EC008C;--bs-btn-hover-bg:#EC008C;--bs-btn-hover-border-color:#EC008C;--bs-btn-hover-color:#fff;}
.managed-floating-buttons{position:fixed;z-index:1050;display:flex;flex-direction:column;gap:.65rem;bottom:7.5rem;}
.managed-floating_right{right:1rem;align-items:flex-end}.managed-floating_left{left:1rem;align-items:flex-start}
.managed-floating-buttons .btn{box-shadow:0 12px 28px rgba(0,0,0,.16)}
.managed-banner-img{width:100%;object-fit:contain;background:#fff;}
.banner-preview-box{background:linear-gradient(135deg,#f8fafc,#fff);border:1px dashed #d6dbe4;border-radius:1.25rem;padding:1rem;text-align:center;}
@media(max-width:576px){.managed-floating-buttons{bottom:5.5rem}.managed-floating-buttons .btn{padding:.55rem .85rem!important;font-size:.9rem}}
