:root {
  --primary-color: #e67e22;
  --secondary-color: #27ae60;
  --text-color: #2c3e50;
  --bg-color: #ecf0f1;
  --card-bg: #ffffff;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body Styling */
body {
  margin: 0;
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Global Loader */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body.loaded #loader-wrapper {
  opacity: 0;
  visibility: hidden;
}

/* Lazy Load Image Animation */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--heading-font-family);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation Bar */
.navbar {
  background-color: var(--text-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bg-color);
}

.navbar .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: var(--bg-color);
  transition: color 0.3s ease;
}

.navbar a:hover, .navbar a.active {
  color: var(--primary-color);
  text-decoration: none;
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 1rem;
}

.search-container input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--text-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  padding: 10px 16px;
  display: block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

/* Page Header */
.page-header {
  text-align: center;
  margin: 3rem 0;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* Sort Container */
.sort-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.sort-container select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Recipe Tags */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-bottom: 3rem;
  border-radius: 8px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
}

/* Slider Controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  border: none;
  z-index: 10;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.recipe-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-card.hidden {
  display: none;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.button:hover {
  background-color: #d35400;
  text-decoration: none;
}

.button + .button {
  margin-left: 0.5rem;
}

.secondary-button {
  background-color: #95a5a6;
  color: white;
}

.secondary-button:hover {
  background-color: #7f8c8d;
  text-decoration: none;
}

/* Inspiration Section */
.inspiration {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.skills-list li {
  background-color: var(--bg-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: var(--text-color);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--text-color);
  color: #ecf0f1;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #bdc3c7;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: #bdc3c7;
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #bdc3c7;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #95a5a6;
  font-size: 0.85rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--bg-color);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }
  .logo {
    order: 1;
  }
  .hamburger {
    display: flex;
    order: 2;
  }
  .search-container {
    width: 100%;
    margin: 1rem 0;
    order: 3;
  }
  .navbar .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    order: 4;
  }
  .navbar .nav-links.active {
    display: flex;
  }
  .navbar .nav-links li {
    margin: 0.5rem 0;
  }
  .dropdown:hover .dropdown-content {
    display: none;
  }
  .dropdown.active .dropdown-content {
    display: block;
    position: static;
    box-shadow: none;
  }
}

/* Recipe Detail Page */
.recipe-detail {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.recipe-header {
  text-align: center;
  margin-bottom: 2rem;
}

.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-color);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.serving-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.serving-btn:hover {
  background-color: #d35400;
}

.detail-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

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

.ingredients li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.calorie-calculator {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fff3e0;
  border-radius: 8px;
  text-align: center;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .recipe-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.related-recipes h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Reviews Section */
.reviews-section {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.reviews-section .button {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.review-item {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

.review-item span {
  color: #f39c12;
}

/* Print Styles */
@media print {
  .navbar, .reviews-section, .related-recipes, .site-footer, .print-btn, .share-btn, .print-profile-btn, .share-profile-btn, .change-password-btn {
    display: none !important;
  }
  body {
    background-color: white;
  }
  .recipe-detail {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}

/* Contact Page */
.contact-section {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem auto;
  max-width: 800px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-section h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  display: block;
  margin-top: 0.25rem;
}

.input-error {
  border-color: #e74c3c !important;
}

#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

.success-message {
  color: #2ecc71;
}

/* About Page */
.about-section {
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.about-section h1 {
  margin-bottom: 1.5rem;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #555;
}

.team-section {
  text-align: center;
  margin-bottom: 3rem;
}

.team-section h2 {
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
}

/* Events Section */
.events-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.events-section h2 {
  margin-bottom: 1.5rem;
}

.event-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.event-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.event-contact-text {
  color: #666;
  font-style: italic;
}

/* Featured Recipe Section */
.featured-recipe {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.featured-content {
  flex: 1;
  padding: 3rem;
}

.featured-image {
  flex: 1;
  width: 50%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .featured-recipe {
    flex-direction: column-reverse;
  }
  .featured-image {
    width: 100%;
    height: 250px;
  }
}

/* Pricing Section */
.pricing-section {
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: center;
}

.pricing-section h2 {
  margin-bottom: 2rem;
}

.pricing-table {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* Gallery Section */
.gallery-section {
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gallery-section h2 {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  background-color: var(--card-bg);
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
}

/* Back to Top Button */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#back-to-top:hover {
  background-color: #555;
}

/* Catering Page CTA */
.contact-cta {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-cta h2 {
  margin-bottom: 1rem;
}

.contact-cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta .button {
  background-color: white;
  color: var(--primary-color);
  font-weight: bold;
}

.contact-cta .button:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.close-lightbox:hover {
  color: var(--primary-color);
}

/* Learning Page */
.learning-section {
  margin-bottom: 3rem;
}

.learning-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.video-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.video-card h3 {
  padding: 1rem 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Calendar */
.calendar-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #eee;
  border: 1px solid #eee;
}

.day {
  background-color: var(--card-bg);
  min-height: 100px;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.day.empty {
  background-color: #f9f9f9;
}

.day.has-event {
  background-color: #fff8e1;
}

.event-label {
  display: block;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 5px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .day {
    min-height: 60px;
    font-size: 0.8rem;
  }
  .event-label {
    font-size: 0.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Class Detail Page */
.class-detail {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.class-header {
  text-align: center;
  margin-bottom: 2rem;
}

.class-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-color);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.class-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.class-sidebar .pricing-card {
  width: 100%;
  max-width: none;
}

.instructor-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-color);
  border-radius: 8px;
}

.instructor-profile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-profile h4 {
  margin: 0;
  color: var(--primary-color);
}

.instructor-profile p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .class-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  min-width: 70px;
  font-size: 0.9rem;
}

.countdown-item span {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* Profile Page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

.enrolled-section h2,
.saved-recipes-section h2 {
  margin-bottom: 2rem;
}

/* Add Recipe Page */
.add-recipe-section {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem auto;
  max-width: 800px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.add-recipe-section h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.add-recipe-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Dynamic Ingredient List */
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ingredient-item.dragging {
  opacity: 0.5;
  background: #f9f9f9;
  cursor: grabbing;
}

.ingredient-item input {
  flex-grow: 1;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.remove-item-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#add-ingredient-btn, #add-instruction-btn {
  margin-top: 1rem;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.step-number {
  font-weight: bold;
  padding-top: 0.8rem;
  color: var(--primary-color);
}

.instruction-item textarea {
  flex-grow: 1;
  resize: vertical;
  min-height: 50px;
}

.instruction-item .remove-item-btn {
  margin-top: 0.5rem;
}

.image-preview-hidden {
  display: none;
}

#image-preview {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  margin-top: 1rem;
  border-radius: 8px;
  object-fit: cover;
}

/* Chat Widget */
.chat-widget-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp-float, .chat-float {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  cursor: pointer;
  border: none;
  color: white;
}

.whatsapp-float {
  background-color: #25d366;
}

.chat-float {
  background-color: var(--primary-color);
}

.whatsapp-float:hover, .chat-float:hover {
  transform: scale(1.1);
  text-decoration: none;
  color: white;
}

.chat-window {
  display: none;
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 15px;
  height: 250px;
  overflow-y: auto;
  background-color: #f9f9f9;
  font-size: 0.9rem;
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 5px;
}

.chat-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chat-footer button {
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}