/* Hero Section */
.media-hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
              url('media-bg.jpg') center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.media-hero h1 {
  font-size: 3rem;
  color: #e40808;
  text-shadow: 0 0 15px rgba(228,8,8,0.6);
}

/* Sections */
.media-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.media-section.dark {
  background: #111;
  color: white;
}

.media-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #e40808;
}   

/* Grid Layout */
.media-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Media Cards */
.media-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s;
}

.media-card:hover {
  transform: translateY(-10px);
}

.media-card h3 {
  color: #e40808;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #e40808;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.btn:hover {
  background: #b40606;
}

/* Video Cards */
.video-card iframe {
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* ✅ Navbar Fix - Always On Top */
header, .navbar, .nav-menu, .nav-bg {
  position: relative;
  z-index: 99999 !important;
}

.nav-menu {
  z-index: 10000 !important; /* pehle 1000 tha */
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .logo-section {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
  }

  .navbar {
    position: fixed;
    top:100%;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1000px);
    z-index: 9999;
    padding: 0.5rem 4%;
    display: none;
    justify-content: space-between;
  }

  .nav-menu {
    position: fixed;
    top: 120px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    background: #fff;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    padding: 20px 0;
    z-index: 10000; /* 👈 updated */
  }
  
  .nav-menu.active {
    left: 0;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    margin: 1.5rem 0;
    color: black;
  }

  .nav-bg {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 435px;
    background: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: none;
  }

  .nav-bg.active {
    display: block;
  }
}
