html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
}

/* Navigation styles */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    animation: fadeIn 1s ease-in-out;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: #000;
    text-decoration: underline;
}

nav a.active {
    font-weight: bold;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-banner {
    width: 100%;
    height: auto;
    max-height: 500px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0 10px 0;
    padding: 0 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 20px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

/* Intro section styles */
.intro-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eaeaea;
}

.intro-section .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-section h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.intro-section h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    color: #555;
    margin-bottom: 20px;
}

.intro-section p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

/* Section styles */
section {
    scroll-margin-top: 80px; /* Adjust based on your navbar height */
}

/* City filter styles */
.city-filter {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.city-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.city-btn {
    padding: 10px 18px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.city-btn:hover {
    background-color: #444;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.city-btn.active {
    background-color: #333;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.featured-estheticians {
    padding: 20px;
}

.esthetician-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.esthetician-card {
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.esthetician-card > .flex-grow {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1rem;
}

.esthetician-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.esthetician-city {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #555;
}

.esthetician-phone {
    margin-top: auto;
    margin-bottom: 0;
    color: #555;
}

.esthetician-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Section subtext style */
.section-subtext {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 30px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Treatments styles */
.treatments-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.treatments-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.treatment-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.treatment-description {
    flex-grow: 1;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Testimonials styles */
.testimonials {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.testimonial-card:hover::after {
    content: 'Click for details';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.testimonial-card.fade-out {
    opacity: 0;
}

.testimonial-card.fade-in {
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.testimonial-source {
    font-weight: bold;
    color: #333;
}

.testimonial-city {
    color: #777;
    font-size: 0.9em;
}

/* Footer styles */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer.bg-gray-800 {
    background-color: #1f2937;
    color: #f9fafb;
}

footer.bg-gray-800 a {
    color: #f3f4f6;
}

footer.bg-gray-800 a:hover {
    color: #ffffff;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.max-w-6xl {
    max-width: 1200px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Blog section styles */
.blog-section {
    padding: 40px 20px;
    background-color: #f0f0f0; /* Slightly different background than testimonials */
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px !important;
    margin: 0 auto !important;
    margin-bottom: 40px !important; /* Increased to create more space */
}

.blog-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.blog-card a {
    text-decoration: none;
}

.blog-card img {
    border-radius: 8px 8px 0 0;
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

/* Increase spacing for blog titles specifically in the #blog section on index.html -- Commenting out this rule to revert 
#blog .blog-card .blog-title {
    margin-top: 24px; 
}
*/

.blog-card a:hover .blog-title {
    color: #4a6da7;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px !important;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4a6da7;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.read-more-btn:hover {
    background-color: #3a5a8f;
    color: white;
}

.view-all-btn-container {
    display: flex; 
    justify-content: center; 
    margin-top: 10px !important;
    margin-bottom: 20px;
    clear: both;
    padding-top: 5px;
    text-align: center;
}

/* Blog article page styles */
.blog-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-article-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.blog-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-meta {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.blog-content {
    line-height: 1.8;
    color: #333;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
}

.blog-content ul {
    margin-bottom: 20px;
    margin-left: 30px;
    list-style-type: disc;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-navigation {
    margin: 20px 0;
    text-align: center;
}

.blog-navigation .back-link {
    display: inline-block;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.blog-navigation .back-link:hover {
    color: #333;
    text-decoration: underline;
}

.blog-quote {
    border-left: 4px solid #888;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
}

.blog-image-container {
    margin: 30px auto;
    text-align: center;
}

.blog-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .site-title {
        margin-bottom: 10px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .hero-banner {
        height: 400px; /* Smaller height for mobile */
    }
    
    .hero-title {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }
    
    .city-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .city-btn {
        width: 80%;
        margin-bottom: 12px;
        padding: 14px 20px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .esthetician-card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    
    .esthetician-card h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    .esthetician-card p {
        margin: 8px 0;
        line-height: 1.5;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    
    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .testimonial-source {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .affiliate-banner {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .affiliate-banner p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .affiliate-cta-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        border-radius: 6px;
    }
    
    .blog-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .blog-index-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .blog-index-container h1 {
        font-size: 1.8rem;
    }
    
    .blog-container {
        padding: 15px;
        margin: 30px auto 20px;
    }
    
    .blog-article-title {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 0 10px;
    }
}

.blog-index-container {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.blog-index-container h1 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    color: #333;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.blog-index-container .intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    color: #444;
}

.bottom-spacing {
    height: 60px;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .blog-index-container {
        padding: 30px 15px;
        margin: 20px auto 40px;
    }
    
    .skincare-intro {
        padding: 30px 15px;
    }
    
    .skincare-intro h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .bottom-spacing {
        height: 40px;
    }
}

/* Affiliate banner styles */
.affiliate-section {
    padding: 30px 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #eaeaea;
}

.affiliate-banner {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.affiliate-banner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

.affiliate-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.affiliate-cta-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

/* FAQ Section styles */
.faq-section {
    background-color: #f9f9f9;
    padding: 2rem;
    max-width: 1200px !important; /* Updated to match other sections */
    margin: 2rem auto !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: #00427e;
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

.skincare-intro {
    padding: 40px 20px;
    margin: 0;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
}

.skincare-intro h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.skincare-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #555;
}

.blog-index-container {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.blog-card a {
    text-decoration: none;
}

.blog-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.blog-card a:hover .blog-title {
    color: #555;
}

.blog-excerpt {
    flex-grow: 1;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.bottom-spacing {
    height: 60px;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .skincare-intro {
        padding: 30px 15px;
    }
    
    .skincare-intro h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .blog-index-container {
        padding: 30px 15px;
        margin: 20px auto 40px;
    }
    
    .blog-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
    
    .read-more-btn {
        padding: 8px 16px;
    }
    
    .bottom-spacing {
        height: 40px;
    }
}

/* Improved blog card image handling */
.blog-card img,
.bg-white img.rounded-t-lg {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Fix for read-more button alignment */
.flex-col.flex-grow {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Footer spacing */
footer.mt-20 {
    margin-top: 5rem;
}

/* Style for the View All button at the bottom of the esthetician grid */
.view-all-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    clear: both;
}
