@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  margin: 0;
  padding-top: 80px; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); 
  background-color: #fff;
  z-index: 10;
  padding: 20px 40px;
  border-bottom: 1px solid #e0e0e0;
  max-width: 1160px;
  width: 100%; 
}

.header-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo-and-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #6c5fbc;
}

.nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;

}

.nav a:hover{
  color: #6c5fbc;
}

.auth a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}

.login {
  color: #6c5fbc;
}

.signup  {
  background-color: #6c5fbc;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.signup:hover {
  background-color: transparent;
  color: #6c5fbc;
  border-color: #6c5fbc;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 24px;
  height: 3px;
  background-color: #6c5fbc;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6.3px, 6.3px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6.3px, -6.3px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%; 
  width: 60%;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
  transition: left 0.4s ease;
  z-index: 1050;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
}

.mobile-menu.active {
  left: 0;
  opacity: 1; 
}


.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  color: #333;
  text-decoration: none;
  font-size: 25px;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #6c5fbc;
}

.mobile-nav .signup {
  background-color: #6c5fbc;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav .signup:hover {
  background-color: transparent;
  color: #6c5fbc;
  border-color: #6c5fbc;
}

@media (max-width: 768px) {
  .nav, .auth {
    display: none;
  }

  .burger {
    display: flex;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
  }
}

.article-section {
  padding: 40px 20px;
  margin-top: 40px;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.author-info {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}

.author-label {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.article-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.section-container {
  padding: 60px 40px;
  background: #fff;
}

.content {
  display: flex;
  gap: 60px;
  margin: 0 auto;
}

.left {
  flex: 2;
  padding-right: 160px;
  padding-left: 30px;
}

.left h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 35px;
  margin-bottom: 20px;
  color: #1d1d1f;
}

.left p {
  font-size: 17px;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 26px;
}

.left ul {
  padding-left: 22px;
  margin-top: -10px;
  margin-bottom: 30px;
}

.left ul li {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.75;
  margin-bottom: 12px;
  list-style: disc;
}



.next-article-btn {
  background-color: #6c5fbc;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
}

.next-article-btn:hover {
  background-color: transparent;
  color: #6c5fbc;
  border-color: #6c5fbc;
}

.arrow {
  font-size: 16px;
}

.right {
  flex: 1;
}

.right h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.article {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  max-width: 200px;
  height: 270px;
  cursor: pointer;
}

.article .article-image {
  width: 100%;
  object-fit: cover;
}

.article-text {
  padding: 15px;
}

.title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.date {
  font-size: 12px;
  color: #888;
  margin: 0;
}
.content {
  position: relative;
}

.content::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(66.66%); 
  width: 1px;
  background-color: #e0e0e0;
}
@media (max-width: 1024px) {
  .content {
    flex-direction: column;
    padding: 40px 4%;
  }

  .content::before {
    display: none;
  }

  .right {
    display: none;
  }

  .left {
    padding-right: 0;
  }
  .article-title {
    font-size: 24px;
  }

  .author-info {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }

  .article-section {
    padding: 30px 50px;
  }
}
.footer {
  background-color: #ffffff;
  padding: 20px 40px;
  font-size: 14px;
  color: #000000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 30px;
  height: 30px;
}

.logo span {
  font-size: 18px;
  color: #6c5fbc;
  font-weight: bold;
}

.footer-nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

hr {
  margin: 20px 0;
  border: 0;
  height: 1px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons a {
  margin-left: 15px;
}

.social-icons img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 960px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: 0.3s ease;
}
.close-btn:hover {
  color: #333;
}

.modal-body {
  display: flex;
  flex-direction: row;
}

.modal-left {
  flex: 1;
  padding: 50px 40px;
}

.modal-left h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.brand {
  color: #6c5fbc;
}

.socials {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.social-btn {
  background: #f0f0f0;
  padding: 12px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.social-btn:hover {
  background: #e0e0e0;
}

.modal-overlay input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: 0.2s;
  margin: 5px 0;
}
form input:focus {
  border-color: #6c5fbc;
  outline: none;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  background: #6c5fbc;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}
.primary-btn:hover {
  background-color: transparent;
  color: #6c5fbc;
  border-color: #6c5fbc;
}

.alt-auth {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.alt-auth a {
  color: #6c5fbc;
  text-decoration: none;
}

.modal-right {
  flex: 1;
  background: #6c5fbc;
  color: white;
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.food-img {
  width: 80%;
  max-width: 280px;
  margin: 0 auto 20px;
}

.food-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.food-info p {
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-left, .modal-right {
    width: 100%;
    padding: 30px;
  }
}
.divider {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #ddd;
}