/* === CSS RESET & NORMALIZATION === */

html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, img, fieldset, form {
  margin: 0;
  padding: 0;
  border: 0;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
html, body {
  width: 100%;
  height: 100%;
}
body {
  min-height: 100%;
  line-height: 1.6;
  background: #F8F6F2;
  color: #2D3324;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #4C6E39;
  outline-offset: 3px;
}

/* ============= BRAND & STYLE ROOTS ============= */
:root {
  --color-primary: #14213D;
  --color-secondary: #FCA311;
  --color-accent: #E5E5E5;
  --color-green: #4C6E39;
  --color-green-light: #9EBF96;
  --color-brown: #835E3E;
  --color-brown-light: #F7EFE6;
  --color-shadow: rgba(76, 110, 57, 0.13);
  --radius-card: 24px;
  --radius-btn: 32px;
  --shadow-default: 0 4px 16px var(--color-shadow);
}

/* ============= TYPOGRAPHY ============= */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-green);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-green);
  margin-bottom: 12px;
}
p, ul, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #2D3324;
  margin-bottom: 12px;
}
ul, ol {
  margin-left: 20px;
}
ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-green);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* ============= CONTAINER LAYOUT & SPACING ============= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.section, .features-section, .services-section, .about-section, .offers-section,
.cta-section, .education-materials-section, .technology-features-section,
.news-section, .contact-section, .legal-section, .testimonials-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-card);
}

@media (max-width: 768px) {
  .section, .features-section, .services-section, .about-section, .offers-section,
  .cta-section, .education-materials-section, .technology-features-section, .news-section, .contact-section, .legal-section, .testimonials-section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* ============= FLEXBOX PATTERNS - MANDATORY ============= */
.card-container, .features-grid, .service-cards, .offers-list, .testimonials-grid, .resource-grid, .news-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

@media (max-width: 992px) {
  .card-container, .features-grid, .service-cards, .offers-list, .testimonials-grid, .resource-grid, .news-list, .content-grid {
    gap: 16px;
  }
}

.card, .service-card, .feature, .offer-card, .resource-card, .testimonial-card, .news-item {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-default);
  padding: 28px 24px 28px 24px;
  transition: box-shadow 0.2s, transform 0.12s;
  min-width: 230px;
  min-height: 180px;
}
.card:last-child, .service-card:last-child, .feature:last-child, .offer-card:last-child, .resource-card:last-child, .testimonial-card:last-child, .news-item:last-child {
  margin-bottom: 0;
}

.card:hover, .service-card:hover, .feature:hover, .offer-card:hover, .resource-card:hover {
  box-shadow: 0 8px 24px rgba(76,110,57,0.17);
  transform: translateY(-2px) scale(1.015);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 24px 20px 24px;
  background: var(--color-brown-light);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px rgba(76,110,57,0.08);
  min-width: 260px;
}

.testimonial-card p {
  color: #253321;
  font-size: 1.08rem;
}

.testimonial-footer {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--color-primary);
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============== HERO SECTION SPECIFIC ================ */
.hero-section {
  margin-bottom: 60px;
  padding: 64px 0 64px 0;
  background: linear-gradient(130deg, #e5e5e5 40%, #d2e8d1 100%);
  border-radius: 0 0 40px 40px;
}
.hero-section .content-wrapper {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-section h1 {
  color: var(--color-primary);
}
.hero-section .cta-btn {
  margin-top: 30px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 36px 0 32px 0;
    border-radius: 0 0 24px 24px;
  }
}

/* ============= HEADER & NAV ============= */
header {
  background: #FFF;
  padding: 0;
  box-shadow: 0 2px 8px rgba(76,110,57,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 18px;
}
.logo img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-green);
  font-weight: 500;
  padding: 8px 0;
  border-radius: 6px;
  position: relative;
  transition: color .16s, background .2s;
}
nav a:hover,
nav a:focus {
  color: var(--color-primary);
  background: #eaf2e7;
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  padding: 14px 35px;
  transition: background 0.22s, color 0.18s, box-shadow 0.16s;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(76,110,57,0.07);
  border: none;
  margin-left: 18px;
}
.cta-btn.primary {
  background: var(--color-green);
  color: #fff;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #254A1A;
  color: #F1FFD9;
  box-shadow: 0 4px 20px rgba(76,110,57,0.20);
}
.cta-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-left: 0;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #F7CA73;
  color: var(--color-primary);
  box-shadow: 0 3px 15px rgba(252,163,17,0.18);
}

