/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Colors */
  --primary-color: #007bff; /* Bright Blue - good for trust and tools */
  --primary-color-darker: #0056b3;
  --secondary-color: #ff9800; /* Vibrant Orange - for calls to action, highlights */
  --secondary-color-darker: #e68a00;
  
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #005cb2);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #f57c00);
  --gradient-neutral-bg: linear-gradient(135deg, #f5f7fa, #e9ecef);
  
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --text-color-medium: #555555;
  --text-color-subtle: #777777;
  
  --background-color-light: #FFFFFF;
  --background-color-medium: #f8f9fa; /* Light grey for sections */
  --background-color-dark: #222529; /* Dark for footer or special sections */

  --border-color: #dee2e6;
  --card-bg-color: var(--background-color-light);
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-family-headings: 'Raleway', sans-serif;
  --font-family-base: 'Open Sans', sans-serif;

  /* Spacing & Sizing */
  --space-xs: 0.5rem;  /* 8px */
  --space-sm: 1rem;    /* 16px */
  --space-md: 1.5rem;  /* 24px */
  --space-lg: 2.5rem;  /* 40px */
  --space-xl: 4rem;    /* 64px */

  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem;  /* 8px */
  --border-radius-lg: 1rem;   /* 16px */

  --header-height: 70px;
}

/*--------------------------------------------------------------
# Base & Resets
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-family-base);
  line-height: 1.7;
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-color-dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-color-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary-color-darker);
  text-decoration: underline;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color-dark); /* Ensure high contrast */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-description {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text-color-medium);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    font-family: var(--font-family-headings);
    color: var(--text-color-dark);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.main-container {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.section-padding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  padding: var(--space-xs) 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-family-headings);
  font-weight: 800;
  font-size: 1.8em;
  color: var(--text-color-dark);
  text-decoration: none;
}
.logo span {
  color: var(--primary-color);
}

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: var(--space-md);
}

.main-nav a {
  font-family: var(--font-family-base);
  font-weight: 600;
  color: var(--text-color-medium);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  background-color: rgba(0, 123, 255, 0.1);
}

.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 3px;
  background-color: var(--text-color-dark);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 25px;
  height: 3px;
  background-color: var(--text-color-dark);
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle.active .hamburger {
  background-color: transparent; /* Middle line disappears */
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}


/* Footer */
.site-footer-main {
  background-color: var(--background-color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
}

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

.footer-column h4 {
  font-family: var(--font-family-headings);
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: var(--text-color-light);
  text-decoration: underline;
}

.social-links-text li a {
    font-weight: 600; /* Make social links slightly bolder */
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/*--------------------------------------------------------------
# Global Components
--------------------------------------------------------------*/
/* Buttons */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-family-base);
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease-in-out;
  text-decoration: none; /* Ensure links styled as buttons don't have underline */
}

.btn-primary {
  color: var(--text-color-light);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  color: var(--text-color-light);
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-secondary:hover {
  background-color: var(--secondary-color-darker);
  border-color: var(--secondary-color-darker);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-color-dark); /* Default for light backgrounds */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem; /* 12px 16px */
  font-size: 1rem;
  font-family: var(--font-family-base);
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modern Form specific styles (e.g., on contact page) */
.modern-form input, .modern-form textarea {
    background-color: #f0f4f8; /* Slightly different background for inputs */
    border: 1px solid #ced4da;
}
.modern-form input:focus, .modern-form textarea:focus {
    background-color: var(--background-color-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0,123,255,.3);
}

/* Cards */
.card {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius-lg); /* Retro block: slightly larger radius or sharp */
  box-shadow: var(--card-shadow);
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  /* align-items: center; /* This centers all children. Re-evaluate per card type */
  text-align: center; /* Centers inline content and text */
  overflow: hidden; /* For image containers */
  border: 1px solid var(--border-color); /* Subtle border for block definition */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.card-image, .image-container {
  width: 100%; /* Take full width of card */
  height: 200px; /* Fixed height for consistency */
  overflow: hidden; /* Crucial for object-fit */
  margin-bottom: var(--space-md);
  border-radius: var(--border-radius-md); /* Rounded corners for image container */
  display: flex; /* For alignment if image is smaller, though object-fit should handle */
  justify-content: center;
  align-items: center;
}
.card-image img, .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers container without distortion */
  display: block; /* Removes any extra space below image */
}

