* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #000;
}

.nasa-header {
  background: #000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 100%;
  height: 70px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== LEFT SIDE ===== */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.explore-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-btn.clicked {
  border: 2px solid skyblue;
  border-radius: 4px;
  padding: 4px 8px;
}

.explore-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.explore-dropdown.active {
  display: block;
}

.explore-dropdown a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
}

.explore-dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

.circle-arrow {
  color: #fff;
}

.search-box input {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 16px;
  padding: 8px 14px;
  width: 200px;
  height: 38px;
  outline: none;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #999;
}

.search-box input:focus {
  border-color: skyblue;
}

/* ===== CENTER LOGO ===== */
.header-center {
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* ===== RIGHT SIDE ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
  position: relative;
}

.nav-link.clicked {
  border: 2px solid skyblue;
  border-radius: 4px;
  padding: 4px 8px;
}

.news-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.news-dropdown.active {
  display: block;
}

.news-dropdown a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
}

.news-dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

.multimedia-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.multimedia-dropdown.active {
  display: block;
}

.multimedia-dropdown a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
}

.multimedia-dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

.dropdown-icon {
  color: #fff;
}

.nasa-plus {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  background: transparent;
  background: #000000;
  border: 2px solid #f64137;
  color: #f64137;
  font-size: 12px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  line-height: 1;
  padding: 2px 6px;
  border: 1px solid #f64137;
  line-height: 1.2;
  display: inline-block;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.live-badge:hover {
  background: #f64137;
  border: 1px solid #f64137;
}

/* ===== SEARCH ICON MOBILE ===== */
.search-icon-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
}

.mobile-only {
  display: none;
}

/* ===== MOBILE SEARCH BAR ===== */
.mobile-search-bar {
  display: none;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  gap: 12px;
  align-items: center;
}

.mobile-search-bar.active {
  display: flex;
}

.mobile-search-bar input {
  flex: 1;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
}

.mobile-search-bar input::placeholder {
  color: #999;
}

.close-search {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-link {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== TABLET: 768px - 1023px ===== */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .mobile-only {
    display: block;
  }

  .header-container {
    padding: 0 24px;
    height: 65px;
  }

  .logo img {
    height: 45px;
  }

  .header-left {
    flex: 0 0 auto;
  }

  .header-right {
    flex: 0 0 auto;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== MOBILE: 0 - 767px ===== */
@media (max-width: 767px) {
  .header-container {
    padding: 0 16px;
    height: 60px;
  }

  .logo img {
    height: 38px;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .search-icon-btn svg {
    width: 20px;
    height: 20px;
  }
}
/* hero section */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 65%);
  z-index: 1;
}

/* ===== MAIN CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px 60px;
  color: #fff;
  padding: 120px 60px 60px; 
  padding: 100px 60px 60px; 
  margin-bottom: auto;
  margin-top: 100px;
}

.hero-content h1 {
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -1px;
  margin-top: 16px;
  margin-top: 70px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
  color: #e5e5e5;
}

.hero-btn {
  display: inline-block;
  background: #f64137;
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #d63529;
}

/* ===== BOTTOM LINKS ===== */
.hero-links {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: auto;
}

.link-item {
  padding: 28px 30px 28px 0;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
}

.link-item:last-child {
  padding-right: 0;
}

.link-item:hover {
  background: rgba(255,255,255,0.03);
}

.link-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.link-category span {
  display: inline-block;
  text-decoration: overline dashed black;
  text-decoration-thickness: 2px;
  margin-right: 6px;
  padding-top: 2px;
}

.link-category span:last-child {
  margin-right: 0;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: overline dashed black;
  text-decoration-thickness: 3px;
}

.arrow {
  background: #f64137;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ===== CONTROLS ===== */
.hero-controls {
  position: absolute;
  bottom: 50px;
  right: 60px;
  z-index: 3;
  display: flex;
  gap: 14px;
}

.play-pause, .thumb-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.play-pause:hover, .thumb-btn:hover {
  border-color: #fff;
  background: rgba(0,0,0,0.7);
}

.thumb-btn {
  padding: 0;
  overflow: hidden;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout Styling */
.nasa-news-portal {
    background-color: #f1f1f1;
    padding: 50px 8%;
    font-family: Arial, sans-serif;
}

/* Header Section */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #212121;
}

.recent-link {
    text-decoration: none;
    color: #212121;
    font-weight: bold;
}

.arrow-dot {
    background: #eb3c27;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Top Grid Styling */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 50px;
}

.news-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 420px;
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small-card {
    height: 202.5px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: white;
}

.card-text h3 {
    color: white;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 5px;
}

/* Bottom Circular List Styling */
.bottom-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.list-item {
    display: flex;
    gap: 15px;
}

.round-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.list-content .read-time {
    font-size: 11px;
    font-weight: bold;
    color: #666;
}

.item-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    margin: 5px 0;
}

.tag-label {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
}

/* Responsive Fix */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* -----red dots section -----*/
news-feature {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    display: flex;
    align-items: center; 
    padding: 0 8%;
    background-color: #000; 
}

/* Background Image Styling */
.feature-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

/* Dark overlay taake text saaf dikhe */
.news-feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 20%, transparent 80%);
    z-index: 2;
}

