: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: Cambria, Cochin, Georgia, Times, 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: Cambria, Cochin, Georgia, Times, 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);
  }
}

.featured-intro,
.featured-recipes,
.categories-section,
.featured-chefs,
.latest-articles {
  margin: 0 auto;
}

/* Content Section 1: Giới thiệu nổi bật */
.featured-intro {
  width: 80%;
  padding: 80px 100px;
  background: linear-gradient(135deg, var(--PINK) 0%, rgba(255, 238, 229, 0.5) 100%);
  position: relative;
  overflow: hidden;
  border: 30px;
  font-family: Cambria, Cochin, Georgia, Times, sans-serif;
}

.featured-intro .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.intro-content {
  flex: 1;
  max-width: 500px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #54091b;
  position: relative;
}

.section-title span {
  background: var(--RED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.intro-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.stats-container {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--RED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #54091b;
}

.intro-visual {
  flex: 1;
  position: relative;
  height: 400px;
}

.floating-image {
  position: absolute;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.floating-image:hover {
  transform: translateY(-10px);
}

.intro-img-main {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.floating-image:first-child {
  top: 0;
  right: 50px;
  z-index: 3;
}

.floating-image.secondary {
  width: 200px;
  height: 200px;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.intro-img-secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-element {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--RED);
  border-radius: 50%;
  bottom: 50px;
  left: 50px;
  opacity: 0.1;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

/* Content Section 2: Công thức nổi bật */
.featured-recipes {
  width: 90%;
  padding: 40px 0;
  background-color: var(--WHITE);
  font-family: Cambria, Cochin, Georgia, Times, sans-serif;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.recipe-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recipe-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.1);
}

.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(84, 9, 27, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
}

.quick-view {
  background: var(--WHITE);
  color: #54091b;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-view:hover {
  background: var(--PINK);
  transform: translateY(-3px);
}

.recipe-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--RED);
  color: var(--WHITE);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.recipe-badge.trending {
  background: #ff9900;
}

.recipe-content {
  padding: 20px;
}

.recipe-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #54091b;
}

.recipe-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #666;
}

.recipe-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.recipe-link {
  display: inline-block;
  color: #ee0039;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.recipe-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--RED);
  transition: all 0.3s ease;
}

.recipe-link:hover::after {
  width: 100%;
}

.section-cta {
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: var(--RED);
  color: var(--WHITE);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #d10032;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(238, 0, 57, 0.2);
}

/* Content Section 3: Danh mục công thức */
.categories-section {
  width: 90%;
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--WHITE) 0%, var(--PINK) 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--WHITE);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--RED);
  z-index: -1;
  transition: all 0.5s ease;
}

.category-card:hover::before {
  height: 100%;
}

.category-card:hover {
  transform: translateY(-10px);
  color: var(--WHITE);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--PINK);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--WHITE);
}

.category-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #54091b;
  transition: all 0.3s ease;
}

.category-card:hover h3 {
  color: var(--WHITE);
}

.category-card p {
  color: #666;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.category-card:hover p {
  color: var(--WHITE);
}

.category-hover {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: all 0.3s ease;
}

.category-card:hover .category-hover {
  bottom: 30px;
  opacity: 1;
}

.category-hover a {
  color: var(--WHITE);
  text-decoration: none;
  font-weight: 600;
}

/* Content Section 4: Đầu bếp nổi bật */
.featured-chefs {
  width: 90%;
  padding: 40px 0;
  background-color: var(--WHITE);
  font-family: Cambria, Cochin, Georgia, Times, sans-serif;
}

.chefs-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.chef-card {
  background: var(--WHITE);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.chef-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.chef-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.chef-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.chef-card:hover .chef-image img {
  transform: scale(1.1);
}

.chef-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: rgba(84, 9, 27, 0.7);
  transition: all 0.3s ease;
}

.chef-card:hover .chef-social {
  bottom: 0;
}

.chef-social a {
  color: var(--WHITE);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.chef-social a:hover {
  color: var(--PINK);
  transform: translateY(-3px);
}

.chef-info {
  padding: 20px;
}

.chef-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #54091b;
}

.chef-title {
  display: block;
  font-size: 0.9rem;
  color: #ee0039;
  margin-bottom: 15px;
  font-weight: 600;
}

.chef-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.chef-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.chef-stat {
  text-align: center;
}

.chef-stat .stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #54091b;
}

.chef-stat .stat-label {
  font-size: 0.8rem;
  color: #666;
}

/* Content Section 5: Bài viết mới nhất */
.latest-articles {
  width: 90%;
  padding: 40px 10px;
  font-family: Cambria, Cochin, Georgia, Times, sans-serif;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  background: var(--WHITE);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-card.featured {
  grid-column: span 2;
  display: flex;
}

.article-card.featured .article-image {
  flex: 1;
  height: auto;
}

.article-card.featured .article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--RED);
  color: var(--WHITE);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content {
  padding: 20px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.article-date {
  color: #666;
}

.article-category {
  color: var(--RED);
  font-weight: 600;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #54091b;
}

.article-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.article-link {
  display: inline-block;
  color: #ee0039;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.article-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--RED);
  transition: all 0.3s ease;
}

.article-link:hover::after {
  width: 100%;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .featured-intro .container {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  .stats-container {
    justify-content: center;
  }
  
  .article-card.featured {
    grid-column: span 1;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .recipes-grid,
  .categories-grid,
  .chefs-slider,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}