﻿/*
  Victories Educare - Modern Responsive StyleSheet
  Base, utility, layout, responsive, and theme styling
*/

/* RESET and BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Variables */
:root {
    --primary-color: #004080;
    --secondary-color: #ffd700;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --accent-color: #667eea;
    --transition-speed: 0.3s;
    --border-radius: 6px;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --primary-color: #2d89ff;
    --secondary-color: #8b5cf6;
    --text-color: #e4e6eb;
    --bg-color: #18191a;
    --surface-color: #242526;
    --accent-color: #8b5cf6;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.reveal-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

    .reveal-animation.active {
        opacity: 1;
        transform: translateY(0);
    }

/* HEADER & NAVBAR */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--surface-color);
    box-shadow: 0 2px 8px var(--shadow-light);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: default;
    user-select: none;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

    .nav-menu li {
        margin-left: 1.25rem;
    }

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: color 0.3s ease, background-color 0.3s ease;
}

    .nav-link:hover,
    .nav-link:focus-visible {
        color: var(--primary-color);
        background-color: var(--accent-color);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
    }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

    .nav-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        transition: background-color var(--transition-speed) ease;
    }

/* Theme toggle button */
.theme-toggle {
    font-size: 1.25rem;
    margin-left: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
        color: var(--primary-color);
        outline: none;
    }

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-direction: column;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

    .hero-slide[data-bg] {
        background-image: attr(data-bg url);
    }

.hero-content {
    max-width: 1000px;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.4);
    user-select: none;
}

.hero-buttons .btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-buttons .btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

    .hero-buttons .btn-primary:hover,
    .hero-buttons .btn-primary:focus-visible {
        background-color: #ffb300;
        outline-offset: 2px;
        outline: 2px solid #ffb300;
    }

.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

    .hero-buttons .btn-secondary:hover,
    .hero-buttons .btn-secondary:focus-visible {
        background-color: rgba(255, 255, 255, 0.35);
        outline-offset: 2px;
        outline: 2px solid rgba(255, 255, 255, 0.35);
    }

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

    .hero-nav button {
        background-color: rgba(0, 0, 0, 0.4);
        color: #fff;
        font-size: 2rem;
        padding: 0.5rem 1rem;
        border-radius: 50%;
        pointer-events: all;
        cursor: pointer;
        border: none;
        user-select: none;
        transition: background-color var(--transition-speed) ease;
    }

        .hero-nav button:hover,
        .hero-nav button:focus-visible {
            background-color: rgba(0, 0, 0, 0.7);
            outline-offset: 2px;
            outline: 2px solid var(--secondary-color);
        }

.hero-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

    .indicator.active,
    .indicator:hover,
    .indicator:focus-visible {
        background-color: #fff;
        outline-offset: 2px;
        outline: 2px solid var(--secondary-color);
    }

/* STATS SECTION */
.stats-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: box-shadow 0.3s ease;
    cursor: default;
}

    .stat-item:focus-within,
    .stat-item:hover {
        box-shadow: 0 6px 18px var(--shadow-medium);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
    }

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    user-select: none;
}

.stat-label {
    font-weight: 600;
}

/* ANNOUNCEMENTS SECTION */
.announcements-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.announcements-carousel {
    display: flex;
    overflow-x: hidden;
    position: relative;
}

.announcement-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: none;
    padding: 1rem;
    transition: transform var(--transition-speed) ease;
}

    .announcement-slide.active {
        display: block;
    }

.announcement-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px var(--shadow-light);
}

.announcement-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    user-select: none;
}

/* ABOUT SECTION */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.value-item {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: box-shadow 0.3s ease;
    cursor: default;
}

    .value-item:hover,
    .value-item:focus-within {
        box-shadow: 0 6px 18px var(--shadow-medium);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
    }

    .value-item h3 {
        margin-bottom: 0.75rem;
    }

/* Timeline */
.timeline {
    padding-top: 2rem;
    position: relative;
    border-left: 4px solid var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    user-select: none;
}

.timeline-content h4 {
    margin-bottom: 0.25rem;
}

/* COURSES SECTION */
.courses-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow-light);
    transition: transform var(--transition-speed) ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

    .course-card:hover,
    .course-card:focus-within {
        transform: translateY(-10px);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
    }

.course-icon {
    font-size: 2.5rem;
    margin: 1rem;
    color: var(--accent-color);
    user-select: none;
}

.course-age {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0 1rem;
    font-weight: 600;
}

