/* style.css */

/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
  /* Pastel Palette & Creative Design System */
  --primary-color: #A0D2DB; /* Pastel Sky Blue */
  --primary-color-darker: #79B8C4; /* Darker Sky Blue for hover/active */
  --primary-gradient: linear-gradient(135deg, #A0D2DB 0%, #E0BBE4 100%);

  --secondary-color: #FFC8A2; /* Pastel Peach */
  --secondary-color-darker: #FFAA7D;
  
  --accent-color: #E0BBE4; /* Pastel Lavender */
  --accent-color-darker: #C7A0CC;

  --bg-color-light: #FDF6F0; /* Very Light Cream / Off-white */
  --bg-color-light-pastel: #F5E6E8; /* Light Pinkish Pastel for alternate sections */
  --bg-color-dark: #2c3e50; /* Dark Slate Blue (from HTML footer) */
  
  --card-bg-color: #FFFFFF;
  
  --text-color: #333333; /* Dark Gray for readability */
  --text-color-light: #FFFFFF;
  --text-color-muted: #6c757d; /* Bootstrap's muted color, or #555555 */
  --heading-color: #222222; /* Very Dark Gray for section titles */
  
  --link-color: var(--primary-color-darker);
  --link-hover-color: var(--accent-color-darker);

  /* Fonts */
  --font-primary: 'Raleway', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;

  /* UI Elements */
  --border-radius: 0.5rem; /* 8px */
  --border-radius-lg: 0.75rem; /* 12px */
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1); /* Non-linear feel */
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  background-color: var(--bg-color-light);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Page content wrapper for padding on static pages */
.page-content-wrapper {
  padding-top: 100px; /* Adjust if header height changes */
  padding-bottom: 3rem;
}

.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3 {
  font-family: var(--font-primary);
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

.page-content-wrapper p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75em;
}

h1, .h1 { font-size: 2.8rem; letter-spacing: -0.5px; }
h2, .h2 { font-size: 2.2rem; }
h3, .h3 { font-size: 1.8rem; }
h4, .h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

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

/* Section Title Styling */
.section-title {
  font-family: var(--font-primary);
  font-weight: 900;
  color: var(--heading-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 10px auto 0;
  border-radius: 2px;
}

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn, button, input[type='submit'], input[type='button'] {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--border-radius-lg); /* Slightly larger radius for buttons */
  transition: all var(--transition-speed) var(--transition-timing);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.btn:hover, button:hover, input[type='submit']:hover, input[type='button']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Custom Button Styles (from HTML) */
.btn.custom-btn, .btn-primary {
  background: var(--primary-gradient);
  color: var(--text-color-light);
  border-color: transparent; /* Gradient handles border look */
}

.btn.custom-btn:hover, .btn-primary:hover {
  background: var(--primary-gradient); /* Keep gradient, shadow handles interaction */
  color: var(--text-color-light);
  opacity: 0.9;
}

.btn.custom-btn-outline, .btn-outline-light {
  background-color: transparent;
  border: 2px solid var(--text-color-light); /* Assuming light text for hero */
  color: var(--text-color-light);
}
.btn.custom-btn-outline:hover, .btn-outline-light:hover {
  background-color: var(--text-color-light);
  color: var(--bg-color-dark); /* Contrast color */
  border-color: var(--text-color-light);
}

/* General outline primary */
.btn-outline-primary {
  border-color: var(--primary-color-darker);
  color: var(--primary-color-darker);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color-darker);
  color: var(--text-color-light);
  border-color: var(--primary-color-darker);
}

