:root {
    --gov-dark: #1e1e1e;
    --gov-light: #f7f7f7;
    /* --gov-gold: #c8a86b; */
    --gov-gray: #444;
}

/* Header */
.header-body{
    border-bottom: 2px solid var(--gov-gold) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

/* Fondo del título con imagen */
#imgPost {
    padding: 60px 0 !important;
    background-color: var(--gov-light) !important;
    text-align: center;
}

/* Imagen destacada: NO distorsionar, NO estirar */
#imgPost img {
    width: 100%;        /* Se adapta al contenedor */
    max-width: 450px;   /* Tamaño máximo */
    height: auto;       /* Mantiene proporción */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Títulos */
#postTitle h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gov-dark);
    margin-top: 25px;
}

/* Subtítulo */
#postTitle h6 {
    color: var(--gov-gray);
    margin-top: 10px;
}

/* Línea decorativa bajo el título */
.imgTitle {
    width: 120px !important;
    height: auto !important;
    margin-top: 15px !important;
    /* filter: saturate(0.2); */
}

/* Contenido */
#postContent {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Contenedor principal */
#postBody .container {
    max-width: 980px;
}

/* Imágenes dentro del contenido */
#postContent img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#postContent .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#postContent .alignright {
  float: right;
  margin-left: 1rem;
}

#postContent .alignleft {
  float: left;
  margin-right: 1rem;
}

/* Mejorar imágenes generales */
#postContent img {
  max-width: 100%;
  height: auto;
  display: block;
}

#postContent figcaption {
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 70%, transparent);
    color: #fff;
    border-radius: 10px;
    overflow: auto;
    position: absolute;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    bottom: 0;
}

#postContent object {
    display: block !important;
}

/* Sidebar */
#rNews .post-info a {
    color: var(--gov-dark);
    font-weight: 600;
}
#rNews .post-info a:hover {
    color: var(--gov-gold);
}

#rNews .post-image img {
    border-radius: 8px;
}

/* Tabs */
.tabs-dark .nav-tabs .nav-link.active {
    background: var(--gov-dark) !important;
    color: white !important;
}
.tabs-dark .nav-tabs .nav-link {
    color: var(--gov-dark) !important;
}

/* Responsive */
@media(max-width: 768px) {
    #postTitle h1 {
        font-size: 1.8rem;
    }
}