html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%; 
  background-image: url('../img/background.jpg'); /* Path to your background image */
  background-size: cover; /* Ensure the image covers the full screen */
  background-repeat: no-repeat; /* Prevent tiling */
  background-position: center center; /* Center the image */
  background-attachment: fixed; /* Keep the background fixed on scroll */
  
}

/* ---------------- Section Header ----------------- */
.section-header {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.section-header h1 {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
   font-size: 2.7rem;
    color: #000000; /* Deep blue for strong impact */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem; /* Space for the line */
    text-align: center;
    margin-top: 67px;
    position: relative;
}
.section-header h1::after {
    content: '';
    display: block;
    width: 550px;
    height: 6px;
    background: linear-gradient(90deg, #940bfc, #02fddc);
    margin: 0 auto;
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Introduction Section */
.introduction-section {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0; /* Reduced padding to minimize gap */
}
.introduction-content {
  padding: 1rem;
}
.introduction-content h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #1b02a8; /* Vivid blue for clarity */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.introduction-content p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #000000; 
  line-height: 1.8;
}


/* Media Query for Tablets (e.g., iPad, 768px - 1024px) */
@media (max-width: 1024px) {
  /* Introduction Section Adjustments */
  .introduction-section {
    padding: 1.5rem 1rem;
  }
  .introduction-content h2 {
    font-size: 2.6rem; /* Font size adjustment */
    line-height: 1.4; /* Line height adjustment */
  }
  .introduction-content p {
    font-size: 1.4rem; /* Font size adjustment */
    line-height: 1.6; /* Line height adjustment */
  }
}

/* Media Query for Small Tablets and Large Phones (e.g., 480px - 768px) */
@media (max-width: 768px) {
  /* Introduction Section Adjustments */
  .introduction-section {
    flex-direction: column; /* Stack elements vertically */
    padding: 1rem;
  }
  .introduction-content h2 {
    font-size: 2.4rem; /* Font size adjustment */
    line-height: 1.3; /* Line height adjustment */
  }
  .introduction-content p {
    font-size: 1.2rem; /* Font size adjustment */
    line-height: 1.5; /* Line height adjustment */
  }

  
}

/* Media Query for Mobile Phones (e.g., 320px - 480px) */
@media (max-width: 480px) {
  /* Introduction Section Adjustments */
  .introduction-section {
    padding: 0.5rem; /* Minimal padding for small screens */
  }
  .introduction-content h2 {
    font-size: 2.2rem; /* Font size adjustment */
    line-height: 1.2; /* Line height adjustment */
  }
  .introduction-content p {
    font-size: 1rem; /* Font size adjustment */
    line-height: 1.4; /* Line height adjustment */
  }

  .section-header h1 {
    font-size: 2rem;
    margin-top: 40px;
  }
  .section-header h1::after {
    width: 300px;
    height: 4px;
  }  

}

/* Media Query for Very Small Devices (e.g., < 320px) */
@media (max-width: 320px) {
  /* Introduction Section Adjustments */
  .introduction-content h2 {
    font-size: 2rem; /* Font size adjustment */
    line-height: 1.2; /* Line height adjustment */
  }
  .introduction-content p {
    font-size: 0.8rem; /* Font size adjustment */
    line-height: 1.3; /* Line height adjustment */
  }
}

/* ---------------- Software Solutions Section ----------------- */
.software {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 45px auto 105px;
  padding: 0px;
  box-sizing: border-box;
  max-width: 90%; /* Adjust width to fit content */
}

/* Heading Styling */
.software-heading {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #1b02a8; /* Vivid blue for clarity */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------------- Slider Section ----------------- */
.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 400px;
}

.cards-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  position: absolute;
  width: 380px;
  height: 400px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  animation: cardBackgroundAnimation 8s ease infinite;
}

/* Card Positions */
.card:nth-child(1) { left: 30%; opacity: 0.5; transform: translateX(-50%) scale(0.8); z-index: 1; }
.card:nth-child(2) { left: 50%; opacity: 1; transform: translateX(-50%) scale(1); z-index: 2; }
.card:nth-child(3) { left: 70%; opacity: 0.5; transform: translateX(-50%) scale(0.8); z-index: 1; }
.card:nth-child(n + 4) { opacity: 0; }

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  margin: 20px 0 15px;
  font-size: 1.6em;
  font-family: 'Quicksand', sans-serif;
}

