/* Basic reset & CSS custom properties (variables) */
:root {
  /* primary accent color used for links, buttons and highlights*/
    --accent: #ff6b1a;
    /* muted text color : used for secondary text and metadata*/
    --muted: #6b7280
  }
   /* universal box sizing -ensures  padding and border are included in width/height*/
  * {
    box-sizing: border-box
  }
  /*================================================================================
                                    Base style
  =================================================================================
  */
  
  /** body size and color*/
  body {
    font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
    margin: 0;
    color: #111;
    background: #fff
  }
  /*container -centered content wrap with max-width*/
  .container {
    max-width:1800px;
    margin: 0 auto;
    padding: 0 16px        
  }
  /* ============================================================================
                                
                                  Header and Navigation 

     =========================================================================*/
   /* site header- sticky navigation bar at the top of the page*/
  .site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky !important;
    top: 0;
    z-index: 50;
    height: 90px;
    
  }
    
html, body {
  overflow-x: hidden;
}
  
   .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  background: linear-gradient(to right, #ffffff, #ffffff);
}

  /*Logo -site branding*/
  .logo {
    font-weight: 100%;
    color: #111;
    text-decoration: none;
    font-size: 18px
  }
  /*Logo span-accent color for part of logo*/
  .logo span {
    color: var(--accent);
    margin-left: 6px
  }
  /*Main Navigation-Navigation Menu container*/ 
  .main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 24px;
    
  }
  /*Navigation Links-Individual Navigation items*/
  .nav-link {
    color: #111;
    text-decoration: none
  }
  .logo-img {
  height:250px;
  width: auto;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
}
.btn.orange {
  background: linear-gradient(45deg, #ff7a18, #ffb347);
  border: none;
  padding: 12px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn.orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/*================================================================================
                          Feature Section
    ================================================================================
  Feature Grid -Grid layout for grid cards  */

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 23px 0;
    height:150px;
    
  }
  /* Feature - Individual feature card */ 
  
  .feature {
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px
  }
  /*=================================================================================
                            Course listing and features
    =================================================================================
  Main grid -Layout for filters sidebar and course list */
  .main-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    padding: 12px 0;
  } 
  /*Filters -sidebar container for filters*/
  
  .filters {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #eee;
    width: 300px;

    /* --- STICKY LOGIC --- */
    position: sticky;
    top: 110px; /* Adjust this: Header height (90px) + some gap (20px) */
    align-self: start; /* CRITICAL: Prevents the sidebar from stretching to full height */
    max-height: calc(100vh - 120px); /* Keeps sidebar scrollable if it's too long */
    overflow-y: auto; 
}
  /* Filter select-Dropdown select elements*/
  
  .filters select {
    width: 100%;
    padding: 8px;
   border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    position:sticky;
  }
 
/* ===== COURSE CARD ===== */

.course-card {
  width: 100% !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.course-card h3 {
  font-size: 18px;
  margin: 12px;
}

.course-card p {
  font-size: 14px;
  color: #555;
  margin: 0 12px 12px;
}

.course-card .price {
  font-weight: bold;
  color: #ff6a00;
  margin: 0 12px 12px;
}
/***********main section *****************/
/* ================= FORCE LAYOUT FIX ================= */

/* Main layout */
.main-grid {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 32px;
}

/* Courses section */
.courses {
  width: 100%;
}

/* Grid container */
.courses-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

/* Card */
.course-card {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  height:500px;
}

/* Image */
.course-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Text */
.course-card h3 {
  font-size: 18px;
  margin: 12px;
}

.course-card p {
  font-size: 15px;
  color: #555;
  margin: 0 12px 12px;
}

.course-card .price {
  font-weight: bold;
  color: #ff6a00;
  margin: 0 12px 12px;
  font-size:15px;
}


/* ============================================================================
   Footer
   ============================================================================ */

/* Site Footer - Footer container */
  .modal {
    width: 90%;
    max-width: 540px;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #ddd;
    background: #fff;
    position: relative
  }
  /*Dim background-overlay when modal is open*/
  .modal::backdrop {
    background: rgba(0,0,0,0.5);
  }
  /* close button for modal*/
  
  .modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px
  }
  /*modal heading style */
  .modal h2 {
    margin: 0 0 16px 0;
    font-size: 24px
  }
  /* ===============================
   FOOTER STYLING
   =============================== */

.site-footer {
  background: linear-gradient(180deg, #0b0f1a 0%, #1a1f35 100%);
  color: #fff;
  padding: 50px 20px 30px;
  margin-top: 60px;
  position: relative;
}

/* Accent border line on top of footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.8;
}

/* Footer heading style */
.site-footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 16px 0;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

/* Underline effect for footer headings */
.site-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Paragraph text in footer */
.site-footer p {
  margin: 8px 0;
  line-height: 1.6;
  opacity: 0.85;
  color: #d1d5db;
}

/* Remove default list styles */
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer link items hover animation */
.site-footer li {
  margin: 10px 0;
  transition: all 0.3s ease;
}

.site-footer li:hover {
  transform: translateX(5px);
}

/* Footer links */
.site-footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Footer link hover effect */
.site-footer a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* Footer layout container */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-bottom: 30px;
}

/* Social media icons container */
.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Social icon styles */
.socials a {
  color: #d1d5db;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Social icon hover effect */
.socials a:hover {
  color: var(--accent);
  background: rgba(255, 107, 26, 0.1);
  transform: translateY(-2px);
}

/* Copyright section */
.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px; 
  margin-top: 20px;
  color: #9ca3af;
  font-size: 0.9rem;
  text-align: center;
}


  /* ===============================
   FOOTER RESPONSIVE ADJUSTMENTS
   =============================== */

