/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #1c117b; /* Updated to your specified blue */
  --secondary: #2a2a9c; /* Complementary darker blue */
  --accent: #ff7e30;
  --light: #f8f9fa;
  --dark: #333;
  --gray: #6c757d;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;

  /* Light theme defaults */
  --bg-color: #fefefe;
  --text-color: #333;
  --header-bg: white;
  --card-bg: white;
  --footer-bg: #1a1a1a;
  --footer-text: #ddd;
  --section-bg: #f8f9fa;
  --input-bg: white;
  --input-border: #e0e0e0;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: #1e1e1e;
  --card-bg: #2d2d2d;
  --footer-bg: #0a0a0a;
  --footer-text: #aaa;
  --section-bg: #1a1a1a;
  --input-bg: #2d2d2d;
  --input-border: #444;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --gray: #aaa;
  --primary: #4a3fb5; /* Lighter version for dark mode */
  --secondary: #3a2fa5;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  zoom: 1.25; /* For Webkit-based browsers like Chrome, Safari, Edge */
  -moz-transform: scale(1.25); /* For Firefox */
  -moz-transform-origin: top left; /* Ensures Firefox scales from the top-left */
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--header-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem; /* Reduced from 1.8rem */
}

.logo img {
  height: 70px; /* Reduced logo size */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center; /* Added to align items properly */
  gap: 25px; /* Reduced gap for better alignment */
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center; /* Ensure text and icons align */
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-toggle:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.theme-toggle i {
  font-size: 1.1rem;
}

.theme-text {
  transition: var(--transition);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: flex;
  align-items: center; /* Ensure dropdown aligns with other nav items */
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle i {
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  padding: 10px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  font-size: 1rem;
}

.dropdown-menu a:hover {
  background-color: rgba(28, 17, 123, 0.15);
  color: var(--primary);
  padding-left: 25px;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  border: none;
  padding: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 100px 0;
  text-align: center;
  border-radius: 0 0;
  margin-bottom: 60px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

@media (min-width: 993px) {
  .hero-slide.comp-tour-slide {
    background-position: center 10%;
  }

  .hero-slide.youth-slide {
    background-position: center 40%;
    transform: rotate(1deg) scale(1.06);
    transform-origin: center;
  }
  .hero-slide.citam-slide {
    background-position: center 26%;
    transform: rotate(3deg) scale(1.06);
    transform-origin: center;
  }
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(28, 17, 123, 0.45) 0%,
    rgba(42, 42, 156, 0.45) 100%
  );
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e56b1f;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.section {
  padding: 80px 0;
  background-color: var(--section-bg);
  transition: background-color 0.3s ease;
}

.section:not(:nth-child(even)) {
  background-color: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Programs Section */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.program-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.program-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
}

.program-content {
  padding: 25px;
}

.program-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.program-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.about-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  background-color: rgba(28, 17, 123, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-details h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.contact-details p {
  color: var(--gray);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 15px;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  margin-top: 60px;
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #999;
  font-size: 0.9rem;
}

/* Program Page Specific Styles */
.program-hero {
  background:
    linear-gradient(
      135deg,
      rgba(28, 17, 123, 0.4) 0%,
      rgba(42, 42, 156, 0.4) 100%
    ),
    url("assets/images/funday.JPG");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  margin-bottom: 60px;
}

.program-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.program-hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.program-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.program-detail-content h3 {
  color: var(--primary);
  margin: 40px 0 15px;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.program-detail-content h4 {
  color: var(--secondary);
  margin: 25px 0 12px;
  font-size: 1.4rem;
}

.program-detail-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.1rem;
  color: var(--text-color);
}

.program-detail-content ul {
  margin: 15px 0 25px;
  padding-left: 0;
  list-style: none;
}

.program-detail-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.program-detail-content li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.program-detail-content strong {
  color: var(--primary);
}

.program-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  background-color: var(--gray);
}

.program-back-btn:hover {
  background-color: #5a6268;
}

.program-back-btn i {
  font-size: 1rem;
}

/* Program Features Grid */
.program-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.program-feature {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center; /* Center content including new icons */
}

.program-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-feature-icon {
  font-size: 3rem; /* Adjust size as needed */
  color: var(--accent); /* Use accent color for icons */
  margin-bottom: 15px; /* Space between icon and title */
  display: block; /* Ensure margin works and it's on its own line */
}

.program-feature h5 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.program-feature p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1,
  .program-hero h1 {
    font-size: 2.8rem;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .theme-toggle .theme-text {
    display: none;
  }

  .theme-toggle {
    padding: 8px 12px;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .logo img {
    height: 35px;
  }

  .program-detail-content h3 {
    font-size: 1.6rem;
  }

  .program-detail-content h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    gap: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > li {
    width: 100%;
    margin-bottom: 15px;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
  }

  .mobile-toggle {
    display: block;
    order: 3; /* Move to the end */
  }

  .theme-toggle {
    order: 2; /* Keep theme toggle in middle */
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(28, 17, 123, 0.1);
    margin-top: 10px;
    margin-left: 15px;
    display: none;
    width: calc(100% - 30px);
  }

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

  .dropdown-toggle i {
    transform: none;
  }

  .hero h1,
  .program-hero h1 {
    font-size: 2.4rem;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .logo img {
    height: 50px;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .program-detail-content h3 {
    font-size: 1.5rem;
  }

  .program-detail-content h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero h1,
  .program-hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .logo span {
    font-size: 1rem;
    display: none; /* Hide text on very small screens */
  }

  .logo img {
    height: 30px;
  }

  .nav-right {
    gap: 15px;
  }

  .program-hero {
    padding: 70px 0 40px;
  }

  .program-detail-content h3 {
    font-size: 1.4rem;
  }

  .program-detail-content p,
  .program-detail-content li {
    font-size: 1rem;
  }

  .program-features {
    grid-template-columns: 1fr;
  }
}

.program-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-button {
  color: var(--gray);
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: var(--primary);
  text-decoration: none;
}

#modalSkillTitle {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 15px;
}

#modalSkillDescription {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-number-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--primary);
}

.animated-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.number-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }
  #modalSkillTitle {
    font-size: 1.6rem;
  }
  #modalSkillDescription {
    font-size: 1rem;
  }
  .animated-number {
    font-size: 2rem;
  }
  .number-label {
    font-size: 0.9rem;
  }
}
.event-card-image {
  width: 100%;
  height: 200px; /* Or a suitable fixed height */
  object-fit: cover;
  border-radius: 8px 8px 0 0; /* Match card border-radius */
  margin-bottom: 15px; /* Space between image and content */
}

