/* General Styles and Reset */

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

body {
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.6;
  color: #E0E0E0;
  background-color: #1A1A1A;
  direction: ltr;
  text-align: left;
  padding-top: 100px;
}

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

h1, h2, h3, h4 {
  color: #F0F0F0;
  margin-bottom: 20px;
  text-align: center;
}

a {
  text-decoration: none;
  color: #FFD700;
}

a:hover {
  color: #DAA520;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  background: #FFD700;
  color: #1A1A1A;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #DAA520;
}

.btn-primary {
  background: #FFD700;
  color: #1A1A1A;
}

.btn-secondary {
  background: #444;
  color: #fff;
}

.btn-secondary:hover {
  background: #666;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Header Styles */

.main-header {
  height: 80px;
  background: #222;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: #FFD700;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-weight: 400;
  color: #E0E0E0;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #FFD700;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-actions .search-icon, .header-actions .auth-link {
  font-size: 20px;
  color: #E0E0E0;
}

.header-actions .auth-link {
  background: #FFD700;
  color: #1A1A1A;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
}

.header-actions .auth-link:hover {
  background: #DAA520;
}

.language-switcher select {
  background: #333;
  color: #E0E0E0;
  border: 1px solid #555;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23E0E0E0%22%20d%3D%22M6%2C9L10.5%2C4.5L1.5%2C4.5Z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 25px;
  padding-left: 10px;
}

/* Hero Section (Slider) */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-section .slider-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-section .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .slide.active {
  opacity: 1;
}

.hero-section .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-section .slide-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #FFD700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.hero-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFD700;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.hero-section p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #E0E0E0;
  max-width: 600px;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

/* Progress Bar */

.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #FFD700;
  transition: width 0.1s linear;
  /*Note: The actual animation is handled by JS with requestAnimationFrame for smoothness;*/
}

/* Info Highlights Section */

.info-highlights-section {
  background-color: #0D0D0D;
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

.info-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  color: #E0E0E0;
  font-size: 16px;
  font-weight: 300;
}

.info-item .dot-icon {
  font-size: 10px;
  color: #FFD700;
  margin-right: 10px;
  margin-left: 0;
}

.info-item span {
  white-space: nowrap;
}

/* How to Buy Gold Section */

.how-to-buy-section {
  padding: 40px 0;
  background-color: #2F2F2F;
  margin-bottom: 30px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.how-to-buy-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-to-buy-section .section-main-header {
  font-size: 36px;
  color: #FFD700;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
}

.how-to-buy-content {
  display: flex;
  width: 100%;
  gap: 40px;
  align-items: flex-start;
}

.how-to-buy-left {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.how-to-buy-left h3 {
  font-size: 28px;
  color: #F0F0F0;
  margin-top: 0;
  text-align: left;
}

.how-to-buy-right {
  flex: 2;
}

.step-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.step-box {
  background-color: #1A1A1A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  /*height: 250px;*/
}

.step-box .icon-circle {
  background-color: #FFD700;
  color: #1A1A1A;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 44px;
  margin-bottom: 15px;
}

.step-box h4 {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
}

.step-box p {
  font-size: 15px;
  color: #E0E0E0;
  line-height: 1.5;
  text-align: center;
}

/* Gold Prices Section */

.gold-prices-section {
  padding: 40px 0;
  background-color: #2F2F2F;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
}

.price-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.price-card {
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 32%;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.price-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #FFD700;
}

.price-card .current-price {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin: 10px 0;
}

.price-card .change {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.price-card .change.positive {
  color: #4CAF50;
}

.price-card .change.negative {
  color: #EF5350;
}

/* Video Section */

.video-section {
  padding: 40px 0;
  background-color: #1A1A1A;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.video-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /*16: 9 Aspect Ratio;*/
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.8);
  /*Optional: make video slightly darker for contrast;*/
}

.text-content {
  text-align: left;
}

.text-content h2 {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: left;
}

.text-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #E0E0E0;
}

/* Categories Section */

.categories-section {
  padding: 40px 0;
  margin-bottom: 30px;
  background-color: #1A1A1A;
  text-align: center;
}

.category-cards-wrapper {
  display: flex;
  overflow-x: auto;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  gap: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.category-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 200px;
  background: #2F2F2F;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  min-width: 180px;
}

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

.category-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
  color: #F0F0F0;
}

/* Blog Section */

.blog-section {
  padding: 40px 0;
  background-color: #2F2F2F;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.main-blog-post {
  background: #1A1A1A;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: left;
}

.main-blog-post img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.main-blog-post .post-content {
  padding: 25px;
}

.main-blog-post h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #FFD700;
  text-align: left;
}

.main-blog-post p {
  font-size: 16px;
  line-height: 1.8;
  color: #E0E0E0;
  margin-bottom: 20px;
}

.side-blog-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-post-card {
  background: #1A1A1A;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  text-align: left;
}

.side-post-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-post-card .post-content {
  padding: 15px;
  flex-grow: 1;
}

.side-post-card h4 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
  text-align: left;
}

.side-post-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #B0B0B0;
  margin-bottom: 10px;
}

/* Footer Styles */

.main-footer {
  background: #0D0D0D;
  color: #E0E0E0;
  padding: 40px 0 20px;
  font-size: 14px;
  text-align: left;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  padding: 20px;
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: left;
}

.footer-col ul {
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #B0B0B0;
}

.footer-col a:hover {
  color: #FFD700;
}

.footer-col p {
  color: #B0B0B0;
  line-height: 1.8;
}

.footer-col p i {
  margin-right: 10px;
  color: #FFD700;
}

.social-icons a {
  color: #B0B0B0;
  font-size: 20px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #FFD700;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 20px;
}

.footer-bottom p {
  color: #B0B0B0;
}

/* Responsive adjustments */

@media (max-width: 992px) {
  .blog-grid, .video-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .main-blog-post img {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .video-container {
    padding-bottom: 75%;
  }
}

@media (max-width: 992px) {
  .text-content h2, .text-content p {
    text-align: center;
  }
}

@media (max-width: 992px) {
  .how-to-buy-content {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 992px) {
  .how-to-buy-left {
    text-align: center;
    padding-right: 0;
  }
}

@media (max-width: 992px) {
  .how-to-buy-left h3 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .hero-section h3 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .hero-section p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .price-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .price-card {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .categories-section .category-card {
    flex: 0 0 calc(33.33% - 20px);
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .footer-col {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-col h3 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-col p i {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Blog specific */

@media (max-width: 768px) {
  .main-blog-post img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .main-blog-post h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .side-post-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .side-post-card img {
    width: 100%;
    height: 180px;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 768px) {
  .side-post-card .post-content {
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .side-post-card h4 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .side-post-card p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .side-post-card .btn-small {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .info-items {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .info-item .dot-icon {
    margin-right: 0;
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-section p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-actions .auth-link {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .categories-section .category-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 140px;
  }
}

