/* Google Fonts */
body {
  font-family: "Hanken Grotesk";
  background: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: #23413a;
  margin-bottom: 0.5em;
}

/* Header */
/* style.css */



body {
  margin: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #23413a;
}

.header-container {
  width: 100%;
  padding: 22px 80px;
  background: var(--background-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7ecdf;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 80px;
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: var(--primary-color);
  font-size: 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 21.6px;
  color: #CF5C09;
}

.logo-subtitle {
  color: var(--primary-color);
  font-size: 24px;
  font-family: 'FONTSPRING DEMO - The Seasons', serif;
  font-weight: 400;
  line-height: 21.6px;
    color: #CF5C09;

}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--secondary-color);
  font-size: 20px;
  color: #23413a;;
  text-decoration: none;
}

.nav-links a:hover, .cousre-card-number a:hover
.auth-button a:hover,
.cart-button a:hover {
 color: #CF5C09;}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.auth-button a,
.cart-button a {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  font-size: 20px;
  color: inherit;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--secondary-color);
  cursor: pointer;
}

/* Mobile menu hidden by default */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Show menu when toggled */
.mobile-menu.active {
  display: flex;
}

/* Utility classes */
.desktop-only {
  display: flex;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-container {
    padding: 16px 24px;
  }

  .mobile-menu .nav-links,
  .mobile-menu .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero Section */
/* Hero Section */
.hero {
  width: 100%;
  min-height: 100vh;
  padding: 5% 10%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/assets/frontend/default-new/image/home.jpg') center/cover no-repeat;
  filter: brightness(0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2em 1em;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2em;
}

/* Search Bar - Desktop Defaults */
.search-bar {
  display: flex;
  width: 100%;
  max-width: 1000px;
  border-radius: 35px;
  overflow: hidden;
  background: #fff;
  margin: 0 auto 1.5em auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  height: auto;
  padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
}

.search-bar input {
  flex: 1;
  padding: 1em 1.5em;
  font-size: 1em;
  border: none;
  outline: none;
  min-width: 200px;
  height: 60px;
  border-radius: 35px 0 0 35px;
}

.search-bar button {
  padding: 0 2em;
  background-color: #CF5C09;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  height: 60px;
  border-radius: 35px 35px 35px 35px;
  transition: background 0.2s ease;
}

.search-bar button:hover {
  background-color: #a95a17;
}

/* Tag Buttons */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
}

.tags button {
  background: #1e6b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s;
}

.tags button:hover {
  background: #23413a;
}

/* Tablet & Smaller Screens */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

 
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .tags button {
    font-size: 0.8em;
    padding: 0.4em 1em;
  }
   .search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.5em;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
    height: 50px;
    margin: 0.3em 0;
    border-radius: 20px !important;
  }
}


/* Courses Section */
.courses {
  background: #fff;
  padding: 3em 0 2em 0;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  padding: 0 1em;
}
.section-header h2 {
  font-weight: 700;
  font-size:50px;
  font-family: 'Playfair Display', serif;
  color: #18545E;
}
.see-all {
  color: #CF5C09;
  font-weight: 600;
  text-decoration: none;
  font-size: 1em;
}
.see-all:hover {
  text-decoration: underline;
}
.course-list {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}
.hover-title:hover {
    cursor: pointer ;
    text-decoration: underline !important;
  }
.course-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  width: 405px;
  display: flex;
  gap: 24px;
  flex-direction: column;
  margin-bottom: 2em;
  margin-top: 0px !important;
  transition: box-shadow 0.2s;
}
.course-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.course-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.course-meta img{
  height: 60px; 
  width: 60px;
}
.formateur-info {
  display: flex;
  align-items: flex-start;
  gap: 10px; /* space between image and text */
}

.formateur-text {
  line-height: 1.4;
  margin-top: 5px; /* adjust spacing if needed */
  color:  #575757;
;
}

