/* style.css */

/* 1. CSS Variables */
:root {
  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Triadic Color Scheme - Modern & Vibrant */
  --color-primary: #3498DB;       /* Peter River Blue - Main Interactive elements, CTAs */
  --color-primary-darker: #2980B9;  /* Darker Blue for hover */
  --color-secondary: #2ECC71;     /* Emerald Green - Positive affirmations, secondary info */
  --color-secondary-darker: #27AE60;/* Darker Green for hover */
  --color-accent: #E67E22;        /* Carrot Orange - Highlights, warnings, attention grabbers */
  --color-accent-darker: #D35400;   /* Darker Orange for hover */

  /* Neutral Colors */
  --color-text: #333333;                 /* Main text color for readability */
  --color-text-light: #FFFFFF;           /* Text on dark backgrounds */
  --color-text-muted: #6c757d;           /* Muted text, captions */
  --color-background-body: #FFFFFF;      /* Main body background */
  --color-background-light-section: #F8F9FA; /* Light sections (Bootstrap light) */
  --color-background-dark-footer: #212529; /* Dark sections like footer (Bootstrap dark) */
  --color-border: #DEE2E6;               /* Standard border color */
  --color-input-border: #ced4da;         /* Bootstrap input border */
  --color-input-focus-border: #80bdff; /* Bootstrap input focus border (can be primary) */
  --color-input-focus-shadow: rgba(0, 123, 255, 0.25); /* Bootstrap focus shadow (can be primary) */

  /* Biomorphic Design & Spacing */
  --border-radius-soft: 12px;
  --border-radius-medium: 20px;
  --border-radius-card: 15px; /* Consistent card rounding */
  --border-radius-pill: 50rem;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 12px 35px rgba(0, 0, 0, 0.12);

  --section-padding-y: 5rem;
  --header-height: 80px; /* Approximate header height for padding */
}

/* 2. Global Styles */
*,
*::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-secondary);
  color: var(--color-text);
  background-color: var(--color-background-body);
  line-height: 1.7;
  padding-top: var(--header-height); /* For fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: #222222; /* Darker for titles for better contrast */
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem;}
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

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

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

/* Custom ::selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}


/* 3. Helper/Utility Classes */
.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-title {
  font-size: 2.5rem; /* Ensure visibility */
  font-weight: 700;
  margin-bottom: 3rem;
  color: #222222; /* Stronger color for titles */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}


.text-light-on-dark-bg { /* For text on dark image overlays */
    color: var(--color-text-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


/* 4. Header */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important; /* Slight transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  min-height: calc(var(--header-height) - 10px); /* Ensure it's not too tall */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary) !important;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-text-muted) !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-soft);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active,
.navbar-nav .nav-link.show { /* For dropdown toggle */
  color: var(--color-primary) !important;
  background-color: rgba(var(--color-primary-rgb, 52, 152, 219), 0.1); /* Use primary with alpha */
}

.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(52, 152, 219, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-medium);
    border: none;
    padding: 0.5rem 0;
}
.dropdown-item {
    font-family: var(--font-primary);
    padding: 0.5rem 1.2rem;
    color: var(--color-text-muted);
}
.dropdown-item:hover, .dropdown-item:focus {
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb, 52, 152, 219), 0.1);
}


/* 5. Hero Section */
.hero-section {
  min-height: calc(100vh - var(--header-height)); /* Adjusted to account for header */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  /* Simple Parallax effect */
  background-attachment: fixed;
  padding: 4rem 1rem; /* Added padding for smaller screens */
}
.hero-section .container {
    position: relative; /* For z-index stacking if needed */
    z-index: 2;
}
.hero-title, .hero-subtitle {
    color: var(--color-text-light) !important; /* STROGO: Text in hero section must be WHITE */
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}
.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-section { min-height: 80vh; } /* Less height on mobile */
}

/* 6. General Button Styles */
.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-pill); /* Biomorphic: pill shape */
  border-width: 2px;
  border-style: solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

/* Primary Button Style (used for .btn-primary, .biomorphic-button) */
.btn-primary, .biomorphic-button {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
}
.btn-primary:hover, .biomorphic-button:hover {
  background-color: var(--color-primary-darker);
  border-color: var(--color-primary-darker);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Outline Button Style (Bootstrap .btn-outline-primary) */
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Outline Secondary Button Style (used for "Read More" in resources) */
.btn-outline-secondary {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    font-weight: 500;
    text-transform: none; /* Make it less "buttony" */
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-soft);
}
.btn-outline-secondary:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: rgba(230, 126, 34, 0.05); /* Accent with alpha */
    box-shadow: none;
    transform: translateY(-1px);
}


/* 7. Card Styles (Global) */
.card {
  border: none;
  border-radius: var(--border-radius-card); /* Biomorphic shape */
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* For equal height cards in rows */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Ensure content respects border-radius */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.card-image { /* Container for image in card */
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  display: flex; /* For centering content within */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  border-top-left-radius: var(--border-radius-card);
  border-top-right-radius: var(--border-radius-card);
}
/* Specific to cards where image is main top visual */
.card .card-image img:not(.testimonial-img):not(.w-50) { /* Exclude smaller icons/avatars */
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area, crop if needed */
}

.card-body {
  padding: 1.8rem;
  flex-grow: 1; /* Allows card body to expand */
  display: flex;
  flex-direction: column;
}
.card-body > *:last-child {
    margin-bottom: 0; /* Remove bottom margin from last element */
}
.card-title {
  font-size: 1.25rem;
  color: #2c3e50; /* Slightly softer dark blue for card titles */
  margin-bottom: 0.75rem;
}
.card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1; /* Allows text to take up available space before buttons/links */
}

