/* ==========================================
   Design System & Theme Variables
========================================== */

:root {
    --primary-red: #FF1E27;
    --primary-red-hover: #E0121B;
    --primary-red-rgb: 255, 30, 39;
    
    /* Dark Theme Default */
    --bg-main: #09090A;
    --bg-section: #0F0F11;
    --bg-glass: rgba(15, 15, 17, 0.7);
    --bg-glass-input: rgba(25, 25, 28, 0.6);
    --bg-card: #141416;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #8E929A;
    --text-inverse: #09090A;
    --bg-overlay-card: rgba(20, 20, 22, 0.75);
    
    --shadow-main: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(255, 30, 39, 0.25);
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-main: #F4F6F9;
    --bg-section: #EBF0F5;
    --bg-glass: rgba(244, 246, 249, 0.8);
    --bg-glass-input: rgba(255, 255, 255, 0.7);
    --bg-card: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #1C1D21;
    --text-muted: #5E626E;
    --text-inverse: #FFFFFF;
    --bg-overlay-card: rgba(255, 255, 255, 0.75);
    
    --shadow-main: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(255, 30, 39, 0.15);
}

/* ==========================================
   Core Layout & Scrollbar
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Utilities */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.775rem !important; }
.fs-9 { font-size: 0.675rem !important; }
.fw-black { font-weight: 900; }
.fw-extrabold { font-weight: 800; }
.max-w-600 { max-width: 600px; }

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FF1E27 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow Utility */
.shadow-custom {
    box-shadow: var(--shadow-main);
}

.shadow-danger {
    box-shadow: 0 10px 25px rgba(255, 30, 39, 0.4);
}

/* Background Blurs */
.bg-blur-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}
.circle-1 {
    top: 10%;
    left: -5%;
    background-color: var(--primary-red);
}
.circle-2 {
    bottom: 20%;
    right: -5%;
    background-color: #FF5A5F;
}

/* Glass Section */
.bg-glass-section {
    background-color: var(--bg-section);
    position: relative;
}

/* ==========================================
   Loading Screen (10 Seconds)
========================================== */

#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050506;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo-wrapper {
    display: inline-block;
    position: relative;
}

.loader-logo-svg {
    filter: drop-shadow(0 0 15px rgba(255, 30, 39, 0.4));
    animation: logoPulse 2s infinite ease-in-out;
}

/* SVG Line Drawing Keyframes */
.logo-path {
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawXLine 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawXLine {
    0% { stroke-dashoffset: 450; }
    80%, 100% { stroke-dashoffset: 0; }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-brand {
    letter-spacing: 2px;
    font-size: 1.8rem;
    color: #FFFFFF;
}

.loader-progress-container {
    width: 280px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, #FF6B6B 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-red);
}

.loader-status-container {
    display: flex;
    justify-content: space-between;
    width: 280px;
    margin: 0 auto;
    font-size: 0.75rem;
}

.loader-status {
    font-weight: 500;
}

.skip-loader-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 6px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skip-loader-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
}

/* ==========================================
   Navigation Bar (Sticky Glassmorphism)
========================================== */

.navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow-main);
}

.brand-logo {
    filter: drop-shadow(0 0 4px rgba(255, 30, 39, 0.3));
}

.brand-text {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background-color: var(--bg-glass-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-theme-toggle:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.05);
}

/* Scroll Progress Bar */
#scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-red);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Mobile Navbar Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-main);
    }
    
    .nav-link::after { display: none; }
}

/* ==========================================
   Hero Section & Canvas Elements
========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(var(--primary-red-rgb), 0.06) 0%, transparent 60%);
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-desc {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-image-frame {
    position: relative;
    z-index: 3;
}

.hero-banner-img {
    filter: brightness(0.95);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-banner-img:hover {
    transform: scale(1.01) rotate(0.5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Glass overlay cards floating on hero graphic */