.course-info {
  padding: 1.2em 1em 1em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.course-info h3 {
  font-size:24px;
  font-weight: 700;
  color: #18545E;
  margin-bottom: 0.2em;
}
.course-meta {
  font-size: 0.95em;
  /* color: #23413a; */
  /* margin-bottom: 0.5em; */
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  gap:20px;
}
.course-meta:hover {
 color: #23413a;
}
.course-price {
  color: #CF5C09;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.course-info button {
  background: #CF5C09;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 0;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.course-info button:hover {
background: #a95a17;
}
/* Tablets: stack two cards side by side */
@media (max-width: 1024px) {
  .course-card {
    width: 48%;
  }
}

/* Phones: stack one card per row */
@media (max-width: 480px) {
  .course-card {
    width: 90%;
  }

  .formateur-info {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .section-header {
    flex-direction: row;
    text-align: center;
    justify-content: space-around !important; 
    gap: 1em;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}
@media (max-width: 600px) {
  .course-card {
    width: 70%;
  }

  .formateur-info {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .section-header {
    justify-content: space-around !important; ;
    flex-direction: row;
    text-align: center;
    gap: 1em;
     padding-left: 0px !important;
    padding-right: 0px !important;
  }
}


/* Instructors Section */
/* Instructor Section General Styling */
/* Section Styling */
.instructors {
  background: #f7ecdf;
  padding: 3em 0 2em 0;
  margin: 0 auto;
  margin-bottom: 40px;
  color: #333; /* Default text color */
}

.instructors .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  padding-left: 140px;
  padding-right: 100px;
  flex-wrap: wrap; /* Optional: helps prevent overlap on smaller screens */
}

.section-header h2 {
  font-size: 50px;
  margin: 0 1em 0 0; /* Add right margin to separate from 'see all' link */
  font-weight: 700;
  color: #18545E;
}

.section-header .see-all {
  color: #CF5C09;
  font-size: 20px;
  text-decoration: none;
  font-weight: 700;
}

/* Instructor List Styling */
.instructor-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default to two columns on larger screens */
  gap: 1.5em;
  padding: 0 9em;
  padding-bottom: 40px;
}

/* Instructor Card Styling */
.instructor-card {
  background: #fff;
  border-radius: 16px;
  display: flex; /* Align items horizontally */
  align-items: center; /* Center align the items vertically */
  gap: 1.5em;
  padding: 1.5em 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure the card takes the full height of its container */
}

.instructor-card:hover {
  transform: scale(1.05); /* Slight scale on hover */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* More prominent shadow */
}

.instructor-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* New Class for Instructor Info (Details Section) */
.instructor-info {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Ensure proper spacing between name, bio, and link */
  flex: 1; /* Ensure it takes up the remaining space */
}

.instructor-info h4 {
  margin: 0 0 0.3em 0;
  font-size: 24px;
  color: #575757;
  font-weight: 700;
  height: 20px;
}

.instructor-info p {
  font-size: 16px;
    padding-top: 7px;
    font-weight: 400;
    margin-bottom: 0.5em;
    color: #575757;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 49px;
}

.instructor-info a {
  color: #CF5C09;
  padding-top: 5px;
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  margin-top: auto; /* Push "See more" link to the bottom */
  height: 20px;
}

.instructor-info a:hover {
  text-decoration: underline;
}

/* --- Mobile and Tablet Adjustments --- */
@media (max-width: 1280px) {
  .instructors {
    /* max-width: 97vw; */
  }
}

@media (max-width: 1024px) {
  .instructors {
    /* max-width: 97vw; */
  }
}

@media (max-width: 768px) {
  .instructors {
    /* max-width: 95vw; */
  }
  .instructor-list {
    grid-template-columns: 1fr 1fr;
    padding: 0 1.5em;
  }

  .instructor-card {
    flex-direction: column; /* Stack items vertically on small screens */
    padding: 1em;
    align-items: center;
    text-align: center; /* Center-align text on small screens */
    height: auto; /* Let the card adjust based on its content */
  }

  .instructor-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 1em;
  }

  .section-header h2 {
    font-size: 1.5em;
  }

  .section-header .see-all {
    font-size: 0.9em;
  }

  /* Adjust the Instructor Info Block for smaller screens */
  .instructor-info {
    text-align: center; /* Center-align content on smaller screens */
  }

  .instructor-info h4 {
    font-size: 20px;
  }

  .instructor-info p {
    font-size: 14px;
    -webkit-line-clamp: 3; /* Allow more lines on mobile if needed */
  }

  .instructor-info a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .instructors {
    max-width: 95vw;
  }
  .instructor-list {
    grid-template-columns: 1fr; /* Stack the cards on mobile screens */
    padding: 0 1em;
  }

  .instructor-card {
    padding: 1em;
    flex-direction: column;
    align-items: center;
    height: auto; /* Ensure flexibility on small screens */
  }

  .instructor-card img {
    width: 60px;
    height: 60px; /* Smaller image size */
    margin-bottom: 1em;
  }

  .instructor-card h4 {
    font-size: 1.1em;
  }

  .section-header h2 {
    font-size: 1.3em;
  }

  .section-header .see-all {
    font-size: 0.8em;
  }

  /* Adjust the Instructor Info Block for even smaller screens */
  .instructor-info {
    text-align: center; /* Center-align content on smaller screens */
  }

  .instructor-info h4 {
    font-size: 18px;
  }

  .instructor-info p {
    font-size: 13px;
    -webkit-line-clamp: 2; /* Restrict to 2 lines of bio */
  }

  .instructor-info a {
    font-size: 16px;
  }
}

/* --- Tablet Adjustments --- */
@media (max-width: 768px) and (min-width: 481px) {
  .instructor-list {
    grid-template-columns: 1fr 1fr; /* Two columns for tablet size */
  }

  .instructor-card {
    padding: 1.5em;
  }

  .instructor-card img {
    width: 80px;
    height: 80px;
  }
}


/* Contact Section */
.contact-section {
  background: #23413a;
  color: #fff;
  padding: 3em 0 2em 0;
  text-align: center;
    /* max-width: 1280px; */
  border-radius: 22px;
}
.contact-content h2 {
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 0.2em;
}
.contact-content p {
  color: #fff;
  margin-bottom: 2em;
  font-size: 28px;
    font-weight: 400;
}
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}
.contact-card {
  background: #fff;
  color: #23413a;
  border-radius: 16px;
  padding: 1.2em 2em;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  
}
.contact-card-icon
{
font-size: 20px;
font-weight: 700;
padding-bottom: 7px;
}
.contact-card span {
  font-size: 2em;
}
.cousre-card-number
{
  font-size: 20px;
font-weight: 400;
}
@media (max-width: 1024px) {
  .contact-section {
    padding: 2.5em 1.5em;
  }

  .contact-card {
    min-width: 200px; /* Slightly reduced width on medium devices */
  }

  .contact-methods {
    gap: 1.5em;
  }
}

