/**
 * Diário Oficial - Main Style
 * Standardizing design with rich aesthetics and premium feel.
 */

:root {
    /* Reverted Color Palette - Original Blue Theme */
    --primary: #003366;           /* Navy Blue */
    --secondary: #007bff;         /* Interaction Blue */
    --accent: #ffcc00;            /* Golden Highlights */
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #3a3a3a;
    --text-muted: #777777;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

header {
    width: 100%;
    background: var(--white);
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.top-bar-container {
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    color: #555;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-header {
    width: 100%;
    background: var(--white);
    padding: 1.5rem 0;
}

.main-header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar-section {
    width: 100%;
    background: var(--primary);
    border-bottom: 4px solid var(--accent);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.top-nav {
    display: flex;
    gap: 1.5rem;
}

.top-nav a:hover {
    color: var(--accent);
}

.status-online {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00e676;
    font-weight: 600;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.btn-login {
    background: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    width: auto;
    transform: translateX(150px);
}

.nav-links li a {
    font-weight: 700;
    text-transform: none;
    font-size: 1rem;
    color: var(--white);
    padding: 1.2rem 1rem;
    display: block;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section (Slider) */
.hero {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle, #004080 0%, #001a33 100%);
}

.hero-slider {
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-action {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

/* Latest Editions Grid */
.section-title {
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary);
}

.editions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.edition-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.edition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.edition-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.type-ordinaria {
    background: rgba(0, 123, 255, 0.1);
    color: var(--secondary);
}

.type-extra {
    background: rgba(255, 204, 0, 0.1);
    color: #b8860b;
}

.edition-number {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.edition-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
}

/* Services Grid (Important functionality) */
.services-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem 1rem; /* Smaller padding */
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.service-card i {
    font-size: 2rem; /* Smaller icons */
    color: var(--secondary);
    transition: var(--transition);
}

.service-card span {
    font-weight: 700;
    font-size: 1rem;
}

.service-card:hover {
    background: var(--secondary);
    color: var(--white);
}

.service-card:hover i {
    color: var(--white);
    transform: scale(1.1);
}

/* Timeline Institutional */
.timeline-section {
    padding: 6rem 2rem;
    background: var(--primary);
    color: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 10;
    top: 25px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.timeline-year {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Footer Section */
footer {
    background: #111;
    color: #999;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

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

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add hamburger menu later */
    }
    
    .hero {
        height: 500px;
    }
    
    .slide {
        padding: 2rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 21px !important;
    }
    
    .main-nav {
        justify-content: center;
    }
}
