/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Primary colors */
:root {
  --primary-red: #ff0000;
  --primary-brown: #6a340e;
  --secondary-light: #f7f6f2;
  --secondary-dark: #222;
  --accent-gold: #a97a3d;
  --shadow-light: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-medium: 0 6px 12px rgba(0,0,0,0.08);
  --shadow-large: 0 10px 25px rgba(0,0,0,0.1);
  --transition-standard: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* --border-radius-small: 8px;
  --border-radius-medium: 16px; */
  --border-radius-large: 24px;
  --container-max-width: 100%;
  
  /* Responsive typography */
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  font-size: var(--font-size-base);
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

body.loaded {
  opacity: 1;
}

/* Section container */
.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  /* padding: 0 4vw; */
  width: 100%;
}

/* Modern Header Styling - 2025 Edition */
header {
  background: #fff;
  border-bottom: none;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4vw;
  font-size: 1rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary-dark);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
  padding: 10px;
}

/* Logo styling */
.logo-container {
  margin-right: 20px;
  padding-left: 10px;
  z-index: 101;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  display: flex;
}

/* Apply gradient to first part of logo */
.logo > span:first-child {
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 8px;
}

/* Apply different color to "WITHIN" */
.logo span:nth-child(2) {
  color: var(--primary-red);
  margin-right: 8px;
}

/* Apply different color to "ART" */
.logo > span:last-child {
  color: var(--primary-brown);
}

/* Search container and icon */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  margin: 0 20px;
}

.search-bar {
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 12px 20px 12px 45px;
  width: 100%;
  font-size: 0.95rem;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-light);
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 2px rgba(106, 52, 14, 0.15);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--primary-brown);
  font-size: 1rem;
}

/* Navigation and auth container */
.nav-auth-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Navigation links */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 14px;
  color: var(--secondary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-standard);
  position: relative;
}

nav a:hover {
  color: var(--primary-red);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition-standard);
}

nav a:hover::after {
  width: 100%;
}

/* Modern auth buttons */
.auth-buttons {
  display: flex;
  gap: 12px;
}

.auth-buttons .login,
.auth-buttons .signup {
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-standard);
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-light);
}

.auth-buttons .login {
  background: #fff;
  border: 1.5px solid var(--primary-brown);
  color: var(--primary-brown);
}

.auth-buttons .signup {
  /* background: var(--primary-brown); */
  background: #c9a55a;
  color: #fff;
  border: none;
}

.auth-buttons .login:hover {
   background: var(--primary-red);
  color: #fff;
  /* background: rgba(106, 52, 14, 0.05); */ 
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.auth-buttons .signup:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Main menu styling */
.main-menu {
  /* background: var(--primary-brown); */
  background-color: #6a665e;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: 50;
}

.main-menu .menu-item {
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 15px 20px;
  transition: var(--transition-standard);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.main-menu .menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown menu styling with scrolling capability */
.menu-item-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  overflow: hidden;
  z-index: 100;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.08);
  max-height: calc(100vh - 150px); /* Limit height based on viewport */
}

.dropdown-content {
  padding: 0;
  max-height: inherit;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-brown) #f1f1f1;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom scrollbar styling */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: var(--primary-brown);
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--secondary-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  position: relative;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(to right, rgba(106, 52, 14, 0.05), rgba(169, 122, 61, 0.08));
  color: var(--primary-brown);
  padding-left: 25px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/* Dropdown arrow animation */
.menu-item-container:hover .menu-item i,
.menu-item-container.active .menu-item i {
  transform: rotate(180deg);
}

.menu-item i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Hero Section Layout */
.hero-section {
  display: flex;
  gap: 25px;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
  background: #111;
  border-radius: 0;
  box-shadow: var(--shadow-large);
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  width: 300%; /* For 3 slides */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  width: 33.333%; /* Each slide takes 1/3 of the slider-wrapper */
  height: 100%;
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 6s ease;
}

.slide.active .slide-bg {
  transform: scale(1.05);
}

.slide-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(22, 22, 22, 0.8);
  color: #fff;
}

