:root {
  /* Fonts */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;

  /* Analogous Color Scheme (Blues & Teals) */
  --color-bg-main: #E0E5EC; /* Light, slightly cool base for neomorphism */
  --color-bg-alt: #F0F5FA; /* Slightly lighter variant for subtle contrast */
  
  --color-primary-accent: #77A5C9; /* Main interactive color - soft blue */
  --color-primary-accent-dark: #5E87A8;
  --color-primary-accent-light: #90BBDD;

  --color-secondary-accent: #68B3AF; /* Secondary accent - tealish blue */
  --color-secondary-accent-dark: #508F8C;
  
  --color-text-base: #333A45;   /* Dark gray for body text */
  --color-text-headings: #222831; /* Darker for strong headings */
  --color-text-light: #FFFFFF;    /* For text on dark/accent backgrounds */
  --color-text-muted: #6C757D;  /* Muted text, similar to Bootstrap's */
  --color-link: var(--color-primary-accent);
  --color-link-hover: var(--color-primary-accent-dark);

  /* Neomorphism Shadows */
  --shadow-light-source: #FFFFFF; /* Light part of the shadow */
  --shadow-dark-source: #A3B1C6;  /* Dark part of the shadow */
  
  --neumorph-shadow: 6px 6px 12px var(--shadow-dark-source), -6px -6px 12px var(--shadow-light-source);
  --neumorph-shadow-inset: inset 4px 4px 8px var(--shadow-dark-source), inset -4px -4px 8px var(--shadow-light-source);
  --neumorph-shadow-sm: 3px 3px 6px var(--shadow-dark-source), -3px -3px 6px var(--shadow-light-source);
  --neumorph-shadow-sm-inset: inset 2px 2px 4px var(--shadow-dark-source), inset -2px -2px 4px var(--shadow-light-source);

  /* Borders & Spacing */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --spacing-unit: 1rem; /* approx 16px */

  /* Transitions */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-timing-function: ease-in-out;
}

/* GENERAL STYLES */
body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg-main);
  color: var(--color-text-base);
  line-height: 1.6;
  font-size: 16px; /* Base font size */
  overflow-x: hidden;
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text-headings);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-unit);
  color: var(--color-text-base);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-speed-fast) var(--transition-timing-function);
}

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

.container {
  max-width: 1200px; /* Consistent container width */
}

/* GLOBAL BUTTON STYLES */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed-normal) var(--transition-timing-function);
  box-shadow: var(--neumorph-shadow-sm);
  background-color: var(--color-bg-main); /* Base for neomorphism */
  color: var(--color-primary-accent);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  box-shadow: var(--neumorph-shadow-sm-inset);
  color: var(--color-primary-accent-dark);
  transform: translateY(-2px);
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
  box-shadow: var(--neumorph-shadow-sm-inset);
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-primary-accent);
  color: var(--color-text-light);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.7), var(--neumorph-shadow-sm); /* Stronger shadow for primary */
}
.btn-primary:hover {
  background-color: var(--color-primary-accent-dark);
  color: var(--color-text-light);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(255,255,255,0.5);
}

.btn-secondary {
  background-color: var(--color-secondary-accent);
  color: var(--color-text-light);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.7), var(--neumorph-shadow-sm);
}
.btn-secondary:hover {
  background-color: var(--color-secondary-accent-dark);
  color: var(--color-text-light);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(255,255,255,0.5);
}

.btn-outline-primary {
    border: 2px solid var(--color-primary-accent);
    background-color: transparent;
    color: var(--color-primary-accent);
    box-shadow: none;
}
.btn-outline-primary:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    box-shadow: var(--neumorph-shadow-sm);
}


