/* ===============================
   IMPORT GOOGLE FONT
================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===============================
   RESET
================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #eef2f5;
  color: #222;
  overflow-x: hidden;
}

/* ===============================
   LOADING OVERLAY
================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #00c2cb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===============================
   PROGRESS BAR
================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00c2cb, #007acc);
  z-index: 1001;
  transition: width 0.15s ease;
}

/* ===============================
   BACK TO TOP BUTTON
================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #00c2cb;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 194, 203, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #007acc;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.4);
}

/* ===============================
   NAVBAR
================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 68, 117, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.2s ease-in-out;
}

.navbar.scrolled {
  background: rgba(0, 120, 180, 0.95);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #b5f4ff;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #b5f4ff;
}

/* ===============================
   HERO SECTION
================================== */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background: #0b3b70;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===============================
   CTA BUTTON
================================== */
.cta-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #0b3b70, #1a73e8);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #1457a7, #1e88ff);
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-btn:hover::after {
  animation: ripple 0.8s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(40, 40);
    opacity: 0;
  }
}

/* ===============================
   SECTION STYLE
================================== */
.section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 50px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #00385f;
}

/* ===============================
   ABOUT US SECTION BLUE BOX
================================== */
.about-section.blue-box {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 35px;
  background: linear-gradient(135deg, #004b80, #007acc);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.about-section.blue-box .about-block {
  margin-bottom: 40px;
  transition: transform 0.2s ease;
}

.about-section.blue-box .about-block:hover {
  transform: translateY(-4px);
}

.about-section.blue-box .about-block h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  border-left: 5px solid #4fc3ff;
  padding-left: 12px;
  text-align: left;
}

.about-section.blue-box .about-block p {
  font-size: 16px;
  line-height: 1.8;
  color: #e8f5ff;
}

/* ===============================
   LEADERSHIP GRID
================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.leader {
  background: #e1f5fe;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.leader:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.leader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 194, 203, 0.1));
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.leader:hover::before {
  opacity: 1;
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.leader:hover .leader-photo {
  transform: scale(1.05);
  border-color: #00c2cb;
}

/* ===============================
   LEADERSHIP LEARN MORE LINK (Chairman Only)
================================== */
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #007acc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 122, 204, 0.08);
}

.learn-more-link:hover {
  color: #004b80;
  background: rgba(0, 122, 204, 0.15);
  transform: translateY(-1px);
  gap: 8px;
}

.learn-more-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.learn-more-link:hover i {
  transform: scale(1.1);
}

/* ===============================
   PDF DOWNLOAD NOTIFICATION
================================== */
.download-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007acc;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.download-notification i {
  font-size: 1.2rem;
}

.download-notification span {
  font-weight: 500;
}

/* ===============================
   PDF MISSING MODAL
================================== */
.pdf-missing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.pdf-missing-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.pdf-missing-content h3 {
  color: #00385f;
  margin-bottom: 15px;
}

.pdf-missing-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-details {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.contact-details p {
  margin: 5px 0;
  color: #555;
}

.contact-details strong {
  color: #00385f;
}

.retry-btn, .close-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.retry-btn {
  background: #007acc;
  color: white;
}

.close-btn {
  background: #f0f0f0;
  color: #666;
}

.retry-btn:hover {
  background: #0066a6;
  transform: translateY(-2px);
}

.close-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* ===============================
   SUBSIDIARIES
================================== */
.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.subsidiary {
  background: #f0fbff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #d4eef7;
  position: relative;
}

.subsidiary:hover {
  background: #e4f8ff;
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.subsidiary h3 {
  color: #00385f;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.subsidiary h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #00c2cb;
  transition: width 0.2s ease;
}

.subsidiary:hover h3::after {
  width: 100px;
}

/* ===============================
   SUSTAINABILITY & INNOVATION STYLING
================================== */
#sustainability {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 35px;
  background: linear-gradient(135deg, #004b80, #007acc);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

#sustainability h2,
#sustainability h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  border-left: 5px solid #4fc3ff;
  padding-left: 12px;
}

#sustainability p,
#sustainability li {
  font-size: 16px;
  line-height: 1.8;
  color: #e8f5ff;
  margin-bottom: 15px;
}

#sustainability ul {
  list-style-type: disc;
  padding-left: 25px;
}