/* For mobile devices (< 600px) */
@media (max-width: 600px) {
  .contact-section {
    padding: 2em 1em;
  }

  .contact-content h2 {
    font-size: 1.6em; /* Smaller font on small screens */
  }

  .contact-content p {
    font-size: 1em; /* Slightly smaller paragraph text */
    margin-bottom: 1.5em;
  }

  .contact-card {
    
    width: 100%; /* Full width cards for smaller screens */
    min-width: unset;
    padding: 1.2em; /* Adjust padding for small screens */
  }

  .contact-methods {
    flex-direction: column;
    gap: 1em;
  }
}

@media (max-width: 360px) {
.contact-card {
  font-size: 0.9em;
}
}

/* Footer */
.main-footer {
  background: #CF5C09;
  color: #fff;
  font-size: 1em;
  padding: 36px 100px 0 100px;
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
}

.footer-top {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo-desc {
  flex: 1 1 220px;
}

.footer-logo-desc p{
padding-bottom: 40px;
    font-size: 20px;
    font-weight: 400;
    width: 70%;}

.footer-logo-desc .logo {
  color: #fff;
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

.footer-logo-desc .logo img {
  color: #fff;
}

.footer-lang
{
  text-align: right;
  padding-right: 58px;
  /* border-bottom: 1px solid #fff; */
  padding-top: 19px;
}
.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1em 0;
}
      
.footer-links, .footer-social, .footer-lang {
  flex: 1 1 180px;
}

.footer-links {
  padding-right: 24px;
  padding-top: 20px;
}
.footer-lang label {
  display: block;
  margin-bottom: 0.5em;
}
.footer-lang select {
  padding: 0.4em 1em;
  /* border-radius: 8px; */
  border: none;
  font-size: 1em;
  border-bottom: 1px solid #fff !important;
  cursor: pointer;
background: #CF5C09 !important;
  padding-left: 58px !important;
    color: #ffff;
  background: transparent;
}
.footer-lang  option {
  background: #CF5C09 !important;
  color: #fff;
    cursor: pointer;

}
.footer-social {
  /* border-left: 2px solid #e0e0e0;
  padding-left: 24px; */
  padding-top: 20px;
}

.footer-links h5, .footer-social h5 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.footer-links ul {
  list-style: none;
  padding-top: 3px;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.3em;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.social-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
}

.footer-lang label {
  display: block;
  margin-bottom: 0.3em;
}

.footer-lang select {
  padding: 0.3em 0.8em;
  border: none;
  font-size: 0.95em;
}

.footer-bottom {
  /* padding: 0.8em 2em; */
  text-align: center;
  background: #CF5C09;
  display: flex;
}

.footer-bottom ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of items */
  justify-content: center; /* Center items */
  gap: 1em; /* Gap between the links */
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- Mobile Adjustments --- */

@media (max-width: 768px) {
  .main-footer {
    padding: 20px 30px 0 30px;
    font-size: 0.9em;
  }

  .footer-top {
    flex-direction: column;
    gap: 15px;
  }

  .footer-logo-desc, .footer-links, .footer-social, .footer-lang {
    flex: 1 1 auto;
    width: 100%;
  }

  .footer-social {
    border-left: none;
    padding-left: 0;
  }

  .social-icons {
    justify-content: flex-start;
    gap: 8px;
  }

  .footer-bottom {
    font-size: 0.85em;
    padding: 0.6em 1.5em;
  }

  .footer-bottom ul {
    gap: 0.8em; /* Reduced gap between links */
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 16px 14px 0 14px;
    font-size: 0.85em;
    max-width: 100%; /* Ensure the footer doesn't overflow on small screens */
    margin: 0 auto; /* Center the footer */
  }

  .footer-logo-desc .logo span {
    font-size: 18px;
    line-height: 1.1;
  }

  .social-icons a {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  .footer-lang select {
    width: 50%;
    padding: 0.3em 0.6em;
    padding-left: 0px !important;
        padding-right: 0px !important;
  }

  .footer-bottom {
    font-size: 0.8em;
    padding: 0.5em 1em;
  }

  /* Adjust the footer bottom ul for mobile: Two items per row */
  .footer-bottom ul {
    gap: 0.5em; /* Reduce gap on mobile */
    flex-direction: row; /* Ensure items are arranged in rows */
    justify-content: space-between; /* Distribute items across the row */
  }

  .footer-bottom li {
    flex: 1 1 48%; /* Ensure two items per row, occupying 48% of the width */
    text-align: center;
    margin-bottom: 0.3em;
  }
}

@media (max-width: 320px) {
  .main-footer {
    padding: 16px 10px 0 28px;
    font-size: 0.8em;
    margin: 0 auto; /* Center the footer */
  }

  .footer-bottom ul {
    gap: 0.4em;
  }

  .footer-bottom li {
    flex: 1 1 45%; /* Ensure only two items per row, even on the smallest screens */
  }

  /* Ensure the footer doesn't overflow */
  .footer-bottom {
    padding: 0.4em 1em;
  }
}


.vertical-line {
    width: 1px;
    height: 200px;
    background-color: #fff;
  }

  @media (max-width: 768px) {
    .vertical-line {
      height: 0px !important; /* Adjust for small screens */
    }
    hr{
      margin-top: 16px !important;
    }
  }

 .purchase-btn {
    padding: 8px 116px; /* Default: 10% of viewport width */
}


@media (max-width: 1024px) {
    .purchase-btn {
        padding: 8px 168px;
    }
}

@media (max-width: 900px) {
    .purchase-btn {
        padding: 8px 90PX;
    }
}

@media (max-width: 768px) {
    .purchase-btn {
        padding: 8px 70px; /* Tablet: reduce padding */
    }
}

@media (max-width: 480px) {
    .purchase-btn {
        padding: 8px 70px; /* Mobile: fixed smaller padding */
    }
}
@media (max-width: 400px) {
    .purchase-btn {
        padding: 8px 34px; /* Mobile: fixed smaller padding */
    }
}

  
 .purchase-btn a{
    font-size: 20px;
    font-weight: 700;
 }
  
.purchase-btn:hover {
    background-color: #198754 !important;
    color: white !important;
    transition: background-color 0.3s ease;
    cursor: pointer;
}