/* 
  =========================================
  3PattiPakistan.site CSS Style Sheet
  Theme: Modern Premium Gaming (Dark Mode)
  Colors: Gold (Primary), Black/Dark (Secondary), Green (Accent)
  =========================================
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables --- */
:root {
  --primary-gold: #FFC72C;
  --primary-gold-rgb: 255, 199, 44;
  --gold-hover: #E6B01F;
  --gold-glow: rgba(255, 199, 44, 0.3);
  --dark-bg: #0A0A0C;
  --dark-surface: #121216;
  --dark-surface-rgb: 18, 18, 22;
  --dark-card: #181822;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #707080;
  --accent-green: #00FF66;
  --green-glow: rgba(0, 255, 102, 0.25);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(255, 199, 44, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Poppins', sans-serif;
  --max-width: 1200px;
}

/* --- Base Resets & Global Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li {
  list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #252530;
  border-radius: 5px;
  border: 2px solid var(--dark-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* --- Layout Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFF 60%, var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Background Ambient Glows --- */
.ambient-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

.glow-primary {
  background: var(--primary-gold);
  top: 10%;
  left: -5%;
}

.glow-secondary {
  background: var(--accent-green);
  bottom: 20%;
  right: -5%;
}

.glow-third {
  background: #FF007F;
  top: 50%;
  left: 30%;
}

/* --- Glassmorphism Effect --- */
.glass-panel {
  background: rgba(var(--dark-surface-rgb), 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-panel-gold {
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 32px 0 rgba(255, 199, 44, 0.08);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.95rem;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #F2A900);
  color: #000000;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFF, var(--primary-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 199, 44, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-green), #00CC44);
  color: #000;
  box-shadow: 0 4px 15px var(--green-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #FFF, var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 102, 0.55);
}

.btn-outline-gold {
  background: transparent;
  color: var(--primary-gold);
  border: 1.5px solid var(--primary-gold);
}

.btn-outline-gold:hover {
  background: var(--primary-gold);
  color: #000;
  box-shadow: 0 4px 15px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Sticky Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.1rem;
  box-shadow: 0 0 10px var(--gold-glow);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition-smooth);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 199, 44, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(0, 255, 102, 0.05) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span.gold-text {
  background: linear-gradient(135deg, var(--primary-gold), #FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 30px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-badge i, .hero-badge span.icon {
  font-size: 1.3rem;
  color: var(--accent-green);
  filter: drop-shadow(0 0 5px var(--green-glow));
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.8) 0%, transparent 60%);
  z-index: 1;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

.hero-overlay-card {
  position: absolute;
  bottom: 30px;
  left: -20px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
  border: 1px solid var(--border-gold);
}

.hero-overlay-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  font-weight: bold;
}

.hero-overlay-card .card-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-overlay-card .card-info p {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 500;
  margin: 0;
}

/* --- Popular Games Section --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.game-card {
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 199, 44, 0.03) 100%);
  z-index: -1;
  transition: var(--transition-smooth);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 12px 40px rgba(255, 199, 44, 0.12);
}

.game-card:hover::before {
  background: linear-gradient(180deg, transparent 30%, rgba(255, 199, 44, 0.06) 100%);
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.game-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #1e1e26;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-gold);
}

.game-title-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.meta-pill.rating-pill {
  background: rgba(255, 199, 44, 0.08);
  color: var(--primary-gold);
  border-color: rgba(255, 199, 44, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.game-card-body {
  margin-bottom: 24px;
  flex-grow: 1;
}

.game-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  gap: 12px;
}

.game-card-footer .btn {
  flex: 1;
  padding: 10px 15px;
  font-size: 0.85rem;
}

/* --- Why Choose Us Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.why-card {
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 102, 0.2);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.05);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(0, 255, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 255, 102, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.why-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Screenshots Section (Carousel Slider) --- */
.screenshots-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.carousel-slide:hover img {
  transform: scale(1.06);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(var(--dark-surface-rgb), 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

/* --- FAQ Section (Accordion) --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-icon-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.faq-item.active {
  border-color: var(--border-gold);
  background: rgba(var(--dark-surface-rgb), 0.8);
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(180deg);
  background: var(--primary-gold);
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Latest Blog Posts Preview --- */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(255, 199, 44, 0.06);
}

.blog-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: #1b1b22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 199, 44, 0.2);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.blog-card-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-content h3 {
  color: var(--primary-gold);
}

.blog-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-read-more:hover {
  color: #FFF;
}

/* --- Footer --- */
.footer {
  background: #060608;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 25px;
  max-width: 350px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-gold);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-disclaimer-box {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.footer-disclaimer-box h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 10px;
}

.footer-disclaimer-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* --- Static Inner Pages (About, Contact, FAQ, Legal) --- */
.page-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 199, 44, 0.1) 0%, transparent 60%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

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

.page-hero h1 span {
  color: var(--primary-gold);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--primary-gold);
}

.page-content {
  padding: 70px 0;
}

.rich-text {
  max-width: 800px;
  margin: 0 auto;
}

.rich-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.rich-text h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.rich-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.rich-text ul, .rich-text ol {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.rich-text li {
  list-style: disc;
  margin-bottom: 8px;
}

/* --- Contact Page Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 199, 44, 0.06);
  border: 1px solid rgba(255, 199, 44, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-gold);
}

.contact-text h4 {
  font-size: 1rem;
  font-weight: 600;
}

.contact-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  padding: 40px;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #FFF;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px var(--gold-glow);
}

.form-status {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 102, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(255, 50, 50, 0.1);
  color: #ff5252;
  border: 1px solid rgba(255, 50, 50, 0.2);
}

/* --- Game Page Specific --- */
.game-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
}

.game-detail-content {
  display: flex;
  flex-direction: column;
}

.game-intro-box {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}

.game-intro-box .game-logo-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: #1e1e26;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.game-intro-meta h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.game-intro-meta .meta-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.game-quick-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.info-item-box {
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.info-item-box label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-item-box span {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
}

/* --- APK Specifications Table --- */
.spec-table-wrapper {
  margin: 30px 0 40px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 15px 20px;
}

.spec-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.95rem;
  width: 35%;
  border-right: 1px solid var(--border-color);
}

