

.hero-content {
  margin-left: 80px;
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 100%;
  gap: 80px; /* adds space between text and image */
  
}

.quotes-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
 
  
 
  max-height: 320px;
  overflow: hidden;
 
}

.hero-image {
  margin-top: 3px;
  margin-right: -190px;
  flex: 1;
   background-image: linear-gradient(to bottom, rgba(41, 39, 39, 0.6), rgba(121, 121, 121, 0)),
  url('/Images/background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;

  min-width: 400px; /* Ensures image doesn't shrink too much */
}
.hero-image {
  border-bottom: 1.5px solid #EEE;
  padding-bottom: 10px;
}

.quote1 {
  margin-top: 28px;
  margin-left: 180px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.quote-text {
  margin-left: 18px;
  margin-right: 16px;
  font-weight: lighter;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: rgb(0, 0, 0);
}

.color1 {
  color: #2a9d8f; /* example color */
}

.color2 {
  color: #e76f51; /* example color */
}

.explore-btn {
  align-self: center;
  width: fit-content;
  padding: 12px 24px;
  background-color: #264653;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.explore-btn:hover {
  background-color: #2a9d8f;
}
.btn-underline {        
  border-bottom: 1px solid #EEE; 
 
}


    
    .body{

    margin:0;
    font-family: Arial, sans-serif;

  }

  .navbar {
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    border-bottom: 1px solid #EEE;
    background-color: #fff;
  }
  .navbar-left {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .navbar-left img {
    height: 70px;
    width: 80px;
  }
  
  .navbar-center {
    display: flex;
    gap: 40px;
  }
  .navbar-center a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    font-size: 16px;
  }
  .navbar-center a:hover,
  .navbar-center a.active {
    font-weight: 500;
   color: #2a9d8f;
  }
  .navbar-right {
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .search-bar {
    padding: 6px 12px;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
  }
  .search-icon {
    font-size: 18px;
    cursor: pointer;
    color: #999;
  }
  .btn-signup,
  .btn-login {
    padding: 7px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .btn-signup {
    background: transparent;
    border: 1px solid #222;
    background-color: #264653;
    color:white
  }
  .btn-signup:hover {
    background: #2a9d8f;
    color: #fff;
  }
  .btn-login {
    background: #264653;
    color: #fff;
  }
  .btn-login:hover {
    background: #2a9d8f;
  }
  
  .explore-section {
  width: 1320px;
  margin: auto;
}
.explore-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.explore-header h1 {
  font-style: bold;
  font-size: large;
  color:#0f4a43;
  font-weight: 800;
  font-size: 2.4rem;
  margin: 0;
}
.view-all {
  font-weight: 200;
  font-size: 1.2rem;
  color: #176fdb;
  text-decoration: underline;
}
.categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 5px;
}
.category {
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  border-radius: 6px;
  color: #555;
  
}
.category.active {
  background-color: #d4dcff;
  color: #263dfe;
}

.courses-carousel {
  display: flex;
  flex-wrap: wrap;
   align-content: flex-start;     /* Horizontal layout */
  overflow-y: auto;         /* Vertical scrollbar */
  max-height: 500px;        /* Limit height for vertical scrolling */
  gap: 15px;
}
.course-card {
  max-width: 310px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.1);
  overflow: hidden;
  background: white;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease-in-out;
  margin-bottom: 10px;
}
.course-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.course-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 12px 6px;
  line-height: 1.2;
}
.course-desc {
  font-size: 0.87rem;
  line-height: 1.2;
  color: #666;
  margin: 0 12px 12px;
  height: 60px;
  overflow: hidden;
}

.books-section {
  max-width: 1320px;
  margin: auto;

}
.books-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.books-header h1 {
  font-style: bold;
  font-size: large;
  color:#0f4a43;
  font-weight: 800;
  font-size: 2.4rem;
  margin: 0;
}
.view-all {
 font-weight: 200;
  font-size: 1.2rem;
  color: #176fdb;
  text-decoration: underline;
}
.books-description {
  color: #000000;
  font-size: 1.15rem;
  margin: 20px 0;
  max-width: 90%;
}
.books-carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 28px;
  padding: 20px 0 10px 0;
}
.book-card {
  background: #fff;
  min-width: 200px;
  max-width: 220px;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgb(0 0 0 / 10%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.book-title {
  text-align: center;
  font-size: 1.15rem;
  padding: 8px 5px 0 5px;
  color: #333;
  font-weight: 560;
  letter-spacing: .02em;
}

.image-hover-container {
  position: relative;
  display: inline-block;
}

.book-image {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  margin-bottom: 6px;
  display: block;
}

.book-description {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 250px;
  background: rgba(202, 220, 201, 0.94);
  color: #000000;
  border-radius: 16px 16px 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 20px 15px;
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1;
 
}

.image-hover-container:hover .book-description {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.testimonial-section {
  max-width: 1320px;
  margin: 50px auto 20px;
  text-align: center;
  padding: 0 20px;
}
.testimonial-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #0f4a43;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}
.testimonial-card {
  background: #e7f3e4;
  padding: 24px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.07);
  max-width: 310px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card:hover {
box-shadow: 0 10px 34px rgb(184, 31, 31);

}
.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 18px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.author-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  font-weight: 600;
  font-size: 1.3rem;
  color: #333;
}


.stats-section {
  max-width: 1320px;
  background: #ffffff;
  padding: 50px 52px 20px 52px;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1320px;
  margin-left: 40px;
}
.stat-card {
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.05);
  padding: 40px 56px 34px 56px;
  text-align: center;
  min-width: 190px;
  transition: box-shadow 0.25s;
}
.stat-card:hover {
  box-shadow: 0 6px 34px rgb(22, 67, 202);
}
.stat-number {
  font-size: 2.9rem;
  font-weight: 700;
  color: #1883fa;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.stat-label {
  font-size: 1.09rem;
  font-weight: 500;
  color: #0f4a43;
  letter-spacing: 1.1px;
  margin-top: 6px;
}




.testimonial-carousel {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden; /* hides vertical overflow */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
  width: 100%; /* full width */
  padding-bottom: 10px; /* bottom padding for scrollbar space */
  scrollbar-width: none; /* Firefox */
}
.testimonial-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Webkit browsers */
}


