/* CSS Variables for Consistent Theming */
:root {
  --primary-color: #ffffff; /* White for high contrast */
  --secondary-color: #0e1111;
  --accent-color: #11A8FF;
  
  /* Updated background gradient to blue and light purple */
  --background-gradient: radial-gradient(circle at center, #007bff, #66b2ff, #c299ff);
  
  --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.2); /* Reduced intensity */
  --text-shadow-hero: 2px 2px 6px rgba(0, 0, 0, 0.6); /* Enhanced shadow */
  
  /* New Accent Text Color */
  --accent-text-color: #007BFF;
}

/* Highlight Text Styling */
.highlight-text {
  color: var(--accent-text-color); /* Blue color #007BFF */
  font-weight: 500; /* Slightly thinner font */
}

/* Universal Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* General Styles */
html, body {
  width: 100%;
  height: 100vh;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: #1e1e1e; /* Fallback background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Homework Helper Form Container */
#AI-Homework-Helper-Question-Box {
  width: 100vw; /* Full viewport width */
  /* Removed height and overflow to prevent clipping */
  /* height: 100vh; <-- REMOVED */
  /* overflow: hidden; <-- REMOVED */

  /* Updated padding to shift content down by 200px */
  padding: 240px 20px 20px 20px; /* Top padding increased by 200px */

  background: var(--background-gradient);
  background-size: 200% 200%; /* Reduced from 400% for performance */
  animation: gradientAnimation 30s ease infinite; /* Slower animation for better performance */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 0; /* Set to 0 for a seamless look */
  box-shadow: none;
  border: none;
  outline: none;
  /* overflow: hidden; <-- REMOVED */
  position: relative; /* For positioning child elements */
}

/* Gradient Animation Keyframes */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero Header Container */
.hero-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px 0; /* Removed top margin as padding handles the shift */
}

/* H1 Hero Heading Styling */
.hero-heading {
  font-size: 3rem;
  text-align: center;
  margin: 0 0 20px 0;
  color: var(--primary-color); /* White color for contrast */
  text-shadow: var(--text-shadow-hero); /* Enhanced shadow */
  animation: fadeInUp 1s ease-out forwards;
}

/* Change color of the subheading */
.hero-heading .subheading {
  color: #f1f1f1; /* Light Blue to complement the gradient */
}

/* Change color of the highlight */
.hero-heading .highlight {
  color: #ffffff; /* Light Purple to complement the gradient */
  /* Alternatively, use White for higher contrast:
  color: #ffffff; 
  */
}

/* Homework Helper Form Styling */
.homework-helper {
  width: 100%;
  max-width: 1100px; /* Constrain form to 900px */
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(36, 39, 43, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow-light);
  margin: 0 auto; /* Center the form within the parent container */
  border: none; /* Ensure no borders */
  outline: none; /* Ensure no outlines */
}

/* Top-Level Form Fields */
.homework-helper .top-level {
  display: flex;
  gap: 20px;
}

/* Individual Form Fields */
.homework-helper .field {
  flex-grow: 1;
  background-color: rgba(36, 39, 43, 0.8);
  border-radius: 8px;
  padding: 10px;
  border: none; /* Remove any borders */
  outline: none; /* Remove any outlines */
}

/* Larger Field for Questions */
.homework-helper .field.question {
  flex-grow: 2;
}

/* Form Labels */
.homework-helper label {
  color: #FFFFFF;
  display: block; /* Ensure labels take full width */
  margin-bottom: 5px; /* Add spacing below labels */
}

/* Select and Textarea Inputs */
.homework-helper select, .homework-helper textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  background-color: #313538;
  color: white;
  border: none;
  font-size: 1rem; /* Ensure readable font size */
  outline: none; /* Remove default outlines */
}

/* Textarea Specific Styles */
.homework-helper textarea {
  height: 100px;
  resize: none;
}

/* Submit Button Container */
.homework-helper .submit-btn {
  display: flex;
  justify-content: center;
}

/* Submit Button Styling */
.homework-helper button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  width: 150px;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.3s ease;
  outline: none; /* Remove default outlines */
}

/* Submit Button Hover Effect */
.homework-helper button:hover {
  background-color: #0d7ecf; /* Darker shade on hover */
}

/* AI Response Container Styling */
.response-box {
  width: 100%;
  max-width: 900px;
  
  /* Center the box by setting horizontal margins to auto */
  margin: 20px auto 0 auto; /* Top margin of 20px, horizontal margins auto */

  padding: 20px;
  background-color: rgba(36, 39, 43, 0.8);
  border-radius: 8px;
  box-shadow: none; /* Removed box-shadow to eliminate outlines */
  color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  will-change: opacity, transform; /* Hint for better performance */
  border: none; /* Remove any borders */
  outline: none; /* Remove any outlines */
}