.card-content {
  /* text-align: left; /* If card text needs to be left-aligned */
}
.card-content h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}
.card-content p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-color-medium);
}
.card .btn {
  margin-top: auto; /* Pushes button to bottom if card content varies */
}

/* "Read more" link styling */
.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-top: var(--space-sm);
    transition: color 0.3s ease;
}
.read-more-link:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
.read-more-link::after {
    content: ' →'; /* Adds a small arrow */
}


/*--------------------------------------------------------------
# Section Specific Styles
--------------------------------------------------------------*/
/* Hero Section */
#hero {
  color: var(--text-color-light); /* White text as requested */
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Natural height based on content or min-height for viewport consideration */
  min-height: calc(100vh - var(--header-height)); /* Example: Full viewport height minus header */
}
#hero::before { /* Parallax/Overlay effect */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradient overlay is handled by inline style in HTML, this is a fallback or additional layer if needed */
  /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)); */
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-color-light); /* Explicitly white */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--text-color-light); /* Explicitly white */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  line-height: 1.8;
}

/* Features Section */
#features {
  background-color: var(--background-color-medium);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.feature-item {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--background-color-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
}
.feature-icon img {
  max-width: 60px; /* Adjust as needed */
  margin-bottom: var(--space-md);
}
.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* Stats Widgets */
.stats-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--gradient-primary);
    color: var(--text-color-light);
    border-radius: var(--border-radius-lg);
}
.stat-item {
    text-align: center;
    min-width: 150px;
}
.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: var(--text-color-light);
}
.stat-item p {
    font-size: 1rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.85);
}

/* Services Section */
#services {
  background-color: var(--background-color-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Accordion */
.accordion-section {
    margin-top: var(--space-xl);
}
.accordion-item {
    background-color: var(--background-color-light);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-dark);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: rgba(0,123,255,0.05);
}
.accordion-header::after { /* Toggle icon */
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.accordion-header.active::after {
    content: '-';
    transform: translateY(-50%) rotate(45deg); /* Optional: Rotate to 'x' or just '-' */
}
.accordion-content {
    padding: 0 var(--space-md) var(--space-md) var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    margin-bottom: 0;
    color: var(--text-color-medium);
}
.accordion-item.active .accordion-content { /* JS will add .active to item */
    /* max-height will be set by JS or a large enough value */
}

/* About Us Summary Section */
#about {
  background-color: var(--background-color-medium);
}
.about-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}
.about-image-container {
  flex: 1 1 400px; /* Grow, shrink, base width */
}
.about-image-container img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.about-text-container {
  flex: 1 1 500px;
}

/* Clientele Section */
#clientele {
  background-color: var(--background-color-light); /* Or a very light gradient */
}
.clientele-carousel .logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}
.clientele-carousel img {
  max-height: 60px; /* Adjust as needed */
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.clientele-carousel img:hover {
  opacity: 1;
}

/* Testimonials Section */
#testimonials {
  background-color: var(--gradient-neutral-bg);
}
.testimonial-carousel {
  display: grid; /* Or flex if using a JS carousel library */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background-color: var(--background-color-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  text-align: left; /* Testimonials usually better left-aligned */
  border-left: 5px solid var(--primary-color); /* Accent */
}
.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--text-color-medium);
}
.testimonial-card .author {
  font-weight: 600;
  color: var(--text-color-dark);
  text-align: right;
}

/* Research/Timeline Section */
#research {
    background-color: var(--background-color-medium);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: var(--space-sm) var(--space-lg);
    position: relative;
    background-color: inherit;
    width: 50%;
}
/* Place the container to the L/R */
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