.card button {
  padding: 10px 20px;
  background: #1e3fe3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  text-transform: uppercase;
  font-family: 'Quicksand', sans-serif;
}

/* ---------------- Navigation Buttons ----------------- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1e3fe3;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 14px 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}

.nav-btn:hover { background: rgba(0, 0, 0, 0.8); }

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* ---------------- Dialog Box Styling ----------------- */
dialog {
  width: 80%; /* Default width */
  max-width: 600px; /* Maximum width for larger screens */
  border: none;
  border-radius: 15px;
  padding: 30px; /* Default padding */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Perfect centering */
  background: #fff;
  overflow-y: auto; /* Handle long content */
  max-height: 90vh; /* Limit height for smaller screens */
  margin: 0; /* Remove any default margins */
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent backdrop */
  backdrop-filter: blur(5px); /* Blur effect for modern browsers */
  position: fixed; /* Lock it to the viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove any default spacing */
  padding: 0;
  z-index: -1; /* Ensure it’s behind the dialog */
}


.dialog-content {
  padding: 20px; /* Padding inside the dialog */
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
}

/* Style for the list container */
#dialogList {
  list-style: none; /* Remove default bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

/* Style for list items with star bullets */
#dialogList li {
  margin-bottom: 10px; /* Space between list items */
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #000000;
  position: relative; /* For positioning the star */
  padding-left: 32px; /* Space for the star */
}

/* Add star before each list item */
#dialogList li::before {
  content: '🌟'; /* Unicode star character */
  position: absolute;
  left: 0;
  color: #e6db0a; /* Match your heading color */
  font-size: 1.2rem; /* Same size as text */
}

/* Dialog Heading Font */
#infoDialog h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1b02a8;
  margin-bottom: 1rem;
}

/* ---------------- Responsive Media Queries ----------------- */
/* For screens up to 1280px */
@media (max-width: 1280px) {
  .software-heading {
    font-size: 2.2rem;
  }
  .slider-container {
    max-width: 1000px;
  }
  .card {
    width: 320px;
    height: 370px;
  }
  .card img {
    height: 220px;
  }
  .software {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 45px auto 65px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 90%; /* Adjust width to fit content */
  }
  
}

/* For screens up to 1024px */
@media (max-width: 1024px) {
  .software-heading {
    font-size: 2.4rem;
  }
  .slider-container {
    max-width: 900px;
  }
  .card {
    width: 300px;
    height: 350px;
  }
  .nav-btn {
    display: none; /* Hide navigation buttons */
  }

  .software {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 45px auto 60px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 90%; /* Adjust width to fit content */
  }
  
  
}

/* For screens up to 768px (Tablets) */
@media (max-width: 768px) {
  .software-heading {
    font-size: 2.2rem;
  }
  .slider-container {
    max-width: 700px;
  }
  .card {
    width: 90%;
    height: auto;
  }
  .card img {
    height: 200px;
  }
  dialog {
    width: 90%; /* Wider width for tablets */
    padding: 20px; /* Reduced padding */
    max-width: 500px; /* Slightly smaller max-width */
  }
  .dialog-content {
    padding: 15px; /* Reduced padding inside */
    font-size: 1em; /* Slightly smaller base font */
  }
  #infoDialog h2 {
    font-size: 1.8rem; /* Smaller heading */
  }
  #dialogList li {
    font-size: 1rem; /* Smaller text */
    line-height: 1.5; /* Adjusted line height */
    padding-left: 20px; /* Slightly less space for the star */
  }
  #dialogList li::before {
    font-size: 1rem; /* Scale star with text */
  }
  .software {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 45px auto 55px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 90%; /* Adjust width to fit content */
  }
  
}

