/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('https://cdn.jsdelivr.net/gh/vaakash/jameel-noori-nastaleeq-webfont@master/fonts/JameelNooriNastaleeq.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/vaakash/jameel-noori-nastaleeq-webfont@master/fonts/JameelNooriNastaleeq.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/vaakash/jameel-noori-nastaleeq-webfont@master/fonts/JameelNooriNastaleeq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal-dark: #0D9488;
    --teal-light: #F0FDF4;
    --white: #FFFFFF;
    --grey-light: #F3F4F6;
    --grey-dark: #4B5563;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
}

.urdu-text {
    font-family: 'Jameel Noori Nastaleeq', 'Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    line-height: 2.0; /* Nastaleeq needs more line height */
    text-align: right;
}

.btn-primary {
    background-color: var(--teal-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--teal-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--teal-dark);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-gradient {
    background-image: linear-gradient(to right, var(--teal-dark) 0%, #14B8A6  51%, var(--teal-dark)  100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.5s;
    background-size: 200% auto;
}

.btn-gradient:hover {
    background-position: right center; /* change the direction of the change here */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s;
    cursor: pointer;
}

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

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.testimonial-card {
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

#serviceModal.open {
    display: flex;
}

/* Blog Post Styling */
.blog-hero-image {
    width: 100%;
    max-height: 400px; /* Limit height for a more balanced look */
    object-fit: cover;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    margin-bottom: 2rem;
}

.blog-content-image-right {
    width: 100%;
    max-width: 300px; /* Smaller size */
    float: right;
    margin-left: 1.5rem; /* Space from text */
    margin-bottom: 1rem;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    object-fit: cover;
}

/* Clearfix for floated images */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Enhanced Headings */
.blog-content h2 {
    font-size: 2.25rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1F2937; /* text-gray-900 */
    margin-top: 2.5rem; /* mt-10 */
    margin-bottom: 1.5rem; /* mb-6 */
    position: relative;
    padding-left: 2.5rem; /* Space for icon */
}

.blog-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem; /* Icon width */
    height: 1.5rem; /* Icon height */
    background-color: #0D9488; /* Teal color */
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg>') no-repeat 50% 50%; /* Example icon */
    mask-size: contain;
}

/* Info Box */
.info-box {
    background-color: #ECFDF5; /* bg-emerald-50 */
    border-left: 4px solid #0D9488; /* border-emerald-600 */
    padding: 1.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.info-box p {
    margin-bottom: 0;
    color: #065F46; /* text-emerald-900 */
}

/* Styled Quote */
.styled-quote {
    border-left: 4px solid #10B981; /* border-emerald-500 */
    padding-left: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #374151; /* text-gray-700 */
}

/* CTA Button Styling (already in Tailwind, but ensure consistency) */
.blog-cta-button {
    display: inline-block;
    background-image: linear-gradient(to right, #0D9488 0%, #14B8A6  51%, #0D9488  100%);
    color: #FFFFFF;
    padding: 1rem 2rem; /* py-4 px-8 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-semibold */
    transition: 0.5s;
    background-size: 200% auto;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blog-cta-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- New Button Enhancements --- */

/* Enhance 'flat white' buttons (explicit bg-white) */
button[class*="bg-white"],
a[class*="bg-white"] {
    /* Only apply shadow if it's likely a button (e.g., has border or padding) - this is implicit in usage */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* Tailwind shadow */
    transition: all 0.3s ease;
}

button[class*="bg-white"]:hover,
a[class*="bg-white"]:hover {
    background-color: #f3f4f6; /* Tailwind gray-100 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
    transform: translateY(-1px);
}

/* Enhance transparent/border buttons that look white */
button[class*="border-gray-200"],
a[class*="border-gray-200"] {
    background-color: #ffffff; /* Ensure white bg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Tailwind shadow-sm */
    transition: all 0.3s ease;
}

button[class*="border-gray-200"]:hover,
a[class*="border-gray-200"]:hover {
    background-color: #f9fafb; /* Tailwind gray-50 */
    border-color: #d1d5db; /* Tailwind gray-300 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
