/* ================= CORE THEME ================= */
:root {
    --purple-900: #2c003e;
    --purple-700: #4b0082;
    --purple-600: #6a0dad;
    --ink: #333;
    --bg: #f8f9fa;
    --white: #fff;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.14);
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
}

.section-title {
    margin-bottom: 0.75rem;
}

/* ================= HEADER ================= */
.navbar {
    background: var(--purple-900);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.navbar-brand img {
    border-radius: 50%;
    object-fit: cover;
}

.navbar .nav-link {
    color: var(--white);
    font-weight: 500;
    margin: 0 4px;
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffd95a;
    background: rgba(255, 255, 255, 0.08);
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--purple-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#splash-screen img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

/* ================= BUTTONS ================= */
.btn-school {
    background: var(--purple-700);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    transition: 0.25s ease;
}

.btn-school:hover {
    background: var(--purple-900);
    color: var(--white);
}

/* ================= HERO ================= */
.slider-img {
    height: 85vh;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.52);
    border-radius: var(--radius-md);
    padding: 20px;
}

/* ================= PAGE BANNERS ================= */
.page-banner {
    padding: 96px 20px;
    background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
}

.page-banner-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.page-banner .lead {
    opacity: 0.9;
    font-size: 1.15rem;
}

/* ================= SECTIONS ================= */
.admissions-cta,
.cta-block {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
    color: var(--white);
    border-radius: 12px;
}

.time-box {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
    padding: 14px 14px;
    backdrop-filter: blur(4px);
}

.time-box h3 {
    margin: 0;
}

.info-card,
.why-card,
.program-card,
.academic-card,
.process-card,
.contact-card,
.stat-card,
.team-card,
.value-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    height: 100%;
    transition: transform 0.25s ease;
}

.info-card:hover,
.why-card:hover,
.program-card:hover,
.academic-card:hover,
.process-card:hover,
.contact-card:hover,
.team-card:hover,
.value-card:hover {
    transform: translateY(-4px);
}

.why-icon,
.program-icon,
.value-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.stats-section {
    background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
}

.stat-card {
    background: rgba(255, 255, 255, 0.11);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-card h3,
.stat-card p {
    color: var(--white);
    margin-bottom: 0;
}

.director-photo {
    max-height: 360px;
    object-fit: cover;
}

.team-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 3px solid var(--purple-700);
}

.proprietor-section {
    background: linear-gradient(160deg, #f2ebfb 0%, #ffffff 60%);
}

.proprietor-wrap {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid rgba(75, 0, 130, 0.12);
}

.proprietor-photo-frame {
    width: 280px;
    max-width: 100%;
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
    box-shadow: var(--shadow-sm);
}

.proprietor-photo {
    width: 100%;
    border-radius: 12px;
    background: #fff;
    object-fit: cover;
}

.proprietor-kicker {
    display: inline-block;
    background: rgba(75, 0, 130, 0.1);
    color: var(--purple-700);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.proprietor-text {
    color: #454545;
    line-height: 1.75;
    margin-bottom: 10px;
}

.proprietor-signature {
    border-left: 4px solid var(--purple-700);
    padding-left: 12px;
}

.proprietor-signature small {
    color: #6a6a6a;
}

.gallery-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.filter-btn.active {
    background: var(--purple-700);
    color: var(--white);
    border-color: var(--purple-700);
}

.timeline-item {
    border-left: 3px solid var(--purple-700);
    padding-left: 14px;
    margin-bottom: 18px;
}

/* ================= WHY LIST ================= */
.why-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.why-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.why-list-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ================= ADMINISTRATION CARDS ================= */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 16px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.admin-photo-wrap {
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
}

.admin-role {
    display: inline-block;
    background: rgba(75, 0, 130, 0.09);
    color: var(--purple-700);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ================= TESTIMONIALS ================= */
.testimonial-section {
    background: linear-gradient(160deg, #f4f0fb 0%, #fff 100%);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px 22px;
    height: 100%;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid var(--purple-700);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--purple-700);
    opacity: 0.25;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 0.93rem;
    color: #444;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-700);
}

/* ================= DOWNLOADS ================= */
.downloads-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f2fc 100%);
}

.downloads-wrap {
    background: var(--white);
    border: 1px solid rgba(75, 0, 130, 0.12);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.download-card {
    background: #fbf9fe;
    border: 1px solid rgba(75, 0, 130, 0.12);
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.download-card p {
    color: #555;
}

.download-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* ================= JOURNEY TIMELINE ================= */
.journey-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.journey-timeline {
    position: relative;
    max-width: 820px;
    padding: 10px 0;
}

.journey-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--purple-700), var(--purple-900));
    transform: translateX(-50%);
    border-radius: 3px;
}

.journey-step {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 36px);
    margin-bottom: 40px;
    position: relative;
}

.journey-step-right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 36px);
}

.journey-dot {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--purple-700);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 0 5px rgba(75, 0, 130, 0.15);
    z-index: 1;
}

.journey-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    width: 100%;
    border-left: 4px solid var(--purple-700);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journey-step-right .journey-card {
    border-left: none;
    border-right: 4px solid var(--purple-700);
}

.journey-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.journey-year {
    display: inline-block;
    background: var(--purple-700);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.journey-card h6 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--purple-900);
}

.journey-card p {
    font-size: 0.88rem;
    color: #555;
}

@media (max-width: 640px) {
    .journey-timeline::before {
        left: 22px;
    }

    .journey-step,
    .journey-step-right {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 62px;
    }

    .journey-dot {
        left: 22px;
    }

    .journey-step-right .journey-card {
        border-right: none;
        border-left: 4px solid var(--purple-700);
    }
}

/* ================= FORMS ================= */
.form-control,
.form-select {
    border-radius: 7px;
}

textarea {
    resize: none;
}

/* ================= FLOAT CONTACT ================= */
.contact-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
}

.contact-options {
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
}

.contact-options.show {
    display: flex;
}

.contact-item {
    background: var(--white);
    color: var(--ink);
    margin: 4px 0;
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    background: var(--purple-700);
    color: var(--white);
}

.contact-toggle {
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background: var(--purple-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
    color: #cfd3db;
}

.footer h5 {
    color: var(--white);
}

.footer-title {
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #cfd3db;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffd95a;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.footer-social a:hover {
    background: var(--purple-700);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--purple-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 1090;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--purple-900);
}

/* ================= ANIMATION ================= */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .slider-img {
        height: 68vh;
    }

    .page-banner {
        padding: 80px 20px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-link {
        margin: 2px 0;
        font-size: 0.9rem;
    }

    .page-banner {
        padding: 64px 16px;
    }

    .page-banner h1 {
        font-size: 1.75rem;
    }

    .page-banner .lead {
        font-size: 1rem;
    }

    .slider-img {
        height: 54vh;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .gallery-img {
        height: 200px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .stats-section .stat-card h3 {
        font-size: 1.6rem;
    }

    .info-card,
    .why-card,
    .program-card,
    .academic-card,
    .process-card,
    .contact-card {
        padding: 16px;
    }

    .time-box {
        min-width: 62px;
        padding: 10px 8px;
    }

    .footer {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        display: flex;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 52px 12px;
    }

    .page-banner h1 {
        font-size: 1.45rem;
    }

    .carousel-caption h1 {
        font-size: 1.1rem;
    }

    .gallery-img {
        height: 175px;
    }

    .time-box {
        min-width: 52px;
        padding: 8px 6px;
    }

    .time-box h3 {
        font-size: 1.25rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        right: 12px;
        bottom: 76px;
    }

    .contact-float {
        right: 12px;
        bottom: 12px;
    }
}