/* Add arrows to the L/R container */
.timeline-item::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    border: medium solid var(--background-color-light);
}
.timeline-item:nth-child(odd)::before {
    right: var(--space-md);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--background-color-light);
}
.timeline-item:nth-child(even)::before {
    left: var(--space-md);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--background-color-light) transparent transparent;
}

/* Fix the circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px; /* Adjust for L/R */
    background-color: var(--background-color-light);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px; /* Adjust for L/R */
}

.timeline-icon { /* For emoji or icon */
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    z-index: 2; /* Above the line */
    top: 10px; /* Adjust vertical alignment */
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px; /* Position icon on the line */
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -20px; /* Position icon on the line */
}

.timeline-content {
    padding: var(--space-md);
    background-color: var(--background-color-light);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
}
.timeline-content h4 {
    margin-top: 0;
    color: var(--primary-color);
}


/* Events Section */
#events {
  background-color: var(--background-color-light);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.event-item .event-date {
  font-size: 0.9rem;
  color: var(--text-color-subtle);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

/* Community Section */
#community {
  background-color: var(--background-color-medium);
}
.community-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
}
.community-image-container {
    flex: 1 1 400px;
}
.community-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}
.community-text {
    flex: 1 1 500px;
}

/* External Links Section */
#external-links {
  background-color: var(--background-color-light);
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.link-block {
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--background-color-medium);
  transition: box-shadow 0.3s ease;
}
.link-block:hover {
  box-shadow: var(--card-hover-shadow);
}
.link-block h4 a {
  font-size: 1.2rem;
  color: var(--primary-color);
  text-decoration: none;
}
.link-block h4 a:hover {
  text-decoration: underline;
}
.link-block p {
  font-size: 0.9rem;
  color: var(--text-color-medium);
  margin-bottom: 0;
}

/* Contact Section (Home Page) */
#contact-form-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-xl) 0;
  position: relative;
}
#contact-form-section::before { /* Dark overlay for background image */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient handled by inline style in HTML */
    z-index: 1;
}
#contact-form-section .container {
    position: relative;
    z-index: 2;
}
#contact-form-section .section-title,
#contact-form-section .section-description {
  color: var(--text-color-light); /* White text on dark background */
}
#contact-form-section .contact-form label {
  color: var(--text-color-light);
}
#contact-form-section .contact-form input,
#contact-form-section .contact-form textarea {
  background-color: rgba(255,255,255,0.15); /* Semi-transparent inputs */
  border-color: rgba(255,255,255,0.3);
  color: var(--text-color-light);
}
#contact-form-section .contact-form input::placeholder,
#contact-form-section .contact-form textarea::placeholder {
  color: rgba(255,255,255,0.7);
}
#contact-form-section .contact-form input:focus,
#contact-form-section .contact-form textarea:focus {
  background-color: rgba(255,255,255,0.25);
  border-color: var(--text-color-light);
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}
.contact-details p, .contact-details a {
    color: var(--text-color-light);
}
.contact-details a:hover {
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Page Specific Styles
--------------------------------------------------------------*/
.page-padding {
  padding-top: calc(var(--header-height) + var(--space-lg)); /* Space for fixed header */
  padding-bottom: var(--space-xl);
}
/* Privacy & Terms pages content top padding */
.privacy-page main, /* Assuming specific class or structure */
.terms-page main,  /* Assuming specific class or structure */
main.page-padding > section.content-section { /* More general */
    padding-top: var(--header-height); /* Initial padding for content after fixed header */
}
/* If you have a specific class for the content section on privacy/terms */
.privacy-content-section, .terms-content-section {
    padding-top: 100px !important; /* Ensure this overrides other padding if needed */
}
.text-block ul {
    list-style-position: inside;
    padding-left: 0; /* Adjust if using list-style-position: inside */
    margin-left: var(--space-sm); /* Or this for standard outside bullets */
}
.text-block ul li {
    margin-bottom: var(--space-xs);
}
.image-container-page {
    text-align: center;
    margin: var(--space-lg) 0;
}
.image-container-page img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

/* Contact Page specific */
.contact-page-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    background-color: rgba(255,255,255,0.9); /* Light translucent panel for content */
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.contact-form-container {
    flex: 2 1 400px; /* Form takes more space */
}
.contact-info-container {
    flex: 1 1 300px;
}
.contact-info-item {
    margin-bottom: var(--space-md);
}
.contact-info-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}
.contact-info-item p {
    margin-bottom: 0;
    color: var(--text-color-medium);
}
.map-placeholder img {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}