.overlay-glass-card {
    position: absolute;
    background: var(--bg-overlay-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    width: 220px;
    z-index: 4;
    box-shadow: var(--shadow-main);
    animation: floatOverlayCard 4s infinite ease-in-out;
}

.overlay-glass-card h6 {
    color: var(--text-main) !important;
}

.overlay-glass-card small {
    color: var(--text-muted) !important;
}

.top-card {
    top: 15%;
    left: -15%;
}

.bottom-card {
    bottom: 15%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes floatOverlayCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .top-card, .bottom-card { display: none; }
}

/* Buttons style override */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-danger:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* ==========================================
   Scrolling Announcement Ticker
========================================== */

.admissions-ticker-wrap {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 48px;
    z-index: 5;
    position: relative;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-text-move {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeAnimation 25s linear infinite;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.ticker-text-move span {
    display: inline-block;
    padding-right: 2rem;
}

@keyframes marqueeAnimation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================
   Stats & Counter Section
========================================== */

.stat-card {
    background-color: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 39, 0.2) !important;
    box-shadow: var(--shadow-main);
}

.stat-number {
    font-size: 2.25rem;
    color: var(--text-main);
}

/* ==========================================
   About Section & Tabs
========================================== */

.about-card-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-card-box:hover {
    border-color: rgba(255, 30, 39, 0.25);
    transform: translateY(-5px);
}

.bg-glass {
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-tabs .nav-tabs {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    border-radius: 6px !important;
    color: var(--text-muted) !important;
    border: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-red) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(255, 30, 39, 0.2);
}

/* ==========================================
   Subjects & Curriculum Section
========================================== */

.btn-filter {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(255, 30, 39, 0.25);
}

/* Search bar icon alignment */
.search-input-group .search-icon {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}

/* Subject Grid Cards */
.subject-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 30, 39, 0.3);
    box-shadow: var(--shadow-main);
}

.subject-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-red-rgb), 0.1);
    color: var(--primary-red);
}

.subject-card-footer {
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   Features Section
========================================== */

.feature-card-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card-box:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 30, 39, 0.25);
}

.check-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ==========================================
   Testimonials
========================================== */

.testimonial-card-box {
    background-color: var(--bg-card);
    transition: all 0.3s ease;
}

.testimonial-card-box:hover {
    border-color: rgba(255, 30, 39, 0.25) !important;
}

/* ==========================================
   Admission Form & Inquiry Styles
========================================== */

.bg-glass-input {
    background-color: var(--bg-glass-input) !important;
    color: var(--text-main) !important;
}

.form-control::placeholder {
    color: rgba(142, 146, 154, 0.5) !important;
}

.form-control, .form-select {
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 8px rgba(255, 30, 39, 0.25) !important;
}

.form-glow-effect {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-red);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

/* Checkbox Style override */
.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* ==========================================
   Virtual ID/Admission Ticket (Printable)
========================================== */

.modal-glass {
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admission-ticket {
    background: radial-gradient(circle at top left, #1c1c1f 0%, #0d0d0f 100%);
    width: 100%;
    max-width: 380px;
    border-style: dashed !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.ticket-header-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, #FF6B6B 100%);
}

.ticket-barcode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.barcode-lines {
    display: flex;
    height: 20px;
}

.barcode-lines span {
    width: 1.5px;
    height: 100%;
    background-color: #FFFFFF;
    margin-right: 1px;
}

.barcode-lines span:nth-child(2n) { width: 3px; }
.barcode-lines span:nth-child(3n) { width: 0.8px; }

/* Custom punch-out circles for tickets */
.admission-ticket::before, .admission-ticket::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-glass);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: 1px solid var(--border-color);
}
.admission-ticket::before { left: -9px; }
.admission-ticket::after { right: -9px; }

/* ==========================================
   Contact Section & Footer
========================================== */

.contact-item-box {
    background-color: var(--bg-card);
    transition: all 0.3s ease;
}

.contact-item-box:hover {
    transform: translateX(5px);
    border-color: rgba(255, 30, 39, 0.25) !important;
}