/* =========== MOBILE MENU ============ */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 2.2rem;
  padding: 4px 16px 3px 16px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: #254A1A;
}
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1200;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 40px rgba(76,110,57,0.14);
  z-index: 2100;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.61,0.12,0.38,1), box-shadow 0.18s;
  padding: 24px 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: var(--color-green);
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 24px;
  margin-bottom: 16px;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-left: 28px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 5px;
  padding: 10px 0 10px 10px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-green);
  background: #f3f6f2;
}

@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* =========== MAIN PAGE SERVICE & FEATURE CARDS ============== */
.feature, .service-card, .offer-card, .resource-card {
  background: #FFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-default);
  padding: 32px 20px 28px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 250px;
  min-width: 220px;
  min-height: 190px;
  gap: 12px;
  border: 1px solid #E0E0DF;
  transition: box-shadow 0.2s, border-color 0.21s, transform 0.12s;
}
.feature img,
.service-card img,
.offer-card img,
.resource-card img {
  height: 38px;
  width: 38px;
  margin-bottom: 10px;
}
.feature h3, .service-card h3, .offer-card h3, .resource-card h3 {
  font-size: 1.15rem;
  color: var(--color-green);
}
.feature p, .service-card p, .offer-card p, .resource-card p {
  color: #4C4E41;
  font-size: 1rem;
  margin-bottom: 0;
}
.feature:hover, .service-card:hover, .offer-card:hover, .resource-card:hover {
  border-color: var(--color-green-light);
  box-shadow: 0 8px 26px rgba(76,110,57,0.15);
  transform: translateY(-2px) scale(1.018);
}

.offers-list, .service-cards, .features-grid, .resource-grid {
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .features-grid, .offers-list, .service-cards, .resource-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* =========== NEWS/ARTICLE STYLES =========== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(131,94,62,0.10);
  padding: 24px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, background 0.13s;
}
.news-item h3 {
  color: var(--color-green);
  margin-bottom: 10px;
  font-size: 1.13rem;
}
.news-item p {
  color: #564D2D;
  font-size: 1rem;
}
.news-item:hover {
  box-shadow: 0 6px 18px rgba(76,110,57,0.13);
  background: #f5f4f0;
}

/* =========== ABOUT, EDUCATION, CONTACT ============ */
.text-section {
  margin-bottom: 32px;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.social-links li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--color-green);
  gap: 10px;
}
.social-links img {
  width: 20px;
  height: 20px;
}

/* =========== FOOTER ============ */
footer {
  background: #E5E5E5;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -2px 15px rgba(76,110,57,0.04);
  padding-top: 36px;
  padding-bottom: 12px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--color-green);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.98rem;
  color: #555333;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-left: 8px;
    padding-right: 8px;
  }
  footer .logo {
    margin-bottom: 6px;
  }
}

/* =========== BUTTON ANIMATIONS AND ACCESSIBILITY =========== */
button, .cta-btn, .mobile-menu-toggle {
  outline: none;
}
button:active, .cta-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.98);
}

/* =========== ANIMATIONS & MICRO-INTERACTIONS =========== */
.cta-btn, .feature, .service-card, .offer-card,.resource-card {
  transition: box-shadow 0.21s, background 0.14s, transform 0.10s, color 0.13s;
}
.mobile-menu {
  will-change: transform;
}

