/* ==========================================================================
   APROMEDICA.PT - SYSTEM DESIGN STYLESHEET
   Author: Senior Frontend Developer & UX/UI Specialist
   Version: 1.0.0
   ========================================================================== */

/* @import for Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color System */
    --primary: #0e5a8a;            /* Deep Blue */
    --primary-hover: #0a466c;
    --primary-light: #eff6ff;
    --secondary: #0d9488;          /* Teal / Green-Water */
    --secondary-hover: #0f766e;
    --secondary-light: #f0fdfa;
    --accent: #f59e0b;             /* Amber Gold */
    --accent-light: #fef3c7;
    
    /* Neutrals */
    --text-main: #1e293b;          /* Slate 800 */
    --text-muted: #64748b;         /* Slate 500 */
    --text-light: #94a3b8;         /* Slate 400 */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;           /* Slate 50 */
    --bg-gray: #f1f5f9;            /* Slate 100 */
    --border: #e2e8f0;             /* Slate 200 */
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --header-shrink-height: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(15, 90, 138, 0.05), 0 2px 4px -1px rgba(15, 90, 138, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 90, 138, 0.08), 0 4px 6px -2px rgba(15, 90, 138, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 90, 138, 0.12), 0 10px 10px -5px rgba(15, 90, 138, 0.06);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--bg-light);
}

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

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    background-color: var(--secondary-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

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

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

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

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

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

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header-wrapper {
    position: absolute;
    top: 34.28px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.header-wrapper.sticky {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.header-top {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.header-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-info-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.header-wrapper.sticky .header-main {
    height: var(--header-shrink-height);
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.header-wrapper.sticky .logo img {
    height: 40px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Nav Menu States */
@media (max-width: 992px) {
    .header-wrapper {
        position: fixed;
        top: 0;
    }
    .header-top {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .header-wrapper.sticky .nav-menu {
        top: var(--header-shrink-height);
        height: calc(100vh - var(--header-shrink-height));
    }
    .nav-menu.active {
        left: 0;
    }
    
    /* Hamburger Menu Transform */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6fffa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

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

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(14, 90, 138, 0.08);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid rgba(14, 90, 138, 0.1);
    padding-top: 2rem;
}

.stat-item-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    max-width: 450px;
    margin: 0 0 0 auto;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    border: 8px solid #ffffff;
    object-fit: cover;
}

.hero-badge-floating {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background-color: #ffffff;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    border: 1px solid var(--border);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.hero-badge-text h5 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

.hero-badge-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 3.5rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    .hero-badge-floating {
        left: 1rem;
    }
}

/* ==========================================================================
   CARDS & GRID COMPONENT SECTION
   ========================================================================== */
/* Specialty Card */
.card-specialty {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card-specialty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.card-specialty:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
}

.card-specialty:hover::before {
    height: 100%;
}

.specialty-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card-specialty:hover .specialty-icon {
    background-color: var(--secondary);
    color: #ffffff;
    transform: rotate(5deg);
}

.specialty-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.specialty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-specialty:hover .specialty-image-wrapper {
    transform: scale(1.05) rotate(3deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-specialty:hover .specialty-image {
    transform: scale(1.1);
}

.specialty-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.specialty-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.card-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* Doctor Card */
.card-doctor {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.doctor-img-container {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-gray);
    aspect-ratio: 1/1;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.doctor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.doctor-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

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

.doctor-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   BOOKING / CONTACT FORM MODULE
   ========================================================================== */
.booking-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d5c8f 100%);
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.booking-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    z-index: -1;
    opacity: 0.4;
}

.booking-section .section-title {
    color: #ffffff;
}

.booking-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.booking-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .booking-wrapper {
        padding: 1.8rem;
    }
}

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

.form-group-full {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .booking-form > div {
        grid-column: span 2 !important;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

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

/* ==========================================================================
   SINGLE PAGE TEMPLATES
   ========================================================================== */
.page-banner {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.breadcrumbs-separator::after {
    content: '/';
    margin: 0 0.2rem;
}

/* Content Sidebar Layout */
.layout-sidebar {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 3rem;
}

.layout-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-shrink-height) + 2rem);
    align-self: start;
}

@media (max-width: 992px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sidebar {
        position: static;
    }
}

/* Specialty Single Content */
.specialty-article h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.specialty-article p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.specialty-article ul {
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.specialty-article li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.specialty-procedures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.procedure-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.procedure-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.procedure-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .specialty-procedures {
        grid-template-columns: 1fr;
    }
}

/* Doctor Single Details */
.doctor-profile-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.doctor-profile-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1/1;
    background-color: var(--bg-gray);
}

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

.doctor-profile-intro .doctor-name {
    font-size: 2.25rem;
    margin-bottom: 0.4rem;
}

.doctor-profile-intro .doctor-specialty {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.profile-meta-item h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.profile-meta-item p {
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .doctor-profile-header {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    .doctor-profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    .doctor-profile-intro {
        text-align: center;
    }
    .profile-meta-grid {
        grid-template-columns: 1fr;
    }
}

.doctor-biography h3 {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.doctor-biography h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.doctor-biography p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.sidebar-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 0.8rem;
    position: relative;
}

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

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--text-main);
}

.schedule-time {
    color: var(--text-muted);
}

.schedule-time.closed {
    color: #ef4444;
    font-weight: 600;
}

/* Associated doctors list in sidebar */
.doctor-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.doctor-mini-card:last-child {
    border-bottom: none;
}

.doctor-mini-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-gray);
}

.doctor-mini-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.doctor-mini-name a:hover {
    color: var(--secondary);
}

.doctor-mini-spec {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

/* ==========================================================================
   CONTACTS PAGE
   ========================================================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon-wrapper {
    background-color: var(--primary);
    color: #ffffff;
}

.contact-info-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Custom CSS Map Placeholder */
.map-placeholder {
    height: 450px;
    background-color: #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.map-embed {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 320px;
    border: 1px solid var(--border);
    z-index: 10;
}

.map-overlay-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.map-overlay-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

@media (max-width: 600px) {
    .map-overlay-card {
        display: none;
    }
}

/* ==========================================================================
   FOOTER MODULE
   ========================================================================== */
.footer {
    background-color: #0c1c2c;
    color: #94a3b8;
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-about p {
    margin-top: 1.2rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    transition: var(--transition);
    opacity: 0.5;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.3rem;
}

.footer-links a:hover::before {
    opacity: 1;
    color: var(--secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

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

.footer-bottom-links a:hover {
    color: #ffffff;
}

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   FILTER TABS FOR CORPO CLINICO
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.filter-tab {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