/* For screens up to 480px (Mobile) */
@media (max-width: 480px) {
  .software-heading {
    font-size: 2rem;
  }
  .slider-container {
    max-width: 100%;
  }
  .card {
    width: 95%;
  }
  .card img {
    height: 180px;
  }
  dialog {
    width: 95%; /* Full-width for phones */
    padding: 15px; /* Minimal padding */
    max-width: 100%; /* Remove max-width constraint */
  }
   dialog::backdrop {
    background: rgba(0, 0, 0, 0.7); /* Fully opaque to block content */
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
  .dialog-content {
    padding: 10px; /* Minimal padding inside */
    font-size: 0.9em; /* Smaller base font */
  }
  #infoDialog h2 {
    font-size: 1.5rem; /* Even smaller heading */
  }
  #dialogList li {
    font-size: 0.9rem; /* Even smaller text */
    line-height: 1.4; /* Adjusted line height */
    padding-left: 18px; /* Minimal space for the star */
  }
  #dialogList li::before {
    font-size: 0.9rem; /* Scale star with text */
  }

  .software {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 45px auto 50px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 90%; /* Adjust width to fit content */
  }
  
}

/* For screens up to 380px (Small Mobile) */
@media (max-width: 320px) {
  .software-heading {
    font-size: 1.8rem;
  }
  .card h3 {
    font-size: 1.4em;
  }

  .software {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 45px auto 45px;
    padding: 0px;
    box-sizing: border-box;
    max-width: 90%; /* Adjust width to fit content */
  }
	
   dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
  
}
/* Combined Card */
.combined-card {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto; /* Center the card */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden; /* Ensures rounded corners apply to child elements */
  background: white;
}

/* Power BI Section */
.powerbi-section {
  padding: 30px 20px; /* Reduce padding slightly */
  background-color: transparent; /* No background needed since it's part of the card */
}

.powerbi-container {
  max-width: 1200px;
  width: 100%;
  overflow: hidden; /* Ensures rounded corners apply to child elements */
}

.powerbi-image {
  text-align: center; /* Centers the image horizontally */
  margin-top: 10px; /* Creates space between the image and the top edge */
}

.powerbi-image img {
  width: calc(100% - 80px); /* Reduces the image width by 40px (20px on each side) */
  height: auto; /* Maintains aspect ratio */
  display: inline-block; /* Ensures proper alignment */
  border-radius: 8px; /* Optional: Adds slight rounding to the image itself */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Adds shadow for depth */
}

.powerbi-content {
  padding: 30px 20px; /* Matches the horizontal padding of the image */
}

.powerbi-content h2 {
  font-size: 35px;
margin-bottom: 15px;
color: #1b02a8; /* Vivid blue for clarity */
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
font-family: 'Manrope', sans-serif;
font-weight: 700;
}

.powerbi-content p {
  font-size: 22px;
  font-family: 'Inter', sans-serif;
  color: #000000; 
  line-height: 1.6;
  margin-bottom: 20px;
}

.powerbi-benefits {
  list-style: none;
  padding: 0;
}

.powerbi-benefits li {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: #000000; 
  line-height: 1.3;
  padding: 8px 0;
  display: flex;
  align-items: center;
  font-weight: 400;
}

/* Tabbed Section */
.tabbed-section {
  padding: 30px 20px 30px; /* Remove top padding, keep bottom padding */
  background: transparent; /* No background needed */
  margin-top: 0; /* Remove margin between sections */
  box-shadow: none; /* Remove shadow since it's part of the combined card */
}

.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: #0a2fd4;
  color: #ffffff;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.tab-button.active {
  background: #65026c;
  color: white;
}

.tab-button:hover {
  background: #9802b2;
  color: white;
}

.tabs-content {
  display: flex;
  flex-direction: column;
}

.tab-content-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.tab-text {
  flex: 1;
  min-width: 300px;
}

.tab-text h3 {
  font-size: 30px;
  margin-bottom: 10px;
  color: #1b02a8;
  font-family: 'Quicksand', sans-serif;
}

.tab-text p {
  font-size: 22px;
  line-height: 1.3;
  color: #000000; 
  font-family: 'Inter', sans-serif;
}