/* Adjust footer layout for tablets and larger screens */
@media (min-width: 768px) {
  .site-footer {
    padding: 60px 30px 40px;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-grid > div {
    flex: 1;
    max-width: 350px;
  }
}
/* ================= CART ================= */

.cart-container {
    position: relative;
    color: #349b3c;
}

.cart-container i {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}
/* ===============================
   MODAL STYLING
================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: #ffffff;
    width: 320px;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease;
}

.modal-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-box p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff6b1a;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-btn:hover {
    background: #e55a0c;
}

/* Animation */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Success / Error Colors */
.modal-success h3 {
    color: #16a34a;
}

.modal-error h3 {
    color: #dc2626;
}
/********Responsive for navbar****************/
/* =========================
   TABLET FIX
========================= */

@media (max-width:1024px){

.site-header .container{
  max-width:100%;
  padding:0 20px;
}

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

.main-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

/* navbar text */

.nav-link{
  font-size:17px;
}

/* login button fix */

.btn.orange{
  padding:8px 16px;
  font-size:16px;
  white-space:nowrap;
}

/* cart icon spacing */

.cart-container{
  margin-left:5px;
  font-size:20px;
}


}
/*******************Responsive for tablet view************************/
@media (max-width:1024px){

/* layout */

.main-grid{
grid-template-columns:220px 1fr !important;
gap:20px;
}

/* filters */

.filters{
width:100%;
}

/* courses grid */

.courses-grid{
grid-template-columns:repeat(2,1fr) !important;
gap:20px !important;
}

/* course image */

.course-card img{
height:220px;
}

/* text */

.course-card h3{
font-size:18px;
}

.course-card p{
font-size:15px;
}

}
/*******************Mobile view Responsive *******************/
/* HAMBURGER */

.menu-toggle{
display:none;
background:none;
border:none;
font-size:26px;
cursor:pointer;
}

/* MOBILE */

@media (max-width:768px){

.menu-toggle{
display:block;
}

/* hide menu */

.main-nav{
display:none;
flex-direction:column;
position:absolute;
top:90px;
left:0;
width:100%;
background:white;
padding:20px;
gap:15px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* show menu */

.main-nav.active{
display:flex;
}

/* smaller logo */


}
@media (max-width:768px){

/* stack layout */

.main-grid{
grid-template-columns:1fr !important;
}

/* filters full width */

.filters{
width:100%;
margin-bottom:20px;
}

/* course cards */

.courses-grid{
grid-template-columns:1fr !important;
gap:20px;
}

/* image size */

.course-card img{
height:200px;
}
/* Adjust logo */

.logo{
position:absolute;
left:23%;
transform:translateX(-50%);
}

.menu-toggle{
position:absolute;
right:15px;
display:block;


}
.logo-img{
height:90px;
right:12px;
}

@media (max-width:768px){
.logo-img{
height:175px;
right:12px;
}
}
}
/*************Tablet responsive *****************/
@media (min-width:769px) and (max-width:1024px){

.main-grid{
grid-template-columns:220px 1fr !important;
gap:20px;
}

/* two cards */

.courses-grid{
grid-template-columns:repeat(2,1fr) !important;
}

/* image size */

.course-card img{
height:270px;
}

.course-card h3{
font-size:18px;
}

}
/**************Responsive for small mobile**********************/
@media (max-width:480px){

.course-card img{
height:180px;
}

.course-card h3{
font-size:16px;
}

.course-card p{
font-size:13px;
}

}
/* HEADER LAYOUT */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* SEARCH BAR */
.search-container {
  flex: 1;
  max-width: 750px;
  position: sticky;
 
  
}

.search-container input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.search-container input:focus {
  border-color: orange;
  box-shadow: 0 0 5px rgba(255, 165, 0, 0.3);
}

.search-icon {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}
/* ===== SEARCH BAR CONTAINER ===== */
.search-container {
    position: relative;
    width: 450px;              
    max-width: 100%;
}

/* ===== SEARCH INPUT ===== */
#searchInput {
    width: 100%;
    padding: 14px 20px 14px 45px;  
    border-radius: 30px;
    border: 1px solid #ddd;
    
    font-size: 16px;           
    font-weight: 500;
    
    outline: none;
    transition: all 0.3s ease;
}

/* ===== SEARCH ICON ===== */
.search-icon {
    position: absolute;
    left: 500px;
    top: 50%;
    transform: translateY(-50%);
    
    font-size: 18px;           
    color: #888;
}

/* ===== HOVER / FOCUS EFFECT ===== */
#searchInput:focus {
    border-color: #ff6b00;     
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}
@media (max-width: 768px) {
    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    #searchInput {
        font-size: 14px;
        padding: 12px 15px 12px 40px;
    }
}
.course-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;   
}

/* TITLE */
.course-title {
  font-size: 19px;   
  font-weight: 700;
  margin: 0;
  color: #1c1d1f;
}

/* DESCRIPTION */
.course-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin: 0;
  height: 40px;
  overflow: hidden;
}

/* INSTRUCTOR */
.course-instructor {
  font-size: 13px;
  color: #6a6f73;
  margin: 0;
}

/*  + BADGE ROW */
.course-row {
  display: flex;
  justify-content: space-between;  
  align-items: center;
}

/* RATING */
.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #b4690e;
}

/* BADGE */
.course-badge {
  background: #eceb98;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* PRICE */
.course-price-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.price {
  font-size: 20px;   
  font-weight: bold;
  color: #1c1d1f;
}

.old-price {
  font-size: 14px;
  color: #6a6f73;
  text-decoration: line-through;
}
.course-img-wrapper {
  height: 280px;
}
/* ================= PAGINATION ================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid #0b2545; /* Navy */
  background-color: #fff;
  color: #0b2545;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Hover */
.page-btn:hover {
  background-color: #0b2545; /* Orange */
  color: #fff;
  border-color: #0b2545;
}

/* Active page */
.page-btn.active {
  background-color:#ff7a00; /* Navy */
  color: #fff;
  border-color:#ff7a00;;
}

/* Disabled */
.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.course-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: 0.25s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.course-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;   /* 🔥 removes weird spacing */
}
.course-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;   /* ❌ remove default margin */
  line-height: 1.4;
}
.course-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-instructor {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.course-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.course-price-section {
  margin-top: auto;   /* 🔥 pushes price to bottom */
  display: flex;
  gap: 8px;
  align-items: center;
}

.price {
  font-weight: 600;
  font-size: 16px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;   /* clean spacing */
}
/* Main bottom layout */
.course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 15px;
}

/* LEFT */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* RIGHT */
.right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Rating */
.course-rating {
  font-size: 13px;
  color: #f4b400;
}

