body{
    background-color: aquamarine;
}


/* NAVBAR SECTION */
/* NAVBAR SECTION */
.navbar {
  border: 4px solid black;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 5px;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0; 
  z-index: 1000;
  height: 80px; /* ⬅️ was 70px, now 80px */
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

.navbar.scrolled {
  width: 100%;
  padding-top: 30px;
}

.logo-navbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  padding-right: 20px;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #000;
  padding: 10px;
  z-index: 1001;
  margin-left: 0;      /* Remove auto push */
  margin-right: 20px;  /* Keep spacing from edge */
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: underline;
  color: black;
  font-weight: bolder;
  font-size: 24px;
  transition: all ease;
}

.nav-links a:hover {
  color: #0000FF;
  text-decoration-color: #0000FF;
}

/* Active nav link styling */
.nav-links .active {
  color: #f39c12;
  font-weight: bold;
  border-bottom: 2px solid #f39c12;
}


/* NAVBAR SECTION END */


/* hero */
.hero{
  text-align: center;
  padding: 3rem;
  border-radius: 10px;
  margin-bottom: 3rem;
  transition: all 1s ease-in 1s;
}
.hero h1{
  font-size: 3rem;
}
.hero p{
  font-size: 2rem;
}


/* boxes sizing */



/* Container for the magazine page */
.magazine-section {
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center; /* Center the grid container horizontally */
  align-items: flex-start; /* Align to the top */
  width: 100%;
  height: 100%; /* Ensure it takes full height */
}

/* Grid container for the magazine boxes */
.magazine-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 boxes per row */
  gap: 5rem; /* Reduced gap */
  justify-items: center; /* Center individual boxes horizontally */
  align-items: start; /* Align items to the top */
  width: 100%; /* Full width of parent */
  max-width: 1200px; /* Limit the maximum width of the container */
  margin: 0 auto; /* Center the grid container */
  align-items: stretch;

}


.magazine-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #535353;
  padding: 1rem;
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
  max-width: 300px;
  margin: 0;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effect without layout shift */
.magazine-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px black;
  transform: translateY(-4px);
  background-color: #f6f6f6;
}



/* Image within the box */
.cover-image {
  width: 100%;
  height: auto;
  max-height: 300px;  /* Control image height to fit within box */
  object-fit: contain; /* Ensure the image fits without cropping */
  border-radius: 5px;
  margin-bottom: 5px; /* Reduced margin to bring the image closer to the text */
}

/* Styling for the information section within the box */
.info {
  margin-top: 5px;  /* Reduced margin for compact layout */
  text-align: center;
  width: 100%; /* Ensure text container takes full width */
}

/* Title of the magazine item */
.info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px; /* Reduced margin to compact text */
}

/* Release date styling */
.release-date {
  font-size: 1rem;
  color: #000000;
  margin-top: 5px;  /* Reduced margin */
}

/* Summary styling */
.summary {
  font-size: 1rem;
  margin-top: 5px;  /* Reduced margin for compact layout */
  color: #000000;
  margin-bottom: 5px; /* Reduced margin */
}

/* Read button styling */
.read-button {
  display: inline-block;
  margin-top: 5px;  /* Reduced margin between summary and button */
  padding: 0.5rem 1.5rem;
  background-color: #ffcc00;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.read-button:hover {
  background-color: #ffaa00;
}

/* Responsive styling for tablets */
@media (max-width: 768px) {
  .cover-image {
      max-height: 180px; /* Adjust the image height for tablets */
  }
}

/* Responsive styling for small mobile screens */
@media (max-width: 480px) {
  .cover-image {
      max-height: 150px; /* Adjust the image height for small mobile screens */
  }
}

.drive-link {
  width: max-content;
  margin: 100px auto;
  background-color: rgb(16, 16, 16);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: transform 0.25s ease-in;
  transform-origin: center;
}

.drive-link a {
  color: yellow;
  text-decoration: none;
  transition: color 0.5s ease; /* 👈 Smooth color change */
}

.drive-link:hover {
  transform: scale(1.070);
}

.drive-link a:hover {
  color: rgb(0, 17, 255); /* 👈 Blue on hover */
}








/* footer */

.footer {
  background-color: #000000;
  color: white;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  font-family: sans-serif;
  border-radius: 7px;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 10px;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  
}

.icon-row a {
  color: rgb(185, 168, 255);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer a:hover {
  color: #ffffff;
}

.utkarsh {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.85rem;
  color: rgb(185, 168, 255);
}

.footer-details p {
  margin: 0.5rem 0 0 0;
}













@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    top: 80px; /* ⬅️ match new navbar height */
    left: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .navbar {
    align-items: flex-start;
  }

  .logo-navbar {
    height: 50px;
    margin-bottom: 10px;
    transition: margin-top 0.3s;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
  }

  html.translated-ltr .menu-toggle {
    margin-top: 40px !important;
  }

  html.translated-ltr .logo-navbar {
    margin-top: 38px !important;
  }

  /* Custom scroll behavior */
  .navbar.scrolled .logo-navbar {
    margin-top: 10px;
  }

  .navbar.scrolled .menu-toggle {
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .magazine-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0 10px;
    box-sizing: border-box; /* Prevent overflow */
  }

  .magazine-item {
    width: 100%;
    max-width: none;
    box-sizing: border-box; /* Ensure padding/margin don't break width */
  }
}

body {
  background-color: aquamarine;
  padding-top: 90px; /* ⬅️ Matches navbar height */
}