.container {
    position: relative;
    z-index: 3; 
    max-width: 1200px;
}

.news-content {
    max-width: 550px;
}

.news-title {
    font-family: Arial, sans-serif;
    font-size: 3.5rem; 
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.news-description {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 35px;
    font-weight: 400;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.news-link:hover {
    text-decoration: underline;
}

/* Red arrow dot styling */
.arrow-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #eb3c27; 
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: normal;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .news-title {
        font-size: 2.5rem;
    }
    .news-feature {
        padding: 0 5%;
    }
}
/* Featured Section Styling */
.news-feature {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center; 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('your-image-path.jpg'); 
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 0 8%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.news-content {
    max-width: 600px; 
}

.news-title {
    font-size: 3rem; 
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.news-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
    color: #e0e0e0;
}

.news-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease;
}

.news-link:hover {
    text-decoration: underline;
}

.arrow-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #eb3c27; 
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-left: 10px;
    font-size: 0.8rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }
    .news-feature {
        padding: 0 5%;
    }
}

/*----- universe section ---- */
.universe-section {
    padding: 60px 8%;
    background-color: #f4f4f4; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.discover-link {
    text-decoration: none;
    color: #212121;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.red-circle {
    background-color: #f64137;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.uni-card {
    position: relative;
    height: 450px; 
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.uni-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    box-sizing: border-box;
}

.card-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.card-info h3 {
    color: white;
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    max-width: 70%;
}