/* Visible State for Response Box */
.response-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Response Box Heading */
.response-box h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
  color: var(--primary-color); /* White color for contrast */
}

/* AI Answer Styling */
.ai-answer {
  background-color: #313538;
  padding: 15px;
  border-radius: 5px;
  min-height: 100px;
  white-space: pre-wrap; /* Preserves line breaks */
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  outline: none;
}

/* Focus State for AI Answer */
.ai-answer:focus {
  outline: 2px solid var(--accent-color);
}

/* Free Questions Remaining Indicator Styling */
.free-questions-badge {
  position: absolute;
  bottom: 10px; /* 10 pixels from the bottom */
  right: 10px;  /* 10 pixels from the right */
  background-color: transparent; /* Make background transparent */
  color: var(--primary-color); /* Ensure text is visible over the dark background */
  padding: 8px 12px; /* Adjust padding as needed */
  font-size: 0.9rem;
  font-weight: bold; /* Make text bold */
  border-radius: 0; /* Remove border-radius for a sleek look */
  box-shadow: none; /* Remove box-shadow for performance */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle text shadow for readability */
}

.learn-smarter {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #0e1111; /* Updated font color */
}

.learn-smarter h2 {
  font-size: 1.6em;
}

.learn-smarter p {
  margin-top: 0;
  font-size: .95em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 0px;
}

.feature {
  text-align: left;
  background: rgba(255, 255, 255, 0.1); /* Keep or adjust the background as needed */
  padding: 20px;
  border-radius: 10px;
  color: #0e1111; /* Apply the new font color to text within features too */
}

.icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 24px;
  color: white; /* Keeping the icon text color white for contrast */
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.2rem;
  }

  .homework-helper .top-level {
    flex-direction: column;
    gap: 15px;
  }

  .homework-helper label {
    font-size: 1rem;
  }

  .submit-btn button {
    width: 100%;
  }

  .response-box {
    padding: 15px;
    margin: 20px auto 0 auto; /* Ensure horizontal centering remains */
  }

  .free-questions-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
    bottom: 10px; /* Maintain 10px distance */
    right: 10px;  /* Maintain 10px distance */
  }
}

@media (max-width: 480px) {
  .hero-container {
    margin-top: 50px; /* Reduced margin-top */
  }

  .hero-heading {
    font-size: 1.8rem;
  }

  .homework-helper {
    padding: 15px;
  }

  .homework-helper label {
    font-size: 0.95rem;
  }

  .homework-helper textarea {
    height: 100px;
  }

  .submit-btn button {
    font-size: 0.95rem;
    padding: 10px 20px;
    width: 140px;
  }

  .response-box {
    padding: 10px;
    margin: 20px auto 0 auto; /* Ensure horizontal centering remains */
  }

  .free-questions-badge {
    padding: 5px 8px;
    font-size: 0.7rem;
    bottom: 10px; /* Maintain 10px distance */
    right: 10px;  /* Maintain 10px distance */
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Spinner Styling */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: auto;
}

/* Error Message Styling */
.error-message {
  color: #ff4d4d;
  margin-top: 10px;
  font-size: 0.9rem;
  display: none; /* Hidden by default */
}

.error-message.visible {
  display: block;
}

/* Disabled Button Styling */
.button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Video Container */
.video-container {
  flex: 1;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Align items vertically center */
  align-items: center; /* Align items horizontally center */
  min-height: 400px;
  min-width: 300px; /* Ensures minimum width */
  position: relative;
  max-height: 720px; /* Prevents the container from exceeding 720px in height */
  overflow: hidden; /* Hides overflowing content */
  border-radius: 10px; /* Rounded corners for a sleek look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  background-color: #f9f9f9; /* Light background to complement the video */
  margin: 20px 0; /* Adds vertical spacing */
}

/* Video Styling */
.video-container video {
  width: 100%; /* Makes the video take full width of the container */
  height: auto; /* Maintains aspect ratio */
  max-width: 100%;
  max-height: 720px; /* Ensures video does not exceed container height */
  border-radius: 10px; /* Matches container's rounded corners */
}

/* Infographic Section Styling */
.infographic-section {
  padding: 50px 20px;
  background-color: #f9f9f9; /* Light background to match site theme */
  color: var(--secondary-color); /* Dark text for readability */
  text-align: center;
}

.infographic-heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--secondary-color);
  /* Removed text-shadow for cleaner look on light background */
}

.infographic-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
}