.course-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-subjects,
.course-activities {
    margin-bottom: 1rem;
}

    .course-subjects ul,
    .course-activities ul {
        list-style: disc inside;
        margin: 0;
        padding-left: 1rem;
    }

.course-fee {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

/* FACULTY SECTION */
.faculty-section {
    padding: 4rem 0;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.faculty-card {
    perspective: 1000px;
    cursor: pointer;
    outline-offset: 2px;
}

.faculty-card-inner {
    position: relative;
    width: 100%;
    transition: transform var(--transition-speed);
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px var(--shadow-light);
}

.faculty-card:hover .faculty-card-inner,
.faculty-card:focus-within .faculty-card-inner {
    transform: rotateY(180deg);
}

.faculty-card-front,
.faculty-card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.faculty-card-front {
    background-color: var(--surface-color);
    color: var(--text-color);
    text-align: center;
}

    .faculty-card-front img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
        user-select: none;
    }

.faculty-card-back {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    text-align: center;
}

    .faculty-card-back p {
        margin-bottom: 0.4rem;
    }

    .faculty-card-back .btn {
        margin-top: 1rem;
    }

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 1rem;
}

    .modal[aria-hidden="false"] {
        display: flex;
    }

.modal-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 12px 28px var(--shadow-medium);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    user-select: none;
    transition: color 0.3s ease;
}

    .close-btn:hover,
    .close-btn:focus-visible {
        color: var(--accent-color);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
    }

/* GALLERY */
.gallery-section {
    padding: 4rem 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    user-select: none;
}

    .filter-btn.active,
    .filter-btn:hover,
    .filter-btn:focus-visible {
        background-color: var(--primary-color);
        color: #fff;
        outline-offset: 2px;
        outline: 2px solid var(--primary-color);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 18px var(--shadow-light);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
    user-select: none;
}

    .gallery-item:hover,
    .gallery-item:focus-visible {
        box-shadow: 0 10px 28px var(--shadow-medium);
        outline-offset: 2px;
        outline: 2px solid var(--accent-color);
        transform: scale(1.03);
    }

    .gallery-item img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform var(--transition-speed);
        border-radius: var(--border-radius);
    }

    .gallery-item:hover img,
    .gallery-item:focus-visible img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-speed);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    user-select: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    transform: translateY(0);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 1rem;
}

    .lightbox[aria-hidden="false"] {
        display: flex;
    }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

    .lightbox-close:hover,
    .lightbox-close:focus-visible {
        color: var(--secondary-color);
        outline-offset: 2px;
        outline: 2px solid var(--secondary-color);
    }

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    user-select: none;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1rem;
    user-select: none;
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
    display: flex;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

    .testimonial-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

.testimonial-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 18px var(--shadow-light);
    text-align: center;
    user-select: none;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content p {
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-color);
}

.stars i {
    color: #ffb300;
    margin-right: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

    .testimonial-author img {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        object-fit: cover;
    }

.author-info h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

    .testimonial-nav button {
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        cursor: pointer;
        border: none;
        user-select: none;
        transition: background-color var(--transition-speed);
    }

        .testimonial-nav button:hover,
        .testimonial-nav button:focus-visible {
            background-color: var(--secondary-color);
            outline-offset: 2px;
            outline: 2px solid var(--secondary-color);
        }

/* FAQ SECTION */
.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow-light);
    user-select: none;
}

.faq-question {
    font-weight: 600;
    padding: 1rem 1.25rem;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
}

    .faq-question:hover,
    .faq-question:focus-visible {
        background-color: var(--secondary-color);
        outline-offset: 2px;
        outline: 2px solid var(--secondary-color);
    }

.faq-toggle {
    font-size: 1.5rem;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 0 1.25rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 500px;
    padding: 1rem 1.25rem;
}

/* ADMISSIONS SECTION */
.admissions-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admission-info ul {
    list-style: disc inside;
}

.admission-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1rem;
}

    .form-row .form-group {
        flex: 1;
    }

label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input,
select,
textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--accent-color);
        outline: none;
    }

.error-message {
    color: #ff4757;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ff4757;
}

    input[aria-invalid="true"]:focus,
    select[aria-invalid="true"]:focus,
    textarea[aria-invalid="true"]:focus {
        outline: 2px solid #ff4757;
    }

