/* 
 * Sriwilaiwittaya School Custom Stylesheet (Responsive, Dark Mode Support, High Contrast)
 * School Theme Colors: Royal Blue (#000099) & Golden Yellow (#FFD700)
 */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* Color Variables and Theme Definition */
:root {
    --bg-primary: #f8fafc; /* Very light slate gray/white */
    --bg-secondary: #ffffff; /* Pure white background */
    --bg-card: #ffffff; /* Card background */
    --bg-navbar: rgba(0, 0, 153, 0.95); /* Solid Blue */
    --text-primary: #0f172a; /* Dark slate gray primary text */
    --text-secondary: #475569; /* Medium slate gray secondary text */
    --text-light: #ffffff;
    --primary-color: #000099; /* Royal School Blue */
    --primary-hover: #000066;
    --secondary-color: #FFD700; /* Gold School Yellow */
    --secondary-hover: #e6c200;
    --accent-color: #d97706; /* Darker accent for contrast */
    --success-color: #0d9488;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(12px);
    --transition-speed: 0.3s;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --bg-primary: #060814; /* Deep premium midnight blue-black */
    --bg-secondary: #0b1120; /* Deep blue-slate background */
    --bg-card: rgba(15, 23, 42, 0.75); /* Dark semi-transparent card for glassmorphism */
    --bg-navbar: rgba(5, 7, 13, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --primary-color: #4d4dff; /* High contrast bright blue for dark mode */
    --primary-hover: #8080ff;
    --secondary-color: #ffdf1a;
    --secondary-hover: #ffd700;
    --card-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Global Reset & Typography */
body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    font-size: 1.05rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

/* Heading color overrides for light/dark background contexts */
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white, .font-heading.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, .text-white .font-heading,
.gradient-primary h1, .gradient-primary h2, .gradient-primary h3, .gradient-primary h4, .gradient-primary h5, .gradient-primary h6,
.gradient-school h1, .gradient-school h2, .gradient-school h3, .gradient-school h4, .gradient-school h5, .gradient-school h6,
.hero-slider h1, .hero-slider h2, .hero-slider h3, .hero-slider h4, .hero-slider h5, .hero-slider h6,
.footer-custom h1, .footer-custom h2, .footer-custom h3, .footer-custom h4, .footer-custom h5, .footer-custom h6,
.carousel-caption-custom h1, .carousel-caption-custom h2, .carousel-caption-custom h3, .carousel-caption-custom h4, .carousel-caption-custom h5, .carousel-caption-custom h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.navbar h1, .navbar h2, .navbar h3, .navbar h4, .navbar h5, .navbar h6 {
    color: #ffffff !important;
}

h1.text-warning, h2.text-warning, h3.text-warning, h4.text-warning, h5.text-warning, h6.text-warning, .font-heading.text-warning,
.text-warning h1, .text-warning h2, .text-warning h3, .text-warning h4, .text-warning h5, .text-warning h6, .text-warning .font-heading {
    color: var(--secondary-color) !important;
}

p, .card-text, .text-muted, .text-secondary, .text-black-50 {
    color: var(--text-secondary) !important;
}

/* Force links to display cleanly */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.text-white) {
    color: var(--primary-color);
}
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.text-white):hover {
    color: var(--primary-hover);
}

/* Override backgrounds for light/dark theme compatibility */
.bg-white {
    background-color: #ffffff !important;
}
.bg-light {
    background-color: var(--bg-primary) !important;
}
[data-theme="dark"] .bg-white, [data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

.text-dark, .text-body {
    color: var(--text-primary) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Adjust card component backgrounds */
.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* High contrast elements that must have dark text */
.btn-warning, .btn-secondary-custom, .badge.bg-warning, .badge.bg-light {
    color: #000000 !important;
}

.btn-warning *, .btn-secondary-custom *, .badge.bg-warning *, .badge.bg-light * {
    color: #000000 !important;
}

/* Modern Form Fields */
.form-control, .form-select {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6;
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 153, 0.15) !important;
}
[data-theme="dark"] .form-control:focus, [data-theme="dark"] .form-select:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}


/* Table Text Colors */
.table {
    color: var(--text-primary) !important;
}
.table td, .table th {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}
.table-dark th,
.table-dark td,
.table thead.table-dark th,
.table thead.table-dark td {
    color: #ffffff !important;
}