/* ===============================
   NEWS ARTICLE CARD
================================== */
.news-article {
  background: #f0fbff;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 6px solid #00c2cb;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.news-article h3 {
  margin-bottom: 10px;
  color: #00385f;
  font-size: 1.4rem;
  font-weight: 600;
}

.news-article p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.news-article a {
  color: #00c2cb;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

.news-article a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00c2cb;
  transition: width 0.2s ease;
}

.news-article a:hover::after {
  width: 100%;
}

/* ===============================
   NEWS ARTICLE TOPICS GRID
================================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.topic-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #00c2cb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.topic-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topic-item h5 {
  color: #00385f;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.topic-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.news-article h4 {
  color: #00385f;
  margin: 20px 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.news-article ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.news-article ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.conclusion {
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 194, 203, 0.1);
  border-left: 4px solid #00c2cb;
  border-radius: 8px;
  font-style: italic;
}

/* ===============================
   NEWS PHOTO GALLERY
================================== */
.news-gallery {
  margin-top: 40px;
  padding: 20px;
  background: linear-gradient(to right, #e0f7fa, #e1f5fe);
  border-radius: 15px;
}

.news-gallery h3 {
  text-align: center;
  color: #00385f;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Featured photo full width */
.news-gallery .gallery-item:first-child {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 20px;
}

.news-gallery .gallery-item:first-child img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

/* ===============================
   GALLERY SUBSECTION
================================== */
.gallery-subsection {
  background: linear-gradient(135deg, #f8fdff, #e8f7ff);
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gallery-subsection h3 {
  color: #00385f;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.gallery-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #666;
  line-height: 1.7;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.thumbnail-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.thumbnail-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  transform: translateY(0);
}

.thumbnail-overlay span {
  font-size: 1rem;
  font-weight: 600;
}

.view-all-link {
  text-align: center;
}

.gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: #00c2cb;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 194, 203, 0.3);
}

.gallery-btn:hover {
  background: #009aa2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 154, 162, 0.4);
}

/* ===============================
   VIDEO WRAPPER
================================== */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 500px;
  display: block;
}

/* ===============================
   CONTACT FORM
================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 600px;
  margin: 30px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: white;
  border-color: #00c2cb;
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
  outline: none;
}

.contact-form button {
  width: fit-content;
  padding: 12px 25px;
  background: #00c2cb;
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  background: #009aa2;
  transform: translateY(-2px);
}

.contact-form button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.contact-form button:hover::after {
  animation: ripple 0.8s ease-out;
}

.error-message {
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* ===============================
   FOOTER
================================== */
footer {
  text-align: center;
  padding: 25px 10px;
  margin-top: 60px;
  background: #00385f;
  color: white;
}

/* ===============================
   ANIMATIONS
================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   IMPROVED TEXT READABILITY
================================== */
p, li {
  line-height: 1.7;
  color: #444;
}

/* ===============================
   RESPONSIVENESS
================================== */
@media (max-width: 1024px) {
  .section {
    padding: 30px;
    margin: 60px 20px;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .subsidiaries-grid {
    grid-template-columns: 1fr;
  }
  
  .video-wrapper iframe,
  .video-wrapper video {
    height: 300px;
  }
  
  .cta-btn {
    padding: 10px 25px;
    font-size: 15px;
  }
  
  .about-section.blue-box,
  #sustainability {
    margin: 40px 15px;
    padding: 30px 20px;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .topic-item {
    padding: 15px;
  }
  
  .thumbnail-item {
    height: 180px;
  }
  
  .gallery-subsection {
    padding: 20px;
  }
  
  .download-notification {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 25px 20px;
    margin: 40px 15px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-thumbnails {
    grid-template-columns: 1fr;
  }
  
  .thumbnail-item {
    height: 200px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .download-notification {
    bottom: 15px;
    right: 15px;
    left: 15px;
    padding: 10px 15px;
  }
  
  .pdf-missing-content {
    padding: 20px 15px;
  }
  
  .retry-btn, .close-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}