/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary: #1a73e8;
  --secondary: #34a853;
  --neutral-light: #f8f9fa;
  --neutral-medium: #dadce0;
  --neutral-dark: #202124;
  --accent: #fa7b17;
  --success: #0f9d58;
  --warning: #f4b400;
  --error: #d93025;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* ===== GLOBAL STYLES ===== */
html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-dark);
  background-color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Viewport height */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem; /* 40px */
}

h2 {
  font-size: 2rem; /* 32px */
}

h3 {
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
}

h4 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
}

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

a:hover {
  color: #0d5bbc;
}

.btn {
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #0d5bbc;
  border-color: #0d5bbc;
}

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

.btn-accent:hover {
  background-color: #e06700;
  border-color: #e06700;
  color: white;
}

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

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

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-padding {
  padding: 5rem 0;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-light {
  background-color: var(--neutral-light) !important;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-medium);
  border-radius: 4px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

/* ===== HEADER ===== */
.navbar {
  padding: 1rem 2rem;
  background-color: white;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.navbar-nav .nav-item {
  margin: 0 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-user {
  display: flex;
  align-items: center;
}

.navbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.navbar-user-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100px;
  cursor: pointer;
}

.navbar-user-credits {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #495057;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ===== FEATURES SECTION ===== */
.features-card {
  padding: 2rem;
  height: 100%;
  text-align: center;
}

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

.features-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.testimonial-card .quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author-title {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ===== STATS SECTION ===== */
.stats-container {
  background-color: var(--primary);
  padding: 4rem 0;
  color: white;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ===== PRICING SECTION ===== */
.pricing-card {
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--neutral-medium);
  height: 100%;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(26, 115, 232, 0.15);
}

.pricing-card .popular-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0;
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
}

.pricing-card .feature-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.pricing-card .feature-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f1f1;
}

.pricing-card .feature-list li:last-child {
  border-bottom: none;
}

/* ===== HOW IT WORKS ===== */
.step-card {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 1.5rem;
}

.step-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.step-connector {
  position: absolute;
  top: 60px;
  right: -30px;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
  z-index: 1;
}

.step-connector:after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(45deg);
}

/* ===== FAQ SECTION ===== */
.accordion-item {
  border: 1px solid var(--neutral-medium);
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(26, 115, 232, 0.05);
  color: var(--primary);
  box-shadow: none;
}

.accordion-body {
  padding: 1.25rem;
}

/* ===== MODALS ===== */
.modal-content {
  border: none;
  border-radius: 8px;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0.5rem 1.5rem 1.5rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--neutral-medium);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-login-btn i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.google-btn {
  background-color: white;
  color: #444;
  border: 1px solid #ddd;
}

.google-btn:hover {
  background-color: #f8f8f8;
}

.facebook-btn {
  background-color: #1877f2;
  color: white;
  border: 1px solid #1877f2;
}

.facebook-btn:hover {
  background-color: #166fe5;
}

/* ===== USER DASHBOARD ===== */
.dashboard-container {
  margin-top: 2rem;
  display: none;
}

.dashboard-sidebar {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.dashboard-sidebar .user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-medium);
}

.dashboard-sidebar .user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.dashboard-sidebar .user-info {
  flex: 1;
}

.dashboard-sidebar .user-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.dashboard-sidebar .user-plan {
  color: var(--primary);
  font-size: 0.875rem;
}

.dashboard-sidebar .nav-link {
  padding: 0.75rem 0;
  color: var(--neutral-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.dashboard-sidebar .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  width: 20px;
  text-align: center;
}

.dashboard-sidebar .nav-link.active {
  color: var(--primary);
}

.dashboard-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-medium);
}