/* Price */
.course-price {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #ff5722;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

/* Button + badge */
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button */
.view-btn {
  padding: 6px 14px;
  background: #ff7b00;
  color: white;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  
}

/* Badge */
.bestseller-badge {
  background: #ffe082;
  color: #8a6d00;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.course-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* LEFT */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* RIGHT */
.right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

/* Price */
.course-price {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #ff5722;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

/* Bestseller */
.bestseller-badge {
  background: #ffe082;
  color: #8a6d00;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  width: fit-content;
}

/* Rating */
.course-rating {
  font-size: 13px;
  color: #f4b400;
}

/* Button */
.view-btn {
  padding: 10px 18px;
  background: #ff7b00;
  color: white;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
/*  AUTH OVERLAY */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(219, 137, 14, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MODAL */
.auth-modal {
  display: flex;
  width: 700px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #ff6b00, #cc9042);
  color: white;
  padding: 30px;
}

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  padding: 30px;
}

/* INPUT */
.auth-right input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

/* BUTTON */
.auth-right button {
  width: 100%;
  padding: 12px;
  background:#ff6b00;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 16px;;
}

/* ERROR */
.error {
  color: red;
  font-size: 12px;
}

/* TERMS */
.terms {
  font-size: 14px;
}

/* ANIMATION */
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/*  BLOCK PAGE */
body.auth-active {
  overflow: hidden;
}

.auth-active .container {
  filter: blur(6px);
  pointer-events: none;
}
/* CAPTCHA BOX */
.captcha-box {
  margin: 10px 0;
}

/* ROW */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CAPTCHA IMAGE */
#captchaImage {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* REFRESH BUTTON */
.refresh-btn {
  padding: 6px 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
}

/* INPUT */
#captchaInput {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
}
/* NAME ROW */
.name-row {
  display: flex;
  gap: 10px;
}

.name-row input {
  width: 100%;
}

/* TERMS BOX */
.terms-box {
  background: #f8f9ff;
  border: 1px solid #e0e3ff;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

.terms-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.terms-box ul {
  padding-left: 15px;
  font-size: 13px;
}

.terms-box li {
  margin-bottom: 4px;
}
.terms-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
}

.terms-inline input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.resend-btn {
  margin-top: 10px;
  background: transparent;
  color: #ff6b00;
  border: none;
  cursor: pointer;
}
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
/* Responsive Header */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }

    .search-container {
        order: 3; /* Move search below Logo and Menu Toggle */
        max-width: 50%;
        margin: 5px 0;
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex; /* Shown when hamburger is clicked */
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .cart-container {
        justify-content: flex-start;
        padding: 10px 0;
    }
}
/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 250px 1fr; /* Desktop */
    gap: 30px;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr; /* Stack Sidebar on top of Courses */
        display: block;
    }

    .filters {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }

    /* Make filters sit side-by-side on tablets/large phones */
    .filters h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .filters select, .filters label {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }

    .course-card {
        margin: 0 auto;
        width: 100%;
    }

    /* Fix image aspect ratio on mobile */
    .course-img-wrapper img {
        height: 290px;
        object-fit: cover;
    }

    /* Adjust the bottom section of the card for tight spaces */
    .course-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .right-section {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .view-btn {
        width: auto;
        padding: 8px 20px;
    }
}
@media (max-width: 768px) {
    .auth-modal {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-left {
        display: none; /* Hide the marketing text on small screens to save space */
    }

    .auth-right {
        padding: 20px;
    }

    .name-row {
        flex-direction: column;
        gap: 0;
    }
}
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    /* 1. Position the search container next to the hamburger */
    .search-container {
        order: 2; /* Put it between logo and hamburger */
        margin-right: 15px;
        display: flex;
        align-items: center;
    }

    /* 2. Hide the input field by default on mobile */
    #searchInput {
        display: none; 
        position: absolute;
        top: 50px; /* Adjust based on your header height */
        left: 90px;
        width: 220px;
        background: white;
        padding: 15px;
        border-bottom: 2px solid var(--orange);
        z-index: 100;
    }

    /* 3. When active, show the search bar as a dropdown */
    .search-container.active #searchInput {
        display: block;
    }

    /* 4. The Search Icon (Trigger) */
    .search-icon {
        font-size: 1.2rem;
        cursor: pointer;
        color: #180944;
        margin-right: 40px;
    }

    /* 5. Hide the close icon unless searching */
    .close-search {
        display: none;
    }

    .search-container.active .close-search {
        display: block;
        position: absolute;
        left: 270px;
        top: 65px; /* Aligned with the input field */
        z-index: 101;
        
    }
}
/* --- Desktop & Tablet View (Default) --- */
.close-search {
    display: none !important; /* Hidden on Desktop and Tablet */
}

/* --- Mobile View (768px and below) --- */
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
        margin-right: auto; /* Pushes Search and Burger to the right */
    }

    .search-container {
        order: 2;
        display: flex;
        align-items: center;
        margin-right: 15px; /* Space between Search Icon and Burger */
        position: relative;
    }

    .menu-toggle {
        order: 3;
    }

    /* The Close Icon logic for Mobile only */
    .search-container.active .close-search {
        display: block !important; /* Only shows when search is expanded on mobile */
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        color: #ff6b00; /* Match your theme color */
        cursor: pointer;
    }

    /* Mobile Input Style (Expanded) */
    .search-container.active #searchInput {
        display: block !important;
        position: fixed; /* Fixes it to the top of the viewport when searching */
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1000;
        padding: 0 45px 0 20px;
        border: none;
        border-bottom: 2px solid #ff6b00;
        background: white;
    }
}
/* ================= TABLET VIEW (768px – 1024px) ================= */
@media (min-width: 768px) and (max-width: 1024px) {

  /* ===== HEADER ===== */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .logo img {
    height: 200px;
  }

  /* SEARCH CENTER */
  .search-container {
    flex: 1;
    max-width: 400px;
  }

  .search-container input {
    padding: 10px 40px;
    font-size: 14px;
  }

  .search-icon {
    position: absolute;
    left: 300px;
    top: 50%;
    transform: translateY(-50%);
    
    font-size: 18px;           
    color: #888;
}
  /* NAV RIGHT */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .nav-link {
    font-size: 14px;
  }

  .menu-toggle {
    display: none; 
  }

  /* ===== MAIN GRID ===== */
  .main-grid {
    display: grid;
    grid-template-columns: 220px 1fr; /* smaller sidebar */
    gap: 20px;
  }

  /* ===== SIDEBAR ===== */
  .filters {
    padding: 15px;
    border-radius: 10px;
  }

  .filters h3 {
    font-size: 18px;
  }

  .filters select {
    font-size: 14px;
    padding: 8px;
  }

  /* ===== COURSES GRID ===== */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 cards */
    gap: 20px;
  }

  /* ===== COURSE CARD ===== */
  .course-card {
    border-radius: 12px;
    overflow: hidden;
  }

  .course-img-wrapper img {
    height: 280px;
  }

  .course-title {
    font-size: 16px;
  }

  .course-desc {
    font-size: 13px;
  }

  .price {
    font-size: 16px;
  }

  .old-price {
    font-size: 13px;
  }

  /* ===== PAGINATION ===== */
  .pagination {
    justify-content: center;
    margin-top: 20px;
  }

}
/* ===============================
   AUTH MODAL BASE (SAFE OVERRIDE)
=================================*/
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MAIN MODAL */
.auth-modal {
  display: flex;
  width: 900px;
  max-width: 95%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-height: 90vh;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0b1f3a, #1a2f4d);
  color: white;
  padding: 40px;
  overflow-y: auto;
}

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

/* INPUT FIX */
.auth-right input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
}

/* NAME ROW */
.name-row {
  display: flex;
  gap: 10px;
}

.name-row input {
  flex: 1;
}

/* ===============================
   TABLET
=================================*/
@media (max-width: 992px) {

  .auth-modal {
    width: 100%;
  }

  .auth-left {
    padding: 25px;
  }

  .auth-right {
    padding: 25px;
  }
}
/* PREVENT PAGE SHIFT */
body.auth-open {
  overflow: hidden;
}
.auth-modal {
  display: flex;
  width: min(900px, 95vw);  
  margin: auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-height: 90vh;
}
.auth-overlay {
  position: fixed;
  inset: 0; /* better than top/left */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px; /* prevents edge cut */
}
/* ===============================
   MOBILE (IMPORTANT)
=================================*/
@media (max-width: 600px) {

  /* FULL SCREEN MODAL */
  .auth-overlay {
    align-items: flex-end;
  }

  .auth-modal {
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  /* REMOVE LEFT SIDE */
  .auth-left {
    display: none;
  }

  /* RIGHT FULL */
  .auth-right {
    width: 100%;
    padding: 20px;
  }

  /* STACK INPUTS */
  .name-row {
    flex-direction: column;
  }

  /* CAPTCHA FIX */
  .captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .captcha-row img {
    width: 110px;
    height: 40px;
  }

  /* BUTTON FULL WIDTH */
  #continueBtn,
  #verifyBtn {
    width: 100%;
  }

  /* TERMS SCROLL */
  .terms-box {
    max-height: 120px;
    overflow-y: auto;
  }

  /* TEXT FIX */
  .resend-text {
    font-size: 13px;
    text-align: center;
  }
}
@media (max-width: 600px) {

  .auth-modal {
    width: 350px;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    flex-direction: column;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    width: 100%;
    padding: 20px;
    overflow-y: auto;
  }
}
.terms-inline {
  display: flex;
  align-items: center;     
  justify-content: flex-start;  
  gap: 8px;
  width: fit-content;     
  margin-top: 10px;
}

