/* =============================================
   CHARAC MARKETING - Custom Styles
   Modern, Professional Marketing Website
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* =============================================
   GLOBAL STYLES
============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-0);
  overflow-x: clip;
}

body.public-mood {
  position: relative;
  background-color: var(--hero-mood-bg);
  background-image: none;
  color: var(--hero-mood-text);
  --public-mood-grid-opacity: 0.2;
  --public-mood-glow-opacity: 0.9;
  --public-mood-header-glow-opacity: 1;
  --public-mood-pattern-opacity: var(--public-pattern-balanced);
  --public-mood-corner-opacity: var(--public-corner-balanced);
  --public-mood-section-border: rgba(255, 255, 255, 0.06);
  --public-mood-card-bg: var(--hero-mood-card);
  --public-mood-card-border: var(--hero-mood-card-border);
  --public-mood-card-shadow: 0 14px 30px rgba(var(--dark-base-1-rgb), 0.3);
  --public-mood-form-bg: rgba(var(--dark-base-2-rgb), 0.66);
  --public-mood-soft-bg: rgba(255, 255, 255, 0.06);
  --public-mood-soft-border: rgba(255, 255, 255, 0.12);
}

body.public-mood.public-mood--soft {
  --public-mood-grid-opacity: 0.14;
  --public-mood-glow-opacity: 0.72;
  --public-mood-header-glow-opacity: 0.86;
  --public-mood-pattern-opacity: var(--public-pattern-soft);
  --public-mood-corner-opacity: var(--public-corner-soft);
  --public-mood-section-border: rgba(255, 255, 255, 0.05);
  --public-mood-card-shadow: 0 10px 22px rgba(var(--dark-base-1-rgb), 0.22);
  --public-mood-form-bg: rgba(var(--dark-base-2-rgb), 0.56);
  --public-mood-soft-bg: rgba(255, 255, 255, 0.05);
}

body.public-mood.public-mood--dramatic {
  --public-mood-grid-opacity: 0.28;
  --public-mood-glow-opacity: 1;
  --public-mood-header-glow-opacity: 1;
  --public-mood-pattern-opacity: var(--public-pattern-dramatic);
  --public-mood-corner-opacity: var(--public-corner-dramatic);
  --public-mood-section-border: rgba(255, 255, 255, 0.08);
  --public-mood-card-shadow: 0 18px 36px rgba(var(--dark-base-1-rgb), 0.38);
  --public-mood-form-bg: rgba(var(--dark-base-2-rgb), 0.74);
  --public-mood-soft-bg: rgba(255, 255, 255, 0.08);
}

:root[data-theme='light'] body.public-mood {
  --public-mood-grid-opacity: 0.16;
  --public-mood-glow-opacity: 0.46;
  --public-mood-header-glow-opacity: 0.5;
  --public-mood-section-border: rgba(82, 64, 58, 0.09);
  --public-mood-card-bg: var(--hero-mood-card);
  --public-mood-card-border: var(--hero-mood-card-border);
  --public-mood-card-shadow: 0 10px 22px rgba(82, 64, 58, 0.1);
  --public-mood-form-bg: rgba(255, 251, 246, 0.92);
  --public-mood-soft-bg: rgba(255, 251, 246, 0.78);
  --public-mood-soft-border: rgba(82, 64, 58, 0.12);
}

:root[data-theme='light'] body.public-mood.public-mood--soft {
  --public-mood-grid-opacity: 0.12;
  --public-mood-glow-opacity: 0.34;
  --public-mood-header-glow-opacity: 0.4;
  --public-mood-section-border: rgba(82, 64, 58, 0.07);
  --public-mood-card-shadow: 0 8px 18px rgba(82, 64, 58, 0.08);
  --public-mood-form-bg: rgba(255, 252, 248, 0.94);
  --public-mood-soft-bg: rgba(255, 252, 248, 0.76);
}

:root[data-theme='light'] body.public-mood.public-mood--dramatic {
  --public-mood-grid-opacity: 0.2;
  --public-mood-glow-opacity: 0.6;
  --public-mood-header-glow-opacity: 0.62;
  --public-mood-section-border: rgba(82, 64, 58, 0.12);
  --public-mood-card-shadow: 0 14px 28px rgba(82, 64, 58, 0.14);
  --public-mood-form-bg: rgba(253, 247, 241, 0.94);
  --public-mood-soft-bg: rgba(253, 247, 241, 0.82);
}

body.public-mood::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--surface-pattern-line), var(--surface-pattern-dot);
  background-size:
    44px 44px,
    24px 24px;
  opacity: var(--public-mood-pattern-opacity);
  pointer-events: none;
  z-index: 0;
}

body.public-mood::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--surface-pattern-corner), var(--surface-pattern-corner);
  background-size:
    180px 180px,
    180px 180px;
  background-position:
    top right,
    bottom left;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: var(--public-mood-corner-opacity);
  z-index: 0;
}

body.public-mood > header {
  z-index: 30;
}

/* Keep page content above decorative background without affecting overlays (e.g. Bootstrap modals). */
body.public-mood > :is(main, section, footer) {
  position: relative;
  z-index: 1;
}