/* Glassmorphism Panel (with high text readability) */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border var(--transition-speed) ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--secondary-color);
}

/* Clickable entire card style */
.clickable-card-wrapper {
    text-decoration: none !important;
    display: block;
    color: inherit !important;
}

.clickable-card-wrapper:hover .card-title {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Soft Shadow Utility */
.soft-shadow {
    box-shadow: var(--card-shadow);
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.gradient-school {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 60%, var(--secondary-color) 100%);
}

/* Custom Floating Navbar */
.navbar-custom {
    background: var(--bg-navbar) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 3px solid var(--secondary-color);
    transition: all var(--transition-speed) ease;
    padding: 12px 0;
}

.navbar-custom.navbar-scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar-custom .navbar-brand {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    color: var(--text-light) !important;
    font-size: 1.4rem;
}

.navbar-custom .navbar-brand span {
    color: var(--secondary-color);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 2px;
    padding: 6px 10px !important;
    font-size: 0.95rem;
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active,
.navbar-custom .show > .nav-link {
    color: #000000 !important;
    background: var(--secondary-color);
}

/* Dropdown Menu Styling */
.navbar-custom .dropdown-menu {
    background-color: var(--bg-navbar) !important;
    border: 1px solid var(--border-color) !important;
    border-top: 3px solid var(--secondary-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.2s !important;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:hover i,
.navbar-custom .dropdown-item:focus,
.navbar-custom .dropdown-item:focus i {
    background-color: var(--secondary-color) !important;
    color: #000000 !important;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed) ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.2);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    color: #000000 !important;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed) ease;
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.05);
}

/* Hero Carousel */
.hero-slider {
    position: relative;
    margin-top: 76px;
}

.hero-slider .carousel-item {
    height: auto;
    min-height: auto;
}

.hero-slider .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 99, 0.85) 0%, rgba(0, 0, 99, 0.45) 100%);
    display: flex;
    align-items: center;
}

.hero-slider .carousel-caption-custom {
    color: #fff;
    max-width: 650px;
}

/* Featured Activity Slide Section */
.featured-slider-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Quick link card */
.quick-link-card {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
}

.quick-link-card:hover {
    transform: translateY(-8px);
}

.quick-link-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Footer Custom */
.footer-custom {
    background-color: #030617;
    color: #94a3b8;
    padding: 50px 0 20px 0;
    border-top: 5px solid var(--secondary-color);
}

.footer-custom h5 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-custom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 30px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



/* Loading Overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Premium Conic-Gradient Ring Spinner (Without School Logo) */
.loader-spinner-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 30%, var(--primary-color) 70%, var(--secondary-color) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    animation: ringRotation 1s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 0, 153, 0.25));
}

@keyframes ringRotation {
    to {
        transform: rotate(360deg);
    }
}

/* Beautiful Text Styling */
.loader-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
    animation: pulseText 1.6s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

/* Lightbox carousel controls custom style */
.lightbox-modal .modal-content,
.lightbox-modal .modal-header,
.lightbox-modal .modal-body {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

.lightbox-modal .modal-dialog {
    max-width: 800px;
    width: 90%;
    margin: 3.5rem auto;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    background: transparent !important;
}

/* Close button - placed just above the image on desktop */
.lightbox-modal .btn-close {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 1060;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 50%;
    transition: opacity 0.2s, background-color 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.lightbox-modal .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Navigation controls - placed just beside the image sides on desktop */
.lightbox-carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    border: none;
    z-index: 1060;
}

.lightbox-carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Responsive adjustments for tablets and phones */
@media (max-width: 991px) {
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-modal .btn-close {
        top: 15px;
        right: 15px;
    }
    .lightbox-carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Responsive and Padding margin helpers on Phone Screens */
@media (max-width: 576px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .hero-slider .carousel-item {
        height: 180px !important;
    }
    .navbar-custom .navbar-brand {
        font-size: 1.15rem;
    }
    .glass-panel {
        padding: 20px !important;
    }
    .quick-link-card {
        padding: 16px;
    }
    .chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 95px;
    }
}
@media (max-width: 991px) {
    .navbar-custom .nav-link {
        margin: 5px 0;
        border-radius: 5px;
    }
    .admin-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
    }
}