.slide-category {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 30px;
  font-family: 'Georgia', serif;
}

.slide-date {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #c9a55a; /* Gold color */
  font-weight: 500;
}

.slide-cta {
  display: inline-block;
  background: #c9a55a; /* Gold color */
  color: #111;
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 2px;
  align-self: flex-start;
}

.slide-cta:hover {
  background: #d9b56a;
  transform: translateY(-2px);
}

.slider-indicators {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 5;
}

slider-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-indicators .indicator.active {
  background: #c9a55a; /* Gold color */
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
}

.slider-arrow.left { left: 25px; }
.slider-arrow.right { right: 25px; }

.slider-arrow:hover { 
  color: #fff;
}

/* Promo Box */
.promo-box {
  width: 320px;
  height: 550px;
  position: relative;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-large);
  overflow: hidden;
  background: #111;
}

.promo-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.promo-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(30, 30, 30, 0.6);
  color: #fff;
}

.promo-category {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 15px;
  opacity: 0.9;
}

.promo-title {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.promo-date {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #c9a55a; /* Gold color */
  font-weight: 500;
}

.promo-cta {
  display: inline-block;
  background: #c9a55a; /* Gold color */
  color: #111;
  padding: 10px 25px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 2px;
  align-self: flex-start;
}

.promo-cta:hover {
  background: #d9b56a;
  transform: translateY(-2px);
}

.promo-indicators {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.promo-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-indicators .indicator.active {
  background: #c9a55a; /* Gold color */
  transform: scale(1.2);
}

/* Notice Box */
.notice-box {
  width: 320px;
  background: #fff;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.notice-header {
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.notice-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  transition: transform 0.3s ease;
}

.notice-toggle.active i {
  transform: rotate(180deg);
}

.notice-content {
  flex: 1;
  overflow: hidden;
}

.notice-scrollable {
  height: 100%;
  overflow-y: auto;
  padding: 0 5px;
}

.notice-item {
  padding: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-date {
  color: var(--primary-brown);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.notice-item h4 {
  margin: 0 0 8px 0;
  color: var(--secondary-dark);
  font-size: 1.1rem;
}

.notice-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-scrollable::-webkit-scrollbar {
  width: 5px;
}

.notice-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.notice-scrollable::-webkit-scrollbar-thumb {
  background: var(--primary-brown);
  border-radius: 10px;
}

.notice-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Upcoming Auctions */
.upcoming-auctions {
  /* background: #fff; */
  margin: 0 auto;
  max-width: var(--container-max-width);
  padding: 50px 4vw;
  /* border-radius: var(--border-radius-medium); */
  /* box-shadow: var(--shadow-light); */
}

.upcoming-auctions h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.upcoming-auctions h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 3px;
}

.upcoming-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.upcoming-text {
  flex: 2;
  font-size: 1.1rem;
  color: var(--secondary-dark);
  line-height: 1.7;
}

.all-auctions {
  margin-top: 25px;
  background: var(--primary-brown);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-large);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-light);
  letter-spacing: 0.5px;
}

.all-auctions:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.upcoming-list {
  display: flex;
  gap: 25px;
  flex: 3;
}

.auction-item {
 /* background: var(--secondary-light); */
  /* border-radius: var(--border-radius-medium); */
  box-shadow: var(--shadow-light);
  padding: 15px;
  text-align: center;
  min-width: 200px;
  max-width: 240px;
  height: 280px;
  transition: var(--transition-standard);
  cursor: pointer;
}

.auction-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Common image container styling for both auction and past items */
.img-container {
  width: 100%;
  height: 160px;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  position: relative;
  background-color: #e9e9e9;
  border: 1px solid #e0e0e0;
  transition: var(--transition-standard);
}

/* Default image styling */
.auction-item img,
.past-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-standard);
}

/* Placeholder for empty or missing images */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #e9e9e9;
  color: #aaa;
  position: relative;
}

.img-placeholder:after {
  content: "\f03e";
  font-family: "Font Awesome 5 Free";
  font-size: 40px;
  color: #aaa;
}