/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease-in-out;
}
.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--heading-color) !important;
}
.navbar-brand .text-primary {
  color: var(--primary-color-darker) !important;
}
.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--text-color-muted) !important;
  margin-left: 10px;
  margin-right: 10px;
  padding: 0.5rem 0.8rem;
  position: relative;
  transition: color var(--transition-speed) var(--transition-timing);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color-darker) !important;
}
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color-darker);
  transition: width var(--transition-speed) var(--transition-timing);
}
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 70%;
}
.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.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(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 85vh; /* Responsive height */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For pseudo-elements or absolute positioning inside */
  padding: 6rem 0;
}
.hero-section h1 {
  color: var(--text-color-light); /* Ensured by constraint */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-section p.lead {
  color: var(--text-color-light); /* Ensured by constraint */
  font-size: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/*--------------------------------------------------------------
# Generic Section Styles
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden; /* For AOS animations */
}
.bg-light-pastel {
  background-color: var(--bg-color-light-pastel);
}

/*--------------------------------------------------------------
# Card Styles (Global and Specific)
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
  background-color: var(--card-bg-color);
  display: flex; /* STROGO requirement */
  flex-direction: column; /* STROGO requirement */
  /* align-items: center;  STROGO requirement - applied in card-body or globally as needed */
  text-align: center; /* STROGO requirement for content centering */
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card .card-image { /* STROGO requirement */
  width: 100%;
  height: 220px; /* Adjust as needed, fixed height */
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO requirement */
  display: block; /* Removes bottom space */
  transition: transform var(--transition-speed) var(--transition-timing);
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content within card-body */
  flex-grow: 1; /* Allows button to be at bottom if card-body is flex container */
}
.card .card-title {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--heading-color);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.card .card-text {
  color: var(--text-color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1; /* Pushes button to bottom */
}
.card .btn, .card .btn-link {
  margin-top: auto; /* Pushes button to the bottom of the card body */
}

/* "Read More" link style within cards or similar contexts */
.card .btn-link, .read-more-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-color-darker);
  text-decoration: none;
  padding: 0.3rem 0; /* Minimal padding for link look */
  font-size: 0.9rem;
  display: inline-block; /* Allows for better spacing */
}
.card .btn-link:hover, .read-more-link:hover {
  color: var(--accent-color-darker);
  text-decoration: underline;
  transform: none; /* No lift for simple links */
  box-shadow: none;
}

/* Specific Card types (e.g., .custom-card, .resource-card) inherit base .card styles */
.resource-card .card-body {
  text-align: left; /* Override for resource cards if descriptions are longer */
  align-items: flex-start;
}
.resource-card .card-title a {
  font-size: 1.1rem;
  color: var(--heading-color);
}
.resource-card .card-title a:hover {
  color: var(--primary-color-darker);
}

/*--------------------------------------------------------------
# Vision Section - Timeline
--------------------------------------------------------------*/
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) .timeline-icon {
  left: calc(50% - 20px);
}
.timeline-item:nth-child(odd) .timeline-icon {
  right: calc(50% - 20px); /* This should be left as well to align to the center line */
  left: calc(50% - 20px);
}
.timeline-item:nth-child(odd) .timeline-content {
  align-items: flex-end; /* Align card content to the right for odd items */
}
.timeline-item:nth-child(odd) .timeline-content .card-body {
  text-align: right;
  align-items: flex-end;
}


.timeline-icon {
  position: absolute;
  top: 0;
  /* left: 50%; remove this, handled by even/odd */
  transform: translateX(-50%) translateY(-50%); /* Adjust icon position relative to card top */
  width: 40px;
  height: 40px;
  background: var(--card-bg-color);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color-darker);
  z-index: 1;
  box-shadow: 0 0 0 5px var(--bg-color-light); /* Ring effect */
}
.timeline-content.card {
  position: relative;
  /* width: calc(50% - 50px); Already handled by padding on timeline-item */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-top: 10px; /* Space from icon */
}
.timeline-content .card-body {
  text-align: left; /* Default for card content */
  align-items: flex-start; /* Default */
}
.timeline-content h5 {
  color: var(--primary-color-darker);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(even) .timeline-icon,
  .timeline-item:nth-child(odd) .timeline-icon {
    left: 0; /* Icon on the left */
  }
  .timeline-item:nth-child(odd) .timeline-content {
    align-items: flex-start; /* Align card content to the left for odd items on mobile */
  }
  .timeline-item:nth-child(odd) .timeline-content .card-body {
    text-align: left;
    align-items: flex-start;
  }
}