/* checkbox */
.terms-inline input {
  margin: 0;
  flex-shrink: 0;
}

/* text */
.terms-inline span {
  white-space: nowrap;  /* keeps text in one line */
}
/* ================= NAV CONTAINER ================= */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= NAV LINKS ================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* NAV ITEMS */
.nav-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

/* Hover underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-orange);
}

.nav-link:hover::after {
  width: 100%;
}

/* ACTIVE LINK */
.nav-link.active {
  color: var(--primary-orange);
}

.nav-link.active::after {
  width: 100%;
}

/* ================= LOGIN BUTTON ================= */
.btn.orange {
  background: #ff7a18;
  color: var(--white);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn.orange:hover {
  background: var(--primary-orange-dark);
  transform: translateY(-1px);
}

/* ================= CART ================= */
.cart-container i {
  font-size: 18px;
  color: navy;
  transition: 0.3s;
}

.cart-container i:hover {
  color: var(--primary-orange);
}

/* Badge */
.cart-badge {
  font-size: 11px;
  font-weight: 600;
  background: red;
  color: var(--white);
  padding: 2px 6px;
  border-radius: 50%;
}

/* UNDERLINE (hidden by default) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* HOVER EFFECT */
.nav-link:hover {
  color: var(--navy); /* keep text navy */
}

.nav-link:hover::after {
  width: 100%;
}
/* ===== GLOBAL BACKGROUND FIX ===== */
body {
  background: #f9f4ee !important;
}
/* Footer Base Styling */
.site-footer {
  background: linear-gradient(180deg, #0b0f1a 0%, #1a1f35 100%);
  color: #ffffff;
  padding: 60px 0 20px 0;
  font-family: 'Inter', sans-serif; /* Ensuring a clean tech look */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Logo and Description */
.footer-logo-img {
  height: 225px;
  margin-bottom: 20px;
  filter: brightness(1.1); /* Makes logo pop against dark bg */
}

.footer-description {
  color: #b0b3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Social Icons */
.footer-socials a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  background: #ff8c00; /* Your orange brand color */
  transform: translateY(-3px);
}

/* Typography & Links */
.site-footer h3 {
  color: #ff8c00; /* Using orange for section titles */
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: navy;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ffffff;
  padding-left: 5px; /* Subtle interaction */
}

.footer-contact p {
  color: #b0b3b8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
}
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
/*  AUTH OVERLAY */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 25, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MODAL */
.auth-modal {
  display: flex;
  width: 700px;
  max-width: 90%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #ff6b00, #cc9042);
  color: white;
  padding: 30px;
}

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  padding: 30px;
}

/* INPUT */
.auth-right input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

/* BUTTON */
.auth-right button {
  width: 100%;
  padding: 12px;
  background:#ff6b00;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

/* ERROR */
.error {
  color: red;
  font-size: 12px;
}

/* TERMS */
.terms {
  font-size: 14px;
}

/* ANIMATION */
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/*  BLOCK PAGE */
body.auth-active {
  overflow: hidden;
}

.auth-active .container {
  filter: blur(6px);
  pointer-events: none;
}
/* CAPTCHA BOX */
.captcha-box {
  margin: 10px 0;
}

/* ROW */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CAPTCHA IMAGE */
#captchaImage {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* REFRESH BUTTON */
.refresh-btn {
  padding: 6px 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
}

/* INPUT */
#captchaInput {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
}
/* NAME ROW */
.name-row {
  display: flex;
  gap: 10px;
}

.name-row input {
  width: 100%;
}

/* TERMS BOX */
.terms-box {
  background: #f8f9ff;
  border: 1px solid #e0e3ff;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

.terms-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.terms-box ul {
  padding-left: 15px;
  font-size: 13px;
}

.terms-box li {
  margin-bottom: 4px;
}
.terms-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
}

.terms-inline input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.resend-btn {
  margin-top: 10px;
  background: transparent;
  color: #ff6b00;
  border: none;
  cursor: pointer;
}
p {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}
html, body {
    /* Remove any overflow settings that might be here */
    overflow-x: visible !important; 
    height: auto !important;
}

.site-header {
    position: -webkit-sticky; /* For Safari */
    position: sticky !important;
    top: 0;
    width: 100%;
    z-index: 1001; /* Must be higher than the main-grid and sidebar */
    background-color: #ffffff; /* Essential to prevent transparency */
}
/* Update your site-header to include these specifically */
.site-header {
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Adds a visual cue that it is sticking */
}

/* Ensure the main content doesn't have a transform that breaks the stacking context */
.main-grid {
    position: relative;
    z-index: 1; /* Keep this lower than the header's 1001 */
}
/* ============================================================
   favourite.css  —  MyWeaverLabs
   Styles for: favourite heart icon + save-for-later bookmark
   ============================================================ */

/* ── Card image wrapper must be relative ── */
.course-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* ── Icon button shared base ── */
.fav-btn,
.sfl-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.15s;
    z-index: 5;
    padding: 0;
    outline: none;
}

.fav-btn:hover,
.sfl-btn:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.1);
}

.fav-btn:active,
.sfl-btn:active {
    transform: scale(0.95);
}

/* ── Heart — top RIGHT corner ── */
.fav-btn {
    top: 8px;
    right: 8px;
}

/* ── Bookmark — top LEFT corner ── */
.sfl-btn {
    top: 8px;
    left: 8px;
}

/* ── SVG icons inside buttons ── */
.fav-btn svg,
.sfl-btn svg {
    width: 15px;
    height: 15px;
    transition: fill 0.18s, stroke 0.18s;
    pointer-events: none;
}

