/* ================= BASE ================= */
:root {
  --primary: #eb9203;
  --accent: #6b1f1f;
  --dark: #222;
  --light-gray: #f7f7f7;
  --card-width: 120px;
  --gap: 25px;
  --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

p {
  text-align: center;
}

section {
  padding: 60px 10%;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  background: var(--primary);
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  height: 350px;
  position: relative;
  overflow: hidden;
}

/* SLIDES */
.slide {
  position: absolute;
  inset: 0;
  background-size: contain;   /* 🔴 change here */
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  background-color: #eb9203;     /* optional: fills empty space nicely */
}


.slide.active {
  opacity: 1;
  z-index: 1;
}

/* CAPTION */
.caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
}

/* CONTROLS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
}
image{
  object-fit: fit;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .slide-1 { background-image: url("assests/mobile1.jpg"); }
  .slide-2 { background-image: url("assests/mobile2.jpg"); }
  .slide-3 { background-image: url("assests/mobile3.jpg"); }
}



/* ================= ABOUT ================= */
.about-wrapper {
  padding: 60px 10%;
}

.about-card {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  align-items: center;
}

.about-card.reverse {
  flex-direction: row-reverse;
}

.about-card img {
  width: 40%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

/* ================= HISTORY ================= */
.history {
  background: var(--light-gray);
}

.history-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.history img {
  width: 45%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

/* ================= PROGRAMS ================= */
.programs {
  padding: 60px 10%;
}

.program-slider img {
  width: 100%;
  display: none;
  border-radius: 6px;
  max-height: 300px;
  object-fit: contain;
}

.program-slide.active {
  display: block;
}

/* ================= LEADERSHIP ================= */
.leadership {
  background: var(--light-gray);
}

.leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 30px;
}

.leader {
  text-align: center;
}

.leader img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

//* ================= FOOTER ================= */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 10%;
  min-height: 200px;
  display: block;
}


/* Footer layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;     /* 🔥 prevents parent stretching issues */
  margin: 0 auto;
  text-align: left;
}

/* Each column */
.footer-content > div {
  flex: 1;               /* 🔥 equal width, independent of parent */
  min-width: 260px;
}

/* Headings */
.footer-content h4 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}

/* Paragraphs */
.footer-content p {
  margin: 6px 0;
  line-height: 1.6;
  text-align: left;
}

/* Social links */
.socials {
  display: flex;
  flex-direction: column;   /* links stacked vertically */
  gap: 6px;                 /* 🔥 reduced spacing */
}

.socials a {
  display: flex;            /* 🔥 SVG + text side-by-side */
  align-items: center;
  gap: 6px;                 /* 🔥 small icon-text gap */
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}
.socials svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;   /* 🔥 prevents shrinking in flex */
}


/* Copyright */
footer .copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-content > div {
    width: 100%;
  }
}


/* Animation */
.text-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out;
}

.text-card.active {
  background: #eb9203; /* orange */
  color: #fff;
}

.text-card.active h2 {
  color: #fff;
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {

  nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    width: 220px;
    padding: 15px;
    border: 1px solid #ddd;
    display: none;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .about-card,
  .history-content {
    flex-direction: column;
  }

  .about-card img,
  .history img {
    width: 100%;
    height: 200px;
    object-fit: fit;
  }

  .about-card {
    flex-direction: column;
  }

  /* IMPORTANT FIX */
  .about-card.reverse {
    flex-direction: column;
  }

  .about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}
.lang-btn {
    background: #fff;
    color: #6b1f1f;
    border: 1px solid #fff;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
}

.lang-btn:hover {
    background: #f0f0f0;
}

#inauguration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #800000, #400000); /* Maroon/Gold theme */
    z-index: 9999; /* Higher than everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out, visibility 1.5s;
}

.ribbon-container {
    text-align: center;
    animation: zoomIn 2s ease-out;
}

.gold-text {
    color: #FFD700;
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.sub-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

#welcome-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: #FFD700;
    color: #400000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transition: transform 0.3s;
}

#welcome-btn:hover {
    transform: scale(1.1);
}

/* Hide the overlay when active */
.hidden-overlay {
    opacity: 0;
    visibility: hidden;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}



#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Black background while loading */
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

#welcome-screen {
    text-align: center;
    z-index: 10002;
    transition: opacity 0.5s ease;
}

#inauguration-video {
    display: none; /* Hidden until clicked */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills screen like a background */
    position: absolute;
    top: 0;
    left: 0;
}

/* Class to fade out the whole overlay */
.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

/* Gold Text Styling */
.gold-text {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: serif;
}

/* ===============team ==================== */

/* The Grid System */
    .team-section {
    display: grid;
    max-width: 1200px; /* Limits width so it doesn't stretch forever on big screens */
    margin: 40px auto; /* Centers the grid */
    /* Fixed the variables here */
    grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
    gap: var(--gap);
    padding: 0 20px; /* Internal breathing room */
}

        /* The Individual Module */
        .member-module {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            transition: var(--transition);
        }

        .member-module:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 30px rgba(0,0,0,0.1);
        }

        /* Image via Div for easy folder mapping */
        .image-container {
            width: 100%;
            aspect-ratio: 1 / 1; /* Keeps it square */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: var(--transition);
            /* Optional: subtle placeholder color if image is missing */
            background-color: #ddd;
        }

        .member-module:hover .image-container {
            transform: scale(1.05);
        }

        .details {
            padding: 15px;
            text-align: center;
        }

        .details h3 {
            margin: 0;
            font-size: 0.8rem;
            color: #2d3436;
        }

        .details p {
            margin: 5px 0 0;
            font-size: 0.65rem;
            color: #636e72;
            font-weight: 500;
        }

        /* Responsive tweak for small screens */
        @media (max-width: 480px) {
            .team-section {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .details h3 { font-size: 0.9rem; }
        }
