/* CSS Variables - Theme Colors */
:root {
    --primary-color: #6B4E3D;
    --secondary-color: #8B6F47;
    --accent-color: #D4A574;
    --text-dark: #2C1810;
    --text-light: #F5F5F5;
    --white: #FFFFFF;
    --bg-overlay: rgba(44, 24, 16, 0.7);
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-padding {
    padding: 5rem 0;
}

/* ============================================
   NAVIGATION - Sticky Header with Scroll Effects
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
    transition: var(--transition);
}

.logo-img {
    height: 75px;
    width: auto;
    max-width: 220px;
    min-width: 120px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Darker logo on scroll */
.navbar.scrolled .logo-img {
    filter: brightness(0.85) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Hamburger Menu Toggle */
.hamburger-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
}

.hamburger-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Darker menu icon on scroll */
.navbar.scrolled .hamburger-menu-toggle span {
    background: var(--primary-color);
    box-shadow: none;
}

.hamburger-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    list-style: none;
    padding: 100px 2rem 2rem;
    margin: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Links */
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 1rem 1.25rem;
    display: block;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    width: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(107, 78, 61, 0.05);
    padding-left: 1.75rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 25px;
    transition: var(--transition);
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 78, 61, 0.3);
}

.btn-primary::before {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero {
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--text-dark);
}

