/* ===== Base Layout ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px;
}

/* ===== Top Navigation ===== */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle, #FFFF00, #FFA500);
  padding: 20px;
  flex-wrap: wrap;
}

.topnav img {
  height: 90px;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.topnav li {
  margin-left: 20px;
}

.topnav a {
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.topnav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* ===== Content Sections ===== */
.content-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle, #FFFF00, #FFA500);
  box-sizing: border-box;
}

.content-text {
  flex: 1;
  margin-left: 100px;
  font-size: 28px;
  font-weight: bold;
  color: red;
}

.content-text h1 {
  font-size: 40px;
  margin-bottom: 30px;
  text-align: center;
  font-family: Verdana, sans-serif;
}

.content-text h4 {
  font-size: 28px;
  margin-top: -20px;
  margin-bottom: 0;
  text-align: center;
  font-family: serif;
}

.content-image {
  flex: 1;
  text-align: right;
}

.content-image img {
  max-width: 120%;
  height: 100%;
  display: block;
}

/* ===== Buttons ===== */
.explore-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: black;
  color: white;
  font-size: 10px;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.explore-button:hover {
  background-color: red;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* ===== Section Container ===== */
.section-container {
  padding: 40px;
  background: linear-gradient(to right, #fffce0, #fff9b0);
}

table.profile-table {
  width: 100%;
  border-spacing: 10px;
}

.profile-cell, .vision-cell {
  vertical-align: top;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

h2 {
  color: #2c2c2c;
  text-align: center;
}

p, ul {
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
}

ul {
  padding-left: 20px;
}

.video-wrapper {
  margin-top: 40px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

video {
  width: 100%;
  border-radius: 5px;
  height: 400px;
}

/* ===== Footer ===== */
.footer {
  background-color: #000;
  color: #ffd700;
  padding: 10px 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

.footer-left {
  flex: 1 1 60%;
}

.footer-right {
  flex: 1 1 35%;
  text-align: right;
}

.footer-right img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.footer p {
  margin: 6px 0;
  font-size: 1em;
  color: #ffd700;
}

.footer hr {
  border: 0;
  height: 1px;
  background-color: #ffd700;
  margin: 20px 0;
}

.footer .copyright {
  text-align: center;
  font-size: 0.9em;
  margin-top: 20px;
}

/* ===== Gallery ===== */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  padding: 18px;
}

.img-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.img-grid img:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* About Page */
/* ==== Section Styling ==== */
.candidate-profile {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ==== Header ==== */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #b8860b; /* Golden brown tone */
}

.profile-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
}

/* ==== Paragraphs ==== */
.profile-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ==== Images ==== */
.center-image {
    display: block;
    max-width: 90%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.center-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==== Figure (optional caption styling) ==== */
figure {
    margin: 0;
}

/* FRONASA text and media */
/* FRONASA text and media */
.media-section {
    margin: 30px 0;
}

/* Image left, video right */
.media-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap; /* Ensures mobile compatibility */
}

.media-image {
    flex: 1 1 50%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    height: auto;
}

.profile-video {
    flex: 1 1 50%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile stacking */
@media (max-width: 768px) {
    .media-row {
        flex-direction: column;
    }
}
