/* GENERAL RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: Arial, sans-serif; 
  line-height: 1.6;
  color: #333;
  /* No global offset; we'll offset the main content instead */
  padding-top: 0;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #0072C6;
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0072C6;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* HEADER / NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 51, 102, 0.95); /* high-contrast, slightly translucent */
  color: white;
  position: fixed; /* keep navbar always on top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  min-height: 64px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: saturate(180%) blur(6px);
  transition: transform 0.25s ease-in-out; /* smooth hide/show */
}
nav a.active {
  color: #FFD700; /* bright gold for active link */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s;
}

.navbar .logo { display: flex; align-items: center; }
.navbar .logo img { height: auto; }
.navbar .logo img { max-height: 56px; width: auto; }

/* Brand block with two logos and trilingual text */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: auto;
  max-height: 56px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #ff7f50; /* coral-like per screenshot */
  text-align: center;
}
.brand-text .line {
  font-weight: 700;
  font-size: 0.9rem;
}
.brand-text .english {
  color: #ff7f50;
}

@media (max-width: 768px) {
  .navbar { 
    padding: 0.5rem 0.75rem; 
    min-height: 56px; 
    flex-wrap: wrap;
  }
  .brand-text .line { font-size: 0.75rem; }
  .brand-logo { max-height: 38px; }
  .brand { gap: 6px; }
  .brand-text { 
    line-height: 1.05; 
    align-items: center; 
    max-width: 60vw; 
  }
  .navbar nav { 
    display: none; 
    width: 100%; 
    flex-direction: column; 
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 1000;
  }
  .navbar nav.active { display: flex; }
  .navbar nav a { 
    margin: 0.5rem 0; 
    padding: 0.5rem; 
    text-align: center;
    border-radius: 5px;
  }
  .menu-toggle { display: block; }
}
.navbar nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
}
.navbar nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; font-size: 1.8rem; background: none; border: none; color: white; cursor: pointer; }

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  color: white;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  animation: slideshow 20s infinite;
  z-index: 1; /* keep hero below navbar */
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: -1;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.hero p { font-size: 1rem; margin-bottom: 1.5rem; }
.hero button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #0072C6;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}
.hero button:hover { background-color: #005A9C; }

/* Slideshow Animation */
@keyframes slideshow {
  0%   { background-image: url('assets/bg1.svg'); }
  25%  { background-image: url('assets/bg2.svg'); }
  50%  { background-image: url('assets/bg3.svg'); }
  75%  { background-image: url('assets/bg4.svg'); }
  100% { background-image: url('assets/bg1.svg'); }
}

/* ABOUT SECTION */
.about {
  padding: 5rem 2rem;
  background-color: #f4f4f4;
  text-align: center;
}
.about h2 { font-size: 2.5rem; color: #003366; margin-bottom: 1.5rem; }
.about p { max-width: 700px; margin: 0 auto; font-size: 1.2rem; line-height: 1.6; }
.about-submenu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  cursor: pointer;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.about-submenu li {
  padding: 0.5rem 1rem;
  background-color: #0072C6;
  color: white;
  border-radius: 5px;
  transition: background 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.about-submenu li:hover {
  background-color: #005A9C;
}

.about-submenu li.active {
  background-color: #005A9C;
}

/* Presidents Gallery Styles */
.presidents-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.president-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.president-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.president-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid #0072C6;
}

.president-info {
  padding: 1.5rem;
}

.president-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.5rem;
}

.president-title {
  font-size: 1rem;
  color: #005A9C;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.president-period {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 600;
}

.president-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.presidents-timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0072C6, #005A9C);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 2rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: white;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #0072C6;
  border: 4px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-year {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0072C6;
  margin-bottom: 0.5rem;
}

/* Responsive design for presidents gallery */
@media (max-width: 768px) {
  .presidents-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .president-image {
    height: 200px;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 3rem;
  }
  
  .timeline-content {
    margin: 0;
    width: 100%;
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .timeline-dot {
    left: 20px;
  }
}

/* SERVICES SECTION */
.services { padding: 5rem 2rem; text-align: center; background-color: #fff; }
.services h2 { font-size: 2.5rem; margin-bottom: 2rem; color: #003366; }
.service-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-cards .card {
  background-color: #f4f4f4;
  padding: 2rem;
  border-radius: 10px;
  flex: 1 1 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Smaller service images */
.service-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 0 0.75rem 0;
}
.service-cards .card:hover,
.service-cards .card:focus {
 transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.service-cards .card:focus {
  outline: 2px solid #0072C6;
  outline-offset: 4px;
}

/* NEWS SECTION */
.news { padding: 5rem 2rem; background-color: #f9f9f9; text-align: center; }
.news h2 { font-size: 2.5rem; margin-bottom: 2rem; color: #003366; }
.news-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.news-cards .card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  flex: 1 1 250px;
  max-width: 340px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.news-cards .card img.news-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.news-cards .card .read-more {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #0072C6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.news-cards .card .read-more:hover {
  background-color: #005A9C;
  transform: scale(1.05);
}

/* CONTACT SECTION */
.contact {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #003366;
  color: white;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem auto;
}
.contact input, .contact textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}
.contact button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #0072C6;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}
.contact button:hover { background-color: #005A9C; }

/* FOOTER */
.footer { padding: 2rem; background-color: #002244; color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.footer-contact h3 { margin-bottom: 0.75rem; color: #FFD700; }
.footer-contact p { margin: 0.25rem 0; }
.footer-social h3 { margin-bottom: 0.75rem; color: #FFD700; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; font-size: 0.9rem; }
.social:hover { background: rgba(255,255,255,0.2); }
.social.fb { background: #1877F2; }
.social.tg { background: #29A9EA; }
.social.yt { background: #FF0000; }
.social.x { background: #111; }
.footer-copy { text-align: center; margin-top: 0.5rem; opacity: 0.9; }
.footer-bottom { text-align: center; padding-top: 0.75rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); opacity: 0.9; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr auto; }
  .footer-copy { text-align: right; margin-top: 0; }
}

/* MAP */
.map-location { margin-top: 2rem; text-align: left; }
.map-location h3 { margin-bottom: 0.5rem; color: #FFD700; }
.map-location iframe { width: 100%; height: 320px; border: 0; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin: 0.5rem 0 0.75rem; }
@media (max-width: 480px) {
  .map-location iframe { height: 240px; }
}
.map-directions { color: #FFD700; text-decoration: underline; }
.map-directions:hover { color: #fff; }

/* COMPREHENSIVE MOBILE RESPONSIVE DESIGN */

/* Tablet and small desktop */
@media (max-width: 1024px) {
  .container { max-width: 90%; }
  .hero h1 { font-size: 2.2rem; }
  .service-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .documents-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  /* Typography */
  body { font-size: 0.95rem; line-height: 1.55; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  
  /* Layout adjustments */
  .container { max-width: 95%; padding: 0 1rem; }
  
  /* Hero section */
  .hero { 
    height: 60vh; 
    padding: 2rem 1rem;
  }
  .hero h1 { font-size: 1.5rem; line-height: 1.3; }
  .hero p { font-size: 1rem; }
  
  /* About section */
  .about { padding: 3rem 1rem; }
  .about-submenu { 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    justify-content: center;
  }
  .about-submenu li { 
    font-size: 0.9rem; 
    padding: 0.4rem 0.8rem;
  }
  
  /* Services section */
  .services { padding: 3rem 1rem; }
  .service-cards { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .service-icon { height: 150px; }
  
  /* Documents section */
  .documents { padding: 3rem 1rem; }
  .documents-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .document-card { padding: 1.5rem; }
  .document-card .document-actions { 
    flex-direction: column; 
    gap: 0.5rem;
  }
  
  /* Gallery section */
  .gallery { padding: 3rem 1rem; }
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 1rem;
  }
  .gallery-grid img { height: 150px; }
  
  /* Events section */
  .events { padding: 3rem 1rem; }
  .events-cards { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
  /* News section */
  .news { padding: 3rem 1rem; }
  .news-cards { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .news-cards .card img.news-image { height: 120px; }
  
  /* Contact section */
  .contact { padding: 3rem 1rem; }
  .contact form { 
    max-width: 100%; 
    padding: 1.5rem;
  }
  .map-location iframe { height: 250px; }
  
  /* Leader section */
  .leader-message { padding: 3rem 1rem; }
  .leader-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .leader-image { 
    justify-self: center; 
    max-width: 280px;
  }
  .leader-image img { max-width: 100%; }
}

/* Small phones */
@media (max-width: 420px) {
  /* Typography */
  body { font-size: 0.9rem; line-height: 1.5; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.0rem; }
  
  /* Layout */
  .container { max-width: 98%; padding: 0 0.5rem; }
  
  /* Hero section */
  .hero { 
    height: 50vh; 
    padding: 1.5rem 0.5rem;
  }
  .hero h1 { font-size: 1.3rem; line-height: 1.2; }
  .hero p { font-size: 0.9rem; }
  
  /* All sections */
  .about, .services, .news, .contact, .documents, .gallery, .events, .leader-message { 
    padding: 2rem 0.5rem; 
  }
  
  /* About section */
  .about-submenu { 
    gap: 0.3rem; 
    flex-wrap: wrap;
  }
  .about-submenu li { 
    font-size: 0.8rem; 
    padding: 0.3rem 0.6rem;
  }
  
  /* Services section */
  .service-icon { height: 120px; }
  .service-cards { gap: 1rem; }
  
  /* Documents section */
  .document-card { 
    padding: 1rem; 
    margin-bottom: 1rem;
  }
  .document-card h3 { font-size: 1rem; }
  .document-card p { font-size: 0.9rem; }
  .btn { 
    padding: 0.5rem 1rem; 
    font-size: 0.8rem;
  }
  
  /* Gallery section */
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 0.5rem;
  }
  .gallery-grid img { height: 120px; }
  
  /* News section */
  .news-cards .card img.news-image { height: 100px; }
  .news-cards .card { padding: 1rem; }
  
  /* Contact section */
  .contact form { 
    padding: 1rem; 
    gap: 0.8rem;
  }
  .contact form input, 
  .contact form textarea { 
    padding: 0.8rem; 
    font-size: 0.9rem;
  }
  .map-location iframe { height: 200px; }
  
  /* Leader section */
  .leader-image img { max-width: 180px; }
  .leader-content h2 { font-size: 1.1rem; }
  .leader-content h3 { font-size: 1rem; }
  
  /* Footer */
  .footer { padding: 2rem 0.5rem; }
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    text-align: center;
  }
}

/* removed extra small overrides */

/* Offset main content for fixed navbar */
main#main-content { margin-top: 64px; }

/* Hide-on-scroll state */
.navbar.hidden { transform: translateY(-100%); }
/* When a modal is open, only prevent background scroll */
body.modal-open { overflow: hidden; }

/* SCROLL REVEAL */
.about, .services, .news, .contact, .gallery, .events { opacity: 1; transform: translateY(0); transition: all 0.7s ease; }
.about.reveal, .services.reveal, .news.reveal, .contact.reveal, .gallery.reveal, .events.reveal { opacity: 1; transform: translateY(0); }

/* LEADER MESSAGE SECTION */
.leader-message {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.leader-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007366" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23007366" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23007366" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.leader-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.leader-image {
  position: relative;
  max-width: 350px;
  justify-self: start;
}

.leader-image img {
  width: 100%;
  height: auto;
  max-width: 350px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.leader-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  border-radius: 0 0 16px 16px;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-image:hover .leader-image-overlay {
  opacity: 1;
}

.leader-achievements {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.achievement-item {
  text-align: center;
  color: white;
}

.achievement-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 0.25rem;
}

.achievement-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.leader-header {
  margin-bottom: 1.5rem;
}

.typing-text {
  font-size: 2.2rem;
  color: #003366;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: #0072C6;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.leader-name {
  font-size: 1.3rem;
  color: #005A9C;
  margin-bottom: 1rem;
  font-weight: 600;
}

.reading-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0072C6, #005A9C);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.reading-time {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.message-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message-section {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.message-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-left-color: #0072C6;
}

.message-section.highlighted {
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
  border-left-color: #0072C6;
  box-shadow: 0 8px 25px rgba(0,114,198,0.15);
}

.message-section h4 {
  font-size: 1.1rem;
  color: #003366;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  margin: 0;
}

.leader-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.leader-toggle {
  background: linear-gradient(135deg, #0072C6, #005A9C);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,114,198,0.3);
}

.leader-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,114,198,0.4);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.leader-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.reading-controls {
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  background: white;
  border: 2px solid #e9ecef;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.control-btn:hover {
  border-color: #0072C6;
  color: #0072C6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.control-btn.active {
  background: #0072C6;
  color: white;
  border-color: #0072C6;
}

/* Collapsible leader text */
.leader-text {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.leader-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(248,249,250,0), #f8f9fa);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.leader-text[aria-expanded="true"] {
  max-height: none;
}

.leader-text[aria-expanded="true"]::after {
  opacity: 0;
}

/* Checkbox-driven toggle (no-JS fallback) */
.leader-checkbox { display: none; }

.leader-checkbox:checked ~ .leader-text {
  max-height: none;
}

.leader-checkbox:checked ~ .leader-text::after {
  opacity: 0;
}

/* Animation for achievement counters */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.achievement-item {
  animation: countUp 0.6s ease forwards;
}

.achievement-item:nth-child(1) { animation-delay: 0.1s; }
.achievement-item:nth-child(2) { animation-delay: 0.2s; }
.achievement-item:nth-child(3) { animation-delay: 0.3s; }

/* Responsive design for leader section */
@media (max-width: 768px) {
  .leader-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .leader-image {
    justify-self: center;
    max-width: 280px;
  }
  
  .leader-achievements {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .achievement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .achievement-number {
    font-size: 1.2rem;
  }
  
  .achievement-label {
    font-size: 0.75rem;
  }
  
  .leader-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .reading-controls {
    justify-content: center;
  }
  
  .message-section {
    padding: 1rem;
  }
  
  .typing-text {
    font-size: 1.8rem;
  }
}

/* NEWS MODAL */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 7000; /* above fixed navbar */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7); /* Dark overlay */
}

.modal-content {
  background-color: #fff;
  margin: 5% auto; /* desktop default */
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

/* Mobile optimized modal style */
@media (max-width: 768px) {
  .modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 400px;
    margin: 0;
    border-radius: 16px;
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 300ms ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: #fff;
  }
  
  .modal-content img {
    max-height: 50vh;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #003366;
    line-height: 1.3;
  }
  
  .modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
  }
  
  .modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal .close:hover {
    color: #0072C6;
    background: rgba(255,255,255,1);
  }
  
  @keyframes modalFadeIn {
    from { 
      opacity: 0; 
      transform: translate(-50%, -50%) scale(0.8); 
    }
    to { 
      opacity: 1; 
      transform: translate(-50%, -50%) scale(1); 
    }
  }
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #003366;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover {
  color: #0072C6;
}
/* GALLERY SECTION */
.gallery {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #f4f4f4;
}

.gallery h2 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* DOCUMENTS SECTION */
.documents {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.documents::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.documents .container {
  position: relative;
  z-index: 2;
}

.documents h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  letter-spacing: -1px;
}

.documents h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  margin: 1rem auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.document-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
}

.document-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 1);
}

.document-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.document-card h3::before {
  content: '📄';
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.document-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.document-card .document-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border-left: 3px solid #667eea;
}

.document-card .document-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.document-card .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.document-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.document-card .btn:hover::before {
  left: 100%;
}

.document-card .btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.document-card .btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a4190);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.document-card .btn-primary::after {
  content: '👁️';
  font-size: 0.8rem;
}

.document-card .btn-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.document-card .btn-success:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.document-card .btn-success::after {
  content: '⬇️';
  font-size: 0.8rem;
}

/* Loading state */
.documents-grid p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .documents {
    padding: 4rem 1rem;
  }
  
  .documents h2 {
    font-size: 2.2rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .document-card {
    padding: 1.5rem;
  }
  
  .document-card .document-actions {
    flex-direction: column;
  }
  
  .document-card .btn {
    padding: 0.875rem 1.25rem;
  }
}

/* EVENTS SECTION */
.events {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #fff;
}

.events h2 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 2rem;
}

.events-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.event-card {
  background-color: #f4f4f4;
  padding: 2rem;
  border-radius: 10px;
  flex: 1 1 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.event-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.event-card h3 {
  color: #003366;
  margin-bottom: 0.5rem;
}

.event-card p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.event-card button.read-more-event {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #0072C6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.event-card button.read-more-event:hover {
  background-color: #005A9C;
  transform: scale(1.05);
}

/* MODAL (reuse existing modal style if you want) */
#event-modal .modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
}

/* DOCUMENTS SECTION */
.documents {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.documents h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #003366;
  font-size: 2.5rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.document-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.document-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.document-card h3 {
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.document-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.document-card .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #0072C6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.document-card .btn:hover {
  background-color: #005A9C;
  transform: scale(1.05);
}