/* For cards with small centered icons (like in Statistics section) */
.card .card-image.text-center img.w-50 {
    width: auto !important; /* Override bootstrap w-50 for this case */
    max-height: 80px; /* Control icon size */
    object-fit: contain;
}


/* Biomorphic elements */
.biomorphic-image-frame {
  border-radius: var(--border-radius-medium) var(--border-radius-soft) var(--border-radius-medium) var(--border-radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.biomorphic-image-frame img {
    border-radius: inherit; /* Inherit the biomorphic shape */
}

/* 8. Section Specific Styles */

/* Mission, About Us */
#mission .lead, #about .lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #495057; /* Slightly lighter than main text for lead paragraphs */
}

/* Statistics Section */
#stats .biomorphic-card .card-body {
    text-align: center; /* Center content in stats cards */
}
#stats .form-check-input:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}
#stats .form-check-input:focus {
    border-color: var(--color-secondary-darker);
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
}
#statsGallery .carousel-caption {
    background-color: rgba(0,0,0,0.6) !important; /* Stronger overlay */
    border-radius: var(--border-radius-soft);
    bottom: 1.5rem;
    left: 5%;
    right: 5%;
    padding: 1rem;
}
#statsGallery .carousel-caption h5 {
    color: var(--color-text-light) !important;
    font-family: var(--font-primary);
}
#statsGallery .carousel-caption p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* External Resources Section */
.resource-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}
.resource-card .card-title {
    color: var(--color-primary) !important; /* Make titles stand out */
    font-size: 1.15rem;
}
.resource-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem; /* Space before button */
}

/* Testimonials Section */
.testimonial-card {
    background-color: var(--color-background-light-section);
}
.testimonial-card .card-image { /* Override default card image height for avatars */
    height: auto;
    padding-top: 1.5rem;
}
.testimonial-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 4px solid var(--color-text-light);
  box-shadow: var(--shadow-medium);
}
.testimonial-card blockquote p {
  font-style: italic;
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.testimonial-card blockquote {
    margin-bottom: 0.5rem; /* reduce space below quote block */
}
.testimonial-card .blockquote-footer {
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 0.9rem;
}
.testimonial-card .blockquote-footer::before {
    content: "" !important; /* Remove Bootstrap's em-dash */
}


/* Contact Form */
#contact .form-label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.modern-input.form-control {
  background-color: var(--color-background-light-section);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-soft); /* Softer radius */
  padding: 0.8rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none; /* Remove Bootstrap's default inner shadow */
}
.modern-input.form-control:focus {
  border-color: var(--color-primary);
  background-color: var(--color-text-light);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 52, 152, 219), 0.25); /* Primary focus glow */
}
textarea.modern-input {
    min-height: 150px;
}

/* 9. Footer */
footer {
  background-color: var(--color-background-dark-footer);
  color: rgba(255, 255, 255, 0.8);
}
footer h5 {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
footer p.small {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 0.95rem;
}
.footer-link:hover {
  color: var(--color-text-light);
  text-decoration: none;
  padding-left: 5px; /* Subtle hover effect */
}
footer hr {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 10. Page Specific Styles */

/* success.html centering */
.success-page-container, .error-page-container {
  min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.success-page-container h1, .error-page-container h1 {
  color: var(--color-secondary); /* Green for success */
  font-size: 3rem;
}
.error-page-container h1 {
  color: var(--color-accent); /* Orange/Red for error */
}
.success-page-container p, .error-page-container p {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* privacy.html, terms.html */
.legal-page-content {
  padding-top: calc(var(--header-height) + 2rem); /* Ensure content below fixed header + extra space */
  padding-bottom: var(--section-padding-y);
  min-height: calc(100vh - var(--header-height)); /* Ensure footer is pushed down */
}
.legal-page-content .container h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--color-primary);
}
.legal-page-content .container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
}
.legal-page-content .container p,
.legal-page-content .container ul li {
    line-height: 1.8;
    color: #495057;
}
.legal-page-content .container ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* 11. Animations (ScrollReveal handles entry, but base transitions are good) */
/* Example: General fade-in for ScrollReveal elements if not specified otherwise */
[data-sr-id] { /* ScrollReveal elements get this attribute */
    visibility: hidden; /* Hide until revealed */
}

/* Add some micro-interactions */
.nav-link, .dropdown-item, .btn, .card, .modern-input, .footer-link {
    will-change: transform, box-shadow, background-color, color, border-color; /* Optimize for transitions */
}


/* 12. Responsive Design (Media Queries - Bootstrap handles most layout, these are for fine-tuning) */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2, .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 3.5rem;
    --header-height: 70px; /* Header might be smaller on mobile */
  }
  body {
    padding-top: var(--header-height);
  }
  h1 { font-size: 2.2rem; }
  h2, .section-title { font-size: 1.8rem; margin-bottom: 2rem;}
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn, button, input[type='submit'], input[type='button'] {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  .card-body { padding: 1.5rem; }
  .legal-page-content { padding-top: calc(var(--header-height) + 1rem); }
  .legal-page-content .container h1 { font-size: 2rem; }
  .legal-page-content .container h2 { font-size: 1.5rem; }

}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2, .section-title { font-size: 1.6rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .footer-links, .footer-social-icons {
    text-align: center;
  }
  .footer-links ul {
      padding-left: 0;
  }
}
html,body{
  overflow-x: hidden;
}
*{
  opacity: 1 !important;
}