.footer-wrap {
    background-color: var(--bg-section);
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-btn:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.social-btn.facebook:hover { background-color: #3b5998; border-color: #3b5998; }
.social-btn.whatsapp:hover { background-color: #25d366; border-color: #25d366; }
.social-btn.youtube:hover { background-color: #bb0000; border-color: #bb0000; }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #cc2366; }

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red) !important;
    padding-left: 3px;
}

/* ==========================================
   Interactive FAQ Chatbot Widget
========================================== */

#faq-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.faq-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #DF131B 100%);
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 30, 39, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.faq-chat-toggle:hover {
    transform: scale(1.05);
}

.chat-notification-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: #25D366;
    border: 2px solid var(--bg-main);
    border-radius: 50%;
    animation: pulseNotify 2s infinite;
}

@keyframes pulseNotify {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.faq-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    height: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: openChatFrame 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes openChatFrame {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-box-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Styled bubbles */
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    animation: fadeMessageIn 0.3s ease forwards;
}

@keyframes fadeMessageIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    background-color: var(--bg-glass-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.chat-msg.user {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.btn-chat-suggest {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-chat-suggest:hover {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
}

/* Typing anim */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px 10px !important;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================
   Scroll Animations & Visibility
========================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* CSS-only animations for load */
.animate-fade-in {
    opacity: 0;
    animation: cssFadeIn 0.8s ease-out forwards;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: cssFadeInRight 0.8s ease-out forwards;
}

@keyframes cssFadeIn {
    to { opacity: 1; }
}

@keyframes cssFadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   Bootstrap Dark Mode & Form Theme Overrides
========================================== */

/* Form labels theme alignment */
.form-label {
    color: var(--text-main) !important;
}

/* Fix dropdown options lists background and text color in OS select rendering */
.form-select option {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
}

/* Fix input group icons backgrounds and borders */
.input-group-text {
    background-color: var(--bg-glass-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Dark theme specific UI overrides */
[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1); /* Invert hamburger icon to make it white in dark mode */
}

/* Invert form select default black arrow inside dark inputs */
[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Checkboxes border and unchecked indicators */
[data-theme="dark"] .form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Ensure text-muted is readable in dark and light modes */
.text-muted {
    color: var(--text-muted) !important;
}

/* Adjust general placeholder color for better visibility */
.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.5;
}

/* Custom 5-column layout utility for Bootstrap */
@media (min-width: 1200px) {
    .col-xl-2-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ==========================================
   Academic Staff / Team Section
========================================== */

.staff-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 30, 39, 0.25);
    box-shadow: var(--shadow-main);
}

.staff-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.staff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.staff-card:hover .staff-img {
    transform: scale(1.06);
}

.staff-overlay-icons {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    transform: translateY(101%);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.staff-card:hover .staff-overlay-icons {
    transform: translateY(0);
}

.staff-social-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.staff-social-link:hover {
    background-color: var(--primary-red);
    color: #FFFFFF;
    transform: scale(1.1);
}

.staff-name {
    font-size: 1.1rem;
}

.staff-qual {
    line-height: 1.4;
}

/* ==========================================
   Print Style Settings (Only Ticket)
========================================== */

@media print {
    body * {
        visibility: hidden;
    }
    
    #admission-slip-modal,
    #admission-slip-modal * {
        visibility: hidden;
    }
    
    #virtual-admission-card,
    #virtual-admission-card * {
        visibility: visible;
    }
    
    #virtual-admission-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 2px solid #000000 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
    }
    
    #virtual-admission-card * {
        color: #000000 !important;
    }
    
    #virtual-admission-card .ticket-logo rect {
        fill: #000000 !important;
    }
    
    #virtual-admission-card .ticket-barcode span {
        background-color: #000000 !important;
    }
}

/* ==========================================
   Light Mode Theme & UI Contrast Fixes
========================================== */

/* Fix hardcoded white borders to adapt dynamically in light theme */
[data-theme="light"] .border-white,
[data-theme="light"] .border-bottom.border-white,
[data-theme="light"] .border-top.border-white {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Fix footer text and title color in light theme */
[data-theme="light"] .footer-wrap h6,
[data-theme="light"] .footer-wrap .brand-text {
    color: var(--text-main) !important;
}

/* Fix newsletter input text visibility in light theme */
[data-theme="light"] #newsletter-email {
    color: var(--text-main) !important;
}

/* Chatbot Header & Suggestion Bubble Enhancements */
.chat-box-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #DF131B 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.chat-box-header h6 {
    color: #FFFFFF !important;
}

#faq-chatbot-clear {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s ease;
}

#faq-chatbot-clear:hover {
    color: #FFFFFF !important;
}

.btn-chat-suggest {
    background-color: var(--bg-glass-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.btn-chat-suggest:hover {
    background-color: var(--primary-red) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-red) !important;
}

/* Admission Ticket labels contrast protection */
.admission-ticket .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Preloader tagline contrast protection */
#loader-screen .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Theme Toggle transition smoothing */
.btn-theme-toggle {
    transition: all 0.3s ease !important;
}

/* Responsive FAQ Chatbot adjustment for mobile viewports */
@media (max-width: 480px) {
    #faq-chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .faq-chat-box {
        width: 290px;
        height: 380px;
        bottom: 65px;
    }
    
    .suggestions-buttons-wrap {
        max-height: 85px;
        overflow-y: auto;
    }
}
