/* ---------- Base Styles ---------- */
:root {
  --primary: #0055A4; /* French blue */
  --secondary: #EF4135; /* French red */
  --accent: #FFD700; /* French gold */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-muted: #6C757D;
  --bg-light: #F8F9FA;
  --bg-dark: #003366;
  --border-color: #E1E1E1;
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--bg-dark);
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

.divider {
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0.5rem auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #d63726;
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.section-footer {
  text-align: center;
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  transition: var(--transition);
}

.link-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.link-arrow:hover svg {
  transform: translateX(5px);
}

/* ---------- Header & Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--primary);
  box-shadow: var(--shadow);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--text-light);
  border-radius: 50%;
  display: flex; /* Add flexbox */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  margin-right: 0.75rem;
}

.logo-icon img {
  max-width: 100%; /* Ensure the image fits within the circle */
  max-height: 100%; /* Ensure the image fits within the circle */
  object-fit: contain; /* Maintain aspect ratio */
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--text-light);
  font-weight: 400;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-light);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Events Section ---------- */
.events {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.event-image {
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
}

.event-date {
  display: block;
  color: var(--secondary);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.event-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.event-location {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.event-location svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.event-link {
  font-weight: 700;
}

/* ---------- About Preview Section ---------- */
.about-preview {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text h2 {
  text-align: center;
}
.about-text h3 {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--primary);
  margin-top: 1.5rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.btn-container {
  margin-top: 2rem;
}

/* ------------About Dropdown--------- */
/* Dropdown styles */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7em;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  background: var(--primary);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 10;
  top: 100%;
  left: 0;
  border-radius: var(--border-radius);
}

.nav-links .dropdown-menu li {
  width: 100%;
}

.nav-links .dropdown-menu a {
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  display: block;
  white-space: nowrap;
}

.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Optional: Style for active dropdown item */
.nav-links .dropdown-menu a:hover {
  background: var(--secondary);
  color: var(--text-light);
}

/* Alumni Section */
/* Add this CSS to your styles.css file */
/* Alumni Section */
.alumni-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.alumni-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.alumni-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.alumni-avatar svg {
  width: 40px;
  height: 40px;
}

.alumni-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.alumni-role {
  display: block;
  color: var(--secondary);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.alumni-location {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.alumni-location::before {
  content: "📍";
  margin-right: 0.25rem;
}

.alumni-bio {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.alumni-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Initially hide some alumni cards for the "Load More" functionality */
.alumni-card:nth-child(n+7) {
  display: none;
}

@media (max-width: 768px) {
  .alumni-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---------- Activities Preview ---------- */
.activities-preview {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.activity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 5rem;
}

.activity-card {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-lg);
}

.activity-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.activity-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.activity-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}


  .btn-light {
    background-color: var(--secondary);
    color: var(--text-light);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
  }

  .btn-light:hover {
    background-color: #ffffff;
    color: var(--text-light);
  }



  /* -----------Membership Section */
  .text-center {
    margin-bottom: 3rem
  }

 .container1 {
  width: 80%;
  padding: 30px;
  border-radius: 30px;
 }

 .container1 .text-center {
  margin-bottom: 30px;
  text-align: center;
 }

 .container1 .faq-container .faq-item .faq-question {
  padding: 18px 0px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  position: relative;
 }
.container1 .faq-container .faq-question::after {
content: '+';

position: absolute;
right: -50px;

  }

.container1 .faq-container .faq-answer {
padding-top: 15px;
line-height: 1.5;
width: 100%;

max-height: 0px;
overflow: hidden;
transition: max-height 0.5s ease;

  }

  /* JavaScript for displaying answer */
  .container1 .faq-item.active .faq-answer {
    max-height: 200px;
  }

  .container1 .faq-item.active .faq-question{
    font-size: 0.75rem;
    transition: 0.5s;
  }
  .container1 .faq-item.active .faq-question::after {
    content: '-';
    font-size: 1rem;
    right: -50px;
    transition: 0.5s;
  }

/* ---------- Gallery Preview ---------- */
.gallery-preview {
  padding: 5rem 0;
}

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

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.newsletter-container {
  display: flex;
  flex-direction: column;
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.newsletter-image {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.newsletter-content {
  padding: 2.5rem;
}

.newsletter-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="email"] {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.footer-about p {
  color: #B0B0B0;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #B0B0B0;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #B0B0B0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  color: #B0B0B0;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #B0B0B0;
  font-size: 0.875rem;
}

/* ---------- Media Queries ---------- */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
  }

  .about-text, .about-image {
    flex: 1;
  }

  .newsletter-container {
    flex-direction: row;
  }

  .newsletter-image, .newsletter-content {
    flex: 1;
  }

  .form-group {
    flex-direction: row;
  }

  .form-group input[type="email"] {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary);
    box-shadow: var(--shadow);
    display: none;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .search-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-group input[type="search"],
  .search-input-group .btn {
    width: 100%;
  }

  .search-results {
    grid-template-columns: 1fr;
  }
}

/* ---------- About Page ---------- */
.page-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 5rem 0;
  text-align: center;
}

.page-header.resources-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/gallery/hero/hero.jpg') center/cover no-repeat;
}

.page-header.resources-hero .container {
  position: relative;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- CRKF Resources Page ---------- */
.crkf-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.overview-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.crkf-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

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

.info-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.info-card .label,
.policy-meta .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.overview-gallery {
  flex: 1 1 280px;
  display: grid;
  gap: 1.5rem;
}

.overview-gallery img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.catalogue-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.catalogue-block {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.catalogue-block h3 {
  margin-bottom: 0.75rem;
}

.catalogue-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.resource-table th,
.resource-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.resource-table thead {
  background-color: var(--primary);
  color: var(--text-light);
}

.resource-table tbody tr:nth-child(even) {
  background-color: var(--bg-light);
}

.catalogue-note {
  margin-top: 2rem;
  background-color: var(--text-light);
  border-left: 4px solid var(--secondary);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  color: var(--text-muted);
}

.search-section {
  background-color: #ffffff;
}

.search-wrapper {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.search-intro h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.search-intro p {
  color: var(--text-muted);
}

.search-highlight {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-form {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input-group input[type="search"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-hint {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.search-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.search-card-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.search-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-card-body h3 {
  font-size: 1.2rem;
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.status-pill,
.availability-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Roboto Condensed', sans-serif;
}

.status-pill {
  background-color: rgba(0, 85, 164, 0.1);
  color: var(--primary);
}

.availability-pill {
  color: var(--text-light);
}

.availability-pill.available-borrow {
  background-color: var(--secondary);
}

.availability-pill.available-read {
  background-color: #1c7c54;
}

.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.doc-card {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-card p {
  color: rgba(255, 255, 255, 0.85);
}

.policy-meta {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.policy-meta h2 {
  margin-bottom: 1.5rem;
}

.policy-meta-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.policy-meta-grid p {
  color: var(--text-muted);
}

.approval-line p {
  font-style: italic;
}

.fundamental-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 2rem;
}

.fundamental-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.fundamental-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.objectives-card,
.policy-summary {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.objectives-card ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.policy-summary ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

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

.policy-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.policy-alert {
  background-color: rgba(239, 65, 53, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.policy-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

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

.principles-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.principles-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

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

.rules-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.rules-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .policy-meta,
  .catalogue-note,
  .objectives-card,
  .policy-summary,
  .catalogue-block,
  .policy-card,
  .fundamental-card,
  .principles-card,
  .rules-card,
  .info-card {
    box-shadow: none;
  }
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.stat-box .number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.mission-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.value-item {
  display: flex;
  gap: 1rem;
}

.value-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-header {
  background-color: var(--primary);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar {
  color: var(--text-light);
}

.team-avatar svg {
  width: 5rem;
  height: 5rem;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--secondary);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.history-timeline {
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timeline-year {
  background-color: var(--primary);
  color: var(--text-light);
  width: 6rem;
  height: 6rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timeline-year span:first-child {
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-content h3 {
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
  }

  .timeline-content {
    flex: 2;
  }
}

/* ---------- Activities Page ---------- */
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.achievement-card {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.achievement-card h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.schedule-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.schedule-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.schedule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.schedule-day {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.participation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.participation-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.participation-card h3 {
  margin-bottom: 1rem;
}

.check-list {
  list-style-type: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.check-icon {
  color: var(--accent);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Membership Page ---------- */
.benefits-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.benefits-list {
  list-style-type: none;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.benefit-icon {
  color: var(--secondary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.options-info {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-icon {
  color: var(--text-light);
  margin-right: 1rem;
  font-size: 1.5rem;
}

.registration-form {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem 2rem;
}

.form-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.form-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-footer {
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-right: 0.75rem;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.faq-answer {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .benefits-container {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    flex-direction: row;
  }

  .form-row > * {
    flex: 1;
  }
}

/* ---------- Resources Page ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.resource-card h3 {
  color: var(--primary);
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: 0.75rem;
}

.resource-list {
  list-style-type: none;
}

.resource-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resource-icon {
  color: var(--secondary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.resource-content a {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.resource-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.library-info {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.library-hours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.library-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.library-box p:first-child {
  font-weight: 700;
  font-size: 1.125rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tip-card {
  background-color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.tip-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tip-icon {
  background-color: var(--primary);
  color: var(--text-light);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.exam-cards {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exam-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.exam-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.help-box {
  background-color: var(--bg-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

.help-box p:first-child {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ---------- Gallery Page ---------- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.category-icon {
  background-color: var(--primary);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 4rem;
  height: 4rem;
  color: var(--text-light);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.category-info {
  padding: 1rem;
}

.category-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.category-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-placeholder {
  height: 180px;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.video-info {
  padding: 1rem;
}

.video-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---------- Contact Page ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-container {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder {
  height: 300px;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.map-info {
  padding: 1.5rem;
}

.map-info h3 {
  color: var(--primary);
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: 0.75rem;
}

.directions-list {
  margin-top: 0.75rem;
}

.directions-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.directions-icon {
  color: var(--secondary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 404 Not Found Page ---------- */
.not-found {
  padding: 5rem 0;
  text-align: center;
}

.not-found h1 {
  font-size: 8rem;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1;
}

.not-found h2 {
  margin-bottom: 1.5rem;
}

.not-found p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-image {
  max-height: 80vh;
  max-width: 90%;
}

.lightbox-caption {
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}