.small-red-btn {
    background-color: #f64137;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}


/* ----imge of the day section ---- */
body {
  
    font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f4f4; 
    margin: 0;
    padding: 0;
}
.image-of-the-day {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 90%;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Left Section */
.iotd-content {
    flex: 1;
}

.label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.heading {
    font-size: 42px;
    font-weight: 700;
    color: #111;
    margin: 0 0 40px 0;
}

.sub-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    max-width: 400px;
}

.browse-link {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.arrow-icon {
    background-color: #eb3c27; 
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    font-size: 12px;
}

/* Right Image Section */
.iotd-image-container {
    flex: 1.5;
    position: relative;
}

.main-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.view-image-link {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .heading {
        font-size: 32px;
    }
}
/* ----nasa-gallery-section---- */

.nasa-gallery-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

/* Grid for 3 Main Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Styling */
.gallery-card {
    display: flex;
    flex-direction: column;
}

/* Inner Image Layout */
.image-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 4px; 
    background-color: #fff;
    margin-bottom: 40px;
    height: 260px;
}

.big-img,
.small-imgs {
    overflow: hidden;
}

.big-img img {
     width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
   
}

.small-imgs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.small-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Styling */
.card-heading {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
    cursor: pointer;
}

.card-heading:hover {
    text-decoration: underline;
}

.card-meta {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Responsive for Mobile */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
.newsletter-hero {
    /* NASA ki nebula image ka link */
    background-image: url(./pic/pic26.png);
    background-size: cover;
    background-position: center;
    min-height: 600px; /* Section ki height */
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
}

.newsletter-overlay {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    padding-left: 8%;
}

.content-wrapper {
    max-width: 600px;
}

.main-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.sub-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.privacy-note {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 40px;
}

.policy-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.policy-link:hover {
    opacity: 0.8;
}

/* Sign Up Button & Red Arrow */
.signup-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.red-circle {
    background-color: #eb3c27; 
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: transform 0.3s;
}

.signup-link:hover .red-circle {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-heading {
        font-size: 36px;
    }
    .newsletter-hero {
        min-height: 500px;
    }
}
.freedom-section {
    background-color: #f4f4f4; 
    padding: 80px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #111;
}

.freedom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Left Content Styles */
.freedom-text {
    flex: 1.2;
}

.eyebrow {
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    color: #333;
}

.freedom-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.tagline {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.main-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.learn-more {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.arrow-red {
    display: inline-block;
    background-color: #FC3D21; 
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    margin-left: 10px;
}

/* Right Media Styles */
.freedom-media {
    flex: 1;
}

.image-box {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.image-box img {
    width: 100%;
    display: block;
}

.image-caption {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.image-caption strong {
    display: block;
    margin-top: 5px;
    color: #222;
}

/* Responsive */
@media (max-width: 992px) {
    .freedom-container {
        flex-direction: column;
    }
    .freedom-text h2 {
        font-size: 2.2rem;
    }
}
.nasa-topics {
    padding: 50px 10%;
    background-color: #f4f4f4; 
    font-family: Arial, sans-serif;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}

.topic-card {
    position: relative;
    aspect-ratio: 2/ 3; 
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; 
    transition: transform 0.3s ease;
}

.topic-card:hover img {
    transform: scale(1.05); 
    opacity: 1;
}

.card-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.arrow {
    margin-left: 8px;
    background-color: #eb3c27; 
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mobile ke liye settings */
@media (max-width: 900px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}
.nasa-footer {
    background-color: #0b0d0f; 
    color: #ffffff;
    padding: 60px 5% 40px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

/* Brand Section */
.footer-brand {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 20px;
}

.agency-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.agency-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.about-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.join-us {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.arrow-circle {
    background-color: #eb3c27; 
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    font-size: 0.7rem;
}

/* Link Columns */
.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-around;
}

.link-column a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.nasa-plus {
    display: flex;
    align-items: center;
}

.live-tag {
    background: #eb3c27;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: bold;
}

/* Social Section */
.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    margin: 15px 0;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
}

.extra-link {
    display: block;
    font-size: 0.85rem;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 30px;
}

.bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-meta {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    gap: 30px;
}

.footer-meta strong {
    color: #ccc;
}
/* --- 1. Global Reset & Smoothness --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- 2. Header & Nav (Hamburger Logic) --- */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
        height: 65px;
    }

    .desktop-only {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Menu Dropdown Styles */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        z-index: 999;
        display: none;
        flex-direction: column;
        padding: 10px 0;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-link {
        padding: 15px 25px;
        border-bottom: 1px solid #222;
        width: 100%;
    }
}

/* --- 3. Hero Section (Laptop to Mobile) --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 60px; }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 80px 20px 40px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 38px;
        margin-top: 40px;
    }
    .hero-content p {
        margin: 0 auto 25px;
    }
    .hero-links {
        grid-template-columns: 1fr; 
        padding: 0 20px;
    }
    .link-item {
        padding: 20px 0;
        border-bottom: 1px solid #333;
    }
    .hero-controls {
        position: relative;
        bottom: 20px;
        right: 0;
        justify-content: center;
        margin-top: 20px;
    }
}

/* --- 4. News Portal & Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .nasa-news-portal { padding: 40px 20px; }
    .news-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bottom-news-list { grid-template-columns: 1fr; } 
}

/* --- 5. Universe & Topics (Smart Grid) --- */
.cards-grid, .topics-grid {
    display: grid;
    /* Laptop 4, Tablet 2, Mobile 1 automatically */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .topics-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

/* --- 6. Image of the Day (Vertical Stack) --- */
@media (max-width: 992px) {
    .image-of-the-day .container {
        flex-direction: column-reverse; 
        gap: 30px;
    }
    .iotd-content, .iotd-image-container {
        width: 100%;
        text-align: center;
    }
    .text { max-width: 100%; }
    .view-image-link { justify-content: center; }
}

/* --- 7. NASA Gallery (Dynamic Layout) --- */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .image-layout {
        height: 250px;
    }
}

/* --- 8. Newsletter & Freedom Sections --- */
@media (max-width: 768px) {
    .newsletter-hero { text-align: center; }
    .newsletter-overlay { padding-left: 0; justify-content: center; }
    .main-heading { font-size: 32px; }
    
    .freedom-container {
        flex-direction: column;
        text-align: center;
    }
    .learn-more { justify-content: center; }
}
/* --- Footer Main Container --- */
.nasa-footer {
    background-color: #0b0d0f;
    color: #ffffff;
    padding: 60px 5%;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

/* --- Brand Section --- */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 80px;
    margin-bottom: 20px;
}

/* --- Links Grid (Middle Section) --- */
.footer-links {
    display: grid;
    /* Laptop par links ke 2 columns */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.link-column a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}

.link-column a:hover {
    opacity: 0.7;
}

/* --- Social & Info Section --- */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* --- Bottom Meta Info --- */
.footer-bottom {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* ===================================================
   RESPONSIVE QUERIES (Tablet & Mobile)
   =================================================== */

/* --- Tablet (iPad/Large Mobile) --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand, .footer-social {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links {
        justify-items: center;
    }
}

/* --- Mobile (Small Screens) --- */
@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .agency-description {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}