:root {
  --font-base: 16px;
  --splash-bg-start: #f0f4f8;
  --splash-bg-end: #e8f0fe;
  --splash-logo-shadow: rgba(0, 0, 0, 0.1);
  --splash-gradient-center: #ffffff;
  --splash-gradient-edge: #eaf0f9;
  font-size: 100%;
  --primary-color: #1a4c82;
  --secondary-color: #ffcc00;
  --accent-color: #b58b00;
  --cta-bg: #ffcc00;
  --cta-hover-bg: #ffdb4d;
  --text-primary: #1e3a5f;
  --text-secondary: #555;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  font-size: max(1rem, 1.05vw);
  line-height: 1.6;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.loaded {
  opacity: 1;
}
a {
  text-decoration: none;
  color: inherit;
}
/* Splash Screen */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.splash-content {
  text-align: center;
  color: #f8fafc;
}

.splash-logo {
  width: 10rem;
  margin-bottom: 1rem;
  animation: zoomIn 1s ease forwards;
  border-radius:10rem;
}

.splash-text {
  font-size: clamp(2rem, 5vw, 4rem);
  animation: typing 3s steps(30) 1 normal both;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #60a5fa;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

@keyframes zoomIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
/* Tablet (481px to 768px) */
@media (max-width: 768px) {
  .splash-logo {
    width: 5rem;
  }

  .splash-text {
    font-size: 1.3rem;
  }
}
/* ===============================
   BASE STYLES - NAVBAR CONTAINER
================================= */
.navbar-container {
  background-color: #1e293b;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-right {
  flex: 1;
  visibility: hidden; 
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.brand-logo img {
  height: 48px;
  width: auto;
  border-radius: 60%;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f8fafc;
  position: relative;
  padding-right: 12px;
  border-right: 3px solid #f5c518;
}

/* ===========================
   NAVBAR MENU (CENTERED)
=========================== */
.navbar-menu-wrapper {
  flex: 2;
  display: flex;
  justify-content: center;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-menu a {
  color: #f8fafc;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #60a5fa;
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

/* ===========================
   DROPDOWN MENU (DESKTOP)
=========================== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 999;
  min-width: 180px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* DARK THEME FOR DROPDOWN */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-menu {
    background-color: #1c1c1c;
  }

  .dropdown-menu li a {
    color: #fff;
  }

  .dropdown-menu li a:hover {
    background-color: #333;
  }
}

/* ===========================
   HAMBURGER / TOGGLE BUTTON
=========================== */
.navbar-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.navbar-toggle:hover {
  transform: scale(1.1);
}

/* ===========================
   MOBILE SIDEBAR STYLES
=========================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background-color: #0f172a;
  color: #f8fafc;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-sidebar.active {
  transform: translateX(0);
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Links */
.mobile-menu {
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a,
.mobile-menu .dropdown-toggle {
  text-decoration: none;
  color: #f8fafc;
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu .dropdown-toggle:hover {
  color: #60a5fa;
}

/* Hover underline */
.mobile-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0%;
  background-color: #60a5fa;
  transition: width 0.3s ease;
}

.mobile-menu a:hover::after {
  width: 100%;
}

/* Submenus */
.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.submenu.open {
  max-height: 300px;
  opacity: 1;
}

.submenu a {
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* ===========================
   RESPONSIVE - MEDIA QUERIES
=========================== */

/* Desktop (>= 769px) */
@media (min-width: 769px) {
  .navbar-container {
    justify-content: flex-start;
    gap: 1rem;
  }

  .navbar-toggle {
    display: none;
  }

  .mobile-sidebar {
    display: none !important;
  }

  .navbar-menu {
    display: flex !important;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .navbar-menu {
    display: none !important;
  }

  .mobile-sidebar {
    display: block !important;
  }

  .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    position: relative;
  }

  .brand {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
  }

  .navbar-menu-wrapper { display: none; }

  .navbar-toggle {
    display: block;
    margin-left: auto; 
    padding: 0.25rem 0.5rem;
  }
}

/* -------------------- HERO SECTION -------------------- */
/* Initial hidden state for animation */
.hero h1,
.hero p,
.hero .hero-btn,
.hero .hero-img img {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* When visible */
.hero.animate h1,
.hero.animate p,
.hero.animate .hero-btn {
  opacity: 1;
  transform: translateY(0);
}

.hero.animate .hero-img img {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right for image */
.hero .hero-img img {
  transform: translateX(40px);
  transition: all 0.8s ease-out;
}

/* Add this to fade in sections on scroll later */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.6)), 
              url('../images/court_image.jpg') center/cover no-repeat;
  height: clamp(26rem, 45vw, 34rem);
  position: relative;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(26, 76, 130, 0.7));
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero .hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.primary-color {
  color: #b58b00;
}

.cta-button {
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  background-color: var(--cta-bg, #ffcc00);
  color: var(--cta-text-color, #003366);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: var(--cta-hover-bg, #ffdb4d);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-text {
    gap: 0.75rem;
  }

  .hero .hero-text h1 {
    margin-bottom: 0.25rem;
  }
}
/* -------------------- INTRO SECTION -------------------- */
.intro {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  background-color: var(--intro-bg);
  text-align: center;
  border-block: 1px solid var(--intro-border);
}

.intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.intro p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 46rem;
  margin-inline: auto;
  padding-top: 0.5rem;
}

/* Optional: for alternate section background */
.highlight-bg {
  background-color: var(--intro-highlight);
}

/* Layout constraint */
.container {
  max-width: 68rem;
  margin-inline: auto;
  padding: 0 1.25rem;
}

.team-layout {
  background: linear-gradient(to bottom right, #fdfdfd, #f5f7fa);
  border-radius: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  margin: clamp(2rem, 4vw, 3rem) auto;
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 85rem;
}

/* SIDEBARS */
.sidebar-left {
  background: #e8fdf4;
  border-left: 4px solid #10b981;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: inset 4px 0 0 rgba(16,185,129,0.3);
  margin-bottom: 1.5rem;
}

.sidebar-left h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: #047857;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #10b981;
  padding-bottom: 0.4rem;
  display: inline-block;
}
.sidebar-right {
  background: #f0f6ff;
  border-left: 4px solid #2563eb;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: inset 4px 0 0 rgba(37,99,235,0.3);
  margin-bottom: 1.5rem;
}

.sidebar-right h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.4rem;
  display: inline-block;
}

/* TEAM CENTER */
.team-section {
  background: linear-gradient(to right, #fdfdfd, #f8fbff);
  flex: 1;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  border-radius: 0.75rem;
  text-align: center;
}

/* HEADING */
.team-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #2d2d2d;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

/* PRESIDENT CARD */
.president-card {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.president-card .team-card {
  border: 2px solid #d97706;
  background: linear-gradient(to bottom right, #fff7ed, #fffaf3);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.1);
  position: relative;
}
.president-card .team-card::before {
  content: "President";
  position: absolute;
  top: 0;
  left: 0;
  background-color: #d97706;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-bottom-right-radius: 10px;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  justify-content: center;
}

.team-card {
  background: linear-gradient(to bottom right, #ffffff, #f7faff);
  border: 1px solid #dee1e5;
  border-radius: 18px;
  padding: clamp(1rem, 2.2vw, 1.75rem);
  width: 100%;
  max-width: 17rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: clamp(90px, 20vw, 120px);
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background-color: #f0f0f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
}

.team-card:hover img {
  transform: scale(1.04);
}

.team-card p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  color: #1f2937;
  margin: 0.25rem 0 0.5rem;
}

.team-card .position {
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 600;
  color: #555;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.85;
}
.team-card .phone {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #10b981; /* Emerald green – vibrant and fresh */
  word-break: break-word;
  letter-spacing: 0.3px;
}

.team-card .phone:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .team-layout {
    flex-direction: column;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .sidebar-left {
    order: 3;
  }

  .sidebar-right {
    order: 2;
  }

  .team-section {
    order: 1;
    width: 100%;
  }

  .team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .president-card .team-card,
  .team-card {
    margin: 0 auto;
  }
}
/*birthday-card*/
.birthday-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  color: #022c22;
  margin-bottom:1rem;
}

.birthday-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.birthday-card img {
  width: 3rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #0ea5e9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.birthday-info h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}

.birthday-info p {
  color: #f97316;
  font-weight: 600;
  font-size: 0.9rem;
}

.birthday-blink {
  animation: blink 1.5s infinite;
  color: #ff4500;
  font-weight: 600;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (max-width: 768px) {
  .birthday-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff; 
    text-align: center;
  }

  .birthday-info {
    text-align: center;
  }
}
/*notice-card*/
.notice-card {
  background: #ffffff;
  border-left: 5px solid #3b82f6;
  padding: 1.25rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.15);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.notice-header h4 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #1e3a8a;
  margin: 0;
}

.notice-date {
  font-size: 0.9rem;
  color: #b91c1c;
}

.notice-text {
  margin-top: 0.5rem;
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: #334155;
  line-height: 1.5;
}
@media (max-width: 768px) {
   .notice-card {
    text-align: center;
  }

  .notice-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .notice-date {
    margin-top: 0.25rem;
  }
}
/* GALLERY SECTION */
.gallery-section {
  padding: 4rem 1.25rem;
  background: linear-gradient(to bottom, #f9fbfd, #f1f4f9);
  text-align: center;
}

.gallery-section h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: #1e3a5f;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(12rem, 45%, 18rem), 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-height: clamp(10rem, 30vh, 15rem);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* === Scroll Reveal Animation === */
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Lightbox (cleaned up) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* CONTACT FORM */
.contact-section {
  max-width: 600px;
  background: #ffffff;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.contact-section h2 {
  text-align: center;
  color: #003366;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #0055aa;
  box-shadow: 0 0 5px rgba(0, 85, 170, 0.25);
  outline: none;
}

form button {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(to right, #004080, #0055aa);
  color: #fff;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

form button:hover {
  background: linear-gradient(to right, #003366, #004080);
}

.status-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  color: green;
  font-size: 1rem;
}
/* FOOTER */
footer {
  background-color: #1e1e1e;
  color: #f0f0f0;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  border-top: 1px solid #333;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #fff;
}
.events-section {
  background: #f4f6fa;
  padding: clamp(3rem, 5vw, 5rem) 1.5rem;
  text-align: center;
}
.events-section h2 {
  font-size: clamp(1.8rem,4vw,2.4rem);
  color: #003366;
  margin-bottom: 30px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}
.event-card {
  background: #fff;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.event-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.event-info {
  padding: 16px;
}
.event-info h3 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 8px;
}
.event-date {
  font-weight: bold;
  color: #990000;
  margin-bottom: 12px;
}
.event-location,
.event-organizer,
.event-collab {
  font-size: 14px;
  color: #444;
  margin-top: 4px;
}

.table-section {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  background: #f9f9f9;
}

.table-section .section-heading {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #003366;
  margin-bottom: 2rem;
}

.responsive-table {
  overflow-x: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
}

.responsive-table th, .responsive-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #333;
}

.responsive-table th {
  background: #003366;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.responsive-table tbody tr:nth-child(even) {
  background: #f7faff;
}

.responsive-table tbody tr:hover {
  background: #eef5ff;
}

/* Mobile-friendly layout */
@media (max-width: 600px) {
  .responsive-table table, .responsive-table thead, .responsive-table tbody,
  .responsive-table th, .responsive-table td, .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    flex-basis: 50%;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }
}
/*history*/
.history-section {
  padding: clamp(2rem,5vw,4rem) 1rem;
  background: #f9f9f9;
  max-width: 1200px;
  margin: auto;
}

.history-section h2 {
  text-align: center;
  color: #003366;
  font-size: clamp(1.75rem,4vw,2.5rem);
  margin-bottom: 1rem;
}

.history-section {
  counter-reset: section;
}

.history-section h3 {
  font-size: clamp(1.25rem,3vw,1.75rem);
  color: #006666;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.history-section h3::before {
  counter-increment: section;
  content: counter(section) ". ";
  font-weight: 600;
}

.history-section p {
  font-size: clamp(1rem,1.8vw,1.125rem);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

/* directory */
.directory-header {
  background-color: #f5f5f5;
  padding: 40px 20px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.directory-header h1 {
  color: #003366;
  margin-bottom: 10px;
  font-size: 32px;
}
.directory-header p {
  color: #555;
  font-size: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 1rem;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  padding-top: 56.25%;
  position: relative; 
  overflow: hidden;
  aspect-ratio: auto;
  height: 250px;
}
.card-image img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-bottom: 4px solid #003366;
}
.card-image img:hover {
  transform: scale(1.05);
}

.content {
  padding: 1.25rem;
  flex: 1;
}

.content h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #222;
}

.content p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

/*president message*/  
body.president-page {
  background-color: #F7F8FA;
  color: #4B5563;
}
.president-message {
  padding: 60px 20px;
  background-color: #f7f8fa;
}

.president-message .container {
  max-width: 1000px;
  margin: 0 auto;
}

.president-message .message-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid #E2E5E8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.president-message .message-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.message-card img {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 1px solid #E2E5E8;
}

.message-content {
  flex: 1;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
}

.message-content h2 {
  font-size: 2.0rem;
  margin-bottom: 12px;
  color: #1F2937;
  font-weight: 600;
}

.message-content h3 {
  font-size: 1.2rem;
  margin: 4px 0;
  color: #374151;
  font-weight: 500;
}

.message-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 16px 0;
  color: #4B5563;
  max-width: 100%; 
}

/* Signature / closing section styling */
.message-content .signature {
  margin-top: 24px;
  font-style: italic;
  font-weight: 500;
  color: #1F2937;
}

.message-content.scrollable {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px; /* space for scrollbar */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .president-message {
    padding: 30px 12px;
  }

  .president-message .container {
    padding: 0 5px;
  }

  .message-card {
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .message-card img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border: none;
    border-bottom: 1px solid #E2E5E8;
  }

  .message-content {
    padding: 22px 18px 30px;
    text-align: left;
  }

  .message-content h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .message-content h3 {
    font-size: 1rem;
    margin: 3px 0;
    text-align: center;
    color: #374151;
  }

  .message-content p {
    font-size: 0.96rem;
    line-height: 1.6;
    text-align: justify;
    margin: 14px 0;
  }

  .message-content.scrollable {
    max-height: none;
    overflow-y: visible;
  }

  .message-content .signature {
    text-align: right;
    margin-top: 25px;
    font-style: italic;
    border-top: 1px solid #E2E5E8;
    padding-top: 10px;
  }
}
/* Constitution */
 .constitution-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.constitution-section h2 {
  color: #003366;
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.constitution-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1rem;
  color: #444;
}

.constitution-pdf {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.constitution-pdf object,
.constitution-pdf iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #003366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #00509e;
}

@media (max-width: 768px) {
  .constitution-pdf object,
  .constitution-pdf iframe {
    height: 400px;
  }

  .download-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}
    border-radius: 5px;
    text-decoration: none;
  }