/* ── Default state: hollow white outline ── */
.fav-btn svg {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfl-btn svg {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Active (favourited) state: solid red heart ── */
.fav-btn.fav-active svg {
    fill: #e94560;
    stroke: #e94560;
}

/* ── Active (saved for later) state: solid amber bookmark ── */
.sfl-btn.sfl-active svg {
    fill: #f59e0b;
    stroke: #f59e0b;
}

/* ── Loading spinner feel: dim + pulse ── */
.fav-btn.fav-loading,
.sfl-btn.sfl-loading {
    animation: fav-pulse 0.6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes fav-pulse {
    from { opacity: 1; }
    to   { opacity: 0.4; }
}

/* ── Pop animation when added ── */
@keyframes fav-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.fav-btn.fav-active,
.sfl-btn.sfl-active {
    animation: fav-pop 0.3s ease-out;
}

/* ── Toast notification ── */
#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Tooltip on hover ── */
.fav-btn::after,
.sfl-btn::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.fav-btn:hover::after,
.sfl-btn:hover::after {
    opacity: 1;
}
/* ============================================================
   profile-dropdown.css
   Profile icon + dropdown styles — navy & orange only.
   Link this in every page that uses the header.
============================================================ */

/* ── tokens ─────────────────────────────────────────────── */
:root {
  --pd-navy:        #0d1b3e;
  --pd-navy-mid:    #1a2d5a;
  --pd-orange:      #f47b20;
  --pd-orange-dark: #d4631a;
  --pd-orange-pale: #fff3e8;
}

/* ── profile icon button ────────────────────────────────── */
.profile-wrap {
  position: relative;
  display: inline-block;
}

.profile-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pd-orange);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-btn:hover,
.profile-btn.open {
  border-color: var(--pd-orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.35);
}

/* ── dropdown panel ─────────────────────────────────────── */
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(9, 19, 40, 0.28);
  overflow: hidden;
  z-index: 9999;
  animation: pdDropIn 0.18s ease;
}

.profile-dropdown.visible {
  display: block;
}

@keyframes pdDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── header strip (navy bg with avatar + name/email) ─────── */
.pd-header {
  background: var(--pd-navy);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pd-orange);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

.pd-info {
  min-width: 0;
}

.pd-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.73rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── section label ──────────────────────────────────────── */
.pd-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa3b2;
  padding: 0.6rem 1rem 0.2rem;
}

/* ── list item (fav / saved) ────────────────────────────── */
.pd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--pd-navy);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.pd-item:hover {
  background: var(--pd-orange-pale);
  color: var(--pd-orange-dark);
}

.pd-item svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.pd-item:hover svg {
  opacity: 1;
}

/* ── purchase history row ───────────────────────────────── */
.pd-purchase-row {
  border-left: 3px solid var(--pd-orange);
  margin: 0.2rem 1rem;
  padding: 0.3rem 0.55rem;
  background: var(--pd-orange-pale);
  border-radius: 0 6px 6px 0;
  font-size: 0.76rem;
  color: var(--pd-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-purchase-row span {
  font-weight: 600;
  color: var(--pd-orange-dark);
}

/* ── empty state ────────────────────────────────────────── */
.pd-empty {
  font-size: 0.76rem;
  color: #b0b8c9;
  padding: 0.25rem 1rem 0.5rem;
  font-style: italic;
}

/* ── divider ────────────────────────────────────────────── */
.pd-divider {
  height: 1px;
  background: #f0f2f5;
  margin: 0.35rem 0;
}

/* ── logout button ──────────────────────────────────────── */
.pd-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: #c0392b;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
}

.pd-logout:hover {
  background: #fff0f0;
}
/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
  /* 1. Reset Header Container to allow full-width children */
  .site-header .container.header-inner {
    position: static; 
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 2. Full-Screen Hamburger Menu */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    position: fixed; /* Fixed to the whole screen */
    top: 0;
    left: 0;
    width: 100vw;
    
    background: #ffffff;
    padding-top: 100px; /* Space for the logo/X button */
    z-index: 999;
    
  }

  .main-nav.active {
    display: flex; /* Shown when toggled */
  }

  /* 3. Center Navigation Links */
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 1.2rem;
  }

  /* 4. Fix Cart and Badge Alignment */
  .cart-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }

  .cart-container a {
    position: relative; /* Badge stays relative to icon */
    display: inline-block;
    width: fit-content;
  }

  .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ca1d1d;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 5. Center Profile Button & Fix Dropdown */
  .profile-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-btn {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
  }

  /* Prevent dropdown from cutting off */
  .profile-dropdown {
    position: relative; /* Pushes content down instead of floating */
    width: 90%;
    max-width: 340px;
    margin: 15px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    left: 0 !important;
    right: 0 !important;
  }

  /* Ensure the Hamburger Toggle stays on top */
  #menuToggle {
    position: relative;
    z-index: 1000;
  }
}
@media (max-width: 768px) {
  /* Reduce the top padding of the entire menu to bring content higher */
  .main-nav {
    padding-top: 60px !important; /* Decreased from 100px */
  }

  /* Reduce the space between the cart and the profile icon */
  .profile-wrap {
    margin-top: 5px !important; /* Decreased to move MK button closer to cart */
    gap: 0;
  }

  /* Fix the Profile Button's own spacing */
  .profile-btn {
    margin: 5px auto !important; /* Reduce vertical margin around the MK circle */
  }

  /* Decrease the gap between the MK button and the start of the dropdown */
  .profile-dropdown {
    margin-top: 5px !important; /* Moves the dropdown header closer to the button */
    top: 0 !important; /* Ensures no extra top offset */
  }

  /* Optional: Reduce vertical padding inside the dropdown header */
  .pd-header {
    padding: 10px 15px !important; 
  }
  
  /* Ensure navigation links don't have excessive bottom margin */
  .nav-link {
    margin-bottom: 10px !important; 
    padding: 10px 0 !important;
  }
}
/* ===============================
   FOOTER STYLING (WHITE TO GREEN)
   =============================== */

.site-footer {
  /* Blends from an elegant off-white down into your sage green */
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 40%, var(--complient-sage-green, #114d27) 100%);
  
  padding: 80px 0 30px;
  margin-top: 80px;
    border-top: 3px solid #e7e2df;
  position: relative;
  
 
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* Responsive drop for mobile screen layouts */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   TEXT COLOR CONTRAST REFINEMENTS
   Because the top half is white, text needs to be dark at 
   the top and stand out cleanly across the whole block.
   =================================================== */

/* Headings (Now dark charcoal so they stand out on the white top half) */
.site-footer h3 {
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #ff6b1a;
}

/* Main Brand Text paragraph */
.footer-brand p {
  color: #334155; 
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 350px;
}

/* Navigation Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #334155; 
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ff6b1a;
  padding-left: 5px;
}

/* Contact Info Area */
.footer-contact p {
  color: #334155; 
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: #ff6b1a;
  width: 20px;
}

/* SOCIAL ICONS (Dark borders/icons so they look clean on the bright background) */
.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(30, 41, 59, 0.08); /* Muted semi-transparent dark ring */
  color: #1e293b !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.socials a:hover {
  background: #ff6b1a;
  transform: translateY(-5px);
  color: #fff !important;
}

/* Bottom Copyright Strip */
.copy {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 25px;
  text-align: center;
  color: #e2e8f0; /* Crisp white-slate text to pop perfectly off the green base */
  font-size: 0.9rem;
}



/* Responsive drop for mobile screen layouts */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}



/* Headings */
.site-footer h3 {
  color: #0b0b45; 
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #ff6b1a;
}

/* Main Brand Text paragraph */
.footer-brand p {
  color: #0b0b45; 
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 350px;
}

