:root {
  --color-gold: #d4af37;
  --color-red: #8b3a3a;
  --color-cream: #f5f1e8;
  --color-dark: #1a1410;
  --color-light-gray: #e8e3d8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo svg {
  color: var(--color-gold);
}

.logo img {
  width: 120px;
  height: 80px;
}
/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 101;
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 250px;
}

.sidebar.collapsed {
  width: 60px;
  height: 60px;
  padding: 12px;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-red);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.sidebar.collapsed .sidebar-toggle {
  width: 100%;
  border-radius: 8px;
}

.sidebar-content {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-content {
  opacity: 0;
  pointer-events: none;
}

.nav-menu {
  list-style: none;
  margin-top: 20px;
}

.nav-menu li {
  margin: 12px 0;
}

.nav-link {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(139, 58, 58, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  flex: 1;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-red);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.8;
}

.hero-accent {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  margin-top: 40px;
  border-radius: 2px;
}

/*.hero-visual {*/
/*  flex: 1;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  position: relative;*/
/*  height: 400px;*/
/*}*/

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
}

/* Pure CSS auto-play image slider with smooth animations */
.image-slider {
  width: 100%;
  max-width: 500px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, #f5f1e8 0%, #e8daef 100%);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slideAuto 16s linear infinite;
}

.slider-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.slider-item:hover img {
  transform: scale(1.05);
}

@keyframes slideAuto {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(0);
  }
  25.1% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-100%);
  }
  50.1% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-200%);
  }
  75.1% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(-300%);
  }
}

/* Slider indicators */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(212, 175, 55, 0.3);
  animation: indicatorPulse 16s linear infinite;
}

.indicator[style*="--indicator-index: 0;"] {
  animation-delay: 0s;
}

.indicator[style*="--indicator-index: 1;"] {
  animation-delay: -4s;
}

.indicator[style*="--indicator-index: 2;"] {
  animation-delay: -8s;
}

.indicator[style*="--indicator-index: 3;"] {
  animation-delay: -12s;
}