/* Style for the events-grid to ensure proper layout for new images */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding-bottom: 25px; /* Add padding to the bottom of the card */
}

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

.event-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
  padding: 0 25px; /* Add horizontal padding for consistency */
}

.event-card p {
  color: var(--gray);
  margin-bottom: 10px;
  padding: 0 25px; /* Add horizontal padding for consistency */
}

.event-card .btn {
  margin-top: 15px;
  margin-left: 25px; /* Align button with content */
}

/* Styles for About Us Page Members */
.organogram-members {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* Space between groups of roles */
  margin-top: 20px;
  justify-content: center; /* Center groups in the container */
}

.organogram-role-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center h4 and member-card */
  margin-bottom: 20px; /* Space below each role group */
}

.organogram-role-group h4 {
  color: var(--secondary);
  margin: 0 0 12px; /* Adjust margin for h4 within group */
  font-size: 1.4rem;
  text-align: center;
}

.member-card {
  display: flex;
  flex-direction: column; /* Stack photo and text vertically */
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  width: 200px; /* Fixed width for member cards */
  text-align: center;
  transition: var(--transition);
}

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

.photo-placeholder {
  width: 120px; /* Larger photo placeholder */
  height: 120px;
  border-radius: 50%;
  background-color: var(--section-bg);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 2.5rem; /* Increased font-size for icon placeholder */
  overflow: hidden;
  flex-shrink: 0;
}

/* Remove bullets for list items that directly contain a .member-card */
.program-detail-content li:has(.member-card) {
  padding-left: 0; /* Remove padding from bullet */
}

.program-detail-content li:has(.member-card)::before {
  content: none; /* Remove the bullet itself */
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card p {
  margin-bottom: 0; /* Remove default paragraph margin */
  line-height: normal; /* Adjust line height for better alignment */
  font-weight: 600;
  color: var(--primary);
}

/* Responsive adjustments for organogram members */
@media (max-width: 768px) {
  .organogram-members {
    flex-direction: column; /* Stack groups vertically on small screens */
    align-items: center; /* Center them when stacked */
  }

  .organogram-role-group {
    width: 100%; /* Make role groups take full width */
  }

  .member-card {
    width: 80%; /* Make cards take more width on small screens */
    max-width: 250px; /* Limit max width */
  }
}