/*--------------------------------------------------------------
# Insights Section - Custom Slider
--------------------------------------------------------------*/
#insightsSlider .carousel-item {
  transition: transform 0.8s var(--transition-timing), opacity 0.8s ease-out; /* Non-linear */
}
.insight-slide {
  background-color: var(--card-bg-color) !important; /* Override inline style if necessary or remove inline */
  border-radius: var(--border-radius-lg);
  padding: 2.5rem !important; /* Ensure consistent padding */
}
.insight-slide img {
  border: 4px solid var(--primary-color);
  padding: 3px;
  box-shadow: var(--shadow);
}
.insight-slide h5 {
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1.15rem;
  margin-top: 1rem;
}
.insight-slide p strong {
  font-family: var(--font-primary);
  color: var(--heading-color);
}
.insight-slide p em {
  color: var(--text-color-muted);
  font-size: 0.9rem;
}
.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.6;
}
.carousel-indicators .active {
  opacity: 1;
  background-color: var(--primary-color-darker);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color-darker);
  border-radius: 50%;
  padding: 15px; /* Increase size of clickable area */
  background-size: 50% 50%; /* Adjust icon size within the background */
  width: 2.5rem; /* Set explicit width */
  height: 2.5rem; /* Set explicit height */
}


/*--------------------------------------------------------------
# Contact Section & Form
--------------------------------------------------------------*/
.contact-form {
  background-color: var(--card-bg-color) !important; /* If HTML has bg-light */
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-lg);
}
.modern-input, .form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da; /* Bootstrap default or a pastel border */
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
  font-family: var(--font-secondary);
}
.modern-input:focus, .form-control:focus {
  border-color: var(--primary-color-darker);
  box-shadow: 0 0 0 0.2rem rgba(var(--rgb-primary-color-darker), 0.25); /* Use RGB for box-shadow color */
  /* Assuming --rgb-primary-color-darker is defined or convert hex to rgb */
  /* Example: box-shadow: 0 0 0 0.2rem rgba(121, 184, 196, 0.25); */
}
.contact-details {
  background-color: var(--bg-color-light-pastel) !important; /* If HTML has bg-light-pastel */
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-details h4 {
  color: var(--primary-color-darker);
}
.contact-details a {
  color: var(--text-color);
}
.contact-details a:hover {
  color: var(--primary-color-darker);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--bg-color-dark); /* From HTML */
  color: var(--text-color-light);
  font-size: 0.9rem;
}
.footer h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer p {
  color: #adb5bd; /* From HTML */
}
.footer-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-timing);
}
.footer-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.footer hr {
  border-color: rgba(255, 255, 255, 0.15); /* Slightly more visible */
}

/* Footer Social Links (Textual) */
.footer .col-md-3 h5 + p a { /* Targeting social links specifically if structure is consistent */
  display: inline-block;
  margin-bottom: 0.3rem; /* Spacing between links */
}

/*--------------------------------------------------------------
# Success Page
--------------------------------------------------------------*/
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--primary-gradient);
}
.success-page-container h1 {
  color: var(--text-color-light);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.success-page-container p {
  color: var(--text-color-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.success-page-container .btn {
  background-color: var(--text-color-light);
  color: var(--primary-color-darker);
  border-color: var(--text-color-light);
}
.success-page-container .btn:hover {
  background-color: rgba(255,255,255,0.9);
  color: var(--primary-color-darker);
}

/*--------------------------------------------------------------
# Responsive Adjustments (Example)
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .hero-section {
    min-height: 70vh;
    padding: 4rem 0;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .navbar-nav .nav-link {
    margin-left: 0;
    margin-right: 0;
    padding: 0.8rem 1rem; /* Better for tap targets in collapsed menu */
  }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 2.2rem; }
  h2, .h2 { font-size: 1.8rem; }
  .hero-section {
    min-height: 60vh;
    padding: 3rem 0;
  }
  .hero-section p.lead {
    font-size: 1.1rem;
  }
  .footer .text-md-start {
    text-align: center !important;
  }
  .footer .col-md-4, .footer .col-md-2, .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* AOS Animation enhancements (optional, AOS handles most) */
[data-aos] {
  transition-property: transform, opacity; /* Ensure these are transitioned */
}

/* Parallax-like effect for specific backgrounds if needed via CSS */
/* This is a simple version. JS is better for true parallax. */
/*
.parallax-background {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
*/

/* Add if needed: --rgb-primary-color-darker variable, e.g. for box-shadow on focus */
/* For --primary-color-darker: #79B8C4;  RGB is 121, 184, 196 */
:root {
  --rgb-primary-color-darker: 121, 184, 196;
}