/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #1976d2;
    --secondary-color: #e91e63;
    --accent-color: #00bcd4;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background: #ffffff;
    --background-dark: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.floating-card:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
        opacity: 1;
    }
}

/* Sections */
.sections {
    padding: 6rem 0;
    background: var(--background-dark);
}

.sections .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.sections-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    align-items: start;
}

/* Force grid layout for sections */
#sections-container.sections-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.section-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    width: 100%;
    grid-column: auto;
}

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

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

.section-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1.5rem !important;
}

.content-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.section-contents {
    margin-top: 1.5rem;
    flex: 1;
}

.content-item {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.content-item:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

.content-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.content-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.content-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-description.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.team-read-more {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
}

.team-read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.team-credentials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.team-read-more {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.credential {
    background: var(--background-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.credential.crm {
    background: #4CAF50;
}

.credential.doctoralia {
    background: #2196F3;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

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

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .sections-grid,
    #sections-container {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 900px;
        padding: 0 20px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0;
        padding-top: 6rem; /* Compensar altura do header fixo */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .floating-card i {
        font-size: 2rem;
    }

    .floating-card:nth-child(1) {
        top: 10%;
        left: 5%;
    }

    .floating-card:nth-child(2) {
        top: 40%;
        right: 10%;
    }

    .floating-card:nth-child(3) {
        bottom: 10%;
        left: 20%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }

    .sections-grid,
    #sections-container {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        padding: 0 20px;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero {
        min-height: auto;
        padding: 0.5rem 0;
        padding-top: 6rem; /* Compensar altura do header fixo */
    }

    .hero-container {
        padding: 1rem 15px;
        gap: 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .hero-visual {
        height: 250px;
        margin-top: 1.5rem;
    }

    .floating-card {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .floating-card i {
        font-size: 1.5rem;
    }

    .floating-card:nth-child(1) {
        top: 5%;
        left: 2%;
    }

    .floating-card:nth-child(2) {
        top: 35%;
        right: 5%;
    }

    .floating-card:nth-child(3) {
        bottom: 5%;
        left: 15%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .sections-grid,
    #sections-container {
        padding: 0 15px;
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }

    .section-card {
        padding: 1.5rem;
        min-height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Page Loading Overlay */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.page-loading.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

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

.whatsapp-float i {
    color: white;
    font-size: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Team Details Page */
.team-details {
    padding: 4rem 0;
    background: var(--background-dark);
}

.team-details-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-detail-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.team-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.team-detail-photo-container {
    text-align: center;
}

.team-detail-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto;
}

.team-detail-info {
    flex: 1;
}

.team-detail-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.team-detail-specialty {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.team-detail-email {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-detail-email i {
    color: var(--primary-color);
}

.team-detail-credentials {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.team-detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }

    .team-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .team-detail-photo {
        width: 200px;
        height: 200px;
    }

    .team-detail-name {
        font-size: 2rem;
    }

    .team-detail-card {
        padding: 2rem;
    }
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: var(--background-dark);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Active nav link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Contact form select */
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* News Preview Section */
.news-preview {
    padding: 80px 0;
    background: var(--background-dark);
}

@media (max-width: 768px) {
    .news-preview {
        padding-top: 100px; /* Compensar altura do header fixo */
    }
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-preview-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.news-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-preview-content {
    padding: 25px;
}

.news-preview-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-preview-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-preview-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-preview-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-preview-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-preview-actions {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

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

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Override any conflicting styles for sections grid */
.sections .sections-grid,
#sections-container,
.sections-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 20px !important;
    align-items: start !important;
    grid-auto-rows: minmax(300px, auto) !important;
}

/* Force grid for dynamically created cards */
.sections .section-card,
.sections-grid .section-card,
#sections-container .section-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    box-sizing: border-box !important;
}

/* Force grid layout for all screen sizes */
@media (min-width: 1025px) {
    .sections .sections-grid,
    #sections-container,
    .sections-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sections .sections-grid,
    #sections-container,
    .sections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
}

@media (max-width: 768px) {
    .sections .sections-grid,
    #sections-container,
    .sections-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
}

/* Debug CSS removed - grid is working correctly */