.main-footer {
  background: #e7f3e4;
  padding: 42px 0 18px 0;
  text-align: center;
  font-size: 1.08rem;
  color: #333;
  margin-top: 0px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.03);
}
.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
}
.footer-logo .footer-title {
  font-weight: bold;
  font-size: 1.38rem;
  color: #1767fa;
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #1767fa;
}
.footer-social {
  display: flex;
  gap: 19px;
}
.footer-meta {
  margin-left: 150px;
  font-size: 0.97rem;
  color: #434141;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.footer-social .fa {
  padding: 7px;
  font-size: 38px;
  width: 34px;
  height: 36px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-radius: 50%;
  transition: background-color 0.3s;
  margin: 3px 6px;
}
.footer-social .fa:hover {
  color: white;
}

.footer-social .fa-facebook { background: #618ae1; }
.footer-social .fa-twitter { background: #55acee; }
.footer-social .fa-instagram { background: #db546d; }
.footer-social .fa-linkedin { background: #5ab8eb; }



.navbar-toggle {
  display: none;
}



/* Small phones and smaller (up to 320px) */
@media (max-width: 351px) {
.navbar {
  margin-left: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 70px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Small phones to larger phones (321px - 425px) */
@media (min-width: 352px) and (max-width: 425px) {
.navbar {
    display: flex;
    
    margin-left: 15px;
    padding: 8px 12px;
  
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 100px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 18px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Tablets portrait (426px - 768px) */
@media (min-width: 426px) and (max-width: 768px) {
  /* Make navbar a proper flex container */
  .navbar {
     margin-left: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 160px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }





 
}

/* Tablets landscape & small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Desktop: show buttons only in navbar-right, hide in navbar-center */
@media (min-width: 769px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: inline-block;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Mobile: hide buttons in navbar-right, show in navbar-center */
@media (max-width: 768px) {
 .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }

  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    border-top: 1px solid #eee;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
    cursor: pointer;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }
}

}

/* Desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 50px;
    padding: 12px 18px;
  }
  .navbar-center {
    gap: 40px;
  }
  .search-bar {
    width: 200px;
  }
}

/* Large desktops (1441px and up) */
@media (min-width: 1441px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 60px;
    padding: 12px 20px;
  }
  .navbar-center {
    gap: 50px;
  }
  .search-bar {
    width: 220px;
  }
}

/* Responsive Navbar toggle logic */

/* Hide the nav links and show hamburger on smaller screens */

@media (max-width: 768px) {
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 100;
    border-top: 1px solid #eee;
    padding: 10px 0;
  }
  .navbar-center.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-right {
    margin-right: 10px;
  }
  .navbar {
    flex-wrap: wrap;
    position: relative;
  }
}





@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 120px;
    margin: 0 auto;
  }
  
  .footer-social {
    justify-content: center;
    gap: 12px;
  }
  
  .footer-social .fa {
    font-size: 24px;
    width: 30px;
    height: 29px;
    padding: 5px;
    margin: 3px 4px;
  }
}

/* Tablet landscape and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-content {
    justify-content: center;
    gap: 30px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 140px;
  }
  .footer-social .fa {
    font-size: 25px;
  }
}



body{
  
  padding-bottom: env(safe-area-inset-bottom);

  height: 100%;
}
main{
  flex: 1
;
}














/* ===== Additional Responsiveness for Hero, Courses, Books, Testimonials, Stats ===== */

/* Hero Section */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 0;
    gap: 40px;
  }

  .quotes-container {
    max-height: none;
    padding: 0 20px;
  }

  .quote1 {
    margin-left: 0;
    font-size: 20px;
  }

  .quote-text {
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-image {
    margin-right: 0;
    min-width: 90%;
    max-width: 600px;
  }

  .explore-btn {
    align-self: center;
  }
}

/* Explore Courses Section */
@media (max-width: 1024px) {
  .explore-section {
    width: 95%;
  }

  .courses-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
   
  }
}