.generation-history-item {
  padding: 1rem;
  border: 1px solid var(--neutral-medium);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.generation-history-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.generation-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.generation-history-title {
  font-weight: 600;
  margin: 0;
}

.generation-history-date {
  font-size: 0.875rem;
  color: #6c757d;
}

.generation-history-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.generation-history-tag {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.generation-history-preview {
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 1rem;
  max-height: 3.5rem;
  overflow: hidden;
}

/* ===== GENERATOR INTERFACE ===== */
.generator-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  overflow: hidden;
}

.generator-sidebar {
  background-color: #f8f9fa;
  padding: 2rem;
  border-right: 1px solid var(--neutral-medium);
}

.generator-form-group {
  margin-bottom: 1.5rem;
}

.generator-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.difficulty-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.difficulty-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.difficulty-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.question-type-item {
  margin-bottom: 0.5rem;
}

.generator-preview {
  padding: 2rem;
  position: relative;
}

.generator-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #6c757d;
}

.generator-preview-placeholder i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--neutral-medium);
}

.generator-preview-content {
  display: none;
}

.generator-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  display: none;
}

.generator-loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--neutral-medium);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.question-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-medium);
}

.question-text {
  font-weight: 600;
  margin-bottom: 1rem;
}

.question-options {
  margin-left: 1.5rem;
}

.question-option {
  margin-bottom: 0.5rem;
}

.question-answer {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: rgba(52, 168, 83, 0.1);
  border-radius: 4px;
  color: var(--secondary);
  font-weight: 500;
}

.preview-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-medium);
}

.toggle-answers-btn {
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--neutral-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
}

.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .btn {
  padding: 0.75rem 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199px) {
  .navbar {
    padding: 1rem;
  }
  .navbar.scrolled {
    padding: 0.5rem 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 4rem 0;
  }
  .hero {
    padding: 5rem 0;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .step-connector {
    display: none;
  }
  .generator-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--neutral-medium);
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 3rem 0;
  }
  .hero {
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
  .pricing-card {
    margin-bottom: 1.5rem;
  }
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Section visibility for SPA */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

#generator-section {
  padding-top: 7rem;
  min-height: calc(100vh - 100px);
  background-color: var(--neutral-light);
}

#dashboard-section {
  padding-top: 7rem;
  min-height: calc(100vh - 100px);
  background-color: var(--neutral-light);
}

/* Payment Process */
.payment-steps {
  display: flex;
  margin-bottom: 2rem;
}

.payment-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.payment-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 15px;
  right: -30%;
  width: 60%;
  height: 2px;
  background-color: var(--neutral-medium);
}

.payment-step.active:not(:last-child):after,
.payment-step.completed:not(:last-child):after {
  background-color: var(--primary);
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--neutral-medium);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.payment-step.active .step-icon,
.payment-step.completed .step-icon {
  background-color: var(--primary);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.payment-step.active .step-label {
  color: var(--primary);
}

.payment-form-container {
  padding: 2rem;
  border: 1px solid var(--neutral-medium);
  border-radius: 8px;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: all 0.3s ease;
  transform: translateX(120%);
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-error {
  border-left: 4px solid var(--error);
}

.notification-warning {
  border-left: 4px solid var(--warning);
}

.notification-info {
  border-left: 4px solid var(--primary);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.notification-title {
  font-weight: 600;
  margin: 0;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #6c757d;
}

.notification-message {
  font-size: 0.875rem;
  margin: 0;
}

/* Ensure terms and privacy policy modals are above other modals */
#termsModal,
#privacyModal {
  z-index: 2050 !important;
}

/* Ensure only the topmost backdrop is visible */
/* .custom-backdrop {
          position: fixed;
          top: 0;
          left: 0;
          width: 100vw;
          height: 100vh;
          background-color: rgba(0, 0, 0, 0.5);
          z-index: 2000;
        } */
.relative {
  position: relative;
}

/* Custom select styles */
.form-select {
  background-color: #ffffff !important;
  border: 1px solid #ced4da;
  color: #212529;
}

/* Custom styles specifically for GradeLevel and Subject dropdowns */
#grade-select,
#subject-select {
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#grade-select:focus,
#subject-select:focus {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Add the following CSS in styles section */
main {
  flex: 1; /* Make main element fill remaining space */
}

#how-it-works-section {
  padding-top: 7rem;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

#how-it-works-section section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#how-it-works-section .container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#how-it-works-section .row:last-child {
  margin-top: auto;
}