.spec-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child {
  border-bottom: none;
}

/* --- Features Grid (within game page review) --- */
.game-features-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0 45px;
}

.feature-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-check-item span.check-icon {
  color: var(--accent-green);
  font-weight: bold;
}

/* --- Related Games --- */
.related-games-section {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

/* --- Blog Page Specific --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-detail-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.blog-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.blog-detail-header {
  padding: 40px 40px 20px;
}

.blog-detail-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-detail-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-detail-body {
  padding: 0 40px 40px;
  color: var(--text-secondary);
}

/* --- Blog Navigation List / Reader Container --- */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-list-item:hover, .blog-list-item.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--primary-gold);
}

.blog-list-item .item-img-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  background: #1b1b22;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 199, 44, 0.2);
}

.blog-list-item .item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-list-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  transition: var(--transition-smooth);
}

.blog-list-item:hover h4 {
  color: var(--primary-gold);
}

.blog-list-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Specific Widgets */
.sidebar-widget {
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.sidebar-widget h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-gold);
  border-bottom: 2px solid rgba(255, 199, 44, 0.1);
  padding-bottom: 8px;
}

.widget-game-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.widget-game-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-game-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1b1b22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.widget-game-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.widget-game-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Scroll Reveal Utilities --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-overlay-card {
    left: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .game-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 999;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
  }
  
  .carousel-slide {
    flex: 0 0 calc(50% - 10px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-badges {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .game-card-footer {
    flex-direction: column;
  }
  
  .game-quick-info {
    grid-template-columns: 1fr;
  }
  
  .game-intro-box {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-form {
    padding: 20px;
  }
}