/* Buttons */
.btn {
    cursor: pointer;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: background-color var(--transition-speed) ease;
    display: inline-block;
    user-select: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background-color: var(--secondary-color);
        outline-offset: 2px;
        outline: 2px solid var(--secondary-color);
    }

/* CONTACT SECTION */
.contact-section {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-details {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
    user-select: none;
}

.contact-text h4 {
    margin-bottom: 0.25rem;
}

/* Map container */
.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: var(--border-radius);
}

/* FOOTER */
.footer {
    background-color: var(--surface-color);
    padding: 2rem 0;
    box-shadow: 0 -4px 10px var(--shadow-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover,
            .footer-section ul li a:focus-visible {
                color: var(--primary-color);
                outline-offset: 2px;
                outline: 2px solid var(--primary-color);
            }

.social-links a {
    margin-right: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    user-select: none;
}

    .social-links a:hover,
    .social-links a:focus-visible {
        color: var(--primary-color);
        outline-offset: 2px;
        outline: 2px solid var(--primary-color);
    }

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

    .newsletter-form input[type="email"] {
        flex: 1;
        border-top-left-radius: var(--border-radius);
        border-bottom-left-radius: var(--border-radius);
        border: 1px solid #ccc;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .newsletter-form button {
        border-top-right-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        padding: 0 1rem;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.3s ease;
    }

        .newsletter-form button:hover,
        .newsletter-form button:focus-visible {
            background-color: var(--secondary-color);
            outline-offset: 2px;
            outline: 2px solid var(--secondary-color);
        }

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    color: #777;
    font-size: 0.9rem;
    user-select: none;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    user-select: none;
    transition: background-color 0.3s ease;
}

    .back-to-top:hover,
    .back-to-top:focus-visible {
        background-color: #003366;
        outline-offset: 2px;
        outline: 2px solid #003366;
    }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--surface-color);
        flex-direction: column;
        padding-top: 3rem;
        transition: right var(--transition-speed) ease;
        z-index: 1500;
        box-shadow: -2px 0 12px var(--shadow-light);
    }

        .nav-menu.active {
            right: 0;
        }

        .nav-menu li {
            margin-left: 0;
            margin-bottom: 1.25rem;
        }

    .nav-toggle {
        display: flex;
    }

    .nav-controls {
        order: 1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }
}

/*==================*/


/* Floating Feedback Widget */
.feedback-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-trigger {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 15px 20px 15px 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    min-width: 50px;
    overflow: hidden;
}

    .feedback-trigger:hover {
        transform: translateX(0);
       /* box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);*/
    }

    .feedback-trigger i {
        font-size: 20px;
        margin-right: 10px;
        animation: bounce 2s infinite;
    }

.feedback-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.feedback-trigger:hover .feedback-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .feedback-modal.show {
        opacity: 1;
    }

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.feedback-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-modal.show .feedback-modal-container {
    transform: scale(1);
}

/* Modal Header */
.feedback-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.feedback-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

.feedback-logo h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 700;
}

.feedback-logo p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.feedback-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .feedback-close:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.1);
    }

/* Modal Body */
.feedback-modal-body {
    padding: 2rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feedback-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.feedback-input,
.feedback-select,
.feedback-textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .feedback-input:focus,
    .feedback-select:focus,
    .feedback-textarea:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Rating Stars */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    justify-content: flex-end;
}

    .rating-stars input {
        display: none;
    }

    .rating-stars label {
        font-size: 2rem;
        color: #ddd;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .rating-stars label:hover,
        .rating-stars label:hover ~ label,
        .rating-stars input:checked ~ label {
            color: #ffc107;
            transform: scale(1.1);
        }

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .checkbox-item:hover {
        background: #f8f9fa;
    }

    .checkbox-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #667eea;
    }

