/**
 * ClinicIVF - Main Stylesheet
 * Modern, Clean, Medical Design
 */

/* ============== VARIABLES ============== */
:root {
    --teal: #1A5C5E;
    --teal-light: #2D7A7C;
    --teal-dark: #0F3D3E;
    --gold: #C9A227;
    --gold-light: #E5C158;
    --cream: #F5F0E8;
    --sand: #EDE8E0;
    --ink: #1C1C1C;
    --white: #FFFFFF;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
}

/* ============== RESET ============== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============== UTILITIES ============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gold);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--teal);
}

.btn-white:hover {
    background: var(--cream);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--sand);
    color: var(--teal);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--teal);
    color: var(--white);
}

/* ============== HEADER ============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--ink);
}

.dropdown-menu a:hover {
    background: var(--sand);
    color: var(--teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 2000;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-nav a {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--sand);
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
}

/* ============== HERO SECTION ============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(245,240,232,0.95), rgba(245,240,232,0.6), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--sand);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--ink);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

/* ============== SECTIONS ============== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--teal);
    color: var(--gold);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--ink);
    opacity: 0.7;
}

/* ============== STATS ============== */
.stats {
    background: var(--teal);
    color: var(--cream);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

/* ============== CARDS ============== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--sand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--ink);
    opacity: 0.7;
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

/* ============== TREATMENTS ============== */
.treatment-card {
    display: flex;
    flex-direction: column;
}

.treatment-card .card-icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: var(--white);
}

.treatment-meta {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sand);
    font-size: 0.875rem;
    color: var(--ink);
    opacity: 0.6;
}

/* ============== FAQ ============== */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-category {
    padding: 0.75rem 1.25rem;
    background: var(--sand);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.faq-category:hover,
.faq-category.active {
    background: var(--teal);
    color: var(--white);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--ink);
    opacity: 0.8;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--sand);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============== MODAL ============== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--teal);
    color: var(--white);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--ink);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--teal-dark);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    opacity: 0.8;
    margin: 1rem 0;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-info li i {
    color: var(--gold);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--ink);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
}

/* ============== WHATSAPP FLOAT ============== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-float .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============== BREADCRUMB ============== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink);
    opacity: 0.6;
    padding: 1rem 0;
}

.breadcrumb a:hover {
    color: var(--teal);
}

.breadcrumb .current {
    color: var(--teal);
}

/* ============== PAGE HEADER ============== */
.page-header {
    background: var(--teal);
    color: var(--cream);
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-header p {
    opacity: 0.8;
    max-width: 600px;
}

/* ============== TABLES ============== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sand);
}

th {
    background: var(--sand);
    font-weight: 600;
}

tr:hover {
    background: rgba(0,0,0,0.02);
}

/* ============== ALERTS ============== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ============== PAGINATION ============== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: var(--teal);
    color: var(--white);
}

/* ============== LOADING ============== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sand);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============== TIMELINE ============== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--teal);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-7px);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ============== ADMIN STYLES ============== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--teal-dark);
    color: var(--cream);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--cream);
}

.admin-nav {
    margin-top: 2rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--ink);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--teal);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
}

/* ============== BLOG ============== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--sand);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h2,
.blog-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
    line-height: 1.3;
    flex: 1;
}

.blog-card-content p {
    color: var(--ink);
    opacity: 0.65;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--ink);
    opacity: 0.55;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-category {
    background: var(--teal);
    color: var(--cream) !important;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    opacity: 1 !important;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--teal);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

.blog-card:hover .read-more {
    gap: 0.75rem;
}

/* Blog post content */
.blog-content h1, .blog-content h2, .blog-content h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 2rem 0 1rem;
}

.blog-content h2 { font-size: 1.6rem; }
.blog-content h3 { font-size: 1.3rem; }

.blog-content p { margin-bottom: 1.25rem; }

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

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

/* ============== PATIENT JOURNEY ============== */
.journey-step {
    position: relative;
    padding-left: 5rem;
    padding-bottom: 2.5rem;
}

.journey-step:last-child {
    padding-bottom: 0;
}

.journey-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-size: 1.1rem;
    z-index: 2;
}

.journey-line {
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), var(--gold));
}

.journey-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    border: 1px solid rgba(26,92,94,0.08);
    box-shadow: var(--shadow-sm);
}

.journey-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.journey-day {
    background: rgba(26,92,94,0.1);
    color: var(--teal);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-family: monospace;
    font-weight: 600;
}

.journey-phase {
    opacity: 0.55;
}

.journey-location {
    opacity: 0.45;
}

.journey-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.journey-card > p {
    opacity: 0.65;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.journey-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.journey-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ============== TOOLS ============== */
.tool-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--sand);
    background: var(--white);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.tool-tab:hover {
    border-color: var(--teal);
}

.tool-tab.active {
    border-color: var(--teal);
    background: rgba(26,92,94,0.05);
}

.tool-tab i {
    font-size: 1.5rem;
    color: var(--teal);
}

.tool-tab span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.tool-tab small {
    font-size: 0.75rem;
    opacity: 0.55;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
}

.tool-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-card > p {
    opacity: 0.65;
    margin-bottom: 1.5rem;
}

.tool-result {
    margin-top: 1.5rem;
}

.tool-note {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(201,162,39,0.1);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.tool-note i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .tool-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .journey-step {
        padding-left: 3.5rem;
    }
    .journey-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .journey-line {
        left: 17px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== READING PROGRESS ============== */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ============== WHATSAPP FLOAT ============== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float .pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37,211,102,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============== MODAL ============== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
    opacity: 0.4;
    line-height: 1;
}

.modal-close:hover { opacity: 0.8; }

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    opacity: 0.65;
    margin-bottom: 1.5rem;
}

/* ============== FORM STYLES ============== */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,92,94,0.1);
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.75;
    max-width: 540px;
    margin-bottom: 2rem;
}

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

/* ============== STATS ============== */
.stats {
    background: var(--teal);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    color: var(--cream);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