.infographic-item {
  background-color: #ffffff; /* White background for infographic items */
  border-radius: 12px;
  padding: 30px 20px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.infographic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.infographic-item:hover .icon {
  transform: scale(1.1);
}

.infographic-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.infographic-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .infographic-container {
    gap: 30px;
  }

  .infographic-item {
    width: 220px;
    padding: 25px 15px;
  }

  .infographic-heading {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .infographic-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .infographic-item {
    width: 80%;
    max-width: 400px;
  }

  .infographic-heading {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .infographic-section {
    padding: 30px 15px;
  }

  .infographic-heading {
    font-size: 1.8rem;
  }

  .infographic-item {
    width: 100%;
    max-width: 350px;
    padding: 20px 10px;
  }

  .infographic-title {
    font-size: 1.3rem;
  }

  .infographic-description {
    font-size: 0.95rem;
  }
}

/* Step-by-Step Infographic Section Styling */
.step-by-step-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background to match site theme */
  color: var(--secondary-color); /* Dark text for readability */
  text-align: center;
}

.step-heading {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: 700; /* Bold for prominence */
}

.step-subheading {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555555;
  font-weight: 400;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
  gap: 40px;
  padding-bottom: 20px;
}

.step-item {
  background-color: #f0f8ff; /* Light blue background for step items */
  border-radius: 12px;
  padding: 30px 20px;
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0; /* Prevent items from shrinking */
  position: relative;
}

.step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.step-icon .emoji {
  display: block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: #ffffff;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.step-item:hover .step-icon .emoji {
  transform: scale(1.1);
  background-color: var(--accent-color);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: 600; /* Semi-bold for prominence */
}

.step-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
  font-weight: 400; /* Regular weight for readability */
}

/* Decorative Arrow Styling */
.decorative-arrow {
  font-size: 2rem;
  color: #e0e0e0;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.decorative-arrow:hover {
  color: var(--accent-color);
}

/* Scrollbar Styling for steps-container */
.steps-container::-webkit-scrollbar {
  height: 8px;
}

.steps-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.steps-container::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.steps-container::-webkit-scrollbar-thumb:hover {
  background: #0d7ecf;
}