/* Animated Counters */
.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Kanit', sans-serif;
}
[data-theme="dark"] .counter-number {
    color: var(--secondary-color);
}

/* --- Global Theme & High Contrast Adaptations (Variables-Based) --- */

/* Input groups and prepended icons */
.input-group-text {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.input-group-text i {
    color: var(--text-secondary) !important;
}

/* Borders */
.border, .border-top, .border-bottom, .border-start, .border-end, .border-light {
    border-color: var(--border-color) !important;
}

/* List group components */
.list-group-item {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.list-group-item-action {
    color: var(--text-primary) !important;
}
.list-group-item-action:hover, .list-group-item-action:focus {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: var(--primary-color) !important;
}
[data-theme="dark"] .list-group-item-action:hover, [data-theme="dark"] .list-group-item-action:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--secondary-color) !important;
}
.list-group-item-action.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Dropdown menus general */
.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}
.dropdown-item {
    color: var(--text-primary) !important;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--secondary-color) !important;
    color: #000000 !important;
}

/* Pagination general */
.page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--primary-color) !important;
}
.page-link:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5;
}
[data-theme="dark"] .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Table Striped and Hover Styles */
.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(0, 0, 0, 0.015) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.03) !important;
}
.table-hover>tbody>tr:hover>* {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .table-hover>tbody>tr:hover>* {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* DataTables Overrides */
.dataTables_wrapper {
    color: var(--text-primary) !important;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px !important;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--secondary-color) !important;
    color: #000000 !important;
    border-color: var(--secondary-color) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--primary-color) !important;
}
[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
.dataTables_wrapper .pagination .page-item .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--primary-color) !important;
}
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* SweetAlert2 Dark Theme Overrides */
.swal2-popup {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}
.swal2-title, .swal2-html-container {
    color: var(--text-primary) !important;
}
.swal2-close {
    color: var(--text-primary) !important;
}

/* Admin Sidebar specific adjustments */
.admin-sidebar {
    background-color: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color) !important;
    padding-top: 1rem !important;
    min-height: calc(100vh - 66px);
}
.admin-sidebar .nav-link {
    color: var(--text-primary) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    margin: 2px 8px;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}
.admin-sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: var(--primary-color) !important;
}
[data-theme="dark"] .admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--secondary-color) !important;
}
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Login Page Adaptations */
body.login-body,
body.login-body h1, body.login-body h2, body.login-body h3, body.login-body h4, body.login-body h5, body.login-body h6,
body.login-body p, body.login-body label, body.login-body a {
    color: #ffffff !important;
}
body.login-body .glass-panel {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
body.login-body .form-control {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
body.login-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
body.login-body .input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
body.login-body .input-group-text i {
    color: #ffffff !important;
}

/* Force dark inline colors from content editors to white only in dark mode */
[data-theme="dark"] [style*="color: #00"], [data-theme="dark"] [style*="color:#00"],
[data-theme="dark"] [style*="color: #1"], [data-theme="dark"] [style*="color:#1"],
[data-theme="dark"] [style*="color: #2"], [data-theme="dark"] [style*="color:#2"],
[data-theme="dark"] [style*="color: #3"], [data-theme="dark"] [style*="color:#3"],
[data-theme="dark"] [style*="color: rgb(0,"], [data-theme="dark"] [style*="color:rgb(0,"],
[data-theme="dark"] [style*="color: rgb(10,"], [data-theme="dark"] [style*="color:rgb(10,"],
[data-theme="dark"] [style*="color: rgb(20,"], [data-theme="dark"] [style*="color:rgb(20,"],
[data-theme="dark"] [style*="color: rgb(30,"], [data-theme="dark"] [style*="color:rgb(30,"],
[data-theme="dark"] [style*="color: rgb(51,"], [data-theme="dark"] [style*="color:rgb(51,"],
[data-theme="dark"] [style*="color: black"], [data-theme="dark"] [style*="color:black"] {
    color: #ffffff !important;
}

/* ==========================================
   HOMEPAGE ENTRANCE POPUP SLIDESHOW MODAL
   ========================================== */
.entrance-popup-modal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.entrance-popup-modal .popup-img-container {
    position: relative;
    border-radius: 12px;
    overflow: visible;
}

.entrance-popup-modal img {
    max-height: 75vh;
    width: 100%;
    object-fit: contain;
    background: rgba(0,0,0,0.05);
}

/* Floating close button at top-right */
.entrance-popup-modal .btn-popup-close-floating {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1060;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.entrance-popup-modal .btn-popup-close-floating:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--secondary-color);
    color: #000000;
    border-color: #000000;
}

/* Bottom banner styling inside slide */
.entrance-popup-modal .popup-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: #ffffff !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Carousel Control Arrow adjustments for popup */
.entrance-popup-modal .carousel-control-prev,
.entrance-popup-modal .carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 -20px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.entrance-popup-modal .carousel-control-prev:hover,
.entrance-popup-modal .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .entrance-popup-modal .carousel-control-prev,
    .entrance-popup-modal .carousel-control-next {
        margin: 0 5px;
        width: 35px;
        height: 35px;
    }
    .entrance-popup-modal .btn-popup-close-floating {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   FLOATING WIDGETS & CHATBOT STYLING
   ========================================== */

/* Bottom-Left Floating Container (Scroll Top & Facebook) */
.floating-left-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
}

.btn-floating-left {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none !important;
}

.btn-floating-left:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-scroll-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-facebook-float {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid #ffffff;
    outline: none;
    text-decoration: none !important;
    background: #1877F2; /* Facebook Official Blue */
}

.btn-facebook-float:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Bottom-Right Chatbot Widget */
.floating-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.btn-chat-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.chat-panel-card {
    position: absolute;
    bottom: 130px;
    right: 0;
    width: 350px;
    height: 480px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1051;
}

.chat-panel-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-panel-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-color);
}

