body {
    background: linear-gradient(to bottom, #d4e6f7, #eaf5ff);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.content-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/*── Slide‑In Form Styles ──*/
.form-container {
  position: fixed;
  bottom: -100%;
  right: 20px;
  width: 320px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: bottom 0.5s ease-in-out;
  z-index: 999;
}
.form-container.active {
  bottom: 20px;
}
/* Inputs */
.form-container input,
.form-container textarea {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
/* Close button override */
#closeForm {
  background: #e53e3e !important;
  color: #fff !important;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.nav-link {
    position: relative;
    color: #333; /* Ensure default nav link color */
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #e53e3e;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
     color: #e53e3e; /* Ensure hover color */
}
.hero-gradient {
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}
.login-btn {
    transition: all 0.3s ease;
}
.login-btn:hover {
    transform: translateY(-2px);
}
.section-heading {
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: #e53e3e;
}
.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #e53e3e #eaf5ff;
}
.scroll-container::-webkit-scrollbar {
    height: 8px;
}
.scroll-container::-webkit-scrollbar-track {
    background: #eaf5ff;
    border-radius: 10px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background-color: #e53e3e;
    border-radius: 10px;
}
.course-card, .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
/* Ensure mobile menu links have color */
#mobile-menu a {
    color: #333;
}
#mobile-menu a:hover {
    background-color: #f3f4f6; /* gray-100 */
    color: #e53e3e;
}
.site-logo {
  width: auto; /* Let width adjust based on height */
  height: auto; /* Maintain aspect ratio */
  max-height: 60px; /* Control the maximum height */
  object-fit: contain; /* Ensure the image scales within bounds without distortion */
}

/* Add styles for potential future features like modals or cart */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Dim background */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

#cart-count {
    background-color: #e53e3e;
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.4em;
    font-size: 0.7rem;
    position: relative;
    top: -8px;
    left: -5px;
    display: inline-block; /* Initially hidden, shown via JS */
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}
