/* ===== Reset & Variables ===== */
:root {
    --primary-color: #0056b3; /* Institutional Blue */
    --secondary-color: #f8f9fa; /* Very Light Gray/White */
    --text-color: #333333; /* Dark Gray for readability */
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #003d82;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #004494;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.divider.left-align {
    margin: 15px 0 30px 0;
}

section {
    padding: 80px 0;
}

/* ===== Header Navigation ===== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero-section {
    background-color: var(--white);
    padding: 60px 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== Dicas Section ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.tip-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ===== Placas Section ===== */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sign-item {
    text-align: center;
    padding: 20px;
}

.sign-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}
.circle.red-border {
    border: 10px solid #cc0000;
    color: #333;
    background: #fff;
}
.circle .stop { font-size: 26px; font-weight: 900; }
.circle.num { font-size: 40px; }

.diamond {
    width: 80px;
    height: 80px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.diamond.yellow-bg {
    background: #FFCC00;
    border: 3px solid #000;
    color: #000;
}
.diamond i {
    transform: rotate(-45deg);
    font-size: 30px;
}

.rectangle {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rectangle.blue-bg {
    background: #0056b3;
    color: #fff;
    border: 2px solid #fff;
    outline: 2px solid #0056b3;
}
.rectangle i { font-size: 40px; }


.sign-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.sign-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== Novidades Section ===== */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.news-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.news-item h3 a {
    color: var(--text-color);
}

.news-item h3 a:hover {
    color: var(--primary-color);
}

/* ===== Legislação Section ===== */
.container-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.leg-text {
    flex: 1;
}

.leg-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.check-list i {
    color: #28a745;
    font-size: 1.2rem;
}

.leg-image {
    flex: 1;
}

.leg-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}


/* ===== Artigos Section ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.article-card a {
    color: inherit;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-card:hover .read-more i {
    transform: translateX(5px);
}


/* ===== Footer ===== */
.main-footer {
    background-color: #2c3e50; /* Darker institutional color for footer */
    color: #ecf0f1;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    color: #bdc3c7;
    margin-top: 15px;
    font-size: 0.95rem;
}

.contact ul li, .links ul li {
    margin-bottom: 15px;
    color: #bdc3c7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact i {
    margin-top: 4px;
    color: var(--primary-color);
}

.links a {
    color: #bdc3c7;
}

.links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* ===== Inner Pages Settings (Policies & Articles) ===== */
.page-header {
    background-color: var(--secondary-color);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
}

.page-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    margin: 30px 0 15px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.content-wrapper h3 {
    margin: 25px 0 15px;
    color: var(--text-color);
    font-size: 1.4rem;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light); /* Softer text for long reading */
}

.content-wrapper ul {
    margin: 0 0 20px 20px;
    list-style-type: disc;
    color: var(--text-light);
}

.content-wrapper li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.article-meta {
    margin: 20px 0 30px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}


/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .hero-section .container, .container-flex {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        display: none; /* simple mobile hide for now */
    }
}
