/* 
* Nippon Culinary - Japanese Cooking Blog
* Main Stylesheet
* © 2024 Nippon Culinary
*/

/* ================ Base Styles ================ */
:root {
  --primary-color: #d62c1f; /* Traditional Japanese red */
  --secondary-color: #1a1a1a;
  --accent-color: #f0cb94; /* Warm gold accent */
  --background-color: #f9f9f9;
  --text-color: #333;
  --light-gray: #f0f0f0;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --white: #fff;
  --black: #000;
  --font-primary: 'Noto Sans', sans-serif;
  --font-secondary: 'Noto Serif', serif;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #aa241a; /* Darker red on hover */
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn-primary {
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  display: inline-block;
}

button:hover, .btn-primary:hover {
  background-color: #aa241a;
  color: var(--white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  margin: 3rem 0;
}

/* ================ Header & Navigation ================ */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin: 0 1rem;
}

.main-menu a {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.main-menu a:hover::after,
.main-menu a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* ================ Hero Slider ================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  max-height: 600px;
  margin-bottom: 3rem;
}

.slider-container {
  display: flex;
  position: relative;
  height: 600px;
}

.slide {
  position: absolute;
  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;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  padding: 2rem;
  color: var(--white);
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.slider-dots {
  display: flex;
  margin: 0 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--white);
}

.prev-slide, .next-slide {
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.prev-slide:hover, .next-slide:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ================ Admin Preview ================ */
.admin-preview {
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.admin-preview h2 {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
}

.admin-frame {
  width: 100%;
  height: 300px;
  border: none;
  background-color: var(--light-gray);
}

/* ================ Featured Posts ================ */
.featured-posts {
  margin: 3rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 220px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-details h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.read-more:hover {
  transform: translateX(5px);
}

/* ================ Page Banner ================ */
.page-banner {
  position: relative;
  height: 300px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 800px;
}

.banner-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.banner-content p {
  font-size: 1.2rem;
}

/* ================ Recipe Categories ================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  height: 180px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.7);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  padding: 1.5rem 1rem 1rem;
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}

/* ================ Cooking Techniques ================ */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.technique-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.technique-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.technique-icon {
  background-color: rgba(214, 44, 31, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}

.technique-card h3 {
  margin: 0.5rem 0;
}

/* ================ About Page ================ */
.about-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-content {
  padding-right: 1rem;
}

.about-image {
  display: flex;
  align-items: center;
}

.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-member h3 {
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.team-member p {
  margin: 0.5rem 1rem 1rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.member-social a {
  color: var(--dark-gray);
  transition: var(--transition);
}

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

.testimonial-slider {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(214, 44, 31, 0.1);
  position: absolute;
  top: -10px;
  left: 10px;
  line-height: 1;
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-details h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-details p {
  margin: 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.prev-testimonial, .next-testimonial {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--medium-gray);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-testimonial:hover, .next-testimonial:hover {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

.testimonial-dots {
  display: flex;
  margin: 0 1rem;
}

.testimonial-dots .dot {
  background-color: var(--medium-gray);
}

.testimonial-dots .dot.active {
  background-color: var(--primary-color);
}

/* ================ Gallery Page ================ */
.gallery-filters {
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-btn {
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}

.modal-content {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-info {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--white);
  text-align: center;
}

.modal-info h3 {
  color: var(--white);
  margin-bottom: 0.2rem;
}

.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 2100;
}

.modal-prev {
  left: 30px;
}

.modal-next {
  right: 30px;
}

.modal-prev:hover, .modal-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ================ Contact Page ================ */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  padding-right: 1rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(214, 44, 31, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-content h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
}

.info-content p {
  margin: 0;
}

.social-contact {
  margin-top: 2rem;
}

.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form {
  margin-top: 1rem;
}

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

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

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 4px;
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-submit:hover {
  background-color: #aa241a;
}

.map-container {
  height: 450px;
  margin-top: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.accordion {
  margin-top: 1rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-header {
  width: 100%;
  background-color: var(--white);
  padding: 1.2rem;
  text-align: left;
  border: none;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--light-gray);
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background-color: var(--white);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 1rem 1.2rem;
  max-height: 200px;
}

.thank-you-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.thank-you-modal .modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: color 0.3s;
}

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

.thank-you-icon {
  color: #28a745;
  margin-bottom: 1rem;
}

.thank-you-modal h2 {
  margin-top: 0;
  color: #28a745;
}

/* ================ Footer ================ */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

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

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

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-details svg {
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

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

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ================ Cookie Consent ================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 1rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.btn-accept {
  background-color: #28a745;
}

.btn-customize {
  background-color: var(--dark-gray);
}

.btn-decline {
  background-color: transparent;
  border: 1px solid var(--white);
}

.cookie-policy {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cookie-policy a {
  color: var(--accent-color);
}

/* ================ Animations ================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================ Responsive Styles ================ */
@media (max-width: 1024px) {
  .about-columns,
  .contact-columns {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-top: 2rem;
  }
  
  .slider-container,
  .hero-slider {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: relative;
  }
  
  .main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    width: 250px;
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 100;
  }
  
  .main-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .main-menu li {
    margin: 0;
  }
  
  .main-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
  }
  
  .main-menu a::after {
    display: none;
  }
  
  .main-menu a.active,
  .main-menu a:hover {
    background-color: rgba(214, 44, 31, 0.1);
    color: var(--primary-color);
  }
  
  .slider-container,
  .hero-slider {
    height: 400px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .posts-grid,
  .values-grid,
  .technique-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .page-banner {
    height: 200px;
  }
  
  .banner-content h1 {
    font-size: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .posts-grid,
  .values-grid,
  .technique-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .slider-container,
  .hero-slider {
    height: 350px;
  }
  
  .slide-content h2 {
    font-size: 1.7rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
}
