/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400;500;600;700&family=Karla:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Velasca Mediterranean Palette */
:root {
  --primary-color: #2B7A9B;
  --primary-dark: #1e5570;
  --primary-light: #4a9bbe;
  --secondary-color: #E8D7C3;
  --bg-cream: #F9F6F1;
  --text-dark: #2c3e50;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Quarto page subtitle */
.quarto-title-block .subtitle,
.quarto-title .subtitle,
.subtitle {
  font-size: 1.25rem; /* larger subtitle across pages */
  color: var(--text-light);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f5e8d8 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar-brand {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 992px) {
  .navbar-brand img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    height: 35px;
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

@media (max-width: 1200px) {
  .navbar-nav {
    gap: 1.25rem;
  }
}

.navbar-nav li {
  position: relative;
}

.nav-link {
  font-family: 'Karla', sans-serif !important;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(43, 122, 155, 0.1);
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.dropdown-toggle::after {
  content: '\25BE';
  margin-left: 0.35rem;
  font-size: 0.75rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1rem 1rem;
  z-index: 1200;
}

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

.dropdown-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin: 0 0 0.25rem 0;
}

.dropdown-item {
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.35rem 0;
  border-radius: 4px;
}

.dropdown-item:hover {
  background: rgba(43, 122, 155, 0.08);
  text-decoration: none;
  color: var(--primary-color);
}

.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(43, 122, 155, 0.4);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.navbar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dark);
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border-radius: 6px;
  }
}

@media (max-width: 992px) {
  .navbar .container {
    align-items: center;
    gap: 0.75rem;
  }

  .navbar-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .navbar-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: min(260px, 80vw);
    display: none;
    margin-left: 0;
  }

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

  .navbar-nav .nav-link {
    display: block;
    width: 100%;
  }

  .navbar-nav .dropdown-menu {
    padding: 0.5rem 0 0;
    border: none;
    box-shadow: none;
  }

  .navbar--open .navbar-nav {
    display: flex;
  }

  .navbar--open .navbar-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar--open .navbar-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar--open .navbar-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Centered content wrapper for float/boxed layout */
.content-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1200px) {
  .content-container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .content-container {
    max-width: 820px;
    margin: 1.5rem auto;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .content-container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 10px;
  }
}

/* Hero Section */
.hero, .hero-section {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: 4rem 0;
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 2px solid var(--secondary-color);
}

.hero h1, .hero-section h1 {
  color: var(--text-dark);
  font-size: 2.25rem; /* further reduced homepage title */
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero p, .hero-section p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

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

/* Vision box under subtitle */
.vision-box {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
}

/* Buttons */
.btn {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: white !important;
  border-color: white;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: white !important;
  border-color: var(--primary-dark);
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section Styling */
section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

/* News Grid / Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* News Carousel */
.news-carousel-container {
    position: relative;
    margin: 2rem 0;
}

.news-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
    width: 100%;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    transform: translateX(0%);
    width: 100%;
}

.news-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 1rem;
    box-sizing: border-box;
    min-width: 0;
}

.news-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

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

.news-card .date {
  font-family: 'Karla', sans-serif;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-date {
  font-family: 'Karla', sans-serif;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.news-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-card a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.news-card a:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--primary-dark);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background: #bbb;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Start Cards */
.start-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.start-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.start-card h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.start-card p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* About Page Styles */
.about-section {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-section ul {
  list-style-position: inside;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.about-section li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Team Page Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.team-member:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary-color);
}

.team-member h3 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.team-member .role {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-member .affiliation {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Activities / Events Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-item h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.timeline-item .date {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-item p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.timeline-item a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Activity Status Badges */
.activity-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.activity-status.ongoing {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.activity-status.future {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #17a2b8;
}

.activity-status.past {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

/* Activity cards with image support */
.activity-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 2rem;
}

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

.activity-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-card-content {
  padding: 1.5rem;
}

.activity-card h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.activity-card .date {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.activity-card a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.activity-card a:hover {
  text-decoration: underline;
}

/* Fancy timeline separator */
.timeline-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
}

.timeline-section {
  position: relative;
  padding-left: 60px;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

/* Timeline Post wrapper */
.timeline-post {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Timeline Marker (dot or circle) */
.post-timeline-marker {
  position: absolute;
  left: -40px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
}

.post-timeline-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(43, 122, 155, 0.3);
}

.post-timeline-marker.ongoing {
  background: #ffc107;
  color: #856404;
  font-size: 1rem;
}

/* Post Card */
.post-card {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

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

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  gap: 1rem;
}

.post-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-status.ongoing {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.post-status.past {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.post-date {
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.post-card h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.4;
}

.post-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-card .read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: var(--transition);
}

.post-card .read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 0;
  }

  .timeline-section {
    padding-left: 40px;
  }

  .timeline-section::before {
    left: 10px;
  }

  .post-timeline-marker {
    left: -30px;
    width: 30px;
    height: 30px;
    font-size: 1.25rem;
  }

  .post-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-date {
    white-space: normal;
  }

  .post-card h3 {
    font-size: 1.1rem;
  }
}

/* Get Involved Page */
.involvement-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.involvement-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.involvement-card h3 {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.involvement-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.involvement-card ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.involvement-card li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f5e8d8 100%);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color);
}

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

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Generic responsive image utility class for consistency */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Optional rounded image utility */
.img-rounded {
  border-radius: 8px;
}

/* Center images within figures when using fig-align=center */
figure img.img-responsive {
  margin-left: auto;
  margin-right: auto;
}

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

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.image-grid img:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .news-slide {
    flex: 0 0 100%;
  }
  
  .news-carousel {
    padding: 0 2.5rem;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-grid,
  .start-cards,
  .team-grid,
  .involvement-options {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .about-section,
  .timeline-item,
  .involvement-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1, .hero-section h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  footer {
    display: none;
  }

  body {
    background: white;
  }

  .news-card,
  .start-card,
  .team-member {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }
}