/* Form Elements Neomorphism */
.form-control {
  background-color: var(--color-bg-main);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--neumorph-shadow-inset);
  transition: box-shadow var(--transition-speed-normal) var(--transition-timing-function);
  color: var(--color-text-base);
}
.form-control:focus {
  background-color: var(--color-bg-main);
  box-shadow: var(--neumorph-shadow-inset), 0 0 0 0.2rem rgba(var(--color-primary-accent-rgb, 119, 165, 201), 0.25); /* Bootstrap focus glow + neomorphism */
  outline: none;
  color: var(--color-text-base);
}
.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}
.form-label {
    font-weight: 500;
    color: var(--color-text-headings);
    margin-bottom: 0.5rem;
}


/* Utility Classes */
.bg-light-neomorph {
  background-color: var(--color-bg-alt); /* Or slightly different than main bg */
  border-radius: var(--border-radius-lg);
  /* padding: var(--spacing-unit) * 2; */ /* Add padding if these are standalone blocks */
  /* box-shadow: var(--neumorph-shadow); */ /* Optional: make these blocks "pop" */
}

.section-title {
  color: var(--color-text-headings);
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 3); /* More space for section titles */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Parallax background (simple version for static images) */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Card Styles (General) */
.card {
  background-color: var(--color-bg-main);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neumorph-shadow);
  transition: transform var(--transition-speed-normal) var(--transition-timing-function), box-shadow var(--transition-speed-normal) var(--transition-timing-function);
  overflow: hidden; /* Important for rounded corners on images */
  display: flex;
  flex-direction: column;
  height: 100%; /* For equal height cards in rows */
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 10px 10px 20px var(--shadow-dark-source), -10px -10px 20px var(--shadow-light-source);
}

.card .card-image {
  width: 100%;
  overflow: hidden;
  /* Fixed height for image containers in cards, adjust as needed */
  height: 250px; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, might crop */
  display: block;
  margin: 0 auto; /* Center if image is smaller than container (though object-fit:cover handles this) */
}

.card .card-content {
  padding: calc(var(--spacing-unit) * 1.5);
  text-align: left; /* Default, can be overridden */
  flex-grow: 1; /* Allows content to fill space if card is in flex container */
  display: flex;
  flex-direction: column;
}

.card .card-title {
  color: var(--color-text-headings);
  margin-bottom: var(--spacing-unit);
}

.card .card-text {
  color: var(--color-text-base);
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes button to bottom if card-content is flex */
}

/* Specific for service, event, resource cards where content should be centered */
.service-card, .event-card, .resource-card, .accolade-item {
    align-items: center; /* Center content if card itself is a flex item */
    text-align: center;
}
.service-card .card-content, 
.event-card .card-content, 
.resource-card .card-content {
    text-align: left; /* Reset for text content */
}
.accolade-item p {
    font-size: 0.9rem;
}


/* HEADER & NAVIGATION */
.site-header {
  background-color: rgba(224, 229, 236, 0.85); /* Semi-transparent neomorphic base */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(163, 177, 198, 0.3);
  z-index: 1030; /* Ensure it's above other content */
}

.site-header .navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-accent-dark);
}

.site-header .nav-link {
  font-family: var(--font-secondary);
  color: var(--color-text-base);
  padding: 0.8rem 1rem;
  margin: 0 0.3rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed-fast) var(--transition-timing-function);
  font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--color-primary-accent-dark);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--neumorph-shadow-sm-inset);
}

.navbar-toggler {
  border: none;
  box-shadow: var(--neumorph-shadow-sm);
}
.navbar-toggler:focus {
  box-shadow: var(--neumorph-shadow-sm-inset);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 40, 49, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* HERO SECTION */
.hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 8rem 0; /* Adjust padding for natural height */
  color: var(--color-text-light); /* Ensured by HTML inline style */
  position: relative; /* For potential pseudo-element overlays */
}

.hero-section::before { /* Darkening overlay for text readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)); Already in HTML */
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem; /* Larger for hero */
  font-weight: 700;
  /* color: var(--color-text-light); Ensured by HTML inline style */
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.6); Ensured by HTML inline style */
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* color: var(--color-text-light); Ensured by HTML inline style */
  /* text-shadow: 1px 1px 3px rgba(0,0,0,0.5); Ensured by HTML inline style */
}

.hero-cta {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}


