/* Modern Glassy Page Styles – Clean, Sophisticated, Attractive */
:root{
  --accent:#4f52d3;
  --accent-light:rgba(79, 82, 211, 0.08);
  --accent-dark:#2d2f8f;
  --muted:#6b6f86;
  --card-bg:#ffffff;
  --glass: rgba(255,255,255,0.95);
  --glass-border: rgba(255,255,255,0.5);
  --gradient-primary: linear-gradient(135deg, #4f52d3 0%, #10b981 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --shadow-sm: 0 2px 8px rgba(34, 41, 80, 0.08);
  --shadow-md: 0 6px 20px rgba(34, 41, 80, 0.12);
  --shadow-lg: 0 12px 40px rgba(34, 41, 80, 0.15);
}

[data-theme="dark"] {
  --card-bg: rgba(30, 30, 40, 0.8);
  --glass: rgba(30, 30, 40, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Hero Sections */
.page-hero {
  padding: 5rem 0 3rem;
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  z-index: 0;
}

.page-hero .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-family: Montserrat, system-ui, -apple-system;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.page-hero p.lead {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Glass Card Components */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 82, 211, 0.3);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 30, 40, 0.7);
}

/* Grid Layouts */
.stories-grid, .services-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.story-card, .service-card, .feature-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
}

.story-card:hover, .service-card:hover, .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 82, 211, 0.4);
}

.story-card::before, .service-card::before, .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
}

.story-card, .service-card, .feature-card {
  position: relative;
}

.story-card .meta, .service-card .meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-card h3, .service-card h3, .feature-card h3 {
  margin: 0 0 0.8rem;
  font-family: Montserrat, system-ui, -apple-system;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary, #111130);
}

.story-card p, .service-card p, .feature-card p {
  color: var(--muted);
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.story-card .cta, .service-card .cta {
  margin-top: auto;
}

/* Service Grid Specific */
.service-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* FAQ/Accordion Styles */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-accordion .accordion-item {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 82, 211, 0.3);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-primary, #111130);
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: 0;
  font-size: 15px;
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234f52d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234f52d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 11l6-6 6 6'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  color: var(--muted);
  padding: 1rem 1.5rem;
  background: rgba(79, 82, 211, 0.02);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--glass-border);
}

[data-theme="dark"] .faq-accordion .accordion-body {
  background: rgba(79, 82, 211, 0.05);
}

/* Contact Form */
.contact-form, .form-container {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.contact-form h2, .form-container h2 {
  font-family: Montserrat, system-ui, -apple-system;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 1.8rem;
  color: var(--text-primary, #111130);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 0.6rem;
  color: var(--text-primary, #111130);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(79, 82, 211, 0.2);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary, #111130);
  transition: all 0.3s ease;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: rgba(79, 82, 211, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(79, 82, 211, 0.15);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: rgba(79, 82, 211, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-btn, .btn-modern {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-btn:hover, .btn-modern:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 82, 211, 0.3);
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-info-card i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-info-card h3 {
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary, #111130);
}

.contact-info-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* Section Spacing */
.page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero {
    padding: 3.5rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero p.lead {
    font-size: 15px;
  }

  .glass-card, .contact-form {
    padding: 1.5rem;
  }

  .stories-grid, .services-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 576px) {
  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .page-hero h1 {
    font-size: 24px;
    margin-bottom: 0.6rem;
  }

  .glass-card {
    padding: 1.2rem;
  }

  .story-card, .service-card, .feature-card {
    padding: 1.5rem;
    min-height: 240px;
  }
}