/* Navigation Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #0b0b45; 
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ff6b1a;
  padding-left: 5px;
}

/* Contact Info Area */
.footer-contact p {
  color: #0b0b45; 
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: #ff6b1a;
  width: 20px;
}

/* SOCIAL ICONS */
.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(11, 11, 69, 0.08); 
  color: #0b0b45 !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.socials a:hover {
  background: #ff6b1a;
  transform: translateY(-5px);
  color: #fff !important;
}


.copy {
  border-top: 1px solid rgba(11, 11, 69, 0.1);
  padding-top: 25px;
  text-align: center;
  color: #e2e8f0; 
  font-size: 0.9rem;
}
/* ==========================================================================
   GET STARTED NAVBAR BUTTON - EXTRA WIDE EDITION
   ========================================================================== */
.nav-btn-get-started {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  
  /* --- MAXIMUM WIDTH LAYOUT CHANGES --- */
  min-width: 150px !important;              /* Significantly wider baseline footprint */
  height: 52px !important;                 /* Proportional height boost for larger width */
  padding: 0 76px 0 36px !important;       /* Generous horizontal inner spacing */
  box-sizing: border-box !important;
  border-left: 4px;
  
  /* Styling & Colors */
  background-color: #ffffff !important;    
  color: #1a253c !important;               /* Deep Navy Blue text */
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 16px !important;              /* Slightly larger text to match size */
  font-weight: 500 !important;
  text-decoration: none !important;
  border: 2px solid #f97316 !important;     /* Clean orange border */
  border-radius: 8px !important;           
  
  /* Vector Arrow Setup */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 24' stroke='%23f97316' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2 12h26M20 4l8 8-8 8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 28px) center !important; 
  
  /* --- EXTRA WIDE ARROW GRAPHIC DIMENSIONS --- */
  background-size: 36px 20px !important;    /* Expanded scale for a longer, more prominent arrow */
  
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

/* Dynamic Interactive States */
.nav-btn-get-started:hover {
  background-color: #fff7ed !important;    
  background-position: calc(100% - 22px) center !important; /* Smooth tracking micro-movement */
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15) !important;
}
#authBtn[style*="display: none"],
#authBtn[style*="display:none"] {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* ==========================================================================
   GET STARTED NAVBAR BUTTON - EXTRA WIDE EDITION
   ========================================================================== */
.nav-btn-get-started {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  /* --- MAXIMUM WIDTH LAYOUT CHANGES --- */
  min-width: 150px !important;
  /* Significantly wider baseline footprint */
  height: 52px !important;
  /* Proportional height boost for larger width */
  padding: 0 76px 0 36px !important;
  /* Generous horizontal inner spacing */
  box-sizing: border-box !important;
  border-left: 2px;

  /* Styling & Colors */
  background-color: #ffffff !important;
  color: #1a253c !important;
  /* Deep Navy Blue text */
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 22px !important;
  /* Slightly larger text to match size */
  font-weight: 500 !important;
  text-decoration: none !important;
  border: 1px solid #f97316 !important;
  /* Clean orange border */
  border-radius: 8px !important;

  /* Vector Arrow Setup */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 24' stroke='%23f97316' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2 12h26M20 4l8 8-8 8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 28px) center !important;

  /* --- EXTRA WIDE ARROW GRAPHIC DIMENSIONS --- */
  background-size: 36px 24px !important;
  /* Expanded scale for a longer, more prominent arrow */

  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

/* Dynamic Interactive States */
.nav-btn-get-started:hover {
  background-color: #fff7ed !important;
  background-position: calc(100% - 22px) center !important;
  /* Smooth tracking micro-movement */
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15) !important;
}
/* ─────────────────────────────────────────────────
   MYWEAVERLABS NAVBAR – Simplified Riipen Aesthetic
───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  max-width: 1500px;
  margin: 0 auto;
}

.logo-img { 
  height:200px; 
  width: auto; 
  display: block; 
}

/* Pure CSS Hamburger Button (No FontAwesome dependency) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #1a2b56;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger to X Transformation */
.menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ── Top-level nav ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item { 
  position: relative; 
}

/* All top-level links and toggle buttons */
.nav-link,
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1a2b56;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .16s, background .16s;
  letter-spacing: .01em;
  outline: none;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link {
  color: #f58220;
}

/* Riipen-style Active Indicator Underline */
.nav-item.open > .nav-link {
  position: relative;
}
.nav-item.open > .nav-link::after {
  content: '';
  position: absolute;
  bottom: -14px; /* Pins nicely underneath the bottom of header layout */
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: #f58220;
  z-index: 1000;
}

/* Chevron arrow indicator */
.nav-chevron {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav-item.open > .nav-link .nav-chevron { 
  transform: rotate(180deg); 
}

/* ─────────────────────────────────────────────
   MEGA / FULL-WIDTH DROPDOWNS (Unified)
───────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e8eaf0;
  border-bottom: 1px solid #e8eaf0;
  box-shadow: 0 8px 32px rgba(26,43,86,.10);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s cubic-bezier(.4,0,.2,1);
}

.nav-item.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Inner block - scales with maximum header containment metrics */
.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 2rem 36px;
  display: flex;
  gap: 64px;
}

.mega-col {
  min-width: 160px;
}

/* Header Text categorization context tags */
.mega-col-heading {
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .09em;
  
  color: #a0abc0;
  margin: 0 0 14px;
  padding: 0;
}

/* Interactive routes within dropdown cards */
.mega-link {
  display: block;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a2b56;
  text-decoration: none;
  padding: 6px 0;
  transition: color .15s;
  line-height: 1.4;
}
.mega-link:hover { 
  color: #f58220; 
}

/* Dummy/In-progress styling rule sets */
.mega-link-soon {
  color: #b0bac8;
}
.mega-link-soon::after {
  content: ' — soon';
  font-size: 0.75rem;
  color: #c8d0dc;
}

/* ── Login / Action Interface Button ── */
.nav-btn-login {
  margin-left: 12px;
  padding: 8px 22px;
  background: transparent;
  color: #1a2b56;
  border: 1.5px solid #1a2b56;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-btn-login:hover {
  background: #1a2b56;
  color: #ffffff;
}

/* ── Backdrop Layout ── */
#megaBackdrop {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(10,20,50,.15);
  z-index: 997;
}
#megaBackdrop.active { 
  display: block; 
}

