/* Custom CSS for Atomy Skincare Website */

:root {
    --primary-color: #2a72c4;
    --secondary-color: #868e96;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e17055;
    --light-color: #ffffff;
    --dark-color: #2d3436;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

.main-content {
    /* margin-top: 80px; */
    /* Account for fixed navbar */
}

/* Header */
.top-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.top-nav {
    margin: 0;
    padding: 0;
}

.top-nav li {
    margin: 0 10px;
}

.top-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #000;
}

.main-navbar {
    background-color: #4FB5EA !important;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Override Bootstrap navbar background */
.navbar.main-navbar {
    background-color: #4FB5EA !important;
}

.main-navbar.navbar {
    background-color: #4FB5EA !important;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

.atomy-logo {
    height: 70px;
    width: auto;
    max-width: 300px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-item {
    margin: 0 20px;
}

.main-nav .nav-link {
    color: #2d3436 !important; /* Dark gray/black for better contrast */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    color: #000000 !important; /* Pure black on hover */
    border-bottom-color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Ensure navbar toggler icon is visible on blue background */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 52, 54, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Old logo class for backward compatibility */
.navbar-logo {
    height: 45px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #2d3436 !important; /* Dark gray/black for better contrast */
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #000000 !important; /* Pure black on hover */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

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

/* Hero Carousel Section - Large Hero Style */
.hero-carousel-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: white;
}

.hero-carousel-wrapper {
    max-width: 1400px;
}

.hero-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-image-wrapper {
    padding: 10px;
    width: 100%;
    min-height: 250px;
    max-height: 500px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content {
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-body {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-outline-primary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Hero carousel buttons visibility */
.hero-carousel-section .carousel-btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-carousel-section .carousel-btn:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

/* Feature Icons */
.feature-icon,
.benefit-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover,
.benefit-icon:hover {
    transform: scale(1.1);
}

/* Routine Steps */
.routine-step {
    transition: transform 0.3s ease;
}

.routine-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Success Icon */
.success-icon {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-5px);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(108, 92, 231, 0.05);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.75em;
    border-radius: 20px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .top-nav li {
        margin: 0 8px;
    }

    .main-navbar {
        padding: 10px 0;
    }

    .atomy-logo {
        height: 50px;
        max-width: 250px;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 15px;
    }

    .main-nav .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .main-nav .nav-link {
        display: block;
        padding: 8px 0;
        width: 100%;
    }

    .navbar-header {
        flex-wrap: wrap;
    }

    .hero-section {
        min-height: 400px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .main-content {
        margin-top: 0;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Content Carousel Styles */
.content-carousel-section {
    position: relative;
}

.content-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.content-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.content-carousel {
    width: 100%;
    overflow: hidden;
}

.content-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.content-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 1.5rem;
}

.content-slide.active {
    opacity: 1;
}

.content-slide .content-image-wrapper {
    padding: 10px;
    text-align: center;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.content-slide .content-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.content-slide .card {
    border: none;
    border-radius: 10px;
}

.content-slide .card-title.content-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.content-slide .content-description {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.content-slide .content-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark-color);
}

/* Video container styles - match content image sizing */
.video-container {
    width: 100%;
    margin: 0 auto;
}

.video-container .ratio {
    max-width: 100%;
}

/* Ensure iframe videos respect container size */
.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Atomy Channel video link styling */
.atomy-video-link {
    max-width: 100%;
    margin: 0 auto;
}

/* Testimonial specific styles */
.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.content-slide .card-body {
    padding: 1.5rem;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 15px;
    display: none !important; /* Hidden by default, shown by JavaScript when needed */
}

.carousel-btn-next {
    right: 15px;
}

/* Hide buttons for carousels with single slide - handled by JavaScript but CSS backup */
.content-carousel[data-single-slide="true"] ~ .carousel-btn,
.content-carousel-container[data-single-slide="true"] .carousel-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Image Indicators (for multiple images within a content slide) */
.image-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0;
}

.image-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.image-indicator:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.3);
}

.image-indicator.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 6px;
}

/* Content Images Carousel (for multiple images within a single content item) */
.content-images-carousel,
.testimonial-images-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hero images carousel - flexible size */
.hero-image-wrapper .content-images-carousel {
    width: 100%;
    min-height: 250px;
    max-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-image-wrapper .content-images-carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper .content-images-carousel img.active {
    opacity: 1;
    z-index: 1;
}

/* Content images carousel - flexible size */
.content-image-wrapper .content-images-carousel {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.content-image-wrapper .content-images-carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.content-image-wrapper .content-images-carousel img.active {
    opacity: 1;
    z-index: 1;
}

/* Testimonial images carousel - fixed size */
.testimonial-images-carousel {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
}

.testimonial-images-carousel img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-images-carousel img.active {
    opacity: 1;
    z-index: 1;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .content-slide {
        padding: 1rem;
    }

    .content-slide .content-image {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        object-fit: contain;
        object-position: center;
        max-width: 100%;
    }
    
    .content-image-wrapper {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        overflow: visible;
        padding: 10px;
    }
    
    .content-image-wrapper .content-images-carousel {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }
    
    .content-image-wrapper .content-images-carousel img {
        height: auto;
        max-height: 300px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .hero-image-wrapper {
        height: auto;
        min-height: 250px;
        max-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        overflow: visible;
        padding: 10px;
    }
    
    .hero-image {
        height: auto;
        max-height: 350px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .hero-image-wrapper .content-images-carousel {
        height: auto;
        min-height: 250px;
        max-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }
    
    .hero-image-wrapper .content-images-carousel img {
        height: auto;
        max-height: 350px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    /* Content detail page images */
    .col-lg-6 img.img-fluid {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
    }
    
    /* Mobile-specific adjustments - smaller max heights */
    .content-slide .content-image-wrapper {
        min-height: 150px;
        max-height: 300px;
        padding: 10px;
    }
    
    .content-slide .content-image {
        max-height: 300px;
    }
    
    .content-image-wrapper .content-images-carousel {
        min-height: 150px;
        max-height: 300px;
    }
    
    .content-image-wrapper .content-images-carousel img {
        max-height: 300px;
    }
    
    .hero-image-wrapper {
        min-height: 200px;
        max-height: 350px;
        padding: 10px;
    }
    
    .hero-image {
        max-height: 350px;
    }
    
    .hero-image-wrapper .content-images-carousel {
        min-height: 200px;
        max-height: 350px;
    }
    
    .hero-image-wrapper .content-images-carousel img {
        max-height: 350px;
    }

    .content-slide .card-title.content-title {
        font-size: 1.5rem;
    }

    .content-slide .content-description {
        font-size: 0.95rem;
    }

    .content-slide .content-body {
        font-size: 0.9rem;
    }

    .testimonial-image {
        width: 100px;
        height: 100px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .content-slide .card-body {
        padding: 1rem;
    }

    /* Hero section responsive */
    .hero-carousel-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-slide {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-body {
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Time Slot Scheduler Styles */
.time-slots-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.time-slot-btn {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
    border-radius: 6px;
}

.time-slot-btn.slot-available {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    cursor: pointer;
}

.time-slot-btn.slot-available:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 114, 196, 0.3);
}

.time-slot-btn.slot-available.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(42, 114, 196, 0.4);
}

.time-slot-btn.slot-busy {
    border-color: #ced4da;
    color: #6c757d;
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.time-slot-btn.slot-busy:hover {
    opacity: 0.7;
    transform: none;
}

.time-slot-btn.slot-busy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dc3545;
    transform: translateY(-50%);
    opacity: 0.5;
}

.time-slot-btn.slot-unavailable-for-duration {
    border-color: #ffc107;
    color: #856404;
    background-color: #fff3cd;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot-btn.slot-unavailable-for-duration:hover {
    opacity: 0.8;
    transform: none;
}

.time-slot-btn.slot-available small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .time-slot-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .time-slot-btn.slot-available small {
        font-size: 0.65rem;
    }
}

/* Read More Expandable Content Styles */
.read-more-wrapper {
    position: relative;
}

.read-more-toggle {
    color: var(--primary-color) !important;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.read-more-toggle:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

.read-more-toggle:focus {
    outline: none;
    box-shadow: none;
}

.read-more-toggle i {
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.content-body {
    line-height: 1.8;
}

.content-body ul,
.content-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--secondary-color);
}

/* Quill Editor Read More Button Styles */
.ql-readmore-button {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ql-readmore-button:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.ql-readmore-button i {
    font-size: 11px;
}