.tab-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.tab-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Responsive Design for Tablets */
@media (max-width: 768px) {
  .combined-card {
    padding: 20px; /* Add padding for smaller screens */
  }

  .tabs {
    flex-direction: column;
  }

  .tab-button {
    margin-bottom: 10px;
  }

  .tab-content-layout {
    flex-direction: column;
  }

  .powerbi-content h2 {
    font-size: 23px;
  }

  .powerbi-content p {
    font-size: 16px;
  }

  .powerbi-benefits li {
    font-size: 14px;
  }

  .tab-text h3 {
    font-size: 18px;
  }

  .tab-text p {
    font-size: 14px;
  }
}

/* Responsive Design for Small Phones */
@media (max-width: 480px) {
  /* Combined Card Adjustments */
  .combined-card {
    padding: 15px; /* Reduced padding for smaller screens */
  }
  
.powerbi-content {
  padding: 5px 5px; /* Matches the horizontal padding of the image */
}

  /* Power BI Section Adjustments */
  .powerbi-image img {
    width: 100%; /* Further reduce image width */
    height:260px;
  }

  .powerbi-content h2 {
    font-size: 25px; /* Slightly smaller heading */
  }

  .powerbi-content p {
    font-size: 18px; /* Smaller paragraph text */
  }

  .powerbi-benefits li {
    font-size: 16px; /* Smaller list items */
  }

  /* Tabbed Section Adjustments */
  .tabs {
    flex-direction: column; /* Stack tabs vertically */
    gap: 10px; /* Add spacing between stacked tabs */
  }

  .tab-button {
    width: 100%; /* Make buttons full-width for better usability */
    padding: 10px 15px; /* Keep padding consistent (not thicker) */
    font-size: 14px; /* Maintain readable font size */
    text-align: center; /* Center-align text in buttons */
  }

  .tab-content-layout {
    flex-direction: column; /* Stack content vertically */
  }

  .tab-text h3 {
    font-size: 20px; /* Slightly smaller heading */
  }

  .tab-text p {
    font-size: 16px; /* Smaller paragraph text */
  }

  .tab-image img {
    width: 100%; /* Ensure images take up full width */
  }
}

/*CHoose */
   /* Section Container */
   .choose-section {
    padding: 100px 20px 100px;
    background-image: url('background.jpg'); /* Update with your image path */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    text-align: center;
  }
  
  .choose-heading {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1b02a8; /* Vivid blue for clarity */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
  }
  
  /* Grid Container */
  .choose-cards {
    display: grid;
    /* Create 6 equal columns */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centers the grid container */
  }
  
  /* Card Styles */
  .choose-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
  }
  
  .choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .choose-card h3 {
    font-size: 1.5rem;
    color: #004D99; /* Cool Deep Blue */
    margin-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
    
  }
  
  .choose-card p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    color: #000000; 
  }
  
  /* List Styles */
  .choose-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .choose-list li {
    font-size: 1.2rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #000000; 
    line-height: 1.2;
    margin-bottom: 8px;
  }
 /* --- Row 1 --- */
.card1 {
  grid-column: 1 / span 2;  /* columns 1-2 */
  grid-row: 1;
}

.card2 {
  grid-column: 3 / span 2;  /* columns 3-4 */
  grid-row: 1;
}

.card3 {
  grid-column: 5 / span 2;  /* columns 5-6 */
  grid-row: 1;
}

/* --- Row 2 --- */
.card4 {
  grid-column: 1 / span 2;  /* columns 1-2 */
  grid-row: 2;
}

.card5 {
  grid-column: 3 / span 2;  /* columns 3-4 */
  grid-row: 2;
}

.card6 {
  grid-column: 5 / span 2;  /* columns 5-6 */
  grid-row: 2;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .choose-cards {
    grid-template-columns: repeat(2, 1fr); /* Two columns for medium-sized screens */
    gap: 15px; /* Slightly reduce gap between cards */
  }

  /* Reset grid positions for better auto-flow */
  .card1, .card2, .card3, .card4, .card5, .card6 {
    grid-column: auto;
    grid-row: auto;
  }

  /* Adjust card styles */
  .choose-card {
    padding: 15px; /* Reduce padding inside cards */
  }

  .choose-card h3 {
    font-size: 1.1rem; /* Reduce heading size */
  }

  .choose-card p,
  .choose-list li {
    font-size: 0.9rem; /* Reduce paragraph and list text size */
  }

  /* Adjust section container */
  .choose-section {
    padding: 30px 15px 80px; /* Reduce padding for better fit */
  }

  
  .choose-heading {
    margin-top: 100px;
   }
}

