/* ====== Global Styles ====== */
html,
body {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  background: #f5f5f5;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.page-title,
.category-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.heading {
  background: #58a6b1;
  color: rgb(245, 245, 245);
  text-align: center;
  font-weight: bold;
}

/* ====== Mobile App Layout ====== */
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.custom-navbar {
  background-color: #4f1f0a;
}

.brand-text {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff !important;
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  position: relative;
}

.hamburger-btn {
  font-size: 28px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

/* Sidebar */
.sidebar-wrapper {
  position: fixed;
  top: 0;
  left: -260px;
  height: 100%;
  width: 260px;
  background: #244d78;
  color: white;
  z-index: 9999;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.sidebar-wrapper.active {
  left: 0;

}

.sidebar-brand {
  padding: 1rem;
  font-size: 20px;
  background: #1e3f63;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.sidebar-brand a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;

}

.sidebar-brand i {
  font-size: 20px;
  cursor: pointer;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu ul li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li.active a {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Overlay (optional if you want screen dimming) */
.sidebar-overlay {
  display: none;
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.sidebar-overlay.active {
  display: block;
}



/*****front page index.php******/

   .hombg {
      background-color: #998818ed !important;
      min-height: 100vh;
      position: relative;
      padding: 20px 10px;
      color: #f8fcff;
      transition: background-color 1s ease;
    }

    .float-container {
      position: fixed;
      top: 35%;
      right: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      z-index: 9999;
    }

    .float-container a {
      display: flex;
      align-items: center;
      width: 200px;
      margin: 8px 0;
      padding: 12px;
      background: #ff4400;
      color: whitesmoke;
      border-radius: 5px 0 0 5px;
      text-decoration: none;
      font-size: 16px;
      transition: margin 0.3s ease, box-shadow 0.3s;
    }

    .float-container a:hover {
      margin-right: 4px;
      background: #e63e00;
      box-shadow: -2px 2px 6px rgba(0,0,0,0.2);
    }

    .float-container .icon:before {
      margin-right: 12px;
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
    }

    .icon.one:before { content: "\f2c1"; } /* Address Book */
    .icon.two:before { content: "\f4ad"; } /* Book */
    .icon.three:before { content: "\f164"; } /* Thumbs up */

    @media (max-width: 440px) {
      .float-container {
        bottom: 0;
        top: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
      }

      .float-container a {
        width: auto;
        border-radius: 0;
        margin: 0;
      }

      .float-container a:nth-child(3) {
        display: none;
      }
    }

    .justified-sanskrit-text {
      text-align: justify;
      line-height: 1.8;
      font-size: 1.1rem;
    }

    /* Rotate Image Animation */
    #rotateImg {
      animation: rotate 20s linear infinite;
       filter: brightness(0) invert(1);
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

#slider {
  position: relative;
  height: 190px; /* Adjust based on line height */
  overflow: hidden;
   margin-top: 20px;
}

.slide-group {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  animation: slideGroup 32s linear infinite;
}

.slide-group:nth-child(1) { animation-delay: 0s; }
.slide-group:nth-child(2) { animation-delay: 8s; }
.slide-group:nth-child(3) { animation-delay: 16s; }
.slide-group:nth-child(4) { animation-delay: 24s; }

@keyframes slideGroup {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  5% {
    opacity: 1;
    transform: translateX(0);
  }
  25% {
    opacity: 1;
    transform: translateX(0);
  }
  30% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}





/***image slider****/
.slider-wrapper {
  position: relative;
}

.shloka-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.shloka-overlay h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px #000;
}

.shloka-overlay p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  text-shadow: 1px 1px 2px #000;
}

@media (max-width: 768px) {
  .shloka-overlay h2 {
    font-size: 1.5rem;
  }

  .shloka-overlay p {
    font-size: 1rem;
  }
}



/****** category part index page *******/
.sanskrit-category-unique {
  background: linear-gradient(to right, #fffdf6, #fff0dc);
  padding: 1rem 1rem;
  font-family: 'Noto Serif Devanagari', serif;
}

.unique-section-title {
  font-size: 2rem;
  color: #871a0e;
  font-weight: bold;
  border-bottom: 2px dashed #c78d57;
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

/* 🆕 Two-Line Grid Layout */
.grantha-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

/* Individual Cards */
.grantha-card {
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  color: #fff;
}

/* Icon */
.grantha-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  z-index: 1;
}

/* Title */
.grantha-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

/* Themed Cards (reuse same gradient for now) */
.card-orange,
.card-blue,
.card-brown,
.card-green {
  background: linear-gradient(to right, #350404, #5d1205);
}

/* Hover Effect */
.grantha-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Explore Card Text */
.explore-grantha .grantha-title,
.explore-grantha .grantha-icon {
  color: #f7f7f7;
}

/******student exam****/
.exam-container {
      max-width: 850px;
      margin: 50px auto;
      padding: 30px;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    }

    .exam-title {
      font-weight: 700;
      font-size: 28px;
      text-align: left;
      color: #2c3e50;
    }

    .timer {
      font-size: 20px;
      font-weight: 600;
      color: #dc3545;
      text-align: center;
      margin-bottom: 25px;
    }

    .question-block {
      margin-bottom: 30px;
    }

    .question-text {
      font-weight: 600;
      margin-bottom: 12px;
      color: #333;
    }

    .options label {
      display: block;
      background: #f8f9fa;
      padding: 10px 15px;
      margin-bottom: 8px;
      border-radius: 8px;
      border: 1px solid #ddd;
      cursor: pointer;
      transition: 0.2s ease-in-out;
    }

    .options label:hover {
      background-color: #eaf3ff;
      border-color: #007bff;
    }

    .submit-btn {
      display: block;
      width: 100%;
      padding: 12px;
      background-color: #28a745;
      color: white;
      font-weight: 600;
      font-size: 18px;
      border: none;
      border-radius: 50px;
      transition: background 0.3s ease;
    }

    .submit-btn:hover {
      background-color: #218838;
    }

    hr {
      border-top: 1px solid #dee2e6;
    }






/*******list of exam.php********/
.exam-container {
  padding: 1.5rem 1rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a2c14;
  text-align: center;
  margin-bottom: 1.5rem;
}

.list-group-item {
  font-size: 1.05rem;
  font-weight: 500;
  color: #212121;
  background-color: #ffffff;
  border: 1px solid #f2e7dc;
  border-left: 4px solid #9c27b0;
  margin-bottom: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exam-number {
  background-color: #5e35b1;
  color: #fff;
  font-size: 14px;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.exam-title {
  flex-grow: 1;
}

.exam-link i {
  color: #e53935;
}

@media (max-width: 576px) {
  .list-group-item {
    font-size: 1rem;
  }
}




/*******exam dashboard*****/
.exam-container {
  max-width: 900px;
  margin: 0px auto;
}

.exam-header {
  background: linear-gradient(135deg, rgb(58, 60, 175), rgb(72, 15, 177));
  color: white;
  padding: 0px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.question-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.question-title {
  font-weight: 600;
  font-size: 16px;
  color: #ff0000;
}

.form-check-label {
  font-weight: 500;
}

.submit-btn {
  background: #cf4d1b;
  border: none;
  padding: 12px 40px;
  border-radius: 30px;
  font-weight: 600;
  color: white;
  box-shadow: 0 5px 15px rgba(116, 0, 184, 0.3);
   margin-top: 20px;   /* Reduced from larger value */
  margin-bottom: 10px;  /* Added to reduce space below */
}

@media (max-width: 768px) {
  .submit-btn {
    font-size: 18px;
    padding: 12px 32px;
    margin-top: 16px;   /* Keep consistent spacing for mobile */
    margin-bottom: 6px;
  }
}

.submit-btn:hover {
  background: #2e6192;
}

/****** category.php*********/
.category-section {
  padding: 2rem 1rem;
}

.category-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #4c301d;
  margin-bottom: 2rem;
  position: relative;
}

.category-heading::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #b48c50;
  display: block;
  margin: 0.6rem auto 0;
  border-radius: 3px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}

.tile-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.tile-label {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Gradient background styles */
.ved {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}

.upanishad {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}

.dharma {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}

.nyaya {
  background: linear-gradient(135deg, #5446d8, #325eaa);
  color: #443200;
}

.mimamsa {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}

.purana {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}

.more {
  background: linear-gradient(135deg, #5446d8, #325eaa);
}



/* ====== Swiper: Category Slider ====== */
.category-slider {
  padding: 10px 0;
}

.category-slider .swiper-slide {
  background: #d9e4ec;
  border: 2px solid #cbd1d4;
  border-radius: 8px;
  min-width: 130px;
  max-width: 140px;
  padding: 10px;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  color: #385e72;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  /* ⬅️ Increases icon size */
}

.category-slider .swiper-slide small {
  margin-top: 8px;
  font-size: 1.05rem;
  /* ⬅️ Bigger label text */
  font-weight: 500;
  display: block;
}

.swiper-slide a {
  display: block;
  text-align: center;
  color: inherit;
  text-decoration: none;
}


/* ====== Swiper: Image Slider ====== */
.image-slider {
  height: 200px;
  margin: 15px 0;
}

.image-slider .carousel-item img {
  width: 500%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ====== Ad Rows ====== */
.ad-row {
  overflow-x: auto;
  padding: 10px 0;
  display: flex;
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

.ad-row::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.ad-box {
  background: #d9e4ec;
  border: 1px solid #c0d3e2;
  border-radius: 8px;
  min-width: 220px;
  padding: 12px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ad-box:hover {
  transform: scale(1.02);
}

.ad-box-py {
  background: linear-gradient(135deg, #2e82be, #61a3d3, #a0c9e8);
  /* 3-color gradient */
  border: 1px solid #c0d3e2;
  border-radius: 8px;
  min-width: 220px;
  padding: 12px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  /* Make text white for contrast */
}

.ad-box-py:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.ad-row .ad-box h6 {
  color: #385e72;
  font-size: .95rem;
  margin-bottom: 4px;
}

.ad-row .ad-box p {
  font-size: .8rem;
  color: #555;
  margin-bottom: 0;
}


/******** my account ====*****/
/* Main container - full width and centered */
.account-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
  box-sizing: border-box;
}

/* Profile Box */
.profile-box {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.profile-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.6rem;
  border: 2px solid #dee7f2;
}

.profile-box h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

/* Card List */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual Cards */
.account-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.07);
}

.account-card i {
  font-size: 1.3rem;
  color: #3b82f6;
  width: 28px;
  flex-shrink: 0;
}

.account-card span {
  font-size: 1rem;
  font-weight: 500;
}

/* Logout card style */
.account-card.logout {
  background: #ffecec;
}

.account-card.logout i,
.account-card.logout span {
  color: #d93025;
}

/* Media Queries */
@media (max-width: 480px) {
  /* .account-wrapper {
    padding: 1rem 0.75rem 4rem;
  } */
   
  .profile-box img {
    width: 120px;
    height: 120px;
  }

  .profile-box h4 {
    font-size: 1rem;
  }

  .account-card {
    padding: 1.9rem 1rem;
  }

  .account-card i {
    font-size: 1.1rem;
    width: 24px;
  }

  .account-card span {
    font-size: 0.95rem;
  }
}


/******Edit_profile.php*****/
.edit-profile-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10vh;
 /*  padding: 20px;
  margin-top: 10px; */
}

.edit-profile-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}


.edit-profile-box h2 {
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.input-group {
  position: relative;
}

.eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.update-btn {
  width: 100%;
  background-color: #2e6192;
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.update-btn:hover {
  background-color: #204a6f;
}

/****login-form*****/
/* Input spacing */
.login-form-control {
  margin-bottom: 15px;
}

.login-toggle-btn {
  border: 1px solid #ced4da;
  background-color: #f8f9fa;
  padding: 0 12px;
  font-size: 16px;
}

.login-btn {
  margin-top: 10px;
}



/****** total-exams.php*******/

body {
        background: #f8f9fa;
    }
    .exam-wrapper {
        max-width: 900px;
        margin: 20px auto;
        padding: 0 15px;
    }
    h2 {
        text-align: center;
        margin-bottom: 25px;
        font-size: 26px;
    }
    .exam-card {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 20px 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        text-decoration: none;
        color: #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: 0.3s all;
    }
    .exam-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    }
    .exam-info {
        display: flex;
        flex-direction: column;
    }
    .exam-title {
        font-size: 18px;
        font-weight: 600;
    }
    .exam-meta {
        font-size: 14px;
        color: #666;
        margin-top: 5px;
    }
    .status-badge {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 20px;
        font-weight: 600;
        text-align: center;
        min-width: 90px;
    }
    .status-passed {
        background-color: #d4edda;
        color: #155724;
    }
    .status-failed {
        background-color: #f8d7da;
        color: #721c24;
    }

    /* Mobile Responsive */
    @media (max-width: 600px) {
        .exam-card {
            flex-direction: column;
            align-items: flex-start;
        }
        .status-badge {
            margin-top: 10px;
            min-width: auto;
            width: 100%;
        }
    }


/*****subscriptions*******/
.subs-wrapper {
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
}

.subs-header {
  text-align: center;
  margin-bottom: 2rem;
}

.subs-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
}

.subs-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.subs-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-active {
  background-color: #d1fae5;
  color: #047857;
}

.badge-expired {
  background-color: #fee2e2;
  color: #b91c1c;
}

.subs-info {
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  color: #4b5563;
  margin-top: 6px;
}

.subs-price {
  font-weight: 600;
  color: #3b82f6;
}

@media (max-width: 480px) {
  .subs-header h2 {
    font-size: 1.25rem;
  }

  .subs-title {
    font-size: 1rem;
  }

  .subs-info {
    font-size: 0.85rem;
  }

  .subs-price {
    font-size: 0.9rem;
  }
}


/**********password secure*******/
.password-wrapper {
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
}

.security-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.security-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
}

.security-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: #475569;
}

input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f1f5f9;
  transition: border-color 0.3s ease;
}

input[type="password"]:focus {
  border-color: #3b82f6;
  outline: none;
  background: #fff;
}

.btn-update {
  width: 100%;
  padding: 0.5rem !important;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.btn-update:hover {
  background: #2563eb;
}

@media (max-width: 480px) {
  .security-header h2 {
    font-size: 1.2rem;
  }

  input[type="password"] {
    font-size: 0.95rem;
  }

  .btn-update {
    font-size: 0.95rem;
  }
}




/*********examscoredetails.php******/
.score-detail-wrapper {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.score-detail-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.score-detail-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #2c3e50;
}

.score-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 10px;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* Full width item for percentage */
.score-item.full-width {
  grid-column: 1 / -1; /* spans both columns */
}

.score-item {
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.score-summary div {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: #444;
}

.section-title {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: #34495e;
}

.question-breakdown {
  list-style: none;
  padding: 0;
}

.question-breakdown li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-breakdown .status {
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.correct {
  background: #b8e7c8;
  color: #15803d;
}

.incorrect {
  background: #fee2e2;
  color: #b91c1c;
}

.skipped {
  background: #fef3c7;
  color: #92400e;
}

.back-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 600px) {
  
  .score-summary div {
    font-size: 0.95rem;
  }
}

/*****examlist*******/
.main-heading {
  font-size: 24px;
  font-weight: bold;
  color: #2e6192;
  text-align: center;
  padding: 20px 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc;
}

.question {
  margin: 20px 0;
  padding: 10px 0;
  border-bottom: 1px dashed #ccc;
}

.question-label {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.form-check-label {
  font-size: 16px;
  color: #444;
}

.form-check {
  margin-left: 15px;
}

.btn-primary {
  background-color: #2e6192;
  border: none;
  /* margin-top: -60px; */
}

/********category 1.php *********/
.paribhasha-section {
  background: #eaf4ff;
  font-family: 'Noto Serif Devanagari', serif;
}

.dev-title {
  color: #1a3e6b;
  font-size: 20px;
}

.search-wrapper {
  max-width: 400px;
  /* Optional: limit width */
  margin: 0 auto;
  /* center it horizontally */
}

.search-box {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  outline: none;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 91, 153, 0.15);
  /* subtle blue shadow */
  transition:
    border 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  background-clip: padding-box;
  position: relative;
}

/* Gradient border effect using a wrapper */
.search-wrapper {
  background: linear-gradient(90deg, #068ddb, #0539ca);
  padding: 1px;
  /* border thickness */
  border-radius: 32px;
  /* slightly bigger than input's radius */
}

/* On focus: highlight border and background */
.search-box:focus {
  border-color: #007bff;
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
  background-color: #f0f8ff;
}

/* Placeholder color */
.search-box::placeholder {
  color: #999;
  font-style: italic;
}


/* Beautiful Chapter Links Style */
.accordion-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 153, 0.2);
}

.chapter-link {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-family: 'Noto Serif Devanagari', serif;
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 500;
  border-left: 5px solid #007acc;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.chapter-link:hover {
  background-color: #eaf4ff;
  color: #0a3b5e;
  border-left-color: #0057b7;
}

.chapter-number {
  color: #ff6f00;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
}







/* ====== Sticky Footer ====== */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #4f1f0a;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;

}

.fixed-footer a {
  color: #fffefe;
  text-align: center;
  font-size: .75rem;
  flex: 1;
  text-decoration: none;
  background-color: #4f1f0a;
}

.fixed-footer a i {
  font-size: 1.55rem;
  margin-bottom: 2px;
}

/* Dropdown inside footer properly positioned */
.fixed-footer .dropup .dropdown-menu {
  bottom: 40px !important;
  left: auto;
  right: 10px;
  transform: translateX(10%);
  min-width: 120px;
  font-size: 0.8rem;
  z-index: 1100;
}


/**********1.php page *********/
/********मङ्गलाचरणम्*******/
.custom-card {
  border-radius: 18px;
  overflow: hidden;
  background-color: #fffdf9;
  border: 1px solid #eee;
}

/* Custom Header Styling */
.custom-card-header {
  background: linear-gradient(to right, #043ba0, #b66801);
  padding: 0.8rem 1rem;
  border-bottom: none;
}

/* Header Text */
.custom-card-header .card-title {
  margin: 0;
  color: #fff;
  font-weight: bold;
  font-size: 2.25rem;
}

/* Shloka Lines */
.shloka-line {
  font-size: 18px;
  color: #d62828;
  line-height: 1.8;
}

/********कामाख्या:**********/
/* Main Card Styling */
.custom-accordion-card {
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background-color: #fefcf8;
  transition: all 0.3s ease-in-out;
}

/* Header with Gradient Background */
.custom-accordion-header {
  background: linear-gradient(to right, #043ba0, #b66801);
  /* Soft rose to peach */
  padding: 0.75rem 1rem;
}

/* Button Toggle Styling */
.custom-toggle {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  text-align: left;
}

.custom-toggle i {
  float: right;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Rotate icon when open (optional if you add JS) */
/* .custom-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
} */

.custom-toggle:focus {
  box-shadow: none;
  outline: none;
}

/* Accordion Body Content */
.custom-accordion-body {
  background-color: #fffefb;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f1e6d6;
  font-size: 16px;
  line-height: 1.85;
  color: #3a3a3a;
}

/* Optional: Improve paragraph spacing */
.custom-accordion-body p {
  margin-bottom: 1rem;
}

/* Optional: Center alignment for headings */
.custom-accordion-body p strong,
.custom-accordion-body p span[style*="text-align:center"] {
  display: block;
  text-align: center;
}

/* Smooth transition for collapse */
.collapse {
  transition: height 0.3s ease;
}

/* aboutus */
.about-header {
  background: linear-gradient(90deg, #734f4f, #4f1e06);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.about-header h1 {
  font-size: 32px;
  font-weight: bold;
}

.about-section {
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.mission-card {
  background-color: #FFF3E0;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.mission-card h3 {
  font-size: 22px;
  color: #571f02;
  margin-bottom: 10px;
}

.custom-header .brand-text {
  font-size: 20px;
  color: #E65100;
}

@media (max-width: 576px) {
  .about-header h1 {
    font-size: 24px;
  }
}

/* contactus */
.contact-header {
  background: linear-gradient(to right, #9d5848, #653b0e);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.contact-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 18px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
}

.contact-box {
  flex: 1 1 400px;
  background-color: #FFF3E0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-box h3 {
  color: #993803;
  margin-bottom: 15px;
}

.contact-box p {
  color: #333;
  font-size: 15px;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.contact-form button {
  background-color: #773c00;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #e65100;
}

.custom-header .brand-text {
  font-size: 20px;
  color: #E65100;
}

@media (max-width: 576px) {
  .contact-header h1 {
    font-size: 24px;
  }
}



 