/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f4d8e;
    --secondary-color: #67b1f5;
    --accent-color: #4a8fc8;
    --text-dark: #10223f;
    --text-light: #5b6981;
    --white: #FFFFFF;
    --light-bg: #eef4fb;
    --surface-tint: #dbe8f4;
    --surface-warm: #f2f7fc;
    --border-color: #c7d7ea;
    --success-color: #2ECC71;
    --shadow: 0 14px 32px rgba(16, 34, 63, 0.10);
    --shadow-hover: 0 22px 44px rgba(16, 34, 63, 0.16);
    --transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        linear-gradient(180deg, #fffdf8 0%, #f5f7fb 42%, #ffffff 100%);
    overflow-x: hidden;
}

.header, .section, .footer, .hero {
    width: 100%;
}

.container {
    max-width: 1280px; /* Equivalent to max-w-7xl */
    margin-inline: auto;
    padding: 0 16px; /* Equivalent to px-4 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Responsive Typography */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 22px rgba(22, 61, 112, 0.12);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 58px;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(22, 61, 112, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-right: 0;
}

.nav {
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: center;
}

.logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22, 61, 112, 0.08), rgba(61, 93, 142, 0.16));
    border: 1px solid rgba(22, 61, 112, 0.14);
    box-shadow: 0 10px 24px rgba(22, 61, 112, 0.14);
}

.logo-text {
    display: flex;
    align-items: center;
    min-width: 0;
    text-align: left;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(31, 77, 142, 0.12);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.20), transparent 26%),
        radial-gradient(circle at 82% 16%, rgba(102, 169, 235, 0.20), transparent 24%),
        linear-gradient(135deg, #102b57 0%, #1f4d8e 48%, #67b1f5 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/school-logo.png');
    background-repeat: no-repeat !important;
    background-position: center;
    background-size: contain;
    max-width: 400px;
    margin: auto;
    opacity: 0.07;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 18px 36px rgba(36, 54, 74, 0.18);
    backdrop-filter: blur(10px);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 16px 32px rgba(31, 77, 142, 0.28);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #386fb3, #85c4ff);
    transform: translateY(-2px);
}

.hero .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Floating Shapes */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
    opacity: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(12, 28, 46, 0.24);
    border: 4px solid var(--white);
    z-index: 5;
}

.floating-shape img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.shape-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.shape-3 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.shape-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--surface-warm) 0%, var(--light-bg) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.values-list {
    margin-top: 15px;
}

.values-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.featured-image-card {
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(22, 61, 112, 0.12);
}

.featured-image-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.featured-image-card figcaption {
    padding: 18px 22px 22px;
    color: var(--text-light);
    font-size: 0.98rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.image-placeholder p {
    margin-top: 15px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Academics Section */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    border: 1px solid rgba(22, 61, 112, 0.10);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.program-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.program-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-tint);
}

.program-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.program-card:hover .program-media img {
    transform: scale(1.04);
}

