:root {
    --primary-color: #c51223;
    --primary-hover: #a00e1c;
    --secondary-color: #fec722;
    --dark-color: #1a202c;
    --light-bg: #f8fafc;
}

body {
    font-family: 'montserrat', sans-serif !important;
    color: #4a5568;
    overflow-x: hidden;
    padding-top: 76px;
}

p {
    font-family: montserrat !important;
}


/* Top Bar & Navigation */

.top-bar {
    background-color: var(--dark-color);
    font-size: 0.875rem;
}

.top-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.navbar-brand img {
    max-height: 61px;
}


/* Original Carousel Style Retained */

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
}


/* Section Styling & Uniform Left-Aligned Titles */

section {
    padding: 60px 0;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: left !important;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* Cards & Content Blocks */

.facility-card,
.info-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.facility-card:hover,
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.facility-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(197, 18, 35, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}


/* Scalable Dynamic Gallery Grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.08);
}


/* Modern Administration Table Styling */

.admin-table-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d3748 100%);
    color: #ffffff;
}

.admin-table thead th {
    padding: 18px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #edf2f7;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.002);
}

.admin-table tbody td {
    padding: 18px 24px;
    vertical-align: middle;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    background: rgba(197, 18, 35, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}


/* Map Attached to Footer */

.footer-map-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    background: #e2e8f0;
    border-top: 4px solid var(--primary-color);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%) contrast(100%);
}


/* Footer */

footer {
    background-color: var(--dark-color);
    color: #cbd5e1;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

.footer-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    margin-right: 14px;
    font-size: 1.1rem;
}

@media (min-width: 992px) and (max-width: 1200px) {
    /* 1. Scale down the logo size slightly */
    .navbar-brand img {
        max-height: 38px;
        width: auto;
    }
    /* 2. Reduce horizontal spacing/padding between navigation links */
    .navbar-nav .nav-link {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 14px;
        /* Slightly smaller font to fit all 8 items */
    }
    /* 3. Reduce gap between list items */
    .navbar-nav {
        gap: 2px !important;
    }
    /* 4. Make the red "Payment Info" button more compact */
    .payment-btn,
    .btn-danger {
        padding: 6px 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }
}

section {
    /* Set this value equal to or slightly larger than your header's height */
    scroll-margin-top: 100px;
}