/* ===========================================
   Grants Landing Page Styles
   =========================================== */

/* Grants Page Specific Styles */
.grants-hero {
  padding: 4rem 0 5rem;
  padding-top: 30px;
  background: rgba(37,117,252,0.04);
}

.grants-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(30, 58, 95, 0.1);
  color: #1e3a5f;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: 'Roboto', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.grants-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 1.25rem;
}

.grants-hero-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 540px;
}

.grants-hero-image {
  overflow: hidden;
}

.grants-hero-image img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.grants-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.grants-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .grants-hero .col-lg-6.order-lg-1 {
    order: -1 !important;
    margin-bottom: 2rem;
  }

  .grants-hero-image img {
    width: 70%;
  }
}

@media (max-width: 767px) {
  /* Reduce header offset on mobile */
  body:has(header.site-header) {
    padding-top: 40px !important;
  }

  /* Add horizontal margins to containers */
  .grants-hero .container,
  section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grants-hero {
    padding: 2.5rem 0 3rem;
    padding-top: 20px;
  }

  /* Center hero content on mobile */
  .grants-hero .col-lg-6:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .grants-hero-badge {
    justify-content: center;
    order: 1;
    align-self: center;
  }

  .grants-hero-title {
    order: 2;
    font-size: 1.75rem;
    font-weight: 800;
    padding: 0 1rem;
  }

  /* Move CTAs directly below title */
  .grants-hero-actions {
    order: 3;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
  }

  .grants-hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 2rem;
  }

  /* Hide subtitle on mobile */
  .grants-hero-subtitle {
    display: none;
  }

  /* Reduce space between hero image and badge */
  .grants-hero .col-lg-6.order-lg-1 {
    margin-bottom: 0.75rem !important;
  }

  .grants-hero-image img {
    width: 85%;
  }

  /* Add padding to all section containers */
  .grants-strong-fit-section .container,
  .grants-state-section .container,
  .grants-steps-section .container,
  .grants-faq-section .container,
  .grants-cta-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Card internal padding on mobile */
  .grants-feature-card {
    padding: 1.5rem 1rem;
  }

  .grants-program-card {
    padding: 1.5rem 1rem;
  }

  .grants-doc-card {
    padding: 1.5rem 1rem;
  }

  .row>* {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}

/* Strong Fit Section - dark background like CTA */
.grants-strong-fit-section {
  background: #0f172a;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.grants-strong-fit-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(37,117,252,0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.grants-strong-fit-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: rgba(213,0,249,0.15);
  border-radius: 50%;
  filter: blur(80px);
}

.grants-strong-fit-section .container {
  position: relative;
  z-index: 1;
}

.grants-strong-fit-section .grants-section-header h2 {
  color: #fff;
}

.grants-strong-fit-section .grants-section-header p {
  color: rgba(255,255,255,0.8);
}

/* Feature Cards - matches partners page program-card style */
.grants-feature-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.grants-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.grants-feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.grants-feature-icon.icon-blue { background: var(--primary); }
.grants-feature-icon.icon-green { background: #22c55e; }
.grants-feature-icon.icon-purple { background: #764ba2; }
.grants-feature-icon.icon-orange { background: #f97316; }

.grants-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.grants-feature-card p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: center;
}

/* Program Cards */
.grants-program-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.grants-program-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 64, 129, 0.1);
}

.grants-program-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  background: rgba(37,117,252,0.1);
}

.grants-program-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.grants-program-card p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Steps Section - matches Strong Fit section styling */
.grants-steps-section {
  background: #0f172a;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.grants-steps-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(37,117,252,0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.grants-steps-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: rgba(213,0,249,0.15);
  border-radius: 50%;
  filter: blur(80px);
}

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

.grants-steps-container {
  display: inline-block;
  text-align: left;
}

.grants-steps-wrapper {
  text-align: center;
}

.grants-step {
  position: relative;
  padding-left: 4.5rem;
  margin-bottom: 2.5rem;
}

.grants-step:last-child {
  margin-bottom: 0;
}

.grants-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.grants-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.grants-step p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .grants-step {
    padding-left: 3.5rem;
  }
  .grants-step-number {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* Documentation Cards */
.grants-doc-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.grants-doc-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.grants-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.grants-doc-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.grants-doc-content p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.5;
}

/* State Selector Section */
.grants-state-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.grants-state-selector {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.grants-state-selector select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  cursor: pointer;
  transition: border-color 0.2s;
}

.grants-state-selector select:focus {
  outline: none;
  border-color: var(--primary);
}

.grants-state-info {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: none;
}

.grants-state-info.active {
  display: block;
}

.grants-state-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.grants-state-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.grants-state-info-item:last-child {
  border-bottom: none;
}

.grants-state-info-item i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* FAQ Section */
.grants-faq-section {
  padding: 5rem 0;
}

.grants-faq-item {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.grants-faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.grants-faq-question:hover {
  background: #f9fafb;
}

.grants-faq-question i,
.grants-faq-question img.hugeicon {
  font-size: 1.25rem;
  color: #6b7280;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.grants-faq-item.active .grants-faq-question i,
.grants-faq-item.active .grants-faq-question img.hugeicon {
  transform: rotate(180deg);
}

.grants-faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.grants-faq-item.active .grants-faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

.grants-faq-answer p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0;
}

/* CTA Section */
.grants-cta-section {
  padding: 5rem 0;
}

.grants-cta-box {
  background: #0f172a;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.grants-cta-box::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: rgba(37,117,252,0.3);
  border-radius: 50%;
  filter: blur(60px);
}

.grants-cta-box::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(213,0,249,0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.grants-cta-content {
  position: relative;
  z-index: 1;
}

.grants-cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.grants-cta-box p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.grants-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 767px) {
  .grants-cta-box {
    padding: 3rem 1.5rem;
  }
  .grants-cta-box h2 {
    font-size: 1.5rem;
  }
  .grants-cta-actions {
    flex-direction: column;
  }
  .grants-cta-actions .btn {
    width: 100%;
  }
}

/* Common Button Styles */
.btn-gradient {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gradient i,
.btn-outline-primary i,
.btn-outline-white i {
  display: inline-flex;
  align-items: center;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 64, 129, 0.3);
  color: #fff;
}

/* Grants Hero Button Styles - Darker colors */
.btn-grants-primary {
  background: #1e3a5f;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-grants-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.4);
  background: #2a4a73;
  color: #fff;
}

.btn-grants-secondary {
  background: transparent;
  border: 2px solid #1e3a5f;
  color: #1e3a5f;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-grants-secondary:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.btn-grants-secondary:hover img {
  filter: brightness(0) invert(1) !important;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Section headers */
.grants-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.grants-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.grants-section-header p {
  font-size: 1.0625rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Notice banner - pill style centered */
.grants-notice-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.grants-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e0f2fe;
  border: 1px solid #2575fc;
  border-radius: 9999px;
  padding: 10px 20px;
}

.grants-notice p {
  font-size: 0.875rem;
  color: #1e40af;
  margin-bottom: 0;
  line-height: 1;
}
