@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700&display=swap');

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

.top-banner {
  width: 100%;
  height: 220px; 
  text-align: center;
  background-color: #fff;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
}

.top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; 
  display: block;
  margin: 0;
  padding: 0;
}

.nav-scroller {
  margin: 0 !important;
  padding: 0 !important;
}

.main-menu {
  margin: 0 !important;
  padding: 0 !important;
}

.custom-navbar {
  background-color: #000000;
  padding: 0.8rem 0; 
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 100;
  margin: 0;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-menu-nav {
  padding: 0;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
  font-size: 0.85rem; 
  margin: 0 10px; 
  padding: 8px 0; 
  position: relative;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: #f1c40f !important;
}

.custom-navbar .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #f1c40f;
  transition: width 0.3s;
  margin: auto;
  margin-top: 4px;
}

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

.navbar-dark .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(241, 196, 15, 0.5);
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  width: 1.5em;
  height: 1.5em;
}

#main-content {
  margin: 0;
  padding: 60px 0;
  min-height: 400px;
}

section {
  padding: 60px 0;
}

.about-section {
  background-color: #f9f9f9;
  text-align: center;
}

.about-section h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-highlight {
  background: #fff;
  border-left: 5px solid #7d1b17;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}

footer {
  margin: 0;
  padding: 0;
  display: block;
}

.footer-maroon {
  background-color: #7d1b17;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 20px 20px;
  margin: 0;
}

.footer-top {
  margin-bottom: 0;
}

.footer-top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px; 
  justify-content: center;
  font-size: 0.9rem; 
}

.footer-top ul li {
  margin: 0;
}

.footer-top ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.footer-top ul li a:hover {
  color: #f1c40f;
}

.footer-separator {
  height: 1px;
  background-color: #ffffff;
  width: 80%;
  margin: 15px auto; 
}

.footer-bottom {
  margin-top: 0;
}

.footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px; 
  justify-content: center;
  font-size: 0.85rem; 
}

.footer-bottom ul li {
  margin: 0;
}

.footer-bottom ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.footer-bottom ul li a:hover {
  color: #f1c40f;
}

footer .top-banner {
  width: 100%;
  height: 280px; 
  margin: 0;
  padding: 0;
  display: block;
  background-color: #ffffff;
  overflow: hidden;
}

footer .top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center bottom; 
  display: block;
  margin: 0;
  padding: 0;
}

.rgukt-copyrights {
  background-color: #2b2a2a;
  color: #ffffff;
  padding: 15px 0; 
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #2b2b2a;
  margin: 0;
}

.rgukt-copyrights .container {
  padding: 0 15px;
}

.rgukt-copyrights p {
  margin: 0;
  font-weight: 500;
  font-size: 0.8rem; 
}

.rgukt-copyrights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.rgukt-copyrights ul li {
  margin: 0;
}

.rgukt-copyrights ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.rgukt-copyrights ul li a:hover {
  color: #fad724;
}

.card {
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.archive-card .card-img-top {
  height: 500px;
  object-fit: contain;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.4s ease;
  position: relative;
  background-color: #f9f9f9;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #7d1b17;
  margin-bottom: 10px;
}

.card-text {
  color: #555;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #7d1b17;
  border-color: #7d1b17;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5a1310;
  border-color: #5a1310;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(125, 27, 23, 0.3);
}

.index-hero {
  background: linear-gradient(135deg, #7d1b17 0%, #a82824 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.index-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.index-hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.95;
  margin: 0;
}

.flipbook-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: #7d1b17;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f1c40f;
}

.pdf-viewer-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 0;
}

.pdf-viewer-container iframe {
  width: 100%;
  height: 800px;
  border: none;
}

.archive-hero {
  background: linear-gradient(135deg, #7d1b17 0%, #a82824 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.archive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.archive-hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.archive-content {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.archive-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: none;
  position: relative;
  margin-bottom: 30px;
}

.archive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7d1b17, #f1c40f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.archive-card:hover::before {
  transform: scaleX(1);
}

.archive-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(125, 27, 23, 0.15);
}

.archive-card .card-img-top {
  height: auto;
  width: 100%;
  object-fit: cover;
  border-bottom: none;
  transition: all 0.4s ease;
  position: relative;
  display: block;
}

