/*
Theme Name: Medika Clinic
Theme URI: https://example.com/medika-clinic
Author: Medika Theme
Author URI: https://example.com
Description: Theme WordPress modern dan profesional untuk klinik umum/medis. Dilengkapi dengan fitur booking appointment, daftar dokter, layanan, blog kesehatan, dan testimoni pasien. Desain segar dengan skema warna hijau toska yang menyejukkan.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medika-clinic
Tags: medical, clinic, healthcare, booking, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   CSS VARIABLES - Skema Hijau Toska
========================================= */
:root {
    --primary: #14b8a6;
    --primary-dark: #0f9488;
    --primary-light: #5eead4;
    --primary-soft: #ccfbf1;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --dark: #134e4a;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(20, 184, 166, 0.15);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1rem; }

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

a:hover { color: var(--primary-dark); }

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

ul, ol { padding-left: 1.5rem; }

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

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

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

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-soft);
    border-radius: 2rem;
}

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

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* =========================================
   HEADER
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.9;
}

.header-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

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

.header-social a {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.header-social a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.header-main {
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark);
}

.site-title a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.site-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem;
    list-style: none;
    margin: 0.5rem 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.nav-menu .sub-menu a {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--gray-200);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
}

.menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================
   HERO
========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #e0f7f4 100%);
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: var(--white);
}

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

.hero-stat-card {
    position: absolute;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-stat-card.top {
    top: 2rem;
    left: -2rem;
}

.hero-stat-card.bottom {
    bottom: 2rem;
    right: -2rem;
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* =========================================
   FEATURES / SERVICES
========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.feature-link:hover { gap: 0.75rem; }

/* =========================================
   ABOUT
========================================= */
.about {
    background: var(--gray-50);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-experience-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-label {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

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

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: var(--gray-700);
    font-weight: 500;
}

.about-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2314b8a6'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    margin-top: 0.125rem;
}

/* =========================================
   DOCTORS
========================================= */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.doctor-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.doctor-social {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.doctor-card:hover .doctor-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.doctor-social a {
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.doctor-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.doctor-name a { color: var(--gray-900); }
.doctor-name a:hover { color: var(--primary); }

.doctor-specialty {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.doctor-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.doctor-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =========================================
   APPOINTMENT FORM
========================================= */
.appointment {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.appointment::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(94, 234, 212, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(94, 234, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.appointment-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.appointment-content .section-subtitle {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-light);
}

.appointment-content .section-title { color: var(--white); }

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

.appointment-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.appointment-features svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.appointment-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.appointment-form h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-soft);
    font-weight: 700;
}

.testimonial-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-200);
}

.testimonial-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.9375rem;
    margin: 0;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

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

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

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

.post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

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

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: 1.25rem;
    margin: 0.75rem 0;
    line-height: 1.3;
}

.post-title a { color: var(--gray-900); }
.post-title a:hover { color: var(--primary); }

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    flex: 1;
}

.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: auto;
}

.post-readmore:hover { gap: 0.625rem; }

/* =========================================
   PAGE HEADER
========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #e0f7f4 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    color: var(--dark);
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    position: relative;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb-separator { color: var(--gray-400); }

/* =========================================
   SINGLE POST
========================================= */
.single-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-soft);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--gray-700); }
.widget li a:hover { color: var(--primary); }

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

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.875rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    padding: 0.375rem 0;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-contact-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   COMMENTS
========================================= */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

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

.comment {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
    color: var(--gray-900);
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

/* =========================================
   SHARE BUTTONS
========================================= */
.medika-share {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.medika-share-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.medika-share-label svg {
    color: var(--primary);
}

.medika-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.medika-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
}

.medika-share-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.medika-share-btn:hover {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.medika-share-btn:hover svg {
    transform: scale(1.15);
}

.medika-share-whatsapp:hover { background: #25D366; color: #fff; }
.medika-share-telegram:hover { background: #0088cc; color: #fff; }
.medika-share-threads:hover  { background: #000000; color: #fff; }
.medika-share-x:hover        { background: #000000; color: #fff; }

@media (max-width: 480px) {
    .medika-share {
        flex-direction: column;
        align-items: flex-start;
    }
    .medika-share-buttons {
        width: 100%;
    }
    .medika-share-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .medika-share-btn span {
        display: none;
    }
    .medika-share-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .hero-inner,
    .about-inner,
    .appointment-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-stat-card.top { left: 1rem; }
    .hero-stat-card.bottom { right: 1rem; }
    
    .single-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar { position: static; }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .header-top { display: none; }
    
    .menu-toggle {
        display: inline-flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-navigation.is-open { right: 0; }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu a {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding-left: 1rem;
    }
    
    .header-cta .btn { display: none; }
    .header-cta .btn-primary { display: inline-flex; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero { padding: 3rem 0 4rem; }
    .hero-stat-card { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .header-info { display: none; }
    
    .appointment-form {
        padding: 1.5rem;
    }
}

/* =========================================
   UTILITIES
========================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

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

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