@media (max-width: 768px) {
  .choose-cards {
    grid-template-columns: 1fr; /* Single column layout for small screens */
    gap: 20px;
  }

  .choose-card {
    padding: 20px; /* Slightly increase padding for readability */
  }

  .choose-card h3 {
    font-size: 1.2rem; /* Slightly larger headings for clarity */
  }

  .choose-card p,
  .choose-list li {
    font-size: 1rem; /* Keep text size readable on small screens */
  }

  .choose-section {
    padding: 20px 10px 60px; /* Adjust padding for compact screens */
  }

  .choose-heading {
   margin-top: 100px;
  }
}

  
/* Scoped Styles for Case Study Section */
.casestudy {
  /* CSS Variables */
  --primary-color: #0a2fd4;
  --secondary-color: #ffffff;
  --text-color:  #000000; 
  --background-color: #f4f4f4;
  --font-family: 'Roboto', Arial, sans-serif;
  --transition-duration: 0.3s;
  /* Module-level styling */
  font-family: var(--font-family);
  color: var(--text-color);
  
}
.casestudyheader h2 {
font-size: 3rem;
font-weight: bold;
font-family: 'Manrope', sans-serif;
font-size: 3rem;
margin-bottom: 25px; /* Space for the line */
color: #1b02a8;
position: relative; /* Enable positioning for the pseudo-element */
text-align: center;
padding-top: 67px;
}

.casestudy-wrapper {
  background-color: var(--secondary-color);
  padding-bottom: 60px;  /* This ensures the extra space has the background color */
}
/* Card */
.casestudy-card {
  max-width: 1200px;
  margin: 20px auto 80px;  /* Remove the bottom margin here */
  padding-bottom: 60px;  /* Add padding instead */
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Card Header */
.casestudy-card-header {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 26px;
  font-weight: bold;
  font-family: 'Quicksand', sans-serif;
}

/* Container */
.casestudy-container {
  display: flex;
  flex: 1;
}

/* Section Styles */
.casestudy-image-section,
.casestudy-middle-section,
.casestudy-content-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image Section */
.casestudy-image-section {
  width: 30%;
  align-items: center;
}

/* Image */
.casestudy-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform var(--transition-duration);
}
.casestudy-image img:hover {
  transform: scale(1.05);
}

/* Middle Section */
.casestudy-middle-section {
  width: 20%;
  align-items: center;
}

/* Tabs */
.casestudy-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Tab */
.casestudy-tab {
  padding: 10px 15px;
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-duration), color var(--transition-duration), transform var(--transition-duration);
  font-size: large;
  font-family: 'Quicksand', sans-serif;
}
.casestudy-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.casestudy-tab.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Content Section */
.casestudy-content-section {
  width: 50%;
}

/* Content */
.casestudy-content {
  color: var(--text-color);
  opacity: 0;
  animation: fadeIn var(--transition-duration) forwards;
  font-family: 'Inter', sans-serif;
    font-size: 18px;
}
.casestudy-content h2 {
  margin-top: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
  .casestudy-container {
    flex-direction: column;
  }
  .casestudy-image-section,
  .casestudy-middle-section,
  .casestudy-content-section {
    width: 100%;
    padding: 15px;
  }
}

/* Phone Responsiveness */
@media (max-width: 480px) {
  .casestudy-card-header {
    font-size: 18px;
    padding: 15px;
  }
  
  .casestudy-image-section,
  .casestudy-middle-section,
  .casestudy-content-section {
    padding: 10px;
  }
  
  /* Ensure the image-section centers its content */
  .casestudy-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Center the inner image container */
  .casestudy-image {
    width: 100%;
    text-align: center;
  }
  
  /* Make the image block-level and center it */
  .casestudy-image img {
    display: block;
    margin: 0 auto;
    max-width: 80%;
  }
  
  .casestudy-tabs {
    gap: 8px;
  }
  
  .casestudy-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .casestudy-content h2 {
    font-size: 18px;
  }
  
  .casestudy-content p {
    font-size: 14px;
  }
}