/* =========== COOKIE CONSENT BANNER & MODAL =========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe6;
  color: #2d3324;
  border-top: 1px solid #C5C29D;
  box-shadow: 0 -3px 18px rgba(131,94,62,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 3000;
  padding: 22px 28px;
  font-size: 1rem;
  animation: cookie-banner-in 0.5s cubic-bezier(0.5, 0, 0.45, 1);
}
@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-size: 1rem;
  padding: 11px 25px;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.13s;
}
.cookie-consent-banner .cookie-accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-consent-banner .cookie-accept:hover {
  background: #254A1A;
}
.cookie-consent-banner .cookie-reject {
  background: #FACF99;
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-reject:hover {
  background: #eeb368;
}
.cookie-consent-banner .cookie-settings {
  background: #f5f2e7;
  color: var(--color-primary);
  border: 1px solid #e6e6d5;
}
.cookie-consent-banner .cookie-settings:hover {
  background: #e6e6d5;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3100;
  min-width: 325px;
  max-width: 96vw;
  width: 430px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(131, 94, 62, 0.19);
  transform: translate(-50%, -50%) scale(1);
  animation: cookie-modal-bounce 0.33s cubic-bezier(0.61,0.16,0.38,1);
  padding: 38px 30px 27px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 500px) {
  .cookie-modal {
    width: 95vw;
    padding: 16px 5vw;
  }
}
@keyframes cookie-modal-bounce {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  color: var(--color-green);
  font-size: 1.38rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal .cookie-cat label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  color: #2d3324;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 34px;
  height: 19px;
  background: #e5e5e5;
  border-radius: 15px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-green-light);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 0.5px;
  transition: left 0.19s;
  box-shadow: 0 1px 7px rgba(76,110,57,0.06);
}
.cookie-modal .cookie-toggle:checked:before {
  left: 15px;
}
.cookie-modal .cookie-cat.essential .cookie-toggle {
  background: #F6F1DA;
  cursor: default;
}
.cookie-modal .cookie-cat.essential .cookie-toggle:before {
  background: #bfc9ac;
}
.cookie-modal .cookie-cat.essential label {
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
}
.cookie-modal .modal-actions .cookie-accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-modal .modal-actions .cookie-accept:hover {
  background: #254A1A;
}
.cookie-modal .modal-actions .cookie-cancel {
  background: #f5f2e7;
  color: var(--color-primary);
  border: 1px solid #e5e5e5;
}
.cookie-modal .modal-actions .cookie-cancel:hover {
  background: #e4e4da;
}

/* COOKIE MODAL OVERLAY */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,33,61,0.17);
  z-index: 3090;
  animation: fadein .3s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============= RESPONSIVE & UTILITIES ============= */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.1rem;
    margin-bottom: 16px;
  }
  h2, .h2 {
    font-size: 1.45rem;
    margin-bottom: 15px;
  }
  .card, .service-card, .feature, .offer-card, .resource-card, .testimonial-card, .news-item {
    padding: 18px 12px 18px 12px;
    min-width: 0;
    font-size: 0.99rem;
  }
  .hero-section .content-wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }
  .features-grid,
  .offers-list,
  .service-cards,
  .resource-grid {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 480px) {
  .cta-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    margin-left: 0;
  }
}

/* ============= SCROLLBAR BEAUTIFY ============= */
body {
  scrollbar-color: #a2bc98 #E5E5E5;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 8px;
  background: #e5e5e5;
}
::-webkit-scrollbar-thumb {
  background: #b7caaf;
  border-radius: 8px;
}

/* ============ FORM ELEMENTS, INPUTS, FIELDS (if exist) ============ */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 13px;
  border: 1px solid #c9ceb9;
  padding: 13px 15px;
  margin-bottom: 12px;
  width: 100%;
  background: #FAFBF8;
  box-shadow: 0 1px 3px rgba(76,110,57,0.04);
  transition: border 0.14s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 2px rgba(76,110,57,0.08);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* ============ MISC ORGANIC EMBELLISHMENTS ============ */
.card, .service-card, .offer-card, .feature, .resource-card, .testimonial-card {
  border-bottom-left-radius: 32px 48px;
  border-bottom-right-radius: 54px 32px;
  border-top-left-radius: 25px 36px;
  border-top-right-radius: 38px 25px;
}
.section, .testimonials-section, .about-section, .offers-section, .services-section {
  border-radius: 45px 18px 36px 30px;
}

hr {
  border: 0;
  border-top: 1.5px solid #dce1d5;
  margin: 36px 0;
}

/* === PRINT/ACCESSIBILITY === */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal, .cookie-overlay {
    display: none !important;
  }
  .section, main, body, html {
    background: #fff !important;
  }
}

/* ================= END OF STYLES =================== */