.chat-panel-header h6 {
    margin: 0;
    font-weight: 600;
    color: #ffffff !important;
}

.chat-panel-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-primary);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.chat-msg-bot {
    background-color: #eef2f6 !important;
    color: #0f172a !important;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    font-weight: 500;
}

.chat-msg-user {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
}

.btn-quick-chat {
    background-color: #ffffff !important;
    border: 1.5px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.2s;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    font-weight: 600 !important;
}

.btn-quick-chat:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.chat-panel-footer {
    padding: 12px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-panel-footer input {
    flex: 1;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    outline: none;
    font-family: 'Sarabun', sans-serif;
}

.chat-panel-footer button {
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-panel-footer button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .chat-panel-card {
        width: 300px;
        height: 400px;
        bottom: 130px;
    }
}

/* ==========================================
   CUSTOM HOMEPAGE LAYOUT & THEME UPGRADES
   ========================================== */

#main-homepage-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%), var(--bg-primary) !important;
    position: relative;
    overflow: hidden;
}

#main-homepage-content::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 0, 153, 0.035) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#main-homepage-content::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Make container layout stack above pseudo-elements */
#main-homepage-content > .container {
    position: relative;
    z-index: 1;
}

/* School Double Stripe Heading Accent (Left side) */
.school-header-left-accent {
    position: relative;
    padding-left: 20px;
    border-left: none !important;
}

.school-header-left-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 6px;
    background-color: var(--primary-color); /* Royal Blue */
    border-radius: 4px;
}

.school-header-left-accent::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background-color: var(--secondary-color); /* Golden Yellow */
    border-radius: 3px;
}

/* School Double Stripe Heading Accent (Bottom underline) */
.school-header-underline {
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 153, 0.08) !important;
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.school-header-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 140px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) 60%, var(--secondary-color) 40%);
    border-radius: 2px;
}

/* School Sidebar Heading Accent */
.school-sidebar-header {
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 153, 0.08) !important;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.school-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3.5px;
    background: linear-gradient(to right, var(--primary-color) 60%, var(--secondary-color) 40%);
    border-radius: 2px;
}

/* Desktop popup scaling override */
/* Desktop popup scaling override */
@media (min-width: 992px) {
    .entrance-popup-modal .modal-dialog {
        max-width: 900px !important;
    }
}

/* ==========================================================================
   Modern Responsive Admin Panel & Dark/Light Styling Overrides
   ========================================================================== */