@media (max-width: 1200px) {
  .steps-container {
    gap: 30px;
  }

  .step-item {
    width: 200px;
    padding: 25px 15px;
  }

  .step-heading {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .steps-container {
    gap: 25px;
  }

  .step-item {
    width: 180px;
    padding: 20px 10px;
  }

  .step-heading {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .decorative-arrow {
    display: none; /* Hide decorative arrows on smaller screens */
  }
}

@media (max-width: 480px) {
  .step-by-step-section {
    padding: 30px 15px;
  }

  .step-heading {
    font-size: 1.8rem;
  }

  .step-item {
    width: 100%;
    max-width: 350px;
    padding: 20px 10px;
  }

  .step-title {
    font-size: 1.3rem;
  }

  .step-description {
    font-size: 0.95rem;
  }
}

/* Additional Animations */
.step-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

.step-item:nth-child(1) {
  animation-delay: 0.3s;
}

.step-item:nth-child(2) {
  animation-delay: 0.5s;
}

.step-item:nth-child(3) {
  animation-delay: 0.7s;
}

.step-item:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ Section Styling */
.faq-section {
  width: 100%;
  max-width: 900px;
  margin: 50px auto; /* Adds vertical spacing above and centers the section */
  padding: 20px;
  /* Removed background-color for a cleaner look */
  /* background-color: rgba(36, 39, 43, 0.8); */
  border-radius: 8px;
  box-shadow: var(--box-shadow-light);
}

.faq-heading {
  font-size: 2rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-item details {
  /* Removed background-color for a transparent look */
  /* background-color: rgba(49, 53, 56, 0.9); */
  border-radius: 5px;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item details[open] {
  /* Optionally, add styles when open if desired */
  /* background-color: rgba(49, 53, 56, 1); */
}

.faq-item summary {
  font-size: 1.1rem;
  font-weight: 500; /* Slightly thinner font */
  color: #0e1111; /* Dark color for visibility */
  outline: none;
  position: relative;
}

.faq-item summary::marker {
  display: none; /* Removes default marker */
}

.faq-item summary::after {
  content: '➤'; /* Custom arrow indicator */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1rem;
  color: #0e1111; /* Arrow color */
}

.faq-item details[open] summary::after {
  transform: translateY(-50%) rotate(90deg); /* Rotates arrow when open */
  color: var(--accent-color); /* Change arrow color when open */
}

.faq-item p {
  margin-top: 10px;
  color: #0e1111; /* Dark color for visibility */
  line-height: 1.5;
  font-size: 1rem;
}

/* Change question and answer colors when open */
.faq-item details[open] summary {
  color: var(--accent-color); /* Change question color when open */
}

.faq-item details[open] p {
  color: var(--secondary-color); /* Change answer color when open */
}

/* Responsive Adjustments for FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 15px;
    margin: 30px auto;
  }

  .faq-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .faq-item summary {
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 10px;
    margin: 20px auto;
  }

  .faq-heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .faq-item summary {
    font-size: 0.95rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }
	
	
}


/* Import Rowdies Font */
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@400;700&display=swap');

/* CSS Variables for Reusability */
:root {
  --accent-color: #81d4fa;
  --accent-hover-color: #4fc3f7;
  --text-color-dark: #0e1111;
  --text-color-medium: #555555;
  --overlay-color: rgba(129, 212, 250, 0.7);
  --font-family: 'Rowdies', cursive;
}

/* Custom Infographic Section Styling */
.custom-infographic-section {
  padding: 50px 20px;
  /* Removed background-color for transparency */
  background-color: transparent;
  text-align: center;
  font-family: var(--font-family); /* Applied Rowdies font */
}

/* Infographic Grid Layout */
.infographic-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px; /* Space between grid items */
}

/* Infographic Item Styling */
.infographic-item {
  /* Removed background-color for transparency */
  background-color: transparent;
  
  /* Removed box-shadow for a cleaner look */
  /* If you still want some separation between items without a background, consider a subtle border */
  border: 1px solid #e0e0e0;
  
  border-radius: 10px;
  overflow: hidden;
  width: calc(33.333% - 40px); /* Three items per row with gaps */
  transition: transform 0.3s ease;
}

/* Hover Effect for Infographic Items */
.infographic-item:hover {
  transform: translateY(-5px);
}

/* Image Wrapper for Overlay */
.image-wrapper {
  position: relative;
  width: 100%;
  /* height: 200px; */ /* Removed fixed height to allow dynamic sizing */
  overflow: hidden;
}

/* Infographic Image Styling */
.infographic-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.infographic-item:hover .infographic-image {
  transform: scale(1.05);
}

/* Overlay Styling */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color); /* Semi-transparent overlay with #81d4fa */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.overlay p {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Infographic Title Styling */
.infographic-title {
  font-size: 1.5rem;
  margin: 15px 0 10px 0;
  color: var(--text-color-dark); /* Dark color for readability */
  font-weight: 700; /* Bold for prominence */
}

/* Infographic Info Box Styling */
.infographic-info {
  padding: 0 15px 15px 15px;
}

.infographic-info p {
  font-size: 1rem;
  color: var(--text-color-medium);
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Infographic Link Styling */
.infographic-link {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700; /* Thicker font */
  color: var(--accent-color); /* Blue color #81d4fa */
  text-decoration: none; /* Remove underline */
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

/* Thicker Arrow in the After Pseudo-element */
.infographic-link::after {
  content: '➔'; /* Changed from '→' to a thicker arrow '➔' */
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-color); /* Arrow color */
  transition: transform 0.3s ease;
  font-weight: bold; /* Make the arrow bolder */
}

.infographic-link:hover {
  color: var(--accent-hover-color); /* Slightly darker shade on hover */
  transform: translateY(-2px);
}

.infographic-link:hover::after {
  transform: translateX(4px);
}

/* Responsive Design */

/* Large Screens: Two Rows, Three Columns */
@media (min-width: 993px) {
  .infographic-grid {
    /* Already set to three columns */
  }
}

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
  .infographic-grid {
    gap: 30px;
  }

  .infographic-item {
    width: calc(50% - 30px); /* Two items per row */
  }
}

/* Small Screens (Mobiles) */
@media (max-width: 768px) {
  .infographic-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .infographic-item {
    width: 80%; /* Single column with some margins */
  }
}

@media (max-width: 480px) {
  .custom-infographic-section {
    padding: 30px 15px;
  }

  .infographic-title {
    font-size: 1.3rem;
    margin: 10px 0 8px 0;
  }

  .infographic-info p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .infographic-link {
    font-size: 0.9rem;
    /* Adjusting font size for smaller screens */
  }

  .image-wrapper {
    height: 150px; /* Reduced height for smaller screens */
  }

  .overlay p {
    font-size: 1rem;
  }
}

/* Centering the Custom Text Section */
.custom-text-section {
  text-align: center;          /* Centers the text within the section */
  margin: 0 auto;              /* Centers the section within its parent container */
  max-width: 800px;            /* Sets a maximum width for better readability */
  padding: 20px;               /* Optional: Adds padding for spacing */
}