.archive-card:hover .card-img-top {
  transform: scale(1.02);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-img-wrapper::after {
  content: 'VIEW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(125, 27, 23, 0.9);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 3px;
}

.archive-card:hover .card-img-wrapper::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.archive-card .card-body {
  padding: 30px;
  background: white;
}

.archive-card .card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #7d1b17;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.archive-card:hover .card-title {
  color: #a82824;
}

.archive-card .card-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.archive-card .btn-primary {
  background: linear-gradient(135deg, #7d1b17 0%, #a82824 100%);
  border: none;
  padding: 12px 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.archive-card .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.archive-card .btn-primary:hover::before {
  left: 0;
}

.archive-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 27, 23, 0.3);
  color: #222;
}

.issue-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(241, 196, 15, 0.95);
  color: #222;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.loading-spinner {
  text-align: center;
  padding: 60px 0;
  font-family: 'Poppins', sans-serif;
  color: #7d1b17;
}

.loading-spinner p {
  margin-top: 15px;
  font-size: 1rem;
}

.error-message {
  text-align: center;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
  color: #d9534f;
  background: #f8d7da;
  border-radius: 8px;
  margin: 20px;
}

.error-message h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.no-magazines {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  color: #666;
}

.no-magazines h3 {
  color: #7d1b17;
  margin-bottom: 15px;
  font-weight: 600;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archive-card {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px) {
  .custom-navbar {
    padding: 0.6rem 0;
  }
  
  .custom-navbar .nav-link {
    margin: 8px 10px; 
    font-size: 0.9rem;
    padding: 10px 0;
  }
  
  .navbar-collapse {
    background-color: #000000;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    height: 150px; 
  }
  
  footer .top-banner {
    height: 180px; 
  }
  
  .custom-navbar {
    padding: 0.5rem 0; 
  }
  
  .custom-navbar .nav-link {
    margin: 5px 0; 
    padding: 10px 15px; 
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .custom-navbar .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-collapse {
    background-color: #000000;
    padding: 10px 0;
    margin-top: 10px;
  }
  
  .footer-top ul,
  .footer-bottom ul {
    gap: 15px; 
    font-size: 0.85rem; 
  }

  .footer-maroon {
    padding: 15px 15px; 
  }

  .rgukt-copyrights {
    padding: 12px 0; 
  }

  .rgukt-copyrights ul {
    flex-direction: column;
    gap: 6px; 
  }

  .rgukt-copyrights p,
  .rgukt-copyrights ul li a {
    font-size: 0.75rem; 
  }

  .about-section h1 {
    font-size: 1.6rem;
  }

  .about-section p {
    font-size: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  #main-content {
    padding: 40px 0;
  }
  
  .contact-card a {
    font-size: 1.1rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .index-hero h1 {
    font-size: 2rem;
  }
  
  .index-hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .flipbook-section {
    padding: 40px 0;
  }

  .pdf-viewer-container iframe {
    height: 600px;
  }

  .archive-hero h1 {
    font-size: 2.2rem;
  }
  
  .archive-hero p {
    font-size: 1rem;
  }
  
  .archive-card .card-img-top {
    padding: 0;
  }
  
  .archive-card .card-body {
    padding: 20px;
  }
  
  .archive-card .card-title {
    font-size: 1.3rem;
  }
  
  .archive-content {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .top-banner {
    height: 110px;
  }
  
  footer .top-banner {
    height: 140px;
  }
  
  .custom-navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-toggler {
    margin-right: 10px;
  }
  
  .footer-top ul,
  .footer-bottom ul {
    gap: 12px;
    font-size: 0.8rem;
  }
  
  .footer-maroon {
    padding: 12px 10px;
  }
  
  .footer-separator {
    margin: 10px auto;
  }
  
  .about-section h1 {
    font-size: 1.4rem;
  }
  
  .contact-card a {
    font-size: 0.95rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
  }
  
  .contact-card h4 {
    font-size: 1.4rem !important;
  }
  
  .contact-card {
    padding: 30px 20px !important;
  }

  .pdf-viewer-container iframe {
    height: 500px;
  }
}

@media (max-width: 400px) {
  .contact-card a {
    font-size: 0.85rem !important;
  }
  
  .custom-navbar .nav-link {
    font-size: 0.85rem;
  }
}


.no-margin {
  margin: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

.mb-2 {
  margin-bottom: 0 !important;
}