:root {
  --RED: linear-gradient(90deg, #ee0039, #54091b);
  --WHITE: #ffffff;
  --PINK: #ffeee5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--WHITE);
}

.header {
  width: 100%;
  background-color: var(--WHITE);
}

.navbar {
  background: var(--RED);
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 15px 20px;
  border-radius: 50px;
  margin-top: 35px;
  position: relative;
  z-index: 10;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu-right {
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--WHITE);
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 20px;
}

.nav-link:hover {
  background-color: var(--PINK);
  color: var(--RED);
  transform: translateY(-2px);
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--WHITE);
}

.logo-img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 50%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
}

.modal-login .modal-content {
  width: 500px;
  height: 80%;
}

.modal-register .modal-content {
  width: 500px;
  height: 90%;
}

#modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--WHITE);
  list-style: none;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(238, 0, 57, 0.1);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  color: #54091b;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 19px;
  padding: 10px 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--RED);
  transition: all 0.3s ease;
  z-index: -1;
}

.dropdown-link:hover {
  color: var(--WHITE);
  padding-left: 25px;
  transform: translateX(0);
}

.dropdown-link:hover::before {
  left: 0;
}

.dropdown-menu li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-menu li:nth-child(1) {
  transition-delay: 0.1s;
}

.dropdown-menu li:nth-child(2) {
  transition-delay: 0.15s;
}

.dropdown-menu li:nth-child(3) {
  transition-delay: 0.2s;
}

.banner-container {
  position: relative;
  width: 95%;
  max-width: 90%;
  margin: 60px auto;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--WHITE);
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.banner-slide.active .banner-content {
  transform: translateY(0);
}

.banner-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--PINK);
}

.banner-content p {
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 600px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--RED);
  color: var(--WHITE);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background: var(--PINK);
  color: var(--RED);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-control {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--RED);
  color: var(--PINK);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.banner-control:hover {
  transform: translateY(-50%) scale(1.1);
}

.banner-control.prev {
  left: 20px;
}

.banner-control.next {
  right: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--PINK);
  transform: scale(1.2);
}

.footer {
  background: var(--RED);
  color: var(--WHITE);
  padding: 60px 0 30px;
  margin-top: 80px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background-size: cover;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-section {
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--PINK);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--PINK);
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-section ul li::before {
  content: "➤";
  color: var(--PINK);
  margin-right: 10px;
  font-size: 12px;
}

.footer-section ul li a {
  color: var(--WHITE);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--PINK);
  transform: translateX(5px);
}

.footer-section p {
  font-size: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-section p::before {
  content: "📍";
  margin-right: 10px;
  color: var(--PINK);
}

.newsletter-form {
  position: relative;
  margin-top: 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--PINK);
  border-radius: 30px;
  background: transparent;
  color: var(--WHITE);
  font-family: Arial, sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 7px 15px;
  background: var(--RED);
  color: var(--RED);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 238, 229, 0.2);
  font-size: 14px;
  color: var(--RED);
}

.cooking-icon {
  display: inline-block;
  margin: 0 5px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.courses-section {
    padding: 80px 5%;
    background: linear-gradient(to bottom, #fff, #fff5f0);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
  background: var(--RED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 15px;
  position: relative;
}

.section-title h2::after {
    content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--RED);
  border-radius: 2px;
}

.section-title p {
    color: #777;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.course-card {
    background: var(--WHITE);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--RED);
    color: var(--WHITE);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: #ee0039;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.course-meta {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 5px;
    color: #ee0039;
}

.course-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--RED);
    color: var(--WHITE);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.course-btn:hover {
    background: var(--PINK);
    color: var(--RED);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.youtube-section {
    background: linear-gradient(135deg, rgba(238, 0, 57, 0.05) 0%, rgba(255, 238, 229, 0.1) 100%);
    padding: 70px 5%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.youtube-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('') center/cover no-repeat;
    opacity: 0.03;
    z-index: -1;
}

.youtube-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.youtube-content {
    flex: 1;
}

.youtube-video {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.youtube-video:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.youtube-video iframe {
    width: 100%;
    height: 315px;
    border: none;
    display: block;
}

.youtube-title {
    font-size: 32px;
    color: #54091b;
    margin-bottom: 20px;
    position: relative;
}

.youtube-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--RED);
    border-radius: 2px;
}

.youtube-description {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.youtube-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ee0039;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #777;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--RED);
    color: var(--WHITE);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.youtube-btn:hover {
    background: var(--RED);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.youtube-btn i {
    margin-right: 10px;
    font-size: 20px;
}