.btn-whatsapp {
    background: #25D366;
    margin-top: 1rem;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

.vision-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.vision-section h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.vision-section ul {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.vision-section li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.vision-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Services Section */
.services {
    position: relative;
    background: linear-gradient(to bottom, #F9F9F9, var(--white));
    overflow: hidden;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: url('/services.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.6;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0.5), rgba(255, 255, 255, 0.7));
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-header {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Services Carousel */
.services-carousel-wrapper {
    position: relative;
    z-index: 2;
    margin: 2rem 0;
    overflow: hidden;
}

.services-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0;
}

.service-card-carousel {
    min-width: 300px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card-carousel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title-carousel {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-description-carousel {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.btn-service-detail {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
        /* Don't force display: flex here - let JavaScript control it */
        align-items: center;
        justify-content: center;
        z-index: 10000;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Only show modal when display is set to flex by JavaScript */
    .modal[style*="display: flex"],
    .modal[style*="display:flex"] {
        display: flex !important;
    }
    
    .modal-content {
        max-width: 95% !important;
        padding: 1.5rem !important;
        margin: 1rem auto !important;
        position: relative;
        z-index: 10001;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Ensure buttons are touch-friendly on mobile */
    #bookConsultationModal .btn {
        min-height: 44px; /* Minimum touch target size */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure close button is touch-friendly */
    #bookConsultationModal .modal-close {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

.modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.service-modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.service-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.service-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.service-detail-content {
    padding: 1rem 0;
}

.service-detail-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.service-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-detail-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.service-detail-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-detail-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-ideal-for {
    font-style: italic;
    opacity: 0.8;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(107, 78, 61, 0.05);
    border-radius: 8px;
}

.service-detail-info {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-detail-info .service-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-detail-info .service-duration,
.service-detail-info .service-language {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Services Page */
.services-page {
    background: linear-gradient(to bottom, #F9F9F9, var(--white));
    min-height: calc(100vh - 80px);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card-page {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.service-title-page {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-description-page {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.service-detail-view {
    animation: fadeIn 0.3s ease;
}

.btn-back {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.btn-back:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
}

.service-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.9;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
}

.service-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.service-bonus {
    background: linear-gradient(135deg, var(--accent-color), #E8D5B7);
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Social Media Section */
.social-media {
    background: linear-gradient(to bottom, var(--white), #F9F9F9);
    position: relative;
    overflow: hidden;
}

.social-media-carousel-wrapper {
    position: relative;
    z-index: 2;
    margin: 2rem 0;
    overflow: hidden;
}

.social-media-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0;
}

.social-media-card-carousel {
    min-width: 300px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.social-media-card-carousel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.social-media-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.social-media-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.social-media-icon {
    font-size: 2.5rem;
    margin: 1rem auto 0.5rem;
    text-align: center;
}

.social-media-title-carousel {
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
}

.social-media-description-carousel {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    margin: 0 1rem 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
    text-align: center;
}

.btn-social-media-play {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto 1.5rem;
    display: block;
}

.btn-social-media-play:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Social Media Modal */
.social-media-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.social-media-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media-modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.social-media-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.social-media-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.social-media-detail-content {
    padding: 1rem 0;
}

.social-media-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.social-media-detail-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.social-media-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-media-embed {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.social-media-embed iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
}

.social-media-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .social-media-card-carousel {
        min-width: 280px;
        max-width: 280px;
    }

    .social-media-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.testimonials-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.testimonial-card-carousel {
    min-width: 300px;
    max-width: 300px;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 4px solid var(--accent-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card-carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-rating-display {
    margin-bottom: 1rem;
}

.testimonial-text-preview {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

.read-more-btn:hover {
    background: var(--secondary-color);
}

/* Testimonials Modal */
.testimonials-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.testimonials-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.testimonials-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.testimonials-modal-close:hover {
    color: var(--primary-color);
}

.testimonials-detail-content {
    padding: 1rem 0;
}

.testimonial-modal-content {
    text-align: center;
}

.testimonial-modal-rating {
    margin-bottom: 1.5rem;
}

.testimonial-modal-text {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-modal-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .testimonial-card-carousel {
        min-width: 280px;
        max-width: 280px;
    }

    .testimonials-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom, var(--white), #F9F9F9);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    height: fit-content;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.booking-list {
    list-style: none;
    margin: 1.5rem 0;
}

.booking-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 78, 61, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 200px;
    min-width: 120px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: brightness(1.3) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.5) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Social Media Icons */
.social-media-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    opacity: 0.8;
}

.social-icon:hover {
    opacity: 1;
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Media Icons in Contact Section */
.contact-social-media {
    margin-top: 1.5rem;
}

.contact-social-media .social-media-icons {
    margin-top: 0.5rem;
}

.contact-social-media .social-icon {
    background: rgba(255, 255, 255, 0.2);
}

.contact-social-media .social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ============================================
   ADDITIONAL RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .service-card-carousel {
        min-width: 280px;
        max-width: 280px;
    }

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

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

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

    .service-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .service-card,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Family Form Two-Column Layout */
.family-form-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.family-form-left-column,
.family-form-right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .family-form-two-column {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DAILY WISDOM SECTION
   ============================================ */

.daily-wisdom {
    background: linear-gradient(to bottom, var(--white), #F9F9F9);
    padding: 4rem 0;
}

.daily-wisdom-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
}

.daily-wisdom-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.daily-wisdom-card-carousel {
    min-width: 300px;
    max-width: 300px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.daily-wisdom-card-carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(107, 78, 61, 0.2);
}

.daily-wisdom-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.daily-wisdom-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.daily-wisdom-icon {
    font-size: 2.5rem;
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.daily-wisdom-title-carousel {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 1rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daily-wisdom-description-carousel {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 1rem 1rem;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-daily-wisdom-play {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-daily-wisdom-play:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 78, 61, 0.3);
}

/* Daily Wisdom Modal */
.daily-wisdom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.daily-wisdom-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

.daily-wisdom-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    line-height: 1;
}

.daily-wisdom-modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.daily-wisdom-detail-content {
    padding: 1rem 0;
}

.daily-wisdom-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E0E0E0;
}

.daily-wisdom-detail-icon {
    font-size: 3rem;
}

.daily-wisdom-detail-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.daily-wisdom-embed {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.daily-wisdom-embed video,
.daily-wisdom-embed audio {
    width: 100%;
    display: block;
}

.daily-wisdom-embed iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}

.daily-wisdom-embed img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .daily-wisdom-card-carousel {
        min-width: 280px;
        max-width: 280px;
    }

    .daily-wisdom-modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
    }

    .daily-wisdom-detail-header h2 {
        font-size: 1.5rem;
    }

    .daily-wisdom-embed iframe {
        height: 50vh;
    }
}

/* Remedies Modal */
.remedies-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.remedies-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.remedies-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #E0E0E0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.remedies-modal-header h2 {
    color: white;
    margin: 0;
}

.remedies-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remedies-modal-close:hover {
    opacity: 0.7;
}

.remedies-user-info {
    padding: 1.5rem 2rem;
    background: #f9f9f9;
    border-bottom: 1px solid #E0E0E0;
}

.remedies-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0E0E0;
    background: white;
}

.remedies-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.remedies-tab:hover {
    background: #f5f5f5;
}

.remedies-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: #f9f9f9;
}

.remedies-tab-content {
    padding: 2rem;
}

.remedies-tab-panel {
    display: none;
}

.remedies-tab-panel.active {
    display: block;
}

.file-upload-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.remedy-file-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
}

.btn-add-file {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-add-file:hover {
    background: var(--primary-color);
}

#remedyFilesList {
    margin-top: 1rem;
}

.file-upload-progress {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-upload-progress .file-name {
    flex: 1;
    font-weight: 500;
}

.file-upload-progress .file-progress {
    flex: 2;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.file-upload-progress .file-progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.file-upload-progress .file-status {
    font-size: 0.9rem;
    color: #666;
    min-width: 80px;
    text-align: right;
}

.social-media-search-container {
    position: relative;
}

.social-media-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px var(--shadow);
}

.social-media-results.active {
    display: block;
}

.social-media-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.social-media-result-item:hover {
    background: #f5f5f5;
}

.social-media-result-item:last-child {
    border-bottom: none;
}

.selected-social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.selected-social-media-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.selected-social-media-item .remove-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.selected-social-media-item .remove-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.remedies-history-list {
    min-height: 200px;
}

.remedy-history-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.remedy-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remedy-history-item-date {
    font-weight: 600;
    color: var(--primary-color);
}

.remedy-history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.remedy-history-item-notes,
.remedy-history-item-remedies {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.remedy-history-item-notes.short,
.remedy-history-item-remedies.short {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remedy-details-modal,
.file-details-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.remedy-details-modal-content,
.file-details-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.remedy-details-modal-header,
.file-details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #E0E0E0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.remedy-details-modal-header h2,
.file-details-modal-header h2 {
    color: white;
    margin: 0;
}

.remedy-details-modal-close,
.file-details-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remedy-details-modal-close:hover,
.file-details-modal-close:hover {
    opacity: 0.7;
}

.remedy-details-content,
.file-details-content {
    padding: 2rem;
}

.remedy-details-section {
    margin-bottom: 2rem;
}

.remedy-details-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 0.5rem;
}

.remedy-social-media-thumbnails,
.remedy-files-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.remedy-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow);
    transition: transform 0.2s;
}

.remedy-thumbnail:hover {
    transform: scale(1.05);
}

.remedy-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remedies-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.pagination-info {
    padding: 0 1rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .remedies-modal-content,
    .remedy-details-modal-content,
    .file-details-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: 95vh;
    }

    .history-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .remedy-social-media-thumbnails,
    .remedy-files-thumbnails {
        justify-content: center;
    }

    /* Remedies Tab - Mobile Responsive */
    .remedies-tab-content {
        padding: 1rem;
    }

    .remedies-tabs {
        flex-wrap: wrap;
    }

    .remedies-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 50%;
    }

    .remedies-user-info {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .remedies-user-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .remedies-user-info p {
        font-size: 0.85rem;
        margin: 0.25rem 0;
    }

    /* Remedies History Items - Mobile */
    .remedy-history-item {
        padding: 1rem;
    }

    .remedy-history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .remedy-history-item-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .remedy-history-item-actions .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .remedy-history-item-date {
        font-size: 0.9rem;
    }

    .remedy-history-item-notes,
    .remedy-history-item-remedies {
        font-size: 0.85rem;
    }

    /* Remedies Form - Mobile */
    .remedies-tab-content .form-group {
        margin-bottom: 1rem;
    }

    .remedies-tab-content .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .remedies-tab-content .form-group input,
    .remedies-tab-content .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .remedies-tab-content .form-group textarea {
        min-height: 100px;
    }

    /* File Upload - Mobile */
    .file-upload-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .remedy-file-input {
        width: 100%;
    }

    .btn-add-file {
        width: 100%;
        padding: 0.75rem;
    }

    /* Social Media Search - Mobile */
    .social-media-search-container {
        width: 100%;
    }

    .social-media-results {
        max-height: 200px;
    }

    /* Selected Social Media - Mobile */
    .selected-social-media {
        flex-wrap: wrap;
    }

    /* Pagination - Mobile */
    .remedies-pagination {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .pagination-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
    }

    /* Back Button and Header - Mobile */
    .remediesTab .admin-card > div:first-child,
    .remediesTab .profile-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .remediesTab .admin-card > div:first-child > div:first-child,
    .remediesTab .profile-card > div:first-child > div:first-child {
        width: 100%;
    }

    .remediesTab .admin-card > div:first-child h2,
    .remediesTab .profile-card > div:first-child h2 {
        font-size: 1.25rem;
    }

    .remediesTab .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* User Info Grid - Mobile */
    .remedies-user-info div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* Thumbnails - Mobile */
    .remedy-thumbnail {
        width: 100px;
        height: 100px;
    }

    .remedy-thumbnail img {
        width: 100%;
        height: 100%;
    }

    /* Remedies tab should only be visible when active on mobile */
    #remediesTab.dashboard-content:not(.active) {
        display: none !important;
    }

    #remediesTab.dashboard-content.active {
        display: block !important;
    }
    
    /* Ensure remedies form content doesn't appear in bookings tab on mobile */
    #bookingsTab .remedies-tab-content,
    #bookingsTab #addRemedyForm,
    #bookingsTab #historyRemediesTab,
    #bookingsTab .remedies-tabs,
    #bookingsTab .remedies-user-info,
    #bookingsTab #addRemediesTab {
        display: none !important;
    }
    
    /* Ensure only the active dashboard content tab is visible on mobile */
    .dashboard-content:not(.active) {
        display: none !important;
    }

    /* Admin card and profile card mobile */
    .remediesTab .admin-card,
    .remediesTab .profile-card {
        padding: 1rem;
        margin: 0;
    }

    /* Form buttons mobile */
    .remedies-tab-content form > div:last-child {
        flex-direction: column;
        gap: 0.75rem;
    }

    .remedies-tab-content form > div:last-child .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .remedies-modal-content,
    .remedy-details-modal-content,
    .file-details-modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        border-radius: 10px;
    }

    .remedies-modal-header,
    .remedy-details-modal-header,
    .file-details-modal-header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .remedies-modal-header h2,
    .remedy-details-modal-header h2,
    .file-details-modal-header h2 {
        font-size: 1.1rem;
    }

    .remedies-modal-close,
    .remedy-details-modal-close,
    .file-details-modal-close {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .remedies-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .remedy-history-item-actions .btn {
        min-width: 100%;
        margin-bottom: 0.25rem;
    }

    .remedies-tab-content {
        padding: 0.75rem;
    }

    .remedies-user-info {
        padding: 0.75rem;
    }
}

/* Field-level error messages */
.field-error {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.field-error:not(:empty) {
    display: block;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* ============================================
   GLOBAL RESPONSIVE DESIGN IMPROVEMENTS
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

/* Mobile and Tablet (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    /* Dashboard improvements */
    .dashboard-container {
        margin-top: 70px;
        padding: 1rem 0;
    }

    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .dashboard-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-tab {
        width: 100%;
        text-align: center;
    }

    /* Cards */
    .admin-card,
    .profile-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    /* Modals */
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: 100%;
    }

    /* Grid layouts */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Flex layouts */
    .flex-row {
        flex-direction: column;
    }

    .flex-row > * {
        width: 100%;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 1.5rem 0;
    }

    .dashboard-container {
        margin-top: 60px;
        padding: 0.5rem 0;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .admin-card,
    .profile-card {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    table {
        font-size: 0.75rem;
    }

    table th,
    table td {
        padding: 0.4rem;
    }

    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        padding: 1rem;
    }
}

/* Large desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Extra large desktop (min-width: 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .dashboard-container {
        margin-top: 60px;
    }

    .section-padding {
        padding: 1.5rem 0;
    }
}

/* Booking Tabs Styles */
.booking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #E0E0E0;
}

.booking-tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.booking-tab-btn:hover {
    color: var(--primary-color);
}

.booking-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.booking-tab-content {
    width: 100%;
}

.booking-tab-content table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .booking-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .booking-tab-btn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }
    
    .booking-tab-content {
        overflow-x: auto;
    }
    
    .booking-tab-content table {
        font-size: 0.9rem;
    }
    
    .booking-tab-content th,
    .booking-tab-content td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem;
    }
    
    .booking-tab-content .btn {
        padding: 0.3rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .dashboard-nav,
    .btn,
    .modal,
    .remedies-modal,
    .remedy-details-modal,
    .file-details-modal {
        display: none !important;
    }

    .dashboard-content {
        display: block !important;
    }

    .admin-card,
    .profile-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Autocomplete styles */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item strong {
    color: var(--primary-color);
}

/* Sortable table headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.sortable-header:hover {
    background-color: #f0f0f0;
}

.sortable-header::after {
    content: ' ↕';
    position: absolute;
    right: 0.5rem;
    color: #999;
    font-size: 0.8rem;
}

.sortable-header.asc::after {
    content: ' ↑';
    color: var(--primary-color);
}

.sortable-header.desc::after {
    content: ' ↓';
    color: var(--primary-color);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .btn,
    .nav-tab,
    .remedies-tab,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .btn:hover,
    .nav-tab:hover,
    .remedies-tab:hover {
        transform: none;
    }

    /* Improve tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(107, 78, 61, 0.2);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