/* Submit Button */
.feedback-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

    .feedback-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .feedback-submit:active {
        transform: translateY(0);
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .feedback-modal-container {
        margin: 1rem;
        max-height: 95vh;
    }

    .feedback-modal-header,
    .feedback-modal-body {
        padding: 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .feedback-trigger {
        border-radius: 0 20px 20px 0;
        padding: 12px 15px 12px 12px;
    }

    .feedback-text {
        display: none;
    }
}

/* Animation for success message */
.feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .feedback-success i {
        color: #28a745;
        font-size: 1.2rem;
    }

  /*  =============================================*/


.whatsapp-widget {
    position: fixed;
    left: 25px;
    bottom: 35%;
    transform: translateX(-90%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

    .whatsapp-widget:hover {
        transform: translateX(0);
    }

    .whatsapp-widget a {
        display: flex;
        align-items: center;
        background: #25D366;
        color: white;
        text-decoration: none;
        padding: 12px 16px;
        border-radius: 24px 24px 24px 24px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }

    .whatsapp-widget i {
        font-size: 24px;
    }

.whatsapp-text {
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-widget:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .whatsapp-text {
        display: none;
    }
}

/*=========================================*/

.dynamic-widget {
    position: fixed;
    top: 50%;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 0 25px 25px 0;
    color: white;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-90%);
    transition: transform 0.3s ease;
    z-index: 9999;
    user-select: none;
    outline: none;
}

    .dynamic-widget:hover,
    .dynamic-widget:focus {
        transform: translateX(0);
    }

    .dynamic-widget i {
        font-size: 22px;
    }

.dynamic-text {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .dynamic-text {
        display: none;
    }
}

.floating-login-container {
    position: fixed;
    left: 41px;
    bottom: 140px;
    z-index: 1000;
    overflow: visible;
    width: 160px;
}

.login-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    background: #6c63ff;
    color: #fff;
    border-radius: 0 25px 25px 0;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    padding: 15px 20px 15px 15px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    width: 140px;
    transform: translateX(-50%);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .login-float-btn.active {
        transform: translateX(0);
        opacity: 1;
    }

    .login-float-btn i {
        font-size: 20px;
        margin-right: 10px;
    }

.login-text {
    font-weight: 600;
    white-space: nowrap;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-login-container {
        bottom: 100px;
        width: 140px;
    }

    .login-float-btn {
        width: 12px;
        font-size: 16px;
        padding: 12px 18px 12px 12px;
        transform: translateX(-40%);
    }

        .login-float-btn.active {
            transform: translateX(0);
        }

    .login-text {
        font-size: 14px;
    }
}

.login-float-btn {
    display: flex;
    align-items: center;
    background: #6c63ff;
    color: #fff;
    border-radius: 0 25px 25px 0;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    padding: 15px 20px 15px 15px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    width: 140px;
    transform: translateX(-50%); /* initially partial hidden */
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .login-float-btn:hover {
        transform: translateX(0); /* slide fully in on hover */
        opacity: 1;
    }



.victory-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 10000;
}

.victory-popup-container {
    background: #fff;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.victory-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}

.victory-header {
    text-align: center;

    padding: 40px 20px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.victory-logo {
    height: 50px;
    margin-bottom: 12px;
}

.victory-title {
    margin: 8px 0 4px;
    font-size: 28px;
}

.victory-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.victory-main {
    display: flex;
    flex-wrap: wrap;
}

.victory-left, .victory-right {
    padding: 30px;
    box-sizing: border-box;
}

.victory-left {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-image {
    max-width: 100%;
    border-radius: 8px;
}

.victory-right {
    flex: 1 1 60%;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        flex: 1 1 100%;
    }

    .form-group label {
        font-weight: 600;
        margin-bottom: 6px;
    }

    .form-group input, .form-group textarea {
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
    }

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
    color: #ddd;
}

    .rating-stars input {
        display: none;
    }

        .rating-stars label:hover,
        .rating-stars input:checked ~ label {
            color: #f4c150;
            cursor: pointer;
        }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .checkbox-group label,
    .checkbox-item,
    .checkbox-group label span {
        color: #222 !important; /* strong dark */
        font-weight: 300 !important; /* bold like headings */
        opacity: 1 !important; /* removes faded look */
    }


.feedback-submit {
    margin-top: 20px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

    .feedback-submit:hover {
        background: #5469d4;
    }

@media (max-width: 768px) {
    .victory-left, .victory-right {
        flex: 1 1 100%;
        padding: 20px;
    }
}


/* Feedback Modal - Exact Size like Admission Popup */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .feedback-modal.show {
        opacity: 1;
    }

.feedback-modal-container {
    background: white;
    border-radius: 20px;
    width: 90vw; /* Same width proportion as your admission popup */
    max-width: 1000px; /* Maximum width limit */
    height: 80vh; /* Fixed height like your popup */
    max-height: 600px; /* Maximum height limit */
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* No scroll bars */
}

.feedback-modal.show .feedback-modal-container {
    transform: scale(1);
}

/* Header - Compact like your admission popup */
.feedback-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem; /* Reduced padding */
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
    flex-shrink: 0; /* Don't shrink header */
}

.feedback-logo img {
    width: 50px; /* Smaller logo like your popup */
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 0.5rem;
}

.feedback-logo h3 {
    font-size: 1.3rem; /* Smaller title */
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 700;
}

.feedback-logo p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem; /* Smaller subtitle */
}

/* Body - Scrollable content area */
.feedback-modal-body {
    padding: 1.5rem 2rem; /* Consistent padding */
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Enable scroll only in body */
    overflow-x: hidden;
}

/* Form adjustments for compact layout */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Reduced gap */
}

.feedback-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Smaller gap */
}

.feedback-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem; /* Smaller labels */
}