.auction-title {
  font-weight: bold;
  margin-top: 15px;
  font-size: 1.2rem;
  color: var(--primary-brown);
}

.auction-date {
  color: #6a665e;
  font-size: 0.95rem;
  /* margin-top: 8px; */
  font-weight: 500;
  /* margin-bottom: 8px; */
}

/* Past Auctions */
.past-auctions {
  /* background: #fff; */
  max-width: var(--container-max-width);
  margin: 0px auto 0;
  padding: 50px 4vw;
  position: relative;
}

.past-auctions .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.past-auctions h2 {
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  margin: 0;
  color: var(--secondary-dark);
  letter-spacing: 0.5px;
}

.past-auctions .slider-nav {
  display: flex;
  gap: 8px;
}

.past-nav.slider-arrow {
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #222;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.past-nav.slider-arrow:hover {
  background: #222;
  color: #fff;
}

.past-slider {
  position: relative;
  overflow: hidden;
}

.past-list {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
}

.past-item {
  background: #fff;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 500px;
}

.past-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.past-item .img-container {
  width: 100%;
  height: 240px;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
  padding: 10px;
  background: none;
}

.past-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* text-align: center; */
  flex-grow: 1;
  justify-content: flex-end;
  gap: 15px;
}

.past-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--secondary-dark);
  line-height: 1.4;
}