.access-denied-page {
  margin-top: clamp(4.5rem, 7vw, 5.75rem);
}

@media (max-width: 767px) {
  .access-denied-page {
    margin-top: 4rem;
  }
}

body.public-mood > section:not(.page-header):not(.footer-section),
body.public-mood > main > section:not(.page-header):not(.footer-section) {
  background: var(--hero-mood-surface-alt);
  border-top: 1px solid var(--public-mood-section-border);
}

body.public-mood > section:not(.page-header):not(.footer-section):nth-of-type(even),
body.public-mood > main > section:not(.page-header):not(.footer-section):nth-of-type(even) {
  background: var(--hero-mood-surface);
}

body.public-mood :is(h1, h2, h3, h4, h5, h6, .section-title) {
  color: var(--hero-mood-text);
}

body.public-mood :is(.lead, .section-description) {
  color: var(--hero-mood-muted);
}

body.public-mood .text-muted {
  color: var(--hero-mood-muted) !important;
}

body.public-mood .page-header {
  background: var(--page-header-bg);
  border-bottom-color: var(--page-header-border);
}

body.public-mood .page-header::before {
  background-image: var(--surface-pattern-line), var(--surface-pattern-dot);
  background-size:
    44px 44px,
    24px 24px;
}

body.public-mood .page-header::after {
  right: -76px;
  top: -84px;
  inset: auto;
  width: 230px;
  height: 230px;
  background: transparent;
  border: 1px solid var(--surface-ring-color);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px var(--surface-ring-step-2),
    0 0 0 44px var(--surface-ring-step-3);
  opacity: var(--public-mood-header-glow-opacity);
}

body.public-mood
  :is(
    .card,
    .service-card,
    .product-card,
    .impact-card,
    .opportunity-card,
    .project-card,
    .event-card,
    .testimonial-card,
    .contact-info-box,
    .contact-form-box,
    .feature-box,
    .stat-box,
    .event-meta
  ) {
  background: var(--public-mood-card-bg);
  border: 1px solid var(--public-mood-card-border);
  box-shadow: var(--public-mood-card-shadow);
  color: var(--hero-mood-text);
}

body.public-mood
  :is(.card-title, .service-title, .product-title, .opportunity-title, .section-subtitle) {
  color: var(--hero-mood-text);
}

body.public-mood
  :is(.card-text, .service-description, .product-description, .opportunity-description) {
  color: var(--hero-mood-muted);
}

body.public-mood
  :is(
    .form-control,
    .form-select,
    .choices,
    .choices__list--dropdown,
    .choices__list[aria-expanded]
  ) {
  background: var(--public-mood-form-bg);
  color: var(--hero-mood-text);
  border: 1px solid var(--public-mood-card-border);
}

body.public-mood :is(.form-control, .form-select):focus,
body.public-mood .choices.is-focused {
  border-color: rgba(var(--primary-rgb), 0.72);
  box-shadow: var(--focus-ring);
}

body.public-mood :is(.bg-light, .bg-white) {
  background: var(--public-mood-soft-bg) !important;
  border-color: var(--public-mood-soft-border);
  color: var(--hero-mood-text) !important;
}

body.public-mood .badge.bg-light {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--hero-mood-text) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark);
}

section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

img {
  max-width: 100%;
}

.page-header {
  background: var(--page-header-bg);
  padding: clamp(110px, 10vw, 150px) 0 clamp(56px, 6vw, 84px);
  color: var(--page-header-text);
  border-bottom: 1px solid var(--page-header-border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--surface-pattern-line), var(--surface-pattern-dot);
  background-size:
    48px 48px,
    24px 24px;
  opacity: var(--page-header-grid-opacity);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -72px;
  top: -78px;
  width: 220px;
  height: 220px;
  background: transparent;
  border: 1px solid var(--page-header-glow-color);
  border-radius: 50%;
  box-shadow:
    0 0 0 20px var(--surface-ring-step-2),
    0 0 0 40px var(--surface-ring-step-3);
  pointer-events: none;
  opacity: var(--page-header-glow-opacity);
}

.breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
  margin-left: 0 !important;
  padding-left: 0 !important;
  --bs-breadcrumb-divider: '/';
  --bs-breadcrumb-divider-color: var(--page-header-crumb);
  justify-content: flex-start !important;
}

.page-header nav[aria-label='breadcrumb'] {
  margin: 0;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--page-header-crumb);
  font-weight: 700;
}

.breadcrumb-item a {
  color: var(--page-header-crumb);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--page-header-crumb-active);
}

.page-title {
  color: var(--page-header-text);
  font-size: clamp(2.15rem, 1.6rem + 2.6vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--page-header-muted);
  max-width: 700px;
  margin: 0;
}

/* =============================================
   BUTTONS
============================================= */

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn:hover {
  border-color: var(--white);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-color) !important;
  color: var(--white);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
}

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

.btn-outline-light {
  background: transparent;
  color: var(--gradient-dark);
  border-color: var(--gradient-dark);
  transition: var(--transition-base);
}

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary-color);
}

/* =============================================
   HERO SECTION
============================================= */

.hero-section {
  min-height: auto;
  position: relative;
  background-color: var(--primary-color);
  overflow: hidden;
  padding-top: 0;
}

section.hero-section {
  padding-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

/*.orb-1 {*/
/*  width: 500px;*/
/*  height: 500px;*/
/*  background: radial-gradient(circle, var(--dark), transparent);*/
/*  top: -200px;*/
/*  right: -200px;*/
/*  animation-delay: 0s;*/
/*}*/

/*.orb-2 {*/
/*  width: 400px;*/
/*  height: 400px;*/
/*  background: radial-gradient(circle, var(--primary-dark), transparent);*/
/*  bottom: -150px;*/
/*  left: -150px;*/
/*  animation-delay: 5s;*/
/*}*/

/*.orb-3 {*/
/*  width: 300px;*/
/*  height: 300px;*/
/*  background: radial-gradient(circle, var(--primary-dark), transparent);*/
/*  top: 50%;*/
/*  left: 50%;*/
/*  transform: translate(-50%, -50%);*/
/*  animation-delay: 10s;*/
/*}*/

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideInDown 0.8s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-title {
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.8s ease 0.2s both;
}

.gradient-text {
  background: none;
  color: var(--accent-color);
  -webkit-text-fill-color: currentColor;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.8;
  animation: slideInUp 0.8s ease 0.4s both;
}

.hero-cta {
  animation: slideInUp 0.8s ease 0.6s both;
}

.hero-cta:hover {
  outline: var(--primary-color) !important;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  height: 500px;
  animation: slideInRight 1s ease 0.5s both;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: floatCard 3s ease-in-out infinite;
}

.floating-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.floating-card .card-title {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.floating-card .card-value {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  right: 15%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================
   SECTION HEADERS
============================================= */
/*Navbar*/
.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title {
  color: var(--dark);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   SERVICES SECTION
============================================= */

.services-section {
  background: var(--light);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.service-card.featured .service-title,
.service-card.featured .service-description {
  color: var(--dark);
}

.service-card.featured .service-features li {
  color: var(--dark);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-light);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(0.9);
}
.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.service-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 700;
}

.service-card.featured .service-features li::before {
  color: var(--accent-color);
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.service-link:hover {
  gap: 1rem;
}

/* =============================================
   PROCESS SECTION
============================================= */

.process-section {
  background: var(--white);
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 80px;
  width: 2px;
  height: calc(100% + 1rem);
  background-color: var(--primary-color);
}

.process-step:last-child::before {
  display: none;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.step-description {
  color: var(--gray);
  line-height: 1.8;
}

/* =============================================
   STATS SECTION
============================================= */

.stats-section {
  background-color: var(--primary-color);
  color: var(--white);
}

.stat-box {
  padding: 2rem;
}

.stat-box .stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.stat-box .stat-label {
  font-size: 1rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   PRODUCTS SECTION
============================================= */

.products-section {
  background: var(--white);
}

.product-card {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  transition: all var(--transition-base);
  border: 2px solid var(--primary-color);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white) !important ;
  background-color: var(--primary-color);
}

.product-badge.coming-soon {
  background: var(--accent-color);
  color: var(--white) !important ;
}

.product-icon i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--primary-color) !important;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.product-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.product-features li {
  padding: 0.5rem 0;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1.5rem;
}

.product-card .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =============================================
   IMPACT SECTION
============================================= */

.impact-section {
  background: var(--light);
}

.impact-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.impact-stat-item .impact-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.impact-stat-item .impact-label {
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.impact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.impact-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.impact-card p {
  color: var(--gray);
  margin: 0;
  font-size: 0.875rem;
}

/* =============================================
   OPPORTUNITIES SECTION
============================================= */

.opportunities-section {
  background: var(--white);
}

.opportunity-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.opportunity-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.opportunity-type {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.opportunity-type.volunteer {
  background: var(--success-color);
  color: var(--white);
}

.opportunity-type.internship {
  background: var(--primary-color);
  color: var(--white);
}

.opportunity-type.job {
  background: var(--danger-color);
  color: var(--white);
}

.opportunity-type.collaboration {
  background: var(--secondary-color);
  color: var(--white);
}

.opportunity-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.opportunity-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.opportunity-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 0.875rem;
}

.opportunity-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   TESTIMONIALS SECTION
============================================= */

.testimonials-section {
  background: var(--light);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-stars {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.testimonial-text {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 1.125rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.author-position {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}

/* =============================================
   CTA SECTION
============================================= */

.cta-section {
  background: var(--primary-dark);
  padding: 5rem 0;
}

.cta-box {
  background-color: var(--primary-color);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-title {
  color: var(--dark);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--dark);
  font-size: 1.125rem;
  margin: 0;
}

/* =============================================
   NEWSLETTER SECTION
============================================= */

.newsletter-section {
  background: var(--light);
}

.newsletter-title {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 700;
}

.newsletter-description {
  color: var(--gray);
  font-size: 1.125rem;
}

.newsletter-form .form-control {
  border: 2px solid var(--gray-light);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.newsletter-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.newsletter-form .btn {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1rem 2rem;
  white-space: nowrap;
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 991px) {
  :root {
    --section-padding: 60px;
  }

  .hero-visual {
    height: 400px;
    margin-top: 3rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 2.5rem;
    text-align: center;
  }

  .process-step {
    flex-direction: column;
  }

  .process-step::before {
    left: 40px;
    top: 200px;
  }
}

@media (max-width: 767px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .floating-card {
    padding: 1rem;
  }

  .floating-card .card-value {
    font-size: 1.5rem;
  }

  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: var(--radius-lg) !important;
    width: 100%;
  }

  .newsletter-form .btn {
    margin-top: 0.5rem;
  }
}

/* =============================================
   ANIMATIONS
============================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =============================================
   PUBLIC PAGE CONSISTENCY BASELINE
============================================= */

body:is(.public-mood, .is-home) {
  --public-fs-page-title: clamp(2rem, 1.48rem + 1.6vw, 3.05rem);
  --public-fs-title-md: clamp(1.28rem, 1.14rem + 0.44vw, 1.6rem);
  --public-fs-title-sm: clamp(1.02rem, 0.96rem + 0.24vw, 1.18rem);
  --public-fs-body: clamp(0.92rem, 0.89rem + 0.1vw, 0.98rem);
  --public-fs-body-sm: clamp(0.81rem, 0.78rem + 0.08vw, 0.86rem);
  --public-fs-label: clamp(0.73rem, 0.7rem + 0.08vw, 0.78rem);
  --public-page-header-top: clamp(26px, 10vw, 36px);
  --public-page-header-bottom: clamp(54px, 6vw, 82px);
  --public-card-padding: clamp(0.96rem, 0.88rem + 0.28vw, 1.18rem);
}

body.public-mood.has-telegram-link-reminder {
  --public-page-header-top: clamp(84px, 8.4vw, 122px);
}

body.public-mood .page-header {
  padding: var(--public-page-header-top) 0 var(--public-page-header-bottom);
}

body.public-mood .page-title {
  font-size: var(--public-fs-page-title);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.62rem;
}

body.public-mood .page-subtitle {
  font-size: var(--public-fs-body);
  line-height: 1.62;
  max-width: 62ch;
}

body.public-mood :is(.breadcrumb, .breadcrumb-item, .breadcrumb-item a) {
  font-size: var(--public-fs-label);
  line-height: 1.35;
}

body.public-mood
  :is(
    .section-subtitle,
    .about-kicker,
    .services-kicker,
    .opportunity-kicker,
    .community-kicker,
    .impact-kicker,
    .auth-kicker,
    .event-detail-pill
  ) {
  font-size: var(--public-fs-label);
}

body.public-mood
  :is(
    .section-title,
    .about-section-title,
    .services-process-title,
    .services-cta-title,
    .contact-section h2,
    .contact-form-box h3,
    .auth-title,
    .event-detail-body h2
  ) {
  font-size: var(--public-fs-title-md);
  line-height: 1.24;
}

body.public-mood
  :is(
    p,
    .lead,
    .section-description,
    .auth-subtitle,
    .services-hero-panel-copy,
    .opportunity-hero-panel-copy,
    .community-hero-panel-copy,
    .impact-hero-panel-copy,
    .event-detail-body p
  ) {
  font-size: var(--public-fs-body);
  line-height: 1.62;
}

body.public-mood
  :is(
    .service-grid-card,
    .opportunity-grid-card,
    .event-grid-card,
    .impact-project-card,
    .event-detail-stat-card,
    .event-detail-related-card
  ) {
  padding: var(--public-card-padding);
}

body.public-mood
  :is(
    .service-card-title,
    .opportunity-card-title,
    .event-grid-title,
    .impact-project-title,
    .services-process-card-title,
    .event-detail-stat-card h3,
    .event-detail-related-card h3
  ) {
  font-size: var(--public-fs-title-sm);
  line-height: 1.3;
}

body.public-mood
  :is(
    .service-card-desc,
    .opportunity-card-desc,
    .event-grid-desc,
    .impact-project-desc,
    .services-process-card-copy,
    .event-stat-line,
    .event-register-note,
    .related-meta,
    .services-result-meta,
    .opportunity-result-meta,
    .events-result-meta,
    .impact-result-meta
  ) {
  font-size: var(--public-fs-body-sm);
  line-height: 1.5;
}

body.public-mood
  :is(
    .service-card-category,
    .service-card-badge,
    .service-card-flag,
    .opportunity-status,
    .opportunity-card-badge,
    .event-grid-status,
    .event-grid-tag,
    .impact-project-status,
    .impact-project-badge
  ) {
  font-size: var(--public-fs-label);
  line-height: 1.2;
}

body.public-mood
  :is(
    .services-filter-label,
    .opportunity-filter-label,
    .community-filter-label,
    .impact-filter-label
  ) {
  font-size: var(--public-fs-label);
  margin-bottom: 0.32rem;
}

body.public-mood :is(.services-stat-label, .opportunity-stat-label, .community-stat-label, .impact-stat-label) {
  font-size: var(--public-fs-body-sm);
}

body.public-mood :is(.services-result-summary, .opportunity-result-summary, .events-result-summary, .impact-result-summary) {
  font-size: var(--public-fs-body);
}

body.public-mood .page-header + section .card {
  border-radius: 16px;
  border: 1px solid var(--border-on-dark);
  background: var(--surface-1);
  box-shadow: 0 12px 24px rgba(8, 13, 21, 0.18);
}

body.public-mood .page-header + section .card .card-body {
  padding: clamp(1.15rem, 1rem + 0.5vw, 1.7rem) !important;
}

body.public-mood .page-header + section .card :is(p, li, .lead) {
  font-size: var(--public-fs-body);
  line-height: 1.64;
}

body.public-mood .page-header + section .card :is(h2.h5, h3.h5) {
  font-size: var(--public-fs-title-sm);
  margin-top: 1.2rem !important;
}

@media (max-width: 767px) {
  body:is(.public-mood, .is-home) {
    --public-fs-page-title: clamp(1.58rem, 6.5vw, 2.12rem);
    --public-fs-title-md: clamp(1.18rem, 4.9vw, 1.36rem);
    --public-fs-title-sm: clamp(1rem, 4.2vw, 1.14rem);
    --public-fs-body: 0.88rem;
    --public-fs-body-sm: 0.8rem;
    --public-fs-label: 0.74rem;
    --public-page-header-top: clamp(94px, 20vw, 122px);
    --public-page-header-bottom: clamp(40px, 10vw, 56px);
  --public-card-padding: 0.9rem;
  }

  body.public-mood .page-subtitle {
    max-width: 40ch;
  }

}

@media (max-width: 1199px) {
  body.is-home .main-content,
  body.is-home .home-page {
    overflow-x: clip;
  }
}
