body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
  }
  header, footer {
    text-align: center;
    padding: 1rem;
    background: #f0f0f0;
  }
  .logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .text-section {
    margin: 3rem auto;
     padding: 3rem; background: #fff;
      border-radius: 12px; 
      box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    
  }
  .text-section h1 {
    font-size: 2rem; 
    color: #222; 
    margin-bottom: 1rem;
  }
  .text-section h2 {
    font-size: 1.5rem; 
    color: #222; 
    margin-bottom: 1rem;
  }

.text-section p {
  font-size: 1rem; 
  color: #555;
  line-height: 1.6;
}

 a.fancy-link {
    display: inline-block;
    font-weight: 500;
    font-size: 1rem;
    color: #0645ad;
    text-decoration: none;
    border-bottom: 1px dotted #0645ad;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s, border-color 0.3s;
}

a.fancy-link::before {
    content: '\1F517'; /* Unicode link icon 🔗 */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    line-height: 1.4;
}

a.fancy-link:hover {
    color: #0b0080;
    border-color: #0b0080;
    text-decoration: underline;
}


  /* Responsive for smaller screens */
  @media (max-width: 768px) {
    .logo img {
      max-width: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .logo img {
      max-width: 120px;
    }
  }

  a{
    text-decoration: none;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f9f9f9;
    border-radius: 12px;
  }
  
  /* Each figure block */
  .gallery figure {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 1rem;
  }
  
  /* Picture and Image */
  .gallery .image-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
  }  
  
  .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery img:hover {
    transform: scale(1.02);
  }
  
  /* Caption */
  .gallery figcaption {
    font-size: 1rem;
    padding: 0.8rem 1rem 0.4rem;
    color: #333;
  }

  /* Download Button */
  .download-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .download-btn:hover {
    background-color: #0056b3;
  }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Style */
.main-header {
  background-color: #f5f5f5;
  padding: 10px 0;
  overflow-x: auto;
}

/* NavBar Flex Setup */
.nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.nav-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Logo Style */
.logo {
  margin-right: auto;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
}

/* Nav Links Style */
.nav-bar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: background 0.3s;
  flex-shrink: 0;
}

.nav-bar a:hover {
  background-color: #ddd;
  border-radius: 4px;
}

/* Responsive Layout */
@media (max-width: 600px) {
  .nav-bar {
    white-space: nowrap;
  }
}
  
  /* Footer */
  .main-footer {
    background-color: #222; 
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
  }
  
/* Center the entire pagination block */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  text-align: center;
}

/* Style the pagination links */
.pagination nav a {
  text-decoration: underline;
  color: #00796b;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  transition: color 0.3s ease;
}

/* Hover effect */
.pagination nav a:hover {
  color: #0056b3;
  text-decoration: none;
}

  
  .main-footer nav a {
    color: #ffffff;
    margin: 0 0.5rem;
    text-decoration: none;
  }
  
  .main-footer nav a:hover {
    color: #ffd700;
  }
  .download-btn {
    text-decoration: none;
    display: block;
    margin: 0.5rem auto 1rem;
    padding: 0.5rem 1rem;
    background: #0000FF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .download-btn:hover {
    background: #0056b3;
  }
  @media (max-width: 600px) {
    figcaption {
      font-size: 0.85rem;
    }
  }

/* category page */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
  }

  .category-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
  }

  .category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .category-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .category-item span {
    display: block;
    font-size: 16px;
    font-weight: 600;
  }

  @media (max-width: 480px) {
    .category-item {
      padding: 15px;
    }

    .category-item img {
      width: 50px;
      height: 50px;
    }

    .category-item span {
      font-size: 15px;
    }
  }
  .search-box {
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
  }
  
  .search-box input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    color: #555;
    cursor: pointer;
  }
  


  .language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .language-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    font-family: Arial, sans-serif;
    transition: transform 0.2s ease;
  }
  
  .language-card:hover {
    transform: scale(1.05);
  }
  
  .lang-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #3498db;
    color: #3498db;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    transition: background 0.3s, color 0.3s;
  }
  
  .language-card:hover .lang-circle {
    background: #3498db;
    color: white;
  }
  
  .language-card span {
    font-size: 14px;
  }
  
  @media (max-width: 480px) {
    .lang-circle {
      width: 50px;
      height: 50px;
      font-size: 16px;
    }
  
    .language-card span {
      font-size: 12px;
    }
  }
  