/* SERVICES SECTION */
.services-section .service-card .card-image {
    height: 220px; /* Specific height for service images */
}

/* ABOUT US SNIPPET */
.about-us-snippet-section .image-container-neomorph {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorph-shadow);
    overflow: hidden;
    padding: 10px; /* Optional: creates a "frame" */
    background-color: var(--color-bg-main);
}
.about-us-snippet-section .img-fluid.rounded-neomorph {
    border-radius: calc(var(--border-radius-lg) - 5px); /* if padding is used above */
}

/* STATISTICS SECTION */
.statistics-section {
  background-color: var(--color-primary-accent-light); /* Or a gradient */
  color: var(--color-text-base);
}
.statistics-section .section-title {
    color: var(--color-text-headings);
}
.stat-widget {
  background-color: var(--color-bg-main);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: var(--border-radius-md);
  box-shadow: var(--neumorph-shadow);
  text-align: center;
}
.stat-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary-accent-dark);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ACCOLADES SECTION */
.accolades-section .accolade-item {
    background-color: var(--color-bg-main);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorph-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.accolades-section .accolade-item img {
    max-width: 80px; /* Control icon size */
    margin-bottom: var(--spacing-unit);
}

/* MEDIA SECTION (CAROUSEL) */
.media-section .carousel-item .image-container-neomorph {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorph-shadow);
    overflow: hidden;
    background-color: var(--color-bg-main);
}
.media-section .carousel-item img {
  border-radius: var(--border-radius-lg); /* If no container padding */
  max-height: 500px; /* Control carousel image height */
  object-fit: cover;
}
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-unit);
  color: var(--color-text-light);
}
.carousel-caption h5 {
    color: var(--color-text-light);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 1.5rem; /* Make controls larger */
  background-size: 60%;
}

/* EVENTS CALENDAR SECTION */
.events-section .event-card {
  background-color: var(--color-bg-alt); /* Slightly different bg for event cards */
  box-shadow: var(--neumorph-shadow-sm);
}
.events-section .event-card .card-title {
    color: var(--color-primary-accent-dark);
}
.events-section .event-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.disabled-link {
  pointer-events: none;
  opacity: 0.6;
}

/* EXTERNAL RESOURCES SECTION */
.external-resources-section .resource-card {
    background-color: var(--color-bg-main);
}
.external-resources-section .resource-card .card-title a {
    color: var(--color-primary-accent);
    font-weight: 500;
}
.external-resources-section .resource-card .card-title a:hover {
    color: var(--color-primary-accent-dark);
}
.external-resources-section .card-text.small {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* FAQ SECTION */
.faq-section .accordion-item {
  background-color: var(--color-bg-main);
  border: none;
  margin-bottom: var(--spacing-unit);
  border-radius: var(--border-radius-md) !important; /* Override Bootstrap */
  box-shadow: var(--neumorph-shadow-sm);
  overflow: hidden; /* For rounded corners */
}
.faq-section .accordion-button {
  background-color: var(--color-bg-main);
  color: var(--color-text-headings);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
  box-shadow: none !important; /* Remove Bootstrap's default button shadow */
}
.faq-section .accordion-button:not(.collapsed) {
  background-color: var(--color-primary-accent-light); /* Highlight when open */
  color: var(--color-text-headings); /* Or var(--color-text-light) if bg is dark */
}
.faq-section .accordion-button:focus {
  box-shadow: var(--neumorph-shadow-sm-inset) !important;
}
.faq-section .accordion-button::after { /* Style Bootstrap's arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2377A5C9'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform var(--transition-speed-normal) var(--transition-timing-function);
}
.faq-section .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}
.faq-section .accordion-body {
  padding: calc(var(--spacing-unit) * 1.5);
  font-size: 0.95rem;
  background-color: var(--color-bg-alt); /* Slightly different for body */
}

/* CONTACT SECTION */
.contact-section .contact-details li {
  margin-bottom: var(--spacing-unit);
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}
.contact-section .contact-icon {
  width: 24px;
  height: 24px;
  margin-right: var(--spacing-unit);
  filter: invert(55%) sepia(18%) saturate(1358%) hue-rotate(175deg) brightness(91%) contrast(86%); /* Match --color-primary-accent */
}
.contact-section .map-placeholder.image-container-neomorph {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorph-shadow);
    overflow: hidden;
    background-color: var(--color-bg-main);
    padding: 8px;
}
.contact-section .map-placeholder img {
    border-radius: calc(var(--border-radius-lg) - 4px);
}

