:root {
  --primary: #00f3ff;
  --secondary: #abfffd;
  --bg-dark: #050507;
  --glass-bg: rgba(20, 20, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --text-main: #ffffff;
  --text-muted: #b0b0bb;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --header-height: 80px;

  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- BACKGROUND GLOW EFFECTS --- */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  filter: blur(120px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  filter: blur(120px);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
  color: #d1d1e0;
}

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

ul { list-style: none; }

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: var(--spacing-md);
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.4);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(5, 5, 7, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

/* 🔥 HEADER LOGO RADIUS FIX 🔥 */
.logo img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 10px; /* Thoda round kar diya */
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* --- MOBILE MENU (HAMBURGER) --- */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  transition: var(--transition);
}

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

.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* --- 🔥 MAIN LAYOUT (THE BIG FIX) 🔥 --- */
main {
  /* Ye !important lagane se ab koi bhi class isko override nahi kar payegi */
  padding-top: 120px !important;
  padding-bottom: var(--spacing-2xl);
  flex: 1;
  width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  main {
    padding-top: 100px !important;
  }
}

.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero h1 {
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- GRID LAYOUTS --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.article-card {
   transition: var(--transition);
}
.article-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

/* --- ARTICLE PAGE STYLING --- */
.article-container {
  max-width: 800px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}
.breadcrumb a:hover { color: var(--primary); }

.feature-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  margin-bottom: 30px;
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-image-wrapper:hover img {
  transform: scale(1.03);
}

article h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

article .meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

article p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #d8d8e6;
}

article h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

article ul {
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--primary);
}

article li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #d1d1e0;
}

article strong { color: #fff; }

/* Invisible Ad Placeholder */
#article-middle-ad {
  min-height: 0px;
  width: 100%;
  margin: 10px 0;
}

/* --- FOOTER (FIXED) --- */
footer {
  margin-top: 40px;
  padding: 40px 0;
  background: #08080c;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔥 FOOTER LOGO RADIUS & SIZE FIX 🔥 */
.footer-logo img {
  height: 50px;           /* Correct size */
  width: auto;
  max-width: 100%;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 10px; /* Radius added */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.footer-links a {
  color: #888;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.copyright {
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root { --header-height: 70px; }
  h1 { font-size: 2.2rem; }
  article h1 { font-size: 2rem; }
  
  .hamburger { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #0f0f13;
    flex-direction: column;
    padding-top: 100px;
    transition: 0.4s ease;
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.active { right: 0; }
}