.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.journal-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-5px);
}

.journal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.journal-card h3 {
  margin: 10px 0 5px;
  color: #003366;
  font-size: 18px;
}

.journal-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.view-more {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #003366;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.view-more:hover {
  background-color: #00509e;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  background-color: #003366;
  color: white;
  padding: 20px 0;
}

header h1 {
  text-align: center;
  margin-bottom: 10px;
}

.navbar {
  list-style: none;
  text-align: center;
}

.navbar li {
  display: inline-block;
  margin: 0 15px;
}

.navbar li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Hero Section */
.hero {
  padding: 50px 0;
  background: #e6f0ff;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

/* java script ke liye Scroll to Top Button Add Karein */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#scrollToTopBtn:hover {
  background-color: #00509e;
}


/*slider image*/
.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 30px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  height: 400px;
  object-fit: cover;
}

.slider button.prev,
.slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
}

.slider button.prev {
  left: 20px;
}

.slider button.next {
  right: 20px;
}


/* Dropdown menu */
.navbar li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 180px;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: black;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/*slider secetion ke below card wale section main*/

.features {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.section-title {
  font-size: 28px;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  max-width: 300px;
  flex: 1 1 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 10px;
  color: #333;
}

.card p {
  color: #555;
}

/*footer ke liye css */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 60px 20px 30px;
  font-size: 15px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-links,
.footer-subscribe {
  flex: 1 1 250px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-subscribe form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-subscribe input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.footer-subscribe button {
  padding: 10px 20px;
  background-color: #4caf50;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.footer-subscribe button:hover {
  background-color: #45a049;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #ccc;
}

.features {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 15px;
  color: #1e2b5c;
}

.card p {
  color: #555;
}

/* hero section*/

.hero {
  background: url('../images/hero-banner.jpg') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  background: rgba(0, 0, 0, 0.5); /* overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #28a745;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #218838;
}
/*************/

.flash-messages {
  margin: 1rem auto;
  padding: 1rem;
  max-width: 960px;
  text-align: center;
}

.flash-message {
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  font-weight: bold;
  color: white;
}

.flash-message.success {
  background-color: #4CAF50;
}

.flash-message.error {
  background-color: #f44336;
}


/* ✅ Toast Style */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  top: 20px;
  right: 20px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  top: 40px;
}

/* ------------------------------------------
   ✅ File: style.css
   ✅ Section: Mobile Responsive Fixes
------------------------------------------- */
@media (max-width: 768px) {
  /* Navbar vertical on mobile */
  .navbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .navbar li {
    display: block;
    margin: 8px 0;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Cards container (optional override) */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Footer layout stack */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-subscribe form {
    flex-direction: column;
  }

  .footer-subscribe input,
  .footer-subscribe button {
    width: 100%;
  }

  /* Contact Page */
  .contact-page {
    flex-direction: column;
  }

  /* Slider Height */
  .slider,
  .slides img {
    height: 220px;
  }
}

/*for contact page*/

.contact-page {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.contact-info,
.contact-form {
  flex: 1 1 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background-color: #333;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.contact-form button:hover {
  background-color: #555;
}

#formMsg {
  margin-top: 10px;
  font-weight: bold;
}



/* ------------------------------------------
   ✅ About Page Styling Enhancements
------------------------------------------- */
.about-section {
  background-color: #fff;
  padding: 60px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 30px;
}

.about-section h2,
.about-section h3 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 26px;
}

.about-section p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-section ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.about-section ul li {
  margin-bottom: 10px;
  color: #555;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Optional nice bullet for lists */
.about-section ul li::marker {
  color: #003366;
}


/* ------------------------------------------
   ✅ Footer Mobile Fix (Improved spacing & sizing)
------------------------------------------- */
footer p,
.footer-bottom {
  font-size: 14px;
  line-height: 1.6;
  padding: 0 15px;
}

/* Responsive tweaks for About Page only */
@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-section h2 {
    font-size: 22px;
  }

  .about-section p,
  .about-section ul li {
    font-size: 15px;
  }
}

/* BOOK PAGE STYLES */
.book-section {
  margin-bottom: 50px;
}

.book-category {
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
  color: #003366;
}

.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.book-card {
  width: 300px;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.book-card img {
  max-width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc;
  background-color: white;
  padding: 5px;
}

.book-info h4 {
  margin: 10px 0 5px;
  color: #003366;
}

.book-info p {
  margin: 2px 0;
  font-size: 14px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

#scrollToTopBtn:hover {
  background-color: #0055aa;
}




/* Side Button Box */
.side-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
}

/* Heading */
.side-heading {
  color: #003366;
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
}

/* Buttons */
.side-button {
  display: block;
  background-color: #003366;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s ease;
}

.side-button:hover {
  background-color: #0055aa;
}

/* Header logo alignment */
.header-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.site-logo {
  width: 80px;
  height: auto;
}

.logo-text h1 {
  margin: 0;
  font-size: 28px;
  color: white;
}

.logo-text p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}
/* Home page Office img */
.image-gallery {
  max-width: 350px;
  margin: 40px auto;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.gallery-title {
  font-size: 24px;
  color: #003366;
  margin-bottom: 20px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.image-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-image {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  flex-shrink: 0;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: #003366;
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
  background-color: #00509e;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 20px;
  }

  .prev-btn, .next-btn {
    padding: 8px 12px;
    font-size: 16px;
  }
}






