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

:root {
    --primary: hsl(180, 85%, 36%);
    /* Teal from Logo */
    --primary-hover: hsl(180, 85%, 28%);
    --primary-light: hsl(180, 80%, 96%);
    --accent: hsl(110, 55%, 42%);
    /* Leaf Green from Logo */
    --accent-hover: hsl(110, 55%, 34%);
    --dark: #0d3244;
    /* Dark Navy from Logo */
    --dark-light: #16465f;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 60px;
    /* Offset to prevent sticky header from overlapping section titles */
}

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

body {
    font-family: 'Outfit', 'Sarabun', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    padding: 10px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), hsl(280, 80%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle-btn {
    display: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-light);
    position: relative;
    padding: 8px 0;
}

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

.nav-links a:hover {
    color: var(--primary);
}

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

.btn-admin {
    padding: 10px 20px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(109, 40, 217, 0.1);
}

.btn-admin:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 140px 0;
    background: linear-gradient(135deg, hsl(256, 80%, 97%) 0%, hsl(280, 80%, 95%) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), hsl(280, 80%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background-color: var(--gray-light);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), hsl(280, 70%, 50%));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.hero-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Promotions Section */
.promotions-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: 1fr;
    }
}

.promo-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, 0.1);
}

.promo-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.promo-card:hover .promo-img {
    transform: scale(1.08);
}

.promo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.promo-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.promo-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.promo-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--gray-light);
    padding-top: 16px;
}

.no-promotions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px dashed var(--gray);
    color: var(--gray);
}

.no-promotions svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Brain & Nervous System Section */
.brain-section {
    padding: 80px 0;
    background-color: var(--light);
}

.brain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .brain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .brain-grid {
        grid-template-columns: 1fr;
    }
}

.brain-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.brain-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, 0.1);
}

.brain-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
}

.brain-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.brain-card:hover .brain-img {
    transform: scale(1.08);
}

.brain-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.brain-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brain-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.brain-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, 0.1);
}

.news-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.news-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.news-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--gray-light);
    padding-top: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background-color: var(--white);
}

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-price,
.brain-price {
    display: inline-block;
    align-self: flex-start;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1.5px solid #99f6e4;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Schedule Section */
.schedule-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, hsl(180, 80%, 93%) 100%);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.schedule-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.schedule-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.schedule-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.schedule-list {
    font-size: 1.15rem;
    color: var(--dark-light);
    white-space: pre-line;
    line-height: 1.8;
    font-weight: 500;
}