.feedback-input,
.feedback-select,
.feedback-textarea {
    padding: 10px 12px; /* Reduced padding */
    border: 2px solid #e1e5e9;
    border-radius: 8px; /* Smaller border radius */
    font-size: 0.9rem; /* Smaller font */
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* Rating stars - smaller */
.rating-stars label {
    font-size: 1.5rem; /* Smaller stars */
}

/* Checkbox group - more compact */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem; /* Smaller gap */
    margin-top: 0.3rem;
}

.checkbox-item {
    padding: 0.3rem; /* Smaller padding */
}

/* Submit button - compact */
.feedback-submit {
    padding: 12px 25px; /* Smaller button */
    font-size: 1rem;
    margin-top: 0.5rem; /* Less margin */
}

/* Close button positioning */
.feedback-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px; /* Smaller close button */
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Smaller X */
    transition: all 0.3s ease;
}

/* Mobile responsive - keep same proportions */
@media (max-width: 768px) {
    .feedback-modal-container {
        width: 95vw;
        height: 85vh;
        margin: 1rem;
    }

    .feedback-modal-header,
    .feedback-modal-body {
        padding: 1rem 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}





/* AI Chat Modal Styles */
.chat-modal {
    width: 90%;
    max-width: 500px;
    height: 600px;
    max-height: 80vh;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

    .chat-header h3 {
        margin: 0;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.close-btn {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

    .close-btn:hover {
        color: #ffeb3b;
    }

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(600px - 80px);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    margin-bottom: 10px;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.typing-indicator .message-content {
    padding: 15px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .typing-dots span {
        width: 8px;
        height: 8px;
        background: #999;
        border-radius: 50%;
        animation: typing 1.4s infinite ease-in-out;
    }

        .typing-dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    30% {
        transform: scale(1);
        opacity: 1;
    }
}

.quick-replies {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 12px;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 10px 8px 10px;
}


.quick-reply-btn {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    gap: 8px; /* icon-text spacing */
    padding: 12px 22px;
    background: #e7eafe;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.07em;
    color: #333;
    font-weight: 700;
    box-shadow: none;
    transition: 0.22s;
}

    .quick-reply-btn i {
        font-size: 1.25em;
        display: flex;
        align-items: center;
        justify-content: center;
    }


.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

#message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

    #message-input:focus {
        border-color: #667eea;
    }

#send-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    #send-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    #send-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-modal {
        width: 95%;
        height: 500px;
        margin: 20px auto;
    }

    .quick-replies {
        flex-direction: column;
        gap: 8px;
    }

    .quick-reply-btn {
        width: 100%;
        justify-content: center;
    }

    .message-content {
        max-width: 90%;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .chat-messages::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* --- ADD or REPLACE khali CSS with your original CSS --- */

.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 640px;
    max-width: 98vw;
    height: 700px;
    max-height: 96vh;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Chat header sticky */
.chat-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Expanded chat body, menu always visible */
.chat-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    height: unset;
}

/* Permanent, menu as horizontal menu */
.quick-replies {
    position: sticky; /* keeps div at top when scrolling */
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 16px 10px 10px 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}


.quick-reply-btn {
    flex: 1 1 18%;
    min-width: 115px;
    padding: 15px 0;
    font-size: 1.1em;
    border-radius: 15px;
    border: none;
    background: #e7eafe;
    color: #333;
    font-weight: 700;
    box-shadow: none;
    transition: 0.22s;
}

    .quick-reply-btn:hover {
        background: #764ba2;
        color: #fff;
        transform: scale(1.04);
    }

@media (max-width: 800px) {
    .chat-modal {
        width: 99vw;
        min-width: 0;
        height: 97vh;
        border-radius: 10px;
    }

    .quick-reply-btn {
        min-width: 80px;
        font-size: 1em;
        padding: 10px 0;
    }
}