@keyframes indicatorPulse {
  0% {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
  20% {
    background: rgba(212, 175, 55, 0.8);
    transform: scale(1.2);
  }
  25% {
    background: rgba(212, 175, 55, 0.8);
    transform: scale(1.2);
  }
  26% {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
  100% {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
}

/* Responsive slider */
@media (max-width: 768px) {
  .image-slider {
    height: 300px;
    border-radius: 15px;
  }

  .slider-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .image-slider {
    height: 250px;
    border-radius: 12px;
  }

  .slider-indicators {
    bottom: 12px;
    gap: 6px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* Replaced .saffron-threads with 3D saffron flower styles */
.saffron-flower-container {
  width: 300px;
  height: 300px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saffron-flower {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: rotateFlower 8s linear infinite;
}

@keyframes rotateFlower {
  0% {
    transform: rotateX(20deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(20deg) rotateY(360deg) rotateZ(0deg);
  }
}

.petal {
  position: absolute;
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, #9b59b6 0%, #c39bd3 50%, #e8daef 100%);
  border-radius: 50% 50% 50% 0;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -60px;
  transform-origin: 40px 60px;
  box-shadow: 0 10px 25px rgba(155, 89, 182, 0.4);
  filter: drop-shadow(0 5px 15px rgba(139, 58, 58, 0.3));
}

/* Position each petal at different angles */
.petal-1 {
  transform: rotateZ(0deg) rotateX(45deg);
}

.petal-2 {
  transform: rotateZ(60deg) rotateX(45deg);
}

.petal-3 {
  transform: rotateZ(120deg) rotateX(45deg);
}

.petal-4 {
  transform: rotateZ(180deg) rotateX(45deg);
}

.petal-5 {
  transform: rotateZ(240deg) rotateX(45deg);
}

.petal-6 {
  transform: rotateZ(300deg) rotateX(45deg);
}

.flower-center {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #f4d03f, #d4af37);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  z-index: 10;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(212, 175, 55, 0.5);
}

.flower-stamen {
  position: absolute;
  width: 8px;
  height: 60px;
  background: linear-gradient(180deg, #8b3a3a 0%, #d4af37 100%);
  left: 50%;
  top: 35%;
  margin-left: -4px;
  z-index: 11;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(139, 58, 58, 0.5);
}

/* Hover effect for interactivity */
.saffron-flower-container:hover .saffron-flower {
  animation-duration: 4s;
}

.saffron-threads {
  position: relative;
  width: 200px;
  height: 300px;
}

.saffron-threads::before,
.saffron-threads::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, var(--color-gold) 0%, rgba(212, 175, 55, 0.3) 100%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.saffron-threads::before {
  width: 100%;
  height: 100%;
  animation: float 6s ease-in-out infinite;
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
}

/* About Section */
.about {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-block:nth-child(1) {
  animation-delay: 0.1s;
}
.about-block:nth-child(2) {
  animation-delay: 0.2s;
}
.about-block:nth-child(3) {
  animation-delay: 0.3s;
}

.about-block.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.about-block.reverse > * {
  direction: ltr;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-block:hover .about-image img {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-red);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark);
  opacity: 0.7;
}

/* Why Choose Us Section */
.why-choose {
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
  padding: 100px 40px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  color: var(--color-red);
  margin-bottom: 80px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 58, 58, 0.1);
  border-color: var(--color-gold);
}

.card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  color: var(--color-gold);
  stroke-width: 1;
}

.card h3 {
  font-size: 20px;
  color: var(--color-red);
  margin-bottom: 12px;
  font-weight: 500;
}

.card p {
  font-size: 14px;
  color: var(--color-dark);
  opacity: 0.6;
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  padding: 100px 40px;
  background: var(--color-cream);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  grid-auto-rows: 1fr; /* ارتفاع ردیف‌ها یکسان شود */
}


.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  /* max-height حذف شود */
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.9) 0%, rgba(212, 175, 55, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-overlay p {
  color: white;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(139, 58, 58, 0.08) 100%);
  padding: 100px 40px;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.contact-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}

.contact-card:nth-child(3) {
  grid-column: span 2;
}

/* رفع باگ موبایل */
@media (max-width: 768px) {
  .contact-card:nth-child(3) {
    grid-column: span 1 !important;
  }
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(139, 58, 58, 0.08);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--color-gold);
  stroke-width: 1;
}

.contact-card h3 {
  color: var(--color-red);
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-card p {
  color: var(--color-dark);
  opacity: 0.7;
  font-size: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--color-gold);
  border: 2px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  background: var(--color-gold);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-cream);
  text-align: center;
  padding: 30px 40px;
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Blog Section */
.blog-header {
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  padding: 80px 40px;
  text-align: center;
  margin-top: 80px;
}

.blog-header h1 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--color-red);
  margin-bottom: 20px;
  font-weight: 400;
}

.blog-header p {
  font-size: 18px;
  color: var(--color-dark);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

.blog-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.blog-section {
  padding: 60px 40px;
}

.blog-controls {
  margin-bottom: 60px;
}

.blog-search {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 30px;
  background: white;
  color: var(--color-dark);
  transition: border-color 0.3s ease;
}

.blog-search:focus {
  outline: none;
  border-color: var(--color-gold);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  background: white;
  color: var(--color-dark);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: white;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.blog-post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.1);
}

.blog-post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

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

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

.blog-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post-content h2 {
  font-size: 24px;
  color: var(--color-red);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-date {
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.5;
  margin-bottom: 16px;
}

.blog-excerpt {
  font-size: 15px;
  color: var(--color-dark);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 24px;
}

.read-more {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: fit-content;
}

.read-more:hover {
  color: var(--color-red);
  transform: translateX(4px);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-dark);
  opacity: 0.6;
  font-size: 18px;
}

/* Blog Post Detail Page */
.blog-post-article {
  margin-top: 80px;
}

.blog-post-header {
  position: relative;
  margin-bottom: 60px;
}

.blog-post-hero {
  width: 100%;
  /* height: 500px; */
  object-fit: cover;
  border-radius: 8px;
}

.blog-post-meta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.blog-post-category {
  background: var(--color-gold);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-post-date {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.blog-post-body {
  background: white;
  border-radius: 8px;
  padding: 60px 40px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.blog-post-body h1 {
  font-size: 42px;
  color: var(--color-red);
  margin-bottom: 40px;
  line-height: 1.3;
  font-weight: 400;
}

.blog-post-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark);
  opacity: 0.8;
}

.blog-post-text p {
  margin-bottom: 24px;
}

.back-to-blog {
  display: inline-block;
  margin-top: 40px;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  color: var(--color-red);
  transform: translateX(-4px);
}

/* Related Posts */
.related-posts {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(139, 58, 58, 0.05) 100%);
}

.related-posts h2 {
  font-size: 36px;
  color: var(--color-red);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 400;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.related-post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.1);
}

.related-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.related-post-card h3 {
  font-size: 18px;
  color: var(--color-red);
  padding: 20px 20px 12px;
  font-weight: 500;
}

.related-post-card p {
  font-size: 14px;
  color: var(--color-dark);
  opacity: 0.6;
  padding: 0 20px 16px;
  line-height: 1.6;
}

.related-post-card a {
  display: block;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.related-post-card a:hover {
  color: var(--color-red);
  transform: translateX(4px);
}

/* Latest Posts on Homepage */
.latest-posts {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(139, 58, 58, 0.05) 100%);
}

.section-subtitle {
  text-align: center;
  color: var(--color-dark);
  opacity: 0.7;
  font-size: 16px;
  margin-bottom: 60px;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.latest-post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.latest-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(139, 58, 58, 0.1);
}

.latest-post-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

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

.latest-post-info {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.latest-post-category {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.latest-post-info h3 {
  font-size: 20px;
  color: var(--color-red);
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.latest-post-info p {
  font-size: 14px;
  color: var(--color-dark);
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.latest-post-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  width: fit-content;
}

.latest-post-link:hover {
  color: var(--color-red);
  transform: translateX(4px);
}

.view-all-blog {
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-red);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }

  .sidebar-content {
    opacity: 0;
    pointer-events: none;
  }

  .sidebar.expanded {
    width: 250px;
  }

  .sidebar.expanded .sidebar-content {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    min-height: auto;
    margin-top: 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .about-block,
  .about-block.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }

  .about-block.reverse > * {
    direction: ltr;
  }

  .about {
    padding: 60px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .why-choose,
  .gallery,
  .contact {
    padding: 60px 20px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  /* Responsive Blog */
  .blog-header {
    padding: 50px 20px;
  }

  .blog-header h1 {
    font-size: 28px;
  }

  .blog-section {
    padding: 40px 20px;
  }

  .blog-container {
    padding: 0 20px;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-post-image {
    aspect-ratio: 16 / 9;
  }

  .blog-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .blog-post-content {
    padding: 20px;
  }

  .blog-post-body {
    padding: 40px 20px;
  }

  .blog-post-body h1 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .blog-post-hero {
    /* height: 300px; */
  }

  .related-posts {
    padding: 60px 20px;
  }

  .related-posts h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .latest-posts {
    padding: 60px 20px;
  }

  .latest-posts-grid {
    gap: 24px;
    margin-bottom: 40px;
  }

  .latest-post-info {
    padding: 20px 16px;
  }

  .latest-post-info h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header {
    height: 60px;
  }

  .hero {
    padding: 20px;
    margin-top: 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .about {
    padding: 40px 15px;
  }

  .about-block {
    margin-bottom: 40px;
    gap: 20px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .card {
    padding: 25px 20px;
  }

  .social-links {
    gap: 15px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
  .sidebar {
    top: 0;
    left: 0;
  }

  /* Responsive Blog */
  .blog-header h1 {
    font-size: 22px;
  }

  .blog-header p {
    font-size: 14px;
  }

  .blog-search {
    padding: 12px 16px;
    font-size: 14px;
  }

  .blog-filters {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .blog-post-card {
    border-radius: 4px;
  }

  .blog-category {
    font-size: 10px;
    padding: 4px 10px;
  }

  .blog-post-content {
    padding: 16px;
  }

  .blog-post-content h2 {
    font-size: 18px;
  }

  .blog-excerpt {
    font-size: 14px;
  }

  .blog-post-body {
    padding: 24px 16px;
  }

  .blog-post-body h1 {
    font-size: 22px;
  }

  .blog-post-text {
    font-size: 15px;
  }

  .blog-post-hero {
    /* height: 220px; */
  }

  .latest-posts-grid {
    grid-template-columns: 1fr;
  }

  .logo img {
    width: 90px;
    height: 60px;
  }
}


/* 404 Page Specific Styles */
body.error-404 {
  background: linear-gradient(135deg, #f5f1e8 0%, rgba(212, 175, 55, 0.08) 100%);
  overflow: hidden;
}

.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
.floating-petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.petal-float {
  position: absolute;
  width: 20px;
  height: 30px;
  background: linear-gradient(135deg, #9b59b6 0%, #d4af37 100%);
  border-radius: 50% 50% 50% 0;
  opacity: 0.6;
  animation: floatAndRotate 8s infinite ease-in-out;
}

@keyframes floatAndRotate {
  0% {
    transform: translateY(100vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) translateX(100px);
    opacity: 0;
  }
}

.petal-float:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
  width: 15px;
  height: 22px;
}

.petal-float:nth-child(2) {
  left: 20%;
  animation-duration: 14s;
  animation-delay: 2s;
  width: 18px;
  height: 27px;
}

.petal-float:nth-child(3) {
  left: 30%;
  animation-duration: 10s;
  animation-delay: 1s;
  width: 16px;
  height: 24px;
}

.petal-float:nth-child(4) {
  left: 40%;
  animation-duration: 13s;
  animation-delay: 3s;
  width: 20px;
  height: 30px;
}

.petal-float:nth-child(5) {
  left: 50%;
  animation-duration: 11s;
  animation-delay: 0.5s;
  width: 17px;
  height: 26px;
}

.petal-float:nth-child(6) {
  left: 60%;
  animation-duration: 15s;
  animation-delay: 2.5s;
  width: 19px;
  height: 29px;
}

.petal-float:nth-child(7) {
  left: 70%;
  animation-duration: 12s;
  animation-delay: 1.5s;
  width: 15px;
  height: 23px;
}

.petal-float:nth-child(8) {
  left: 80%;
  animation-duration: 13.5s;
  animation-delay: 3.5s;
  width: 18px;
  height: 28px;
}

.petal-float:nth-child(9) {
  left: 90%;
  animation-duration: 11.5s;
  animation-delay: 1s;
  width: 16px;
  height: 25px;
}

/* Glowing Lines Animation */
.glow-line {
  position: fixed;
  pointer-events: none;
  opacity: 0.3;
}

.glow-line-vertical {
  top: 0;
  width: 2px;
  height: 100vh;
  background: linear-gradient(180deg, transparent 0%, #d4af37 50%, transparent 100%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.4;
  }
}

.glow-line-1 {
  left: 15%;
  animation-delay: 0s;
}

.glow-line-2 {
  left: 50%;
  animation-delay: 1s;
}

.glow-line-3 {
  right: 15%;
  animation-delay: 2s;
}

/* Content Area */
.error-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
}

.error-number {
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 300;
  background: linear-gradient(135deg, #9b59b6 0%, #d4af37 50%, #8b3a3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 20px;
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.error-message {
  font-size: clamp(18px, 4vw, 28px);
  color: #8b3a3a;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.error-description {
  font-size: clamp(14px, 2vw, 18px);
  color: #1a1410;
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Button */
.home-button {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #1a1410;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  animation: fadeInUp 0.8s ease-out 0.6s both;
  cursor: pointer;
  border: none;
}

.home-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #8b3a3a;
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.home-button:hover {
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.4);
}

.home-button:hover::before {
  left: 0;
}

/* 3D Saffron Flower */
.flower-display {
  margin: 60px 0 80px 0;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.flower-small {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  perspective: 1200px;
}

.flower-bloom {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: bloomRotate 10s linear infinite;
}

@keyframes bloomRotate {
  0% {
    transform: rotateX(25deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(25deg) rotateY(360deg) rotateZ(0deg);
  }
}

.flower-bloom:hover {
  animation-duration: 5s;
}

.flower-petal-small {
  position: absolute;
  width: 60px;
  height: 90px;
  background: linear-gradient(135deg, #9b59b6 0%, #d4af37 100%);
  border-radius: 50% 50% 50% 0;
  left: 50%;
  top: 50%;
  margin-left: -30px;
  margin-top: -45px;
  transform-origin: 30px 45px;
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4);
  filter: drop-shadow(0 4px 10px rgba(139, 58, 58, 0.3));
}

.flower-petal-small-1 {
  transform: rotateZ(0deg) rotateX(45deg);
}

.flower-petal-small-2 {
  transform: rotateZ(60deg) rotateX(45deg);
}

.flower-petal-small-3 {
  transform: rotateZ(120deg) rotateX(45deg);
}

.flower-petal-small-4 {
  transform: rotateZ(180deg) rotateX(45deg);
}

.flower-petal-small-5 {
  transform: rotateZ(240deg) rotateX(45deg);
}

.flower-petal-small-6 {
  transform: rotateZ(300deg) rotateX(45deg);
}

.flower-center-small {
  position: absolute;
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 30% 30%, #f4d03f, #d4af37);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  margin-left: -17.5px;
  margin-top: -17.5px;
  z-index: 10;
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(212, 175, 55, 0.5);
}

.flower-stamen-small {
  position: absolute;
  width: 6px;
  height: 45px;
  background: linear-gradient(180deg, #8b3a3a 0%, #d4af37 100%);
  left: 50%;
  top: 40%;
  margin-left: -3px;
  z-index: 11;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(139, 58, 58, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .error-number {
    font-size: clamp(60px, 12vw, 120px);
  }

  .error-message {
    font-size: clamp(16px, 3.5vw, 24px);
  }

  .error-description {
    font-size: clamp(13px, 1.8vw, 16px);
  }

  .home-button {
    padding: 14px 36px;
    font-size: 14px;
  }

  .flower-small {
    width: 120px;
    height: 120px;
  }

  .error-container {
    padding: 20px;
  }
}
