/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
              url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1400') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 40px;
  margin-top: 0;
}

.hero-container {
  max-width: 1300px;
  margin: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: center;
}

/* ========================================
   HERO TEXT
   ======================================== */

.hero-text h1 {
  color: white;
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text p {
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 700px;
}

/* ========================================
   HERO BUTTONS
   ======================================== */

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ========================================
   HERO CARD
   ======================================== */

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  padding: 30px;
  border-radius: 28px;
  color: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-card h3 {
  margin-bottom: 25px;
  font-size: 24px;
  color: white;
}

.hero-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-info:last-child {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-info span {
  color: #d1d5db;
  font-size: 14px;
}

.hero-info strong {
  font-size: 17px;
  color: white;
}

.hero-info-icon {
  font-size: 24px;
}

/* ========================================
   QUICK MENU SECTION
   ======================================== */

.quick-menu {
  max-width: 1300px;
  margin: -70px auto 80px;
  position: relative;
  z-index: 10;
  padding: 0 40px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.quick-card {
  display: block;
  background: white;
  padding: 35px 25px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
  transition: 0.3s;
  color: inherit;
  text-decoration: none;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.quick-icon {
  width: 70px;
  height: 70px;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  background: #eff6ff;
}

.quick-card h3 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 20px;
}

.quick-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   SECTION TITLE
   ======================================== */

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  color: #111827;
  margin-bottom: 15px;
}

.section-title p {
  color: #6b7280;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
}

/* ========================================
   NEWS SECTION
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-content span {
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.news-content h3 {
  margin: 15px 0;
  font-size: 22px;
  line-height: 1.5;
  color: #111827;
}

.news-content p {
  color: #6b7280;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 15px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #9ca3af;
}

.news-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ========================================
   RATING STARS
   ======================================== */

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.stars {
  display: flex;
  gap: 3px;
}

.stars .star {
  font-size: 18px;
  color: #e5e7eb;
  cursor: pointer;
  transition: 0.2s;
}

.stars .star.active {
  color: #fbbf24;
}

.stars .star:hover,
.stars .star.hover {
  color: #fbbf24;
}

.rating-count {
  font-size: 13px;
  color: #9ca3af;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.pagination a {
  background: white;
  color: #2563eb;
  border: 1px solid #e5e7eb;
}

.pagination a:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.pagination span.active {
  background: #2563eb;
  color: white;
  cursor: default;
}

.pagination a:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   RESPONSIVE HOMEPAGE
   ======================================== */

@media (max-width: 992px) {
  .hero {
    margin-top: 0;
    padding: 0 30px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 48px;
  }
  
  .hero-card {
    max-width: 500px;
    margin: auto;
  }
  
  .quick-menu {
    padding: 0 30px;
    margin-bottom: 60px;
  }
  
  .section-title h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 48px;
  }
  
  .hero-text h1 {
    font-size: 38px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .quick-menu {
    margin: -50px auto 60px;
    padding: 0 20px;
  }
  
  .quick-grid {
    gap: 20px;
  }
  
  .quick-card {
    padding: 25px 20px;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .news-grid {
    gap: 25px;
  }
  
  .news-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
    padding: 20px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 14px;
  }
  
  .hero-card {
    padding: 20px;
  }
  
  .hero-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .quick-menu {
    margin: -30px auto 40px;
    padding: 0 15px;
  }
  
  .quick-card {
    padding: 20px 15px;
  }
  
  .quick-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .news-card img {
    height: 150px;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .news-content h3 {
    font-size: 18px;
  }
}

/* Premium homepage */
.hero {
  min-height: max(680px, calc(100dvh - 78px));
  background:
    radial-gradient(circle at 78% 22%, rgba(214, 169, 79, .22), transparent 28rem),
    linear-gradient(90deg, rgba(4, 12, 24, .94), rgba(7, 17, 31, .78) 55%, rgba(7, 17, 31, .66)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1600') center/cover;
  padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 40px) 130px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(7, 17, 31, .32));
  pointer-events: none;
}

.hero-container {
  width: min(100%, 1240px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(32px, 6vw, 76px);
}

.hero-text { position: relative; z-index: 1; }
.hero-text h1 { max-width: 820px; font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.055em; text-wrap: balance; }
.hero-text p { max-width: 680px; color: #d6dee9; font-size: clamp(15px, 1.5vw, 18px); }
.hero-buttons .btn { min-width: 190px; }

.hero-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(239, 209, 136, .28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  box-shadow: 0 28px 70px rgba(1, 6, 14, .35);
  backdrop-filter: blur(18px);
}

.hero-card h3 { color: #f4d991; letter-spacing: -.02em; }
.hero-info { gap: 16px; border-color: rgba(255,255,255,.13); }
.hero-info span { color: #cbd4df; }

.quick-menu { width: min(100%, 1300px); margin-top: -76px; padding-inline: clamp(16px, 4vw, 40px); }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quick-card {
  padding: 28px 22px;
  border: 1px solid #e5dfd2;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(7, 17, 31, .09);
  text-align: left;
}
.quick-card:hover { transform: translateY(-5px); border-color: #d9bf87; box-shadow: 0 22px 55px rgba(7, 17, 31, .14); }
.quick-icon { width: 58px; height: 58px; margin: 0 0 18px; border-radius: 16px; background: #f5ead4; }
.quick-card h3 { color: #111d2e; font-size: 18px; }
.section-title h2 { color: #0a1525; letter-spacing: -.04em; }
.section-title p { color: #687386; }

.news-card {
  border: 1px solid #e5dfd2;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(7,17,31,.08);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(7,17,31,.14); }
.news-content > span { color: #91691e; }
.news-content h3 { color: #111d2e; }

@media (max-width: 1050px) {
  .hero-container { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 72px 20px 120px; }
  .hero-container { grid-template-columns: minmax(0, 1fr); }
  .hero-card { width: 100%; max-width: none; }
  .quick-menu { margin-top: -66px; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; flex: 1 1 190px; }
}

@media (max-width: 480px) {
  .hero { padding: 52px 12px 92px; }
  .hero-text h1 { font-size: clamp(2.1rem, 12vw, 3rem); }
  .hero-text p { line-height: 1.7; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { width: 100%; min-width: 0; }
  .hero-card { padding: 20px; border-radius: 18px; }
  .quick-menu { margin-top: -46px; padding-inline: 12px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quick-card { padding: 20px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
}