/* Success Page */
.success-page .main-container { /* If .main-container is used */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.success-page main { /* Or specific wrapper for success content */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-container { /* This class is already in success.html */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    width: 100%; /* Ensure it can take up space if main is flex container */
}
/* Styles for .success-icon, .success-message h1, p are in success.html's <style> tag.
   They can be moved here for consistency if preferred. */


/*--------------------------------------------------------------
# Animations & Effects
--------------------------------------------------------------*/
/* AOS animations are applied via data-aos attributes in HTML */

/* Simple Parallax for background images (if desired without JS) */
.parallax-bg {
  background-attachment: fixed; /* Note: can have performance implications and issues on mobile */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Glassmorphism example (use sparingly) */
.glass-panel {
  background: rgba(255, 255, 255, 0.2); /* Adjust transparency */
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); /* Subtle shadow */
}

/*--------------------------------------------------------------
# Media Queries (Responsive Design)
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .section-title { font-size: 2.2rem; }
  h1 { font-size: 2.5rem; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { font-size: 1.1rem; }

  .timeline::after { left: 20px; }
  .timeline-item { width: 100%; padding-left: 50px; padding-right: var(--space-sm); }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
  .timeline-item::before { /* Adjust arrows for single column */
    left: 30px; /* Distance from left edge */
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--background-color-light) transparent transparent;
  }
  .timeline-item::after, .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
    left: 0px; /* Center on the line */
  }
  .timeline-icon, .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon {
    left: 0px; /* Position icon on the line */
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  h1 { font-size: 2.2rem; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }

  .header-container {
    /* Adjust for burger menu if not already full width */
  }
  .main-nav {
    position: relative; /* For burger menu positioning context */
  }
  .main-nav ul {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) - var(--space-xs) - 1px); /* Align below header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-color);
  }
  .main-nav ul.active {
    display: flex; /* Shown when active */
    width: 200px;
    left: -150px;
  }
  .main-nav li {
    margin: 0;
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--border-color); /* Separator for items */
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }
  .nav-toggle {
    display: block; /* Show burger icon */
  }

  .footer-content-container {
    grid-template-columns: 1fr; /* Stack columns */
    text-align: center;
  }
  .footer-column ul {
    display: inline-block; /* Center list items if text-align center on parent */
    text-align: left;
  }

  .about-content-wrapper, .community-content, .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .about-text-container, .community-text, .contact-info-container, .contact-form-container {
    text-align: left; /* Reset text align for content */
    flex-basis: auto; /* Reset flex basis */
  }

  .stats-widgets {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  :root {
    --space-xl: 3rem; /* Reduce largest spacing */
  }
  .section-title { font-size: 1.8rem; }
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 2rem; }
  .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

  #hero {
      min-height: 80vh; /* Adjust hero height for smaller screens */
  }

  .timeline::after { left: 10px; }
  .timeline-item { padding-left: 30px; }
  .timeline-item::before { left: 20px; }
  .timeline-item::after, .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: -10px; } /* Adjust to center on line */
  .timeline-icon, .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon { left: -10px; }

}

/* Cookie Popup Styling (minimal, as per prompt) */
#cookie-popup a { /* Style for link within cookie popup */
    color: #a0cfff; /* Lighter blue for better visibility on dark bg */
    text-decoration: underline;
}
#cookie-popup a:hover {
    color: #FFFFFF;
}
#accept-cookies-btn { /* Style for button in cookie popup */
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#accept-cookies-btn:hover {
    background-color: var(--primary-color-darker);
}