/* Reset & font */
body {
  margin: 0;
  font-family: 'Texturina', serif;
  color: #333;
  background: url('flagwaving.png') center/cover no-repeat fixed;
}

/* Header & Footer iframes */
iframe {
  display: block;
  width: 100%;
  border: none;
  position: relative; /* ensure above overlay */
  z-index: 2;        /* higher than main content overlay */
}

/* Main content area with semi-transparent background */
main {
  position: relative;
  z-index: 1; /* above background, below header/footer */
  max-width: 900px;
  margin: 2rem auto;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Welcome section */
.welcome h1 {
  color: #900;
  margin-top: 0;
}

/* Sections layout */
.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  flex: 1 1 250px;
  background-color: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: center;
}

/* Make sections clickable and modern */
.section {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: 0.2s;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.section a:hover {
  text-decoration: underline;
}

/* Territory sections (for territories page) */
.territory-section {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  gap: 1rem;
}

.territory-section img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.territory-info h2 {
  margin: 0 0 0.5rem 0;
  color: #900;
}

.territory-info p {
  margin: 0;
}

/* Footer base */
.mega-footer {
  background-color: #900; /* main red */
  color: #f8f8f8;
  font-size: 0.9rem;
}

/* Layout */
.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Columns */
.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  color: #ffd700; /* gold accent */
  margin-bottom: 0.5rem;
}

/* Links */
.footer-column a {
  display: block;
  color: #f8f8f8;
  text-decoration: none;
  margin: 0.3rem 0;
}

.footer-column a:hover {
  text-decoration: underline;
  color: #ffd700;
}

/* Branding */
.brand-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.brand-header img {
  height: 50px;
  width: auto;
  max-width: 100%;
}

.brand span {
  font-size: 0.8rem;
  color: #f0dede;
}

/* Divider */
.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 0 2rem;
}

/* Bottom bar */
.footer-bottom {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  background-color: #700; /* darker red */
  color: #f0dede;
}

/* Make page take full height */
html, body {
  height: 100%;
  margin: 0;
}

/* Use flex layout */
body {
  display: flex;
  flex-direction: column;
}

/* Main content expands to push footer down */
main {
  flex: 1;
}

/* Header layout */
.site-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #900;
  color: white;
  gap: 10px;
}

/* Logo link (removes link styling) */
.logo-link {
  display: inline-block;
}

.logo-link img {
  height: 50px;
  width: auto;
  display: block;
}

/* Optional hover effect */
.logo-link:hover img {
  opacity: 0.9;
}

/* Title */
.site-title {
  font-size: 1.5rem;
}

.logo-link img {
  height: 50px;
  width: auto;
  max-width: 100%;
}

/* =========================
   MOBILE RESPONSIVE FIXES
   ========================= */
   
   /* Desktop defaults */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* FIX: no centering */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  text-align: left; /* FIX: no centering */
}

.territory-section {
  display: flex;
  align-items: center;
  text-align: left; /* FIX */
}

@media (max-width: 768px) {

  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sections {
    flex-direction: column;
  }

  .territory-section {
    flex-direction: column;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

}

/* Gallery Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 6px;
}

.caption {
  margin-top: 5px;
  font-family: Texturina, serif;
  font-size: 14px;
  color: #333;
}

/* About page layout */
.about-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.about-row img {
  width: 40%;
  max-width: 300px;
}

.about-row div {
  flex: 1;
}

/* Alternate layout (image on right) */
.about-row.reverse {
  flex-direction: row-reverse;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-row.reverse {
    flex-direction: column;
  }

  .about-row img {
    width: 100%;
  }
}


/* Alternate layout (image on right) */
.about-row.reverse {
  flex-direction: row-reverse;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-row.reverse {
    flex-direction: column;
  }

  .about-row img {
    width: 100%;
  }
}

/* Header */
.site-header {
  background: #222;
  color: white;
  padding: 10px 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-title img {
  height: 45px;  /* adjust between 35–60px depending on your logo */
  width: auto;
}

.logo-title h1 {
  font-family: Texturina, serif;
  font-size: 20px;
  margin: 0;
}

/* Navigation */
.nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  font-family: Texturina, serif;
  font-size: 14px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: 0.2s;
}

.nav a:hover {
  background: #444;
}

.card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* News Page Styling */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-card h2 {
  font-family: Texturina, serif;
  margin-top: 0;
}

.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.news-link {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 10px;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: Texturina, serif;
  transition: 0.2s;
}

.news-link:hover {
  background: #444;
}

/* National identity section */
.national-identity {
  text-align: center;
  margin-top: 20px;
}

/* Flag + Crest layout */
.symbols {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.symbol img {
  height: 140px;       /* fixed equal height */
  width: auto;         /* keeps proportions */
  object-fit: contain; /* prevents stretching */
  border-radius: 6px;
}

.symbol-label {
  margin-top: 5px;
  font-size: 14px;
  color: #555;
}

/* Quote */
.national-quote {
  margin: 20px auto;
  font-size: 18px;
  font-style: italic;
  max-width: 600px;
  color: #444;
}

/* Anthem */
.anthem {
  margin-top: 20px;
}

.anthem-player {
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
  height: 80px; /* compact player */
  border: none;
}

/* Important Links Section */
.important-links ul {
  list-style-type: disc;
  padding-left: 20px;
}

.important-links li {
  margin-bottom: 8px;
}

.important-links a {
  color: #0044cc;
  text-decoration: none;
  transition: 0.2s;
}

.important-links a:hover {
  text-decoration: underline;
}

/* Important Documents Section */
.doc-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  background: #f8f8f8;
  transition: 0.2s;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.doc-card h3 {
  margin: 0 0 5px 0;
}

.doc-card a {
  color: #0044cc;
  text-decoration: none;
}

.doc-card a:hover {
  text-decoration: underline;
}

/* Button style for documents */
.doc-card .doc-button {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 10px;
  background: #222;
  color: white;      /* force white text */
  text-decoration: none; /* remove underline */
  border-radius: 4px;
  font-family: Texturina, serif;
  transition: 0.2s;
  cursor: pointer;
}

.doc-card .doc-button:hover {
  background: #444;
  color: white;      /* keep white on hover */
}