/* ============================================
   AMATRA IV - Public Website Styles
   Replicated from www.amatra4.org.br
   ============================================ */

:root {
  --amatra-red: #730E00;
  --amatra-dark-bg: #2a363b;
  --amatra-grey-bg: #e7e7e7;
  --amatra-light-bg: #f8f8f8;
  --amatra-text: #1a1111;
  --amatra-secondary-text: #757575;
  --amatra-border: #efe6e6;
}

body {
  font-family: "Lato", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  color: var(--amatra-text);
  background-color: var(--amatra-grey-bg);
  line-height: 1.5;
}

a {
  color: var(--amatra-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a0b00;
  text-decoration: none;
}

/* ============================================
   Typography & Utilities
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--amatra-red);
}

.section-title {
  font-size: 1.4rem;
  color: #fff;
  background-color: #757575;
  padding: 0.6rem;
  margin-bottom: 2rem;
  border-radius: 0.2rem;
  position: relative;
  /* Replicating .g-title style */
  font-weight: 600;
  border: 0px solid transparent;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--amatra-red);
    background-color: var(--amatra-light-bg);
    padding: 0.6rem;
    border-bottom: 1px solid var(--amatra-red);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
  font-weight: 600; /* approximated 64?? */
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  background-color: var(--amatra-red);
  border-color: var(--amatra-red);
  color: white;
  border-radius: 0.2rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #5a0b00 !important; /* Darker red */
  border-color: #5a0b00 !important;
  color: white !important;
}

.btn-outline-primary {
    color: var(--amatra-red);
    border-color: var(--amatra-red);
}

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

/* ============================================
   Layout Sections
   ============================================ */

/* Top Utility Bar (if added later) */
.utility-bar {
    background: var(--amatra-dark-bg);
    color: #fff;
    padding: 0.3rem 0;
}

/* Navigation */
.navbar {
  background-color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for separation */
}

.navbar-brand {
    padding-top: 0.4rem;
    padding-bottom: 0.7rem;
}

.navbar-light .navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 700; /* bold */
  color: #1a1111; /* Dark text */
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--amatra-red);
}

.dropdown-menu {
  background: #fff;
  border: 1px solid rgba(115, 14, 0, 0.2);
  border-radius: 0.15rem;
  padding: 0;
}

.dropdown-item {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  color: #1a1111;
  text-transform: uppercase;
}

.dropdown-item:hover {
  background-color: var(--amatra-light-bg);
  color: var(--amatra-red);
}

/* Main Wrapper */
.main-content {
    background-color: #ffffff; /* g-mainbar */
    padding: 2rem 0;
    min-height: 60vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-top: 0rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    max-width: 1200px; /* Container width wrapper */
}

/* Homepage Hero */
.hero-section {
    margin-bottom: 2rem;
}

/* Article Cards */
.article-card {
  border: none;
  background: transparent;
  margin-bottom: 1.5rem;
  box-shadow: none; /* Original site is cleaner/flatter */
}

.article-card .card-body {
    padding: 1rem 0;
}

.article-card .card-title {
  margin-bottom: 0;
  line-height: 1.2;
}

.article-card .card-title a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amatra-red);
  background-color: var(--amatra-light-bg);
  display: block;
  padding: 0.6rem;
  border-bottom: 1px solid var(--amatra-red);
  text-decoration: none;
}

.article-card .card-title a:hover {
    background-color: #eee;
}

.article-card .card-text {
    font-size: 0.95rem;
    color: var(--amatra-text);
    margin-top: 1rem;
    line-height: 1.5;
}

.bg-secondary {
    background-color: #ddd !important;
}

/* Article Meta */
.article-meta {
    font-size: 0.8rem;
    color: var(--amatra-secondary-text);
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    padding-left: 10px;
    border-left: 1px solid #eee;
}

.sidebar-item {
    border-bottom: 2px solid #5a1818;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* Footer */
.footer {
  background: var(--amatra-dark-bg);
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
}

.footer a:hover {
  color: #fff;
}

/* Pagination */
.pagination .page-link {
    color: var(--amatra-red);
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--amatra-red);
    border-color: var(--amatra-red);
    color: white;
}

/* Breadcrumb / Category Header */
.category-header {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 1.4rem;
    color: #fff;
    background-color: #757575; /* Same as g-title */
    padding: 0.6rem;
    border-radius: 0.2rem;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        margin: 0;
        padding: 1rem;
    }
}