/* 1. Admin Stat Cards */
.dashboard-stat-card {
    background-color: var(--bg-card) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--border-color) !important;
}
.dashboard-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* 2. Responsive Sidebar Drawer for Mobile & Desktop */
@media (max-width: 767.98px) {
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        z-index: 1040 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: block !important;
        min-height: 100vh !important;
        box-shadow: 0 0 25px rgba(0,0,0,0.15) !important;
        border-right: 1px solid var(--border-color) !important;
        padding-top: 76px !important;
        background-color: var(--bg-secondary) !important;
    }
    
    .admin-sidebar.show {
        transform: translateX(0) !important;
    }
    
    /* Backdrop overlay for mobile menu */
    .admin-sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1030;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .admin-sidebar-backdrop.show {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .admin-sidebar {
        position: fixed !important;
        top: 56px !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 240px !important;
        z-index: 100 !important;
        overflow-y: auto !important;
        border-right: 1px solid var(--border-color) !important;
        background-color: var(--bg-secondary) !important;
        display: block !important;
        padding-top: 20px !important;
    }
    
    main.col-md-9 {
        margin-left: 240px !important;
        width: calc(100% - 240px) !important;
        flex: 0 0 calc(100% - 240px) !important;
        max-width: calc(100% - 240px) !important;
    }
}

/* 3. Dark Theme Specific Overrides for Forms and Elements */
[data-theme="dark"] .glass-panel {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table {
    color: #ffffff !important;
}

[data-theme="dark"] .table-dark {
    background-color: #0b1120 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .modal-content {
    background-color: #0b1120 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Make sure active state in sidebar stands out */
.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%) !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
}

/* Hide top navbar items on mobile (since they are moved to mobile sidebar top) */
@media (max-width: 767.98px) {
    .navbar-dark.bg-dark .navbar-collapse {
        display: none !important;
    }
}

/* ==========================================
   RESPONSIVE ADMIN TABLES (MOBILE CARD VIEW)
   ========================================== */
@media (max-width: 767.98px) {
    main .table-responsive table,
    main .table-responsive thead,
    main .table-responsive tbody,
    main .table-responsive th,
    main .table-responsive td,
    main .table-responsive tr {
        display: block !important;
        width: 100% !important;
    }
    
    main .table-responsive table {
        border: 0 !important;
    }
    
    main .table-responsive thead {
        display: none !important;
    }
    
    main .table-responsive tr {
        margin-bottom: 12px !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        padding: 10px 14px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    }
    
    main .table-responsive td {
        text-align: right !important;
        padding: 6px 0 !important;
        position: relative !important;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.05) !important;
        min-height: 36px;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.9rem;
    }
    
    main .table-responsive td:last-child {
        border-bottom: 0 !important;
        padding-top: 10px !important;
        justify-content: center !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        margin-top: 4px;
    }
    
    main .table-responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        font-size: 0.8rem;
        color: #64748b;
    }

    main .table-responsive td:last-child::before {
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
        font-size: 0.75rem;
    }
}

/* Safeguard to ensure text in dark navbar is highly readable */
.navbar-dark .text-light,
.navbar-dark .nav-item,
.navbar-dark .navbar-brand {
    color: #ffffff !important;
}


/* Optimize homepage 2-column cards on small mobile viewports */
@media (max-width: 575.98px) {
    .col-6 .card-img-top {
        height: 110px !important;
    }
    .col-6 .card-body {
        padding: 10px !important;
    }
    .col-6 .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }
    .col-6 .card-text {
        font-size: 0.75rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* E-Service Section & Grid */
.eservice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 16px;
    margin-top: 20px;
}
.eservice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 4px 10px;
    text-decoration: none;
}
.eservice-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.eservice-icon i {
    font-size: 22px !important;
}
.eservice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.eservice-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive styles for E-Service Grid */
@media (max-width: 1200px) {
    .eservice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 992px) {
    .eservice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .eservice-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 8px !important;
    }
    .eservice-card {
        padding: 14px 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
    }
    .eservice-icon {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .eservice-title {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
    }
    .eservice-desc {
        font-size: 0.78rem !important;
    }
}
@media (max-width: 576px) {
    #homepage-ticker {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    #main-homepage-content {
        padding-top: 15px !important;
    }
    .hero-slider .carousel-item {
        height: auto !important;
    }
    .hero-slider img {
        height: auto !important;
        object-fit: contain !important;
        width: 100%;
    }
}
@media (min-width: 577px) {
    .hero-slider .carousel-item {
        height: 400px !important;
    }
    .hero-slider img {
        height: 400px !important;
        object-fit: cover !important;
        object-position: top !important;
        width: 100%;
    }
}