/* FOOTER */
.site-footer {
  background-color: #2C3E50; /* Dark footer background */
  color: var(--color-bg-alt); /* Light text on dark footer */
  padding-top: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 3);
}
.site-footer .footer-heading {
  font-family: var(--font-primary);
  color: var(--color-text-light);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-unit);
}
.site-footer p {
  color: #bdc3c7; /* Lighter gray for paragraph text in footer */
  font-size: 0.9rem;
}
.site-footer .footer-links li a {
  color: #bdc3c7;
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-block;
  transition: color var(--transition-speed-fast) var(--transition-timing-function);
}
.site-footer .footer-links li a:hover {
  color: var(--color-primary-accent-light);
  text-decoration: none; /* Keep no underline or add subtle one */
}
.site-footer .footer-social-links li a {
  color: #bdc3c7;
  text-decoration: none;
  padding: 0.5em 0;
  display: inline-block;
  font-size: 1rem;
  transition: color var(--transition-speed-fast) var(--transition-timing-function), transform var(--transition-speed-fast) var(--transition-timing-function);
}
.site-footer .footer-social-links li a:hover {
  color: var(--color-primary-accent-light);
  transform: translateX(3px);
}

/* Cookie Popup (from HTML, basic enhancements) */
#cookiePopup {
    /* Styles are mostly inline in HTML, this is for overrides or additions if needed */
    font-family: var(--font-secondary);
}
#cookiePopup p a {
    font-weight: 500;
}
#acceptCookie {
    background-color: var(--color-primary-accent);
    box-shadow: none;
}
#acceptCookie:hover {
    background-color: var(--color-primary-accent-dark);
}


/* SUCCESS.HTML PAGE */
.success-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px); /* Adjust 160px if header/footer height changes */
  text-align: center;
  padding: var(--spacing-unit) * 2;
}
.success-page-container .card {
    max-width: 500px;
    padding: calc(var(--spacing-unit) * 2);
}
.success-icon {
    font-size: 4rem;
    color: var(--color-secondary-accent); /* Or a success green */
    margin-bottom: var(--spacing-unit);
}


/* PRIVACY.HTML & TERMS.HTML SPECIFIC STYLES */
.legal-page-content, .about-page-content, .contact-page-content {
  padding-top: 120px; /* Ensure content is below fixed header */
  padding-bottom: 60px;
}
.legal-page-content h1, .about-page-content h1, .contact-page-content h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.legal-page-content h2, .about-page-content h2, .contact-page-content h2 {
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary-accent-dark);
}


/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .site-header .navbar-nav {
    margin-top: var(--spacing-unit);
    background-color: var(--color-bg-alt);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--neumorph-shadow-sm);
  }
  .site-header .nav-link {
      display: block;
      width: 100%;
      text-align: center;
      margin-bottom: 0.5rem;
  }
  .legal-page-content, .about-page-content, .contact-page-content {
    padding-top: 100px;
  }
}

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  h1 { font-size: 2.2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-section { padding: 6rem 0; }
  .section-title { font-size: 1.6rem; }
  .stat-number { font-size: 2.5rem; }
  .card .card-image { height: 200px; }
}

@media (max-width: 575.98px) {
  .btn, button, input[type="submit"], input[type="button"] {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .hero-cta {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
  .hero-title { font-size: 2rem; }
  .contact-section .col-lg-6 { margin-bottom: calc(var(--spacing-unit) * 2); }
}

/* Animations (placeholders for Motion One) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition-timing-function), transform 0.6s var(--transition-timing-function);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}