.past-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.view-results {
  width: 100%;
  background: var(--primary-brown);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-results:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

/* Responsive styles for UPCOMING AUCTIONS section */
@media (max-width: 768px) {
    .upcoming-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .upcoming-text {
        margin-bottom: 20px;
    }

    .upcoming-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auction-item {
        max-width: 100%;
    }

    .auction-item .img-container {
        width: 100%;
        height: auto;
    }

    .auction-title {
        font-size: 1.2rem;
    }

    .auction-date {
        font-size: 1rem;
    }
}

/* Responsive styles for past auctions */
@media (max-width: 1200px) {
  .past-item {
    min-width: 220px;
    max-width: 220px;
  }
  
  .past-item .img-container {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .past-item {
    min-width: 200px;
    max-width: 200px;
  }
  
  .past-item .img-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .past-list {
    gap: 20px;
  }
  
  .past-item {
    min-width: 180px;
    max-width: 180px;
  }
  
  .past-item .img-container {
    height: 180px;
  }
  
  .past-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .past-list {
    gap: 15px;
  }
  
  .past-item {
    min-width: 160px;
    max-width: 160px;
  }
  
  .past-item .img-container {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .past-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .past-item {
    min-width: 100%;
    max-width: 100%;
  }
  
  .past-auctions .slider-nav {
    display: none;
  }
}

/* Auction Guide - 2025 Redesign */
.auction-guide {
  /* background: #fff; */
  max-width: var(--container-max-width);
  margin: 0px auto 0;
  padding: 0px 4vw 80px 4vw;
  border-radius: var(--border-radius-medium);
  /* box-shadow: var(--shadow-light); */
  overflow: hidden;
  position: relative;
}

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

.guide-header {
  text-align: center;
  margin-bottom: 60px;
}

.auction-guide h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: var(--secondary-dark);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  text-transform: uppercase;
}

.auction-guide p {
  color: #777;
  margin-bottom: 40px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.timeline-bar {
  height: 4px;
  background-color: #f0f0f0;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 50px;
  position: relative;
  border-radius: 4px;
}

.timeline-progress {
  position: absolute;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-brown), var(--primary-red));
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

.guide-steps {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.step {
  background: #fff;
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 0;
  width: 22%;
  min-width: 200px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.step.animated {
  transform: translateY(0);
  opacity: 1;
}

.step:nth-child(1) { transition-delay: 0.2s; }
.step:nth-child(2) { transition-delay: 0.4s; }
.step:nth-child(3) { transition-delay: 0.6s; }
.step:nth-child(4) { transition-delay: 0.8s; }

.step-icon {
  padding: 30px 20px 15px;
  text-align: center;
  position: relative;
}

.step-number {
  /* background: linear-gradient(135deg, var(--primary-brown), var(--primary-red)); */
  /* color: #fff; */
  color: #000000;
  font-weight: 600;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
  /* box-shadow: 0 5px 15px rgba(106, 52, 14, 0.2); */
  border: 1px solid #555;
  position: relative;
  z-index: 1;
}

.step-icon i {
  font-size: 2.5rem;
  color: var(--primary-brown);
  margin-bottom: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.step-content {
  padding: 0 20px 30px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--secondary-dark);
  position: relative;
  padding-bottom: 10px;
}

.step-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

.step-desc {
  color: #6a665e;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Step hover effects */
.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* .step:hover .step-number {
  transform: scale(1.1);
} */

.step:hover .step-icon i {
  transform: scale(1.1);
  color: var(--primary-red);
}

/* Animation for timeline progress */
.timeline-animate .timeline-progress {
  width: 100%;
}

/* Responsive styling for auction guide */
@media (max-width: 1200px) {
  .guide-steps {
    max-width: 900px;
  }
}

@media (max-width: 992px) {
  .guide-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .step {
    width: 45%;
    margin-bottom: 30px;
  }
  
  .timeline-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .auction-guide {
    padding: 60px 4vw;
  }
  
  .step {
    width: 100%;
    max-width: 400px;
  }
  
  .auction-guide h2 {
    font-size: 2rem;
  }
}

/* Newsletter - 2025 Premium Design */
.newsletter {
  background: linear-gradient(135deg, #1c1c1c, #333);
  color: #fff;
  text-align: center;
  padding: 100px 4vw;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.newsletter-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="%23ffffff" stroke-width="0.2" stroke-opacity="0.05"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  z-index: 2;
}

.newsletter-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.newsletter-header {
  margin-bottom: 50px;
}

.newsletter h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}

.decorative-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  margin: 15px auto 25px;
  opacity: 0.8;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.newsletter-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.newsletter-form input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary-red);
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  transition: width 0.3s ease;
  z-index: -1;
}

.submit-btn:hover::before {
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: transparent;
}

.privacy-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Newsletter responsive adjustments */
@media (max-width: 992px) {
  .newsletter {
    padding: 80px 4vw;
  }
  
  .newsletter h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .newsletter {
    padding: 70px 4vw;
  }
  
  .newsletter h2 {
    font-size: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .newsletter-form input {
    text-align: center;
  }
  
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .newsletter {
    padding: 60px 4vw;
  }
  
  .newsletter h2 {
    font-size: 1.8rem;
  }
}

/* Footer */
footer {
  background: var(--secondary-dark);
  color: #fff;
  padding: 0;
  margin-top: 0;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 60px 4vw 40px;
  gap: 40px;
}

.footer-brand .logo {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  letter-spacing: 1px;
}

.footer-brand .logo > span:first-child {
  background: linear-gradient(to right, var(--primary-red), var(--primary-brown));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 8px;
}

.footer-brand .logo span:nth-child(2) {
  color: var(--primary-red);
  margin-right: 8px;
}

.footer-brand .logo > span:last-child {
  color: var(--primary-brown);
}

.footer-desc {
  color: #e0d2c0;
  margin-top: 15px;
  font-size: 1.05rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links, .footer-contact, .footer-social {
  min-width: 200px;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-red);
  position: relative;
  display: inline-block;
}

.footer-links h4::after, 
.footer-contact h4::after, 
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1rem;
  transition: var(--transition-standard);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  transition: var(--transition-standard);
}

.footer-links a:hover {
  color: var(--primary-red);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-contact div {
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact div i {
  margin-right: 10px;
  color: var(--primary-red);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  transition: var(--transition-standard);
}

.social-icons a:hover {
  background: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.social-icons i {
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.2);
}

.footer-bottom a {
  color: var(--primary-red);
  text-decoration: none;
  margin: 0 4px;
  transition: var(--transition-standard);
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Animation classes for scroll effects */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Hero image transition */
.hero-image {
  opacity: 0;
}

/* Input focus effect */
.input-focused {
  transform: scale(1.02);
}

/* Mobile menu specific styling */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-large);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
}

.mobile-nav nav a {
  margin: 12px 0;
  font-size: 1.2rem;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Mobile dropdown menu */
.mobile-nav .menu-item-container {
  width: 100%;
  margin: 12px 0;
}

.mobile-nav .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.2rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav .dropdown-menu {
  position: static;
  width: 100%;
  transform: none;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
  background: rgba(0,0,0,0.03);
  height: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  max-height: none;
}

.mobile-nav .menu-item-container.active .dropdown-menu {
  height: auto;
  opacity: 1;
  visibility: visible;
  padding: 0;
}

.mobile-nav .dropdown-content {
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-brown) #f7f7f7;
}

.mobile-nav .dropdown-item {
  padding: 12px 0 12px 20px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav .dropdown-item:last-child {
  border-bottom: none;
}

.mobile-nav .dropdown-item:hover {
  background: linear-gradient(to right, rgba(106, 52, 14, 0.05), rgba(169, 122, 61, 0.08));
  padding-left: 25px;
}

.mobile-nav .menu-item-container.active .menu-item i {
  transform: rotate(180deg);
}

.mobile-nav .auth-buttons {
  flex-direction: column;
  width: 100%;
}

.mobile-nav .auth-buttons .login,
.mobile-nav .auth-buttons .signup {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Add responsive styles */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

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

    .container {
        padding: 10px;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .slider-container, .promo-box {
    height: 500px;
  }
  
  .slide-content {
    width: 45%;
    padding: 40px;
  }
  
  .slide-title {
    font-size: 3rem;
  }
  
  .promo-box {
    width: 280px;
  }
  
  .promo-content {
    padding: 30px;
  }
  
  .promo-title {
    font-size: 2rem;
  }
  
  .notice-box {
    width: 280px;
  }
  
  .upcoming-content, .past-list {
    gap: 20px;
  }
  
  .auction-item, .past-item {
    min-width: 180px;
  }
}

@media (max-width: 1024px) { /* Tablet Landscape */
  :root {
    --font-size-base: 15px;
    --font-size-4xl: 2rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .search-container {
    max-width: 380px;
  }
  
  .nav-auth-container {
    gap: 15px;
  }
  
  nav a {
    margin: 0 10px;
  }
  
  .auth-buttons .login,
  .auth-buttons .signup {
    padding: 7px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .slider-container, .promo-box {
    height: 450px;
  }
  
  .slide-content {
    width: 50%;
    padding: 30px;
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .promo-box {
    width: 250px;
  }
  
  .promo-title {
    font-size: 1.8rem;
  }
  
  .notice-box {
    width: 250px;
  }
  
  .upcoming-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .upcoming-list {
    width: 100%;
    justify-content: center;
  }
  
  .guide-steps, .footer-main {
    gap: 25px;
  }
  
  .step {
    padding: 25px 20px;
  }
  
  .newsletter h2 {
    font-size: 1.8rem;
  }
  
  .footer-brand {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  /* Main menu and dropdown adjustments for mobile */
  .main-menu {
    padding: 5px 0;
  }
  
  .main-menu .menu-item {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .dropdown-menu {
    width: 100%;
    max-width: 380px;
  }
  
  /* Existing styles */
  .hero-section {
    flex-direction: column;
  }
  
  .slide-content {
    width: 60%;
  }
  
  .promo-box {
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }
  
  .notice-box {
    width: 100%;
    margin-top: 20px;
  }
  
  .notice-scrollable {
    max-height: 300px;
  }
  
  /* Fix: Remove redundant media query rule */
  /* .hero-slider, .hero-image { height: 400px; } */
  
  /* Also add tablet portrait styles for navbar/menu here if needed */
  :root {
    --font-size-base: 14px;
    --font-size-4xl: 1.75rem;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }
  
  .nav-auth-container {
    display: none; /* Hide regular nav */
  }
  
  .logo-container {
    order: 1;
  }
  
  .search-container {
    order: 2;
    margin-right: 15px;
  }
  
  .navbar {
    flex-wrap: wrap;
    padding: 15px 4vw;
  }
  
  .main-menu {
    padding: 0;
    gap: 15px;
  }
  
  .main-menu .menu-item {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
  
  .search-container {
    max-width: none;
    flex: 1;
    margin-left: 10px;
  }
  
  .mobile-nav .dropdown-content {
    max-height: 40vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-brown) #f7f7f7;
  }
  
  .mobile-nav .dropdown-menu {
    max-height: none;
    height: auto;
  }
}

@media (max-width: 600px) {
  .slider-container {
    height: 400px;
  }
  
  .slide-content {
    width: 100%;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    justify-content: flex-end;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .slider-indicators {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .promo-box {
    height: 250px;
  }
  
  .promo-content {
    padding: 25px;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
  }
  
  .promo-indicators {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 15px;
    transform: translateX(-50%);
    flex-direction: row;
  }
  
  .upcoming-auctions, 
  .past-auctions, 
  .auction-guide {
    padding: 35px 5vw;
    margin-top: 40px;
  }
  
  .upcoming-auctions h2, 
  .past-auctions h2, 
  .auction-guide h2, 
  .newsletter h2 {
    font-size: 1.5rem;
  }
  
  .auction-guide p, 
  .upcoming-text {
    font-size: 1rem;
  }
  
  .newsletter {
    padding: 40px 5vw;
    margin-top: 40px;
  }
  
  .newsletter-form input {
    width: 100%;
    min-width: unset;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-main {
    padding: 40px 5vw 20px;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 5vw;
  }
  
  .footer-links, 
  .footer-contact, 
  .footer-social {
    flex: 0 0 100%;
  }
  
  /* Increase tap targets */
  .auth-buttons .login,
  .auth-buttons .signup,
  .all-auctions,
  .view-results,
  .newsletter-form button,
  nav a {
    min-height: 44px; /* Apple's recommendation for touch targets */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-bar {
    height: 44px;
  }
  
  .newsletter-form input {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 3vw;
  }
  
  .logo-container {
    padding-left: 0;
  }
  
  .search-container {
    max-width: 55%;
  }
  
  .search-bar {
    padding: 10px 10px 10px 38px;
  }
  
  .search-icon {
    left: 12px;
  }
  
  .slider-container {
    height: 350px;
  }
  
  .upcoming-list, .past-list {
    justify-content: center;
  }
  
  .auction-item, .past-item {
    min-width: 100%;
    margin-bottom: 15px;
  }
  
  .guide-steps {
    gap: 15px;
  }
  
  .step {
    min-width: 100%;
    padding: 20px 15px;
  }
  
  .notice-scrollable {
    max-height: 200px;
  }
  
  .slide-content {
    padding: 20px;
  }
  
  .slide-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .slide-date {
    margin-bottom: 20px;
  }
  
  .slide-category {
    margin-bottom: 10px;
  }
  
  .promo-box {
    height: 200px;
  }
  
  .promo-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .slider-arrow:hover,
  .auth-buttons .login:hover,
  .auth-buttons .signup:hover,
  .all-auctions:hover,
  .view-results:hover,
  nav a:hover::after,
  .footer-links a:hover,
  .social-icons a:hover {
    /* Disable hover effects on touch devices */
    transform: none;
    box-shadow: var(--shadow-light);
  }
  
  /* Add active state for touch */
  .slider-arrow:active,
  .auth-buttons .login:active,
  .auth-buttons .signup:active,
  .all-auctions:active,
  .view-results:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
  
  .mobile-nav .menu-item-container .menu-item {
    padding: 12px 0;
  }
  
  .mobile-nav .dropdown-item {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Improved dropdown menu behavior */
@media (min-width: 769px) {
  .menu-item-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

/* Extended dropdown hover effects for desktop (keep at bottom to maintain cascade) */
.dropdown-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: var(--primary-brown);
  transition: height 0.2s ease-in-out;
}

.dropdown-item:hover:before {
  height: 100%;
}