/* Contact Details Info (Middle section before map) */
.contact-highlight {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon.line-icon {
    background-color: hsl(142, 100%, 96%);
    color: var(--accent);
}

.contact-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-text p {
    color: var(--gray);
    font-size: 0.95rem;
    word-break: break-all;
}

/* Footer Section */
footer {
    background-color: var(--dark);
    color: var(--gray-light);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-info p.address {
    margin-bottom: 30px;
    max-width: 500px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.footer-map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--dark-light);
    background-color: var(--dark-light);
    height: 300px;
    position: relative;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Image Lightbox (Modal) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 160px;
        /* Taller offset for stacked mobile menu */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        height: auto;
        padding: 20px 0;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        width: 100%;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .logo span {
        font-size: 1.15rem;
        display: block;
    }

    .nav-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 340px;
        padding: 12px 24px;
        background-color: var(--white);
        border: 1.5px solid var(--gray-light);
        border-radius: 50px;
        color: var(--primary);
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        margin: 0 auto;
    }

    .menu-toggle-btn:hover,
    .menu-toggle-btn.active {
        background-color: var(--primary-light);
        border-color: var(--primary);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .menu-toggle-btn .arrow-icon {
        transition: transform 0.3s ease;
    }

    .menu-toggle-btn.active .arrow-icon {
        transform: rotate(180deg);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 8px auto 0 auto;
        background-color: var(--white);
        border: 1px solid var(--gray-light);
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        padding: 8px 0;
        gap: 0 !important;
        overflow: hidden;
        list-style: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
        padding: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        width: 100%;
        color: var(--dark-light);
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        position: static;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links li a::before {
        content: '❖';
        margin-right: 12px;
        color: var(--primary);
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .nav-links li a:hover {
        background-color: var(--primary-light);
        color: var(--primary);
        padding-left: 24px;
    }

    /* Reductions for Special Hours and Holiday Announcements on Mobile */
    .calendar-notice-box {
        padding: 16px 20px;
        margin-top: 16px;
    }

    .notice-title {
        font-size: 0.95rem;
    }

    .notice-list li {
        font-size: 0.85rem;
    }

    .hero {
        padding: 60px 0 100px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin: 0 auto 24px auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Monthly Calendar Styling */
.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
    background-color: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}

.calendar-month-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.btn-calendar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.btn-calendar-nav:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-hover);
}

.btn-today {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-today:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.monthly-calendar-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

.monthly-calendar-container {
    min-width: 750px;
    /* Ensures grid columns remain readable and spacious on smaller viewports */
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    margin: 0 auto;
}

.monthly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.header-grid {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--gray-light);
}

.monthly-header-cell {
    padding: 16px 8px;
    text-align: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    border-right: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.monthly-header-cell:last-child {
    border-right: none;
}

.wd-short {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.wd-full {
    font-size: 0.95rem;
}

/* Header colors */
.day-sun.monthly-header-cell {
    color: #dc2626;
}

/* Red for Sun */
.day-sat.monthly-header-cell {
    color: #7c3aed;
}

/* Purple for Sat */

.monthly-calendar-grid.body-grid {
    background-color: var(--white);
}

.monthly-body-cell {
    min-height: 110px;
    padding: 12px 10px;
    border-right: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition);
    background-color: var(--white);
}

/* Remove borders on grid boundary */
.monthly-body-cell:nth-child(7n) {
    border-right: none;
}

.monthly-body-cell:nth-last-child(-n+7) {
    border-bottom: none;
}

.monthly-body-cell:hover:not(.empty-cell) {
    background-color: var(--light);
}

.empty-cell {
    background-color: #f8fafc;
    opacity: 0.5;
    cursor: default;
}

.holiday-cell {
    background-color: #fffafb;
}

.today-cell {
    border: 2px solid var(--primary) !important;
    background-color: var(--primary-light) !important;
    z-index: 10;
}

.date-number-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.date-number {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-light);
}

.today-tag {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    line-height: 1;
}

.cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
}

.holiday-text {
    color: #ef4444;
    background-color: #fee2e2;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    line-height: 1.4;
    text-align: center;
}

.open-times-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    align-items: center;
}

.time-slot-badge {
    background-color: #f0fdfa;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: 1px solid #ccfbf1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.today-cell .time-slot-badge {
    background-color: var(--white);
    border-color: #99f6e4;
}

/* Special Holiday styling */
.special-holiday-cell {
    background-color: #fef2f2 !important;
}

.special-holiday-name {
    font-size: 0.7rem;
    color: #b91c1c;
    margin-top: 4px;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
}

/* Special Hours styling */
.special-hours-cell {
    background-color: #f0fdfa !important;
    /* Soft Teal/Green */
}

.special-hour-badge {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

.special-hours-notice {
    background-color: #f0fdfa !important;
    border-color: #99f6e4 !important;
}

.special-hours-notice .notice-title {
    color: var(--primary) !important;
}

.special-hours-notice .holiday-bullet {
    color: var(--primary) !important;
}

/* Calendar Notice Box for Special Holidays */
.calendar-notice-box {
    max-width: 800px;
    margin: 24px auto 0 auto;
    background-color: #fffafb;
    border: 1.5px dashed #fca5a5;
    border-radius: var(--border-radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-out;
}

.notice-title {
    color: #b91c1c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.notice-title svg {
    color: #b91c1c;
    vertical-align: middle;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-list li {
    font-size: 0.95rem;
    color: var(--dark-light);
    line-height: 1.5;
}

.holiday-bullet {
    margin-right: 6px;
}

.holiday-desc {
    color: #b91c1c;
    font-weight: 600;
}