/* ─────────────────────────────
   MOBILE RESPONSIVE OVERRIDES
───────────────────────────────*/
@media (max-width: 900px) {
  .menu-toggle { 
    display: flex; 
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px;
    left: 0; 
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 8px 24px rgba(26,43,86,.1);
    padding: 16px;
    gap: 4px;
    z-index: 999;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.open { 
    display: flex; 
  }

  .nav-item { width: 100%; }
  .nav-link { width: 100%; border-radius: 7px; justify-content: space-between; padding: 12px 14px; }
  .nav-item.open > .nav-link::after { display: none; }

  .mega-menu {
    position: static;
    transform: none !important;
    border: none;
    box-shadow: none;
    display: none;
    padding: 0;
    background: #fafafa;
    border-radius: 6px;
  }
  .nav-item.open .mega-menu { 
    display: block; 
    opacity: 1; 
  }

  .mega-inner {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }
  
  .mega-col-heading { 
    margin-bottom: 8px; 
  }

  .nav-btn-login { 
    margin: 12px 0 4px; 
    justify-content: center; 
    width: 100%; 
  }
  
  #megaBackdrop { 
    display: none !important; 
  }
}
/* ─────────────────────────────────────────────────
   MYWEAVERLABS NAVBAR – Professional Card Layout
───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  max-width: 100%;
  margin: 0 auto;
}

.logo-img { 
  margin-top: 12px;
  height: 220px; 
  width: auto; 
  display: block; 
}

/* Mobile Toggle Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #1a2b56;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Top Level Navigation links ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { 
  position: relative; 
}


.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link {
  color: #f58220;
}

/* Underline Indicator */
.nav-item.open > .nav-link {
  position: relative;
}
.nav-item.open > .nav-link::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: #f58220;
  z-index: 1000;
}

.nav-chevron {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav-item.open > .nav-link .nav-chevron { 
  transform: rotate(180deg); 
}

/* ─────────────────────────────────────────────
   PROFESSIONAL CARD-BASED MEGA DROPDOWNS
───────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
  box-shadow: 0 12px 40px rgba(26, 43, 86, 0.08);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 2rem;
}

.mega-col {
  width: 100%;
  max-width: 760px; /* Limits width so descriptions remain scannable */
  display: flex;
  flex-direction: column;
}

/* Layout Meta Tags (Small Context indicator text) */
.mega-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f58220;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mega-col-heading {
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2b56;
  margin: 0 0 24px 0;
  padding: 0;
}

/* The Premium Card Item */
.mega-card {
  display: block;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 12px;
  cursor: pointer;
}

.mega-card:last-child {
  margin-bottom: 0;
}

/* Hover States for Active Menu Cards */
.mega-card:not(.coming-soon):hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.mega-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2b56;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.mega-card:not(.coming-soon):hover .mega-card-title {
  color: #f58220;
}

.mega-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
}

/* Coming Soon & Inactive Card Configurations */
.coming-soon {
  cursor: default;
  opacity: 0.75;
}

.badge-soon {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── Login / Actions Button ── */
.nav-btn-login {
  margin-left: 8px;
  padding: 8px 20px;
  background: transparent;
  color: #1a2b56;
  border: 1.5px solid #1a2b56;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-btn-login:hover {
  background: #1a2b56;
  color: #ffffff;
}

/* Backdrop Overlay */
#megaBackdrop {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(2px); /* Adds high-end glass texture to workspace background */
  z-index: 997;
}
#megaBackdrop.active { 
  display: block; 
}

/* ─────────────────────────────
   MOBILE RESPONSIVE OVERRIDES
───────────────────────────────*/
@media (max-width: 900px) {
  .menu-toggle { 
    display: flex; 
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px;
    left: 0; 
    right: 0;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    box-shadow: 0 10px 25px rgba(26, 43, 86, 0.08);
    padding: 16px;
    gap: 4px;
    z-index: 999;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.open { 
    display: flex; 
  }

  .nav-item { width: 100%; }
  .nav-link { width: 100%; border-radius: 7px; justify-content: space-between; padding: 12px 14px; }
  .nav-item.open > .nav-link::after { display: none; }

  .mega-menu {
    position: static;
    transform: none !important;
    border: none;
    box-shadow: none;
    display: none;
    padding: 0;
    background: #f8fafc;
    border-radius: 6px;
  }
  .nav-item.open .mega-menu { 
    display: block; 
    opacity: 1; 
  }

  .mega-inner {
    padding: 16px;
  }
  
  .mega-col-heading { 
    margin-bottom: 16px; 
    font-size: 1rem;
  }

  .mega-card {
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
  }

  .nav-btn-login { 
    margin: 12px 0 4px 0; 
    justify-content: center; 
    width: 100%; 
    padding: 12px;
  }
  
  #megaBackdrop { 
    display: none !important; 
  }
}
/* Add space to the left of the cart container on desktop viewports */
.cart-container {
  margin-left: 16px;  /* Adjust this value (e.g., 12px to 24px) to get your preferred spacing */
  margin-right: 20px;  /* Keeps a clean balanced gap before the Login button */
  display: inline-flex;
  align-items: center;
}

/* Optional styling to make sure the icon looks crisp and matches the menu link theme */
.cart-container a {
  color: #1a2b56;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.16s ease;
  padding: 8px;
}

.cart-container a:hover {
  color: #f58220;
}

/* Responsive Override: Adjust layout behavior inside the mobile slide-out drawer */
@media (max-width: 900px) {
  .cart-container {
    margin-left: 14px;  /* Aligns the icon beautifully with text margins on small screens */
    margin-top: 8px;   /* Prevents overlapping vertically on mobile stacks */
    margin-bottom: 8px;
  }
}

/* 1. Reset the container wrap to tightly hug the anchor link content dimensions */
.cart-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 16px !important; /* Clean horizontal layout gap between Contact and Profile */
    vertical-align: middle !important;
}

/* 2. Turn the link wrapper itself into the absolute coordinate engine layout boundary */
.cart-container a {
    position: relative !important;
    display: inline-block !important; /* Gives it an explicit, predictable bounding box shape */
    line-height: 1 !important;
    padding: 4px !important; /* Inner click padding box */
    text-decoration: none !important;
}

/* 3. The icon itself */
.cart-container .fa-cart-shopping {
    font-size: 20px !important;
    color: #002147 !important; /* Your brand navy base tone */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Target the absolute coordinate positions directly relative to the link boundary wrapper box */
#cartCount.cart-badge {
    position: absolute !important;
    
    /* Lock the alignment precisely to the top right corner vertex edge of the icon path */
    top: -8px !important;
    right: -4px !important;
    
    /* Visual Design Accents & Color Palette Rules */
    /* Premium brand accent orange highlight */
    color: #ffffff !important;
    
    /* Strict font scaling parameters to guarantee vertical center alignment inside the box */
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 16px !important; /* Must exactly match or be 2px less than height to center numbers */
    text-align: center !important;
    
    /* Geometry circle constraints */
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important; /* Forces a perfect mechanical circle shape profile */
    
    
    align-items: center !important;
    justify-content: center !important;
    
    /* Polished presentation depth tweaks */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* 1. HIDDEN STATE: Strict visibility blocks when mouse is outside */
.main-nav .nav-item .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important; /* Prevents ghost clicks when hidden */
    
    /* Smooth visual fade transition */
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 2. ACTIVE STATE: Triggered cleanly when mouse enters the link or dropdown block */
.main-nav .nav-item:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Re-enables clicking inside the dropdown */
}
/* 1. HIDDEN STATE: Strict visibility blocks when mouse is outside */
.main-nav .nav-item .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important; /* Prevents ghost clicks when hidden */
    
    /* Smooth visual fade transition */
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 2. ACTIVE STATE: Triggered cleanly when mouse enters the link or dropdown block */
.main-nav .nav-item:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Re-enables clicking inside the dropdown */
}
/* ============================================================
   REVERSED TYPOGRAPHY HIERARCHY (BIG TAGS, SMALLER SUBHEADS)
============================================================ */

