/*
Theme Name: Twenty Seventeen
Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with header video and immersive featured images.
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen
*/

/* Government Portal Specific Styles */

:root {
  /* Gobierno colors - more formal and institutional */
  --color-primary: #003366;
  --color-secondary: #990000;
  --color-accent: #D4AF37;
  --color-header: #003366;
  --color-footer: #001F3F;
  --color-text: #333333;
  --color-text-light: #6c757d;
  --color-border: #dee2e6;
  --color-hover: #004080;
  --color-body-bg: #f5f5f5;
}

body {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-body-bg);
  margin: 0;
  padding: 0;
}

/* Typography - more formal for government */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-hover);
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  background-color: var(--color-header);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.site-branding {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

.site-title {
  font-size: 2rem;
  margin: 0;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-description {
  font-size: 1rem;
  margin: 0.25rem 0 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.navigation-top {
  width: 100%;
  background-color: #00254d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.menu li {
  margin: 0;
  padding: 0;
}

.menu a {
  display: block;
  padding: 10px 15px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: background-color 0.3s;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Content Area */
.content-area {
  padding: 2rem 0;
}

.entry {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.entry-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.entry-title {
  color: var(--color-primary);
  text-align: center;
}

.entry-content {
  margin-bottom: 1.5rem;
}

/* News Items */
.news-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.news-item a {
  display: inline-block;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-footer);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* WordPress Admin Bar */
#wpadminbar {
  background-color: #23282d;
  height: 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 600px;
  z-index: 99999;
  border-bottom: 1px solid #444;
}

#wpadminbar ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  height: 100%;
}

#wpadminbar li {
  margin: 0 10px 0 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

#wpadminbar a {
  color: #eee;
  font-size: 13px;
  line-height: 32px;
  height: 32px;
  padding: 0 8px;
  display: block;
}

#wpadminbar a:hover {
  color: #00b9eb;
  background-color: #32373c;
  text-decoration: none;
}

/* Official Government Seal */
.government-seal {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

/* Institucional Elements */
.official-declaration {
  font-style: italic;
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: rgba(0, 51, 102, 0.05);
  border-left: 4px solid var(--color-primary);
}

/* National Colors and Elements */
.national-colors {
  display: flex;
  height: 8px;
  width: 100%;
  overflow: hidden;
}

.color-band-1 {
  flex: 1;
  background-color: #003366; /* Blue */
}

.color-band-2 {
  flex: 1;
  background-color: #FFFFFF; /* White */
}

.color-band-3 {
  flex: 1;
  background-color: #990000; /* Red */
}

/* Institutional Buttons */
.btn-institutional {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.3s;
}

.btn-institutional:hover {
  background-color: var(--color-hover);
  color: white;
  text-decoration: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .site-header .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-branding {
    margin-bottom: 0;
    text-align: left;
    width: auto;
  }

  .navigation-top {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
    margin: 0 auto;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* National Arms and Flag */
.national-flag {
  max-width: 300px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Government Departments Section */
.departments-section {
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.department-item {
  background-color: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.department-item h4 {
  margin-top: 0;
  color: var(--color-primary);
}

/* Official stamps and seals */
.official-stamp {
  position: relative;
  max-width: 150px;
  margin: 1rem auto;
  opacity: 0.8;
  transform: rotate(-5deg);
}

.quote-president {
  font-style: italic;
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
}

/* Language toggle button styling */
#language-toggle {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

#language-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Coat of arms placement */
.coat-of-arms {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: auto;
}

/* Make sure body content clears the admin bar */
body.admin-bar {
  margin-top: 32px;
}

/* Contact form styling for government site */
.contact-form {
  background-color: white;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}