* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gray-dark: #515151;
    --gray-medium: #6B6B6B;
    --gray-light: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #888888;
    --text-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-gray: #515151;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gray-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 8px 0;
    justify-content: flex-start;
}

.navbar-brand {
    margin-right: 40px;
    margin-left: 0;
    padding-left: 0;
}

.navbar-nav.ms-auto {
    margin-left: 0 !important;
    margin-right: auto;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.btn-results {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-results:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

.header-social {
    display: flex;
    gap: 8px;
}

.header-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header-social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.header-social-link.whatsapp {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.header-social-link.whatsapp:hover {
    background: var(--primary-color);
}

.navbar-toggler {
    border: 2px solid var(--text-white);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 400;
}

.btn-hero {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Section Title */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 30px;
}

.title-underline.left {
    margin: 0 0 25px 0;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Specialties Section */
.specialties {
    padding: 80px 0;
    background: var(--bg-light);
}

.specialty-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 100%;
    border: 1px solid var(--border-color);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.specialty-card:hover .specialty-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.specialty-card:hover .specialty-icon i {
    color: var(--text-white);
}

.specialty-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light, #D99F6C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.specialty-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.specialty-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.specialty-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Instituto Section */
.instituto {
    padding: 80px 0;
    background: var(--bg-white);
}

.instituto-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    width: 100%;
}

.instituto-text {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.instituto-text strong {
    color: var(--primary-color);
}

.btn-primary-custom {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

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

/* Values Section */
.values-section {
    padding: 60px 0;
    background: var(--gray-dark);
}

.value-card {
    text-align: center;
    padding: 30px 20px;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.value-title {
    font-size: 1.3rem;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 15px;
}

.value-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Exames Section */
.exames {
    padding: 80px 0;
    background: var(--bg-white);
}

.exames-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    width: 100%;
}

.exames-text {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.exames-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.exames-list li {
    padding: 8px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.exames-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Cirurgias Section */
.cirurgias {
    padding: 80px 0;
    background: var(--bg-white);
}

.cirurgia-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

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

.cirurgia-card:hover .cirurgia-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.cirurgia-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color, #A67A53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.cirurgia-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.cirurgia-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.cirurgia-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.parceria-text {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Livia Section */
.livia {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
}

.livia-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.livia-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.livia-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.livia-features li {
    padding: 8px 0;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.livia-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.livia-price {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 25px;
}

.livia-price strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn-livia {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn-livia-outline {
    background: transparent;
    color: var(--text-white);
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-livia-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border-color: #fff;
    transform: translateY(-2px);
}

.livia-image {
    text-align: center;
}

.livia-product-img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Corpo Clínico */
.corpo-clinico {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-white);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-dark);
    margin-bottom: 15px;
}

.team-name {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.team-specialty {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Contato Section */
.contato {
    padding: 80px 0;
    background: var(--bg-light);
}

.contato-text {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 30px;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contato-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.contato-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 3px;
}

.contato-item p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

a.contato-link {
    text-decoration: none;
    padding: 10px;
    margin: -10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

a.contato-link:hover {
    background: rgba(91, 154, 111, 0.08);
}

a.contato-link:hover i {
    color: var(--primary-dark);
}

.contato-form-wrapper {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--radius-md);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 63, 97, 0.1);
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.form-privacy a {
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--text-white);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1EBE5A;
    color: var(--text-white);
}

.form-message {
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: var(--gray-dark);
    color: var(--text-white);
    padding: 50px 0 25px;
}

.footer-logo-img {
    height: 70px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

.footer-text i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 35px 0 20px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .header-actions {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0 0 0;
        align-items: flex-start;
    }
    
    .header-social {
        margin-top: 5px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .specialties, .instituto, .exames, .corpo-clinico, .contato {
        padding: 60px 0;
    }
    
    .specialty-card {
        padding: 20px 15px;
    }
    
    .specialty-desc {
        display: none;
    }
    
    .contato-form-wrapper {
        padding: 25px 20px;
    }
    
    .team-photo {
        width: 90px;
        height: 90px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   SUBPAGES STYLES
   ======================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--text-white);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-hero.livia-hero {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: var(--bg-white);
}

/* Specialty Card Full */
.specialty-card-full {
    background: var(--bg-light);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.specialty-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.specialty-card-full .specialty-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.specialty-card-full:hover .specialty-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.specialty-card-full .specialty-icon i {
    font-size: 1.8rem;
    color: var(--text-white);
}

.specialty-card-full h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.specialty-card-full p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

/* Exame Category */
.exame-category {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    height: 100%;
}

.exame-category h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exame-category h3 i {
    font-size: 1.5rem;
}

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

.exame-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.exame-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

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

/* Doctor Card */
.doctor-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.doctor-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
}

.doctor-info {
    padding: 25px;
}

.doctor-info h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.doctor-crm {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.doctor-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Cirurgia Card Full */
.cirurgia-card-full {
    background: var(--bg-light);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    height: 100%;
    transition: all 0.3s ease;
}

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

.cirurgia-card-full .cirurgia-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color, #A67A53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cirurgia-card-full:hover .cirurgia-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.cirurgia-card-full .cirurgia-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.cirurgia-card-full h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.cirurgia-card-full p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cirurgia-card-full ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cirurgia-card-full ul li {
    padding: 5px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.cirurgia-card-full ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* RMS Partner Box */
.rms-partner-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.rms-partner-box h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.rms-partner-box p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.rms-partner-box h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.rms-features-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.rms-features-list li {
    padding: 6px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.rms-features-list li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.rms-section {
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.rms-gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

.rms-section img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
    max-height: 340px;
}

.rms-section p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.rms-equip-section {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius-md);
}

.rms-equip-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rms-equip-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.rms-equip-card:hover {
    transform: translateY(-4px);
}

.rms-equip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.rms-equip-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.rms-equip-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

.cirurgias-cta {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
}

.cirurgias-cta h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cirurgias-cta p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Instituto Carousel */
.instituto-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.instituto-carousel .carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 30px 20px 15px;
}

.carousel-caption-custom span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.carousel-nav-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.carousel-nav-btn i {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 1;
}

.instituto-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.instituto-thumbs::-webkit-scrollbar {
    height: 4px;
}

.instituto-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.instituto-thumbs .thumb {
    flex-shrink: 0;
    width: 80px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.instituto-thumbs .thumb:hover {
    opacity: 0.8;
}

.instituto-thumbs .thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.instituto-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .instituto-carousel .carousel-item img {
        height: 280px;
    }
    .instituto-thumbs .thumb {
        width: 60px;
        height: 42px;
    }
}

/* Livia Page Styles */
.livia-main-img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

.livia-features-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
}

.livia-benefit-card {
    text-align: center;
    padding: 25px 20px;
}

.livia-benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.livia-benefit-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.livia-benefit-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.livia-step-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    height: 100%;
    transition: transform 0.3s ease;
}

.livia-step-card:hover {
    transform: translateY(-4px);
}

.livia-step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.livia-step-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.livia-step-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    margin: 0;
}

.livia-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.livia-check-list li {
    padding: 6px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.livia-check-list li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.livia-steps {
    padding-left: 20px;
}

.livia-steps li {
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.livia-tech-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.livia-tech-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.livia-tech-box h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.livia-tech-box p {
    color: var(--text-gray);
    margin: 0;
}

.livia-cta-box {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #3a3a3a 100%);
    padding: 40px;
    border-radius: var(--radius-md);
    color: var(--text-white);
}

.livia-cta-box h3 {
    margin-bottom: 10px;
}

.livia-price-big {
    font-size: 1.2rem;
    margin: 0;
}

.livia-price-big strong {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Responsive for Subpages */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 50px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 40px 0;
    }
    
    .doctor-photo {
        aspect-ratio: 3 / 4;
    }
    
    .livia-cta-box {
        text-align: center;
    }
    
    .livia-cta-box .text-lg-end {
        margin-top: 20px;
    }
}
