/* Oncologia News - Custom Styles */

:root {
    --primary-color: #2C5282;
    --secondary-color: #4299E1;
    --accent-color: #38A169;
    --text-color: #718096;
    --dark-color: #2D3748;
    --light-bg: #F7FAFC;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header Styles */
.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.search-input {
    border-radius: 25px 0 0 25px;
    border: 1px solid #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-image {
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-image img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* News Section */
.news-section {
    background: white;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-color);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Research Section */
.research-section {
    background: var(--light-bg);
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.research-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.research-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.research-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    border-radius: 25px 0 0 25px;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #2F855A;
    border-color: #2F855A;
    transform: translateY(-2px);
}

/* Footer */
.footer-section {
    background: var(--dark-color) !important;
}

.footer-section h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #A0AEC0;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .research-card {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 25px;
        margin-bottom: 10px;
    }
}

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

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 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);
}

/* Medicamentos Lista - Layout Limpo */
.medicamentos-lista {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.medicamento-item {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.medicamento-item:last-child {
    border-bottom: none;
}

.medicamento-item:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.medicamento-nome {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.medicamento-descricao {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.medicamento-preco {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.medicamento-item:hover .medicamento-preco {
    background: linear-gradient(135deg, var(--light-bg), #e2e8f0);
    border-color: var(--primary-color);
}

.medicamento-preco span {
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive para medicamentos */
@media (max-width: 768px) {
    .medicamento-item {
        padding: 1.5rem;
    }
    
    .medicamento-item .row {
        text-align: center;
    }
    
    .medicamento-item .col-md-6,
    .medicamento-item .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .medicamento-nome {
        font-size: 1.1rem;
    }
    
    .medicamento-descricao {
        font-size: 0.9rem;
    }
}