/* 1. Main Accent Label — Swapped to be the dominant, biggest element */
.main-nav .mega-tag {
        font-family: Crimsonpro variablefont wght, sans-serif !important; /* Switched to bold display font */
    font-size: 22px !important;       /* Making it drastically bigger */
    font-weight: 800 !important;       /* Ultra bold structural thickness */
     /* Clean capitalization style */
    letter-spacing: -0.3px !important; /* Tight tracking for pro editorial aesthetic */
    color: #ff6b00 !important;         /* Vibrant brand orange pop */
    margin-bottom: 4px !important;
    display: block !important;
}

/* 2. Secondary Column Sub-Heading — Scaled down to sit under the tag */
.main-nav .mega-col-heading {
   font-family: Dmsans, sans-serif important; /* Switched to cleaner body font */
    font-size: 14px !important;       /* Small, elegant tag scale */
    font-weight: 800 !important;       /* Medium premium weight */
 
    letter-spacing: 1px !important;    /* Slightly spaced out readability */
         /* Muted high-contrast slate tone */
    margin: 0 0 24px 0 !important;     /* Creates breathing room before the cards */
}
/* ==========================================================================
    NAVIGATION STYLES
   ========================================================================== */

:root {
  --nav-font-family: 'DM Sans', sans-serif;
  --color-text-primary: #111928; 
  --color-text-muted: #4b5563;   /* Slate gray for menu descriptions */
  --color-accent: #047857;       /* Emerald Green accent line / active text */
  --header-bg: #ffffff;
  --dropdown-bg: #ffffff;
}

/* Base Header Setup */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  border-bottom: 1px solid #f3f4f6;
  z-index: 1000;
  font-family: var(--nav-font-family);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px; /* Matching the comfortable height of Riipen's navbar */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation Links Style */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.nav-item {
  display: inline-block;
  height: 100%;
}

/* Exact typography properties from screenshot */
.nav-link, 
.nav-item button.nav-link {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--nav-font-family);
  font-size: 20px;            /* Precise font scale */
  font-weight: 300;           /* Medium weight styling */
  color: var(--color-text-primary);
  text-transform: capitalize; 
  text-decoration: none;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

/* Hover and Active Visual states */
.nav-link:hover,
.nav-item:hover button.nav-link,
.nav-link.active {
  color:  #f58220!important;
}

/* Bottom green accent bar matching Riipen's dropdown active state */
.nav-item:hover button.nav-link::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color:  #f58220;
  border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   DROPDOWN / MEGA MENU STRUCTURE OVERRIDE
   ========================================================================== */

/* Full-width container positioned precisely below the navbar boundary */
.mega-menu {
  position: fixed;
  top: 80px; /* Must match .header-inner height exactly */
  left: 0;
  width: 100%;
  background-color: var(--dropdown-bg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #f3f4f6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

/* Shows dropdown state using your existing JS trigger mechanisms */
.nav-item:hover .mega-menu,
.nav-item button[aria-expanded="true"] + .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Layout framework matching Screenshot (15).jpg */
.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem 2rem; /* Clean asymmetric padding layout */
  display: flex;
  flex-direction: column;
}

/* Main Top Section Heading */
.mega-col-heading {
  font-family: var(--nav-font-family);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 1.5rem 0;
}

/* Subheading Content Stack Style */
.mega-tag {
  font-family: var(--nav-font-family);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  display: block;
}

/* List/Card layout for inner column references */
.mega-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Links inside dropdown mapping to screenshot styling */
.mega-card {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.mega-card-title {
  font-family: var(--nav-font-family);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.mega-card:hover .mega-card-title {
  color: var(--color-accent);
}

/* Hide descriptions to match cleaner text alignment in screenshot 2 */
.mega-card-desc, .badge-soon, .mega-tag {
  display: none !important; 
}
/* ==========================================================================
   DROPDOWN SPACING ADJUSTMENTS
   ========================================================================== */

/* Inner container padding - reduced top/bottom padding for a tighter fit */
.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem 2rem; /* Reduced from 2.5rem and 4rem */
  display: flex;
  flex-direction: column;
}

/* Main Heading margin - reduced bottom gap */
.mega-col-heading {
  font-family: var(--nav-font-family);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem 0; /* Cut in half from 1.5rem */
}

/* Subheading Content Stack Style */
.mega-tag {
  font-family: var(--nav-font-family);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem; /* Reduced from 1rem */
  display: block;
}

/* Column Link Stack - controls the gap between individual links */
.mega-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem; /* Tightened gap between lines from 0.85rem */
}

/* Individual Link Container adjustments */
.mega-card {
  text-decoration: none;
  display: block;
  padding: 0.15rem 0; /* Small vertical padding target for easy clicking */
  transition: transform 0.2s ease;
}

.mega-card-title {
  font-family: var(--nav-font-family);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.2; /* Tighter text tracking */
  transition: color 0.15s ease;
}

.mega-card:hover .mega-card-title {
  color: var(--color-accent);
}

/* Keeps descriptions hidden to maintain clean layout */
.mega-card-desc, .badge-soon, .mega-tag {
  display: none !important; 
}
/* ==========================================================================
   MYWEAVERLABS - COURSES LIST PAGE TYPOGRAPHY UNIFICATION
   ========================================================================== */

/* 1. Base Elements Override
   Ensures the core font family applies seamlessly to layout structures and elements.
*/
html, 
body, 
h1, h2, h3, h4, h5, h6, 
p, span, a, button, input, select, label, textarea, div, li, hr {
  font-family: 'DM Sans', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Filters Sidebar & Catalog Layout Controls
   Locks in typography rules for navigation menus, drop-down selects, and labels.
*/
.main-grid,
.filters,
.filters h3,
.filters label,
.filters select,
.filters option,
.small-muted,
.courses,
.section-title {
  font-family: 'DM Sans', sans-serif !important;
}

/* 3. Dynamic Course Cards Grid & Modals
   Forces fallback and native text rendering inside dynamic runtime list containers.
*/
.courses-grid,
#coursesList,
.course-card,
.course-title,
.course-price,
.pagination,
.modal-box h3,
.modal-box p,
.modal-btn {
  font-family: 'DM Sans', sans-serif !important;
}

/* 4. Shared Layout Modules (Header, Global Overlays, and Footer)
   Maintains interface parity across multiple page components.
*/
#searchInput,
.mega-col-heading,
.mega-card-title,
.mega-card-desc,
.nav-link,
.nav-btn-get-started,
.auth-modal h2,
.auth-modal h3,
.auth-modal p,
.auth-benefits p,
.footer-description,
.footer-links h3,
.footer-contact h3 {
  font-family: 'DM Sans', sans-serif !important;
}
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important; /* Forces structural alignment for vector icons */
}