.program-body {
    padding: 26px 26px 30px;
    text-align: center;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Stats Section */
.stats {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #102b57 0%, var(--primary-color) 58%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 28px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 36px rgba(26, 55, 95, 0.16);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Admissions Section */
.admissions {
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.admissions-info h3 {
    color: var(--primary-color);
}

.requirements-list {
    margin: 20px 0;
    padding-left: 20px;
}

.requirements-list li {
    list-style: disc;
    padding: 5px 0;
    padding-left: 10px;
}

/* Form Styles */
.admissions-form,
.contact-form {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(22, 61, 112, 0.08);
    box-shadow: var(--shadow);
}

.admissions-form h4,
.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 61, 112, 0.10);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    min-height: 320px;
    background: var(--surface-tint);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 20px 20px;
    color: var(--white);
    background: linear-gradient(180deg, transparent 0%, rgba(7, 21, 39, 0.82) 56%, rgba(7, 21, 39, 0.92) 100%);
}

.gallery-caption h3 {
    margin-bottom: 8px;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.gallery-placeholder {
    background: linear-gradient(135deg, #204f87 0%, #163d70 100%);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.gallery-placeholder p {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-item:nth-child(2) .gallery-placeholder {
    background: linear-gradient(135deg, #ffb347 0%, #ff7a59 100%);
}

.gallery-item:nth-child(3) .gallery-placeholder {
    background: linear-gradient(135deg, #21816a 0%, #163d70 100%);
}

.gallery-item:nth-child(4) .gallery-placeholder {
    background: linear-gradient(135deg, #445f93 0%, #c05f8c 100%);
}

.gallery-item:nth-child(5) .gallery-placeholder {
    background: linear-gradient(135deg, #ff9d76 0%, #f7b84b 100%);
}

.gallery-item:nth-child(6) .gallery-placeholder {
    background: linear-gradient(135deg, #238484 0%, #244983 100%);
}

/* Visit Section */
.visit {
    background: linear-gradient(180deg, #fffdf8 0%, #eff4fb 100%);
}

.visit-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: stretch;
}

.visit-map-card,
.visit-info-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 26px;
    border: 1px solid rgba(22, 61, 112, 0.10);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.visit-map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    display: block;
}

.visit-info-card {
    padding: 34px;
}

.visit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(22, 61, 112, 0.08);
}

.visit-points {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.visit-point {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
    border: 1px solid rgba(22, 61, 112, 0.08);
}

.visit-point strong,
.visit-point span {
    display: block;
}

.visit-point strong {
    margin-bottom: 6px;
    color: var(--primary-color);
}

.directions-card {
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, #163d70 0%, #214b82 100%);
    color: var(--white);
}

.directions-card label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.directions-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.directions-form-row input {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    font: inherit;
}

.directions-form-row input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.26);
}

.directions-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.directions-card .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: none;
}

.directions-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.directions-link {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.directions-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.directions-status {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.directions-status.is-success {
    color: #caf7dd;
}

.directions-status.is-error {
    color: #ffe1e1;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--white);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 14px 28px rgba(22, 61, 112, 0.16);
    flex-shrink: 0;
}

.contact-icon-phone {
    background: linear-gradient(135deg, #163d70, #25528f);
}

.contact-icon-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-icon-email {
    background: linear-gradient(135deg, #F5A623, #FF7A59);
}

.contact-icon-hours {
    background: linear-gradient(135deg, #2C3E50, #5D7285);
}

.contact-item > div {
    min-width: 0;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-link {
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: currentColor;
}

.contact-link-whatsapp:hover {
    color: #128C7E;
}

/* Footer */
.footer {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, #0f233d 0%, #15345b 48%, #163d70 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.88;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(12, 28, 46, 0.16);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0.82;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font: inherit;
    font-weight: 600;
    box-shadow: 0 18px 36px rgba(22, 61, 112, 0.28);
    cursor: pointer;
}

.chatbot-toggle img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px;
}

.chatbot {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: min(380px, calc(100vw - 32px));
    max-height: min(76vh, 620px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(22, 61, 112, 0.10);
    box-shadow: 0 24px 48px rgba(12, 28, 46, 0.22);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.chatbot.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 60%, var(--secondary-color) 100%);
}

.chatbot-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.chatbot-brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.14);
    padding: 4px;
}

.chatbot-brand h3,
.chatbot-brand p {
    margin: 0;
}

.chatbot-brand p {
    margin-top: 4px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.84);
}

.chatbot-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(243, 180, 74, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.chat-message {
    display: flex;
    margin-bottom: 14px;
}

.chat-message p {
    max-width: 88%;
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.96rem;
}

.bot-message p {
    color: var(--text-dark);
    background: #eef4fb;
    border-bottom-left-radius: 8px;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-bottom-right-radius: 8px;
}

.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 16px;
    background: #f8fbff;
}

.quick-action {
    padding: 9px 14px;
    border: 1px solid rgba(22, 61, 112, 0.10);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.quick-action:hover {
    background: rgba(22, 61, 112, 0.08);
}

.chatbot-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(22, 61, 112, 0.08);
    background: #ffffff;
}

.chatbot-form input {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font: inherit;
}

.chatbot-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .admissions-content, .contact-content, .visit-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 140px;
    }

    .hero-decoration {
        display: none; /* Hide floating shapes on mobile to prevent overlap */
    }

    .hero::before {
        background-size: 280px;
        opacity: 0.08;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 1200;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 1.2rem;
        border-radius: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .mobile-menu-btn { z-index: 1001; }

    .logo {
        gap: 12px;
        flex: 0 1 auto;
    }

    .logo img {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 14px;
    }

    .nav {
        width: auto;
        margin-left: auto;
    }

    .logo h1 {
        font-size: 1.15rem;
        white-space: normal;
        max-width: 100%;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        max-width: 32rem;
        padding: 11px 20px;
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .floating-shape {
        width: 78px;
        height: 78px;
        border-radius: 22px;
        z-index: 1;
    }

    .shape-1 { top: 12%; left: 4%; }
    .shape-2 { bottom: 10%; left: 4%; top: auto; }
    .shape-3 { top: 12%; right: 4%; }
    .shape-4 { bottom: 10%; right: 4%; top: auto; }

    .section {
        padding: 60px 0;
    }

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

    .directions-form-row,
    .chatbot-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .visit-info-card,
    .directions-card {
        padding: 24px;
    }

    .chatbot,
    .chatbot-toggle {
        right: 16px;
    }

    .chatbot {
        bottom: 84px;
        width: min(100vw - 20px, 380px);
    }

    .chatbot-toggle {
        bottom: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .hero::before {
        background-size: 220px;
        background-position: center 60%;
        opacity: 0.07;
    }

    .header .container {
        padding: 12px 16px;
    }

    .logo {
        gap: 10px;
    }

    .logo h1 {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-tagline {
        padding: 10px 16px;
        font-size: 0.82rem;
        line-height: 1.5;
        width: 90%;
        margin-inline: auto;
    }

    .floating-shape {
        width: 55px;
        height: 55px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
        border-radius: 16px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .programs-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: 28px;
    }

    .chatbot-brand {
        align-items: flex-start;
    }

    .chatbot-brand img {
        width: 46px;
        height: 46px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
