/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #fffaf0;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navbar */
.navbar {
  background: #bfa059;
  color: white;
  padding: 15px 0;
}

.navbar .container {
  /* Overrides the generic .container's width:90%/max-width:1200px — the
     navbar spans the full banner width instead of being capped to a
     centered column, which on wide screens left large empty margins and
     also starved the nav-links row of the space it needs to avoid wrapping. */
  width: 100%;
  max-width: none;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 600;
}

.navbar .logo a {
  color: inherit;
  text-decoration: none;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 8px;
  gap: 16px;
  margin-left: 40px;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
}

.navbar .nav-links a:hover {
  color: #fff0c1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Shared page banner (Calculator-style) */
.page-hero {
  width: 100%;
  height: 20vh;
  background: linear-gradient(rgba(191,160,89,0.85), rgba(191,160,89,0.85)), url('https://images.unsplash.com/photo-1581091215363-50e0d9110c07?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.slide-1 {
  background-image: url('images/gary-yost-Pxexdj3Q09g-unsplash.jpg');
  animation-delay: 0s;
}

.slide-2 {
  background-image: url('images/xiangkun-zhu-G-8xZTir9jA-unsplash.jpg');
  animation-delay: 5s;
}

.slide-3 {
  background-image: url('images/eileen-pan-TLHbJJ7mE7U-unsplash.jpg');
  animation-delay: 10s;
}

.slide-4 {
  background-image: url('images/samar-ahmad--nKCbZlOHek-unsplash.jpg');
  animation-delay: 15s;
}

.slide-5 {
  background-image: url('images/atul-vinayak-jKvwtbrxzdY-unsplash.jpg');
  animation-delay: 20s;
}

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(191, 160, 89, 0.25);
}

.intro {
  padding: 40px 0;
  text-align: center;
  background-color: #fffaf0;
  border-bottom: 1px solid #f0dfa0;
}

.intro-title {
  font-size: 2.4rem;
  color: #bfa059;
  margin-bottom: 14px;
}

.intro-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #ffd700;
  color: #333;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #e6c200;
}

/* About Section */
.about {
  padding: 50px 0;
  text-align: center;
}

.about h2 {
  color: #bfa059;
  margin-bottom: 20px;
}

/* Contact Section */
.contact {
  padding: 50px 0;
  background-color: #fff8e1;
  text-align: center;
}

.contact h2 {
  color: #bfa059;
  margin-bottom: 15px;
}

.auth-card.contact-card {
  margin: 24px auto 0;
  text-align: left;
  max-width: 440px;
}

/* Features / page tiles */
.features {
  padding: 52px 0 64px;
  background-color: #fffdf5;
}

.features-title {
  text-align: center;
  font-size: 1.8rem;
  color: #bfa059;
  margin-bottom: 36px;
  font-weight: 600;
}

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

.feature-card {
  background: #fff;
  border: 1px solid #e8d9a0;
  border-radius: 14px;
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(191, 160, 89, 0.10);
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(191, 160, 89, 0.22);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
}

.feature-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #bfa059;
  margin: 0;
}

.feature-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

/* Footer */
footer {
  background: #bfa059;
  color: white;
  padding: 15px 0;
  text-align: center;
}

/* Responsive */
@media(max-width: 768px) {
  .navbar .container {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.nav-rate-item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

#gold-rate {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-rate-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.nav-updated-time {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
}

.nav-refresh-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.nav-refresh-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