@media (max-width: 768px) {
  .hero-content {
    margin-left: 20px;
  }
  .courses-carousel {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .categories {
    flex-wrap: wrap;
    justify-content: center;
  }
  .course-card {
    min-width: 80%;
    min-height: 80%;
  }
  .course-image {
    min-height: 70%;
  }
}

/* Books Section */
@media (max-width: 1024px) {
  .books-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .books-carousel {
    grid-template-columns: 1fr;
    gap: 15px;
   
  }
  .book-card {
  min-width: 90%;
    margin-left: 20px;
  }
.image-hover-container {
  max-width: 70%;
}

  .books-description {
    max-width: 100%;
  }
}

/* Testimonial Section */
@media (max-width: 1024px) {
  .testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .testimonial-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Stats Section */
@media (max-width: 1024px) {
  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .stat-card {
    padding: 30px 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 1rem;
  }
}

/* Small devices adjustments (mobiles) */
@media (max-width: 480px) {
  .hero-content {
    margin-left: 20px;
    gap: 20px;
  }
 .books-section {
   max-width: 400px;
}
  .quote1 {
    font-size: 18px;
  }

  .quote-text {
    font-size: 13px;
  }

  .explore-section h1,
  .books-header h1,
  .testimonial-section h2 {
    font-size: 1.3rem;
  }

  .view-all {
    font-size: 0.9rem;
    
  }
}
/* ===== Hero Image Hidden on Small Screens ===== */
@media (max-width: 1025px) {
  .hero-image {
    display: none;
  }

  .hero-content {
    
    text-align: center;
  }

  .quotes-container {
    max-height: none;
    padding: 0 20px;
  }

  .quote1 {
    margin-left: 0;
    font-size: 20px;
  }

  .quote-text {
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ===== Ensure categories always horizontal scroll ===== */
.categories {
  display: flex;
  flex-wrap: nowrap;        /* Keep in one line */
  overflow-x: auto;         /* Enable horizontal scroll */
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 14px;
  padding: 10px 0;
  white-space: nowrap;
  justify-content: flex-start;
  scrollbar-width: thin;          /* Firefox scrollbar */
  scrollbar-color: #c5c5c5 transparent;
}

/* Webkit scrollbar (Chrome, Edge, Safari) */
.categories::-webkit-scrollbar {
  height: 8px;
}
.categories::-webkit-scrollbar-thumb {
  background-color: #c5c5c5;
  border-radius: 10px;
}
.categories::-webkit-scrollbar-track {
  background: transparent;
}

/* Category chip style */
.category {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: #f8f8f8;
  color: #555;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category:hover {
  background-color: #e6e6e6;
}

.category.active {
  background-color: #d4dcff;
  color: #263dfe;
}

 @media (min-width:1024px) and (max-width: 1300px) {
  .books-section {
    width: 1320px;
  }
 }





 /* Keep course-card overflow hidden on all screens */
.course-card {
  max-width: 310px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.1);
  overflow: hidden; /* keep hidden */
  background: white;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  margin-bottom: 10px;
}

/* Responsive resizing while keeping overflow hidden */
@media (max-width: 768px) {
  

  .explore-section h1,
  .books-header h1,
  .testimonial-section h2 
  {
    font-size: 1.3rem;
  }
  .book-description {
    font-size: 1rem;
  }
.view-all {
  font-size: 0.9rem;
}
  .courses-carousel {
    display: grid;
    grid-template-columns: 1fr; /* one column per row */
    gap: 15px;
    max-height: 500px;
   overflow-y: auto; 
  }

  .course-card {
    width: 100%; /* take full width of grid column */
    max-width: 100%; /* ensure it doesn’t exceed container */
    overflow: hidden; /* keep overflow hidden inside the card */
  }

  .course-desc {
    height: 60px; /* keep the fixed height */
    overflow: hidden; /* hide extra text */
  }
}
