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


/* Scroll Banner */
.marquee-container {
  background: linear-gradient(90deg, #fdfcfb 0%, #e2d1c3 100%);
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #fdfcfb 0%, #e2f3f5 100%);
  border-top: 1px solid #c8e6c9;
  border-bottom: 1px solid #c8e6c9;
  padding: 12px 0;
  position: relative;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  color: #2e7d32;
  font-weight: 500;
}

.marquee-track span {
  display: inline-block;
  padding-right: 80px;
}

.marquee-track strong {
  color: #1b5e20;
  font-weight: 700;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* web page */
body {
  font-family: "Segoe UI", sans-serif;
  background: #f8fbff;
  color: #333;
}

.header {
  text-align: center;
  padding: 40px 20px 10px;
  background: linear-gradient(135deg, #00bcd4, #4db6ac);
  color: white;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

/* Basic Layout */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #eee;
}

/* Logo */
.logo1 {
  font-size: 1.2em;
  font-weight: bold;
}

/* Navigation Links */
.menu-bar {
  color: white;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: background-color 0.3s ease;
}

.nav-links li a.highlight {
  background-color: white;
  color: #00bcd4;
  border-radius: 25px;
}

.nav-links li a:hover:not(.highlight) {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  top: 15px; 
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    left: 0; /* Fully attached to left edge */
    padding-left: 0;
    margin-left: 8px;
    margin-top: 3rem;
  }
  .menu-bar {
    padding-left: 0; /* Remove left padding so hamburger touches edge */
    padding-right: 20px; /* Keep right padding for logo spacing */
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }
}
/* ---------- */

.containerl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.school h2 {
  color: #00796b;
}

.college h2 {
  color: #3f51b5;
}

ul {
  list-style: none;
  margin-top: 15px;
}

li a {
  display: block;
  padding: 10px 9px;
  margin: 6px 0;
  background: #f1f8e9;
  border-left: 5px solid #009688;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

li a:hover {
  background: #c8e6c9;
}

footer {
  text-align: center;
  padding: 20px;
  background: #eeeeee;
  font-size: 0.9em;
  margin-top: 40px;
}

header {
  background: linear-gradient(135deg, #00bcd4, #4db6ac);
  color: white;
  padding: 30px;
  text-align: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  /* background: #f1f8e9; */
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background: #f0f0f0;
}

/* inside pages style */
/* Base styling */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f3f9ff;
  color: #333;
}

/* Header styling */
.header {
  background: linear-gradient(135deg, #42a5f5, #66bb6a);
  color: white;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInDown 1s ease-in-out;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}


.header1 {
  background: linear-gradient(135deg, #42a5f5, #66bb6a);
  color: white;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInDown 1s ease-in-out;
}

.header1 h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1em;
  opacity: 0.95;
}

/* Container for content */
.row-layout {
  margin-bottom: 30px;
  padding: 30px 30rem 0px 20px;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

/* Keep your math-section style */
.math-section {
  flex: 1 1 48%;
  padding: 20px;
  background: #f9fcff;
  border: 1px solid #d0e3f0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 110, 255, 0.05);
  min-width: 300px;
}

.container {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

/* logo */

.header {
  background-image: url('study.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 20px;
  flex-wrap: wrap; /*Allows logo and text to stack on small screens */
}

.subject-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px;
}

/* Each subject box/card */
.subject-box,
.subject-card {
  flex: 1 1 calc(33.333% - 40px); /* 3 columns by default */
  min-width: 280px;
  max-width: 400px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Paper card links */
.paper-card {
  margin: 8px 0;
}

.paper-card a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e0f0ff;
  border-radius: 4px;
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
}

/* Section headings */
.section-heading {
  font-size: 1.5rem;
  margin: 30px 0 10px;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .subject-box,
  .subject-card {
    flex: 1 1 calc(50% - 40px); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .subject-box,
  .subject-card {
    flex: 1 1 100%; /* 1 column on mobile */
  }
}

/* ---------*/

.logo {
  width: 120px;
  height: auto;
  max-width: 100%;
  margin-bottom: -3rem;
}

.header-text {
  max-width: 600px;
}

.header-text h1 {
  margin: 0;
  font-size: 2rem;
}

.header-text p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}
/* syllabus */
.syllabus-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.syllabus-dropdown button {
  background-color: #004080;
  color: white;
  padding: 10px 16px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.syllabus-dropdown ul {
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  border: 2px solid #0c0101;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.syllabus-dropdown ul li {
  border-bottom: 1px solid #eee;
}

.syllabus-dropdown ul li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #004080;
  font-weight: 500;
}

.syllabus-dropdown ul li a:hover {
  background-color: #f0f4ff;
}

.hidden {
  display: none;
}

/* sidebar */
/* 🎯 Universal Base Styles */
.moving-boxes {
  background: #f1faff;
  border: 2px solid #42a5f5;
  border-radius: 8px;
  padding: 15px;
  overflow: hidden;
}

/* 📦 Dashboard Box Styling */
.responsive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.info-column {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto;   /* Enable vertical scroll if needed */
  box-sizing: border-box;
  padding: 1rem;
}

.dashboard-box {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  border: black solid 1px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.dashboard-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #1976d2;
}

.dashboard-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.dashboard-box li {
  font-size: 0.6rem;
  margin-bottom: 10px;
  animation: verticalMarquee 6s linear infinite;
  color: #333;
}

.dashboard-box a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.dashboard-box a:hover {
  text-decoration: underline;
}

/* 🔁 Scroll Animation for Box Content */

@keyframes verticalMarquee {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* 🖥️ Desktop Sidebar Layout */
@media screen and (min-width: 769px) {
  .moving-boxes {
    width: 280px;
    float: left;
    margin: 20px 20px 20px 0;
    height: 77rem; /* ✅ fixed sidebar height */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #90caf9 #f1faff;
  }

  .moving-boxes::-webkit-scrollbar {
    width: 6px;
  }

  .moving-boxes::-webkit-scrollbar-thumb {
    background-color: #90caf9;
    border-radius: 6px;
  }

  .moving-boxes::-webkit-scrollbar-track {
    background: #f1faff;
  }
}

/* 📱 Mobile Horizontal Scrolling Row */
@media screen and (max-width: 768px) {
  .moving-boxes {
    width: 100%;
    margin: 30px auto 0;
    height: auto;
  }

  .responsive-sidebar {
    flex-direction: row;
    gap: 12px;
    animation: scrollBoxesMobile 20s linear infinite;
  }

  .dashboard-box {
    min-width: 220px;
    flex-shrink: 1;
  }

  @keyframes scrollBoxesMobile {
    from { transform: translateX(100%); }
    to { transform: translateX(-350%); }
  }
}


/* subject 12 */
.section-heading {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  color: #2a2a2a;
  border-left: 4px solid #0077cc;
  padding-left: 0.6rem;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.subject-box {
  background-color: #fdfefe;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subject-box h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #2b2b2b;
}

.paper-card {
  background-color: #eef2f5;
  border: 1px solid #d1dbe5;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0.4rem 0;
  transition: background-color 0.2s ease;
}

.paper-card:hover {
  background-color: #e2ecf6;
}

.paper-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
  display: block;
}
/* 📱 Responsive: Stack logo on top for small screens */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-bottom: -29px;
    width: 80px;
  }
}
/* Back link */
.back-link {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  color: #42a5f5;
  font-weight: 600;
  transition: color 0.3s;
}

.back-link:hover {
  color: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8fafc;
  color: #222;
  margin: 0;
  padding: 0;
}

.year-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.year-card {
  background: #f9f9f9;
  border: 2px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.year-card h3 {
  margin-bottom: 10px;
}

#pdfContainer a {
     text-decoration: none;
    background: #007bff;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    display: block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.3s ease;
    justify-self: center;
}

.year-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.subject-note {
  background: #eef2ff;
  padding: 14px 20px;
  margin: 20px auto;
  max-width: 800px;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* discaimerr */
.footer .disclaimer {
  font-size: 0.95em;
  color: #555;
  margin-top: 10px;
  text-align: center;
  padding: 8px 0;
  font-style: italic;
  border-top: 1px solid #ddd;
}

/* DDownload-btn */
.download-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
}

/* spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.back-link {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 18px;
  background: #6366f1;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: #4f46e5;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .header h1 {
    font-size: 2em;
  }

  .paper-list li {
    font-size: 0.95em;
  }
}
/*      */
.card.college {
  background: #f0f8ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease;
}

.card.college:hover {
  transform: translateY(-5px);
}

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


.select-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.select-wrapper select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 8px;
  font-size: 1rem;
}

select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin: 10px 0;
  transition: border-color 0.3s ease;
  width: 100%;
}

select:focus {
  border-color: #0077cc;
  outline: none;
}

button#viewButton {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button#viewButton:hover {
  background: #0056b3;
}

/* about and prrivacy policy  styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

.header {
  background-color: #005f73;
  color: white;
  padding: 20px 0;
  text-align: center;
  border-bottom: 4px solid #0a9396;
}

.content {
  padding: 30px 20px;
  max-width: 800px;
  margin: auto;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 20px;
}

.content h2 {
  color: #0a9396;
}

.content p {
  line-height: 1.6;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #e9ecef;
  font-size: 14px;
}

footer a {
  color: #0077cc;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* 🪪 SEO Text */
.seo-text {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.seo-text h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #0a9396;
}

/* 🚀 Footer */
footer {
  text-align: center;
  background-color: #f8f9fa;
  padding: 25px;
  font-size: 15px;
  color: #444;
  border-top: 1px solid #ddd;
}
footer a {
  color: #0077cc;
  margin: 0 6px;
}

/* 🌀 Animations */
.fade-in {
  animation: fadeInUp 0.8s ease-in-out;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔗 Share Link Button */
.share-section {
  text-align: center;
  margin: 30px 0;
}
.share-section button {
  background-color: #f77f00;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.share-section button:hover {
  background-color: #d76600;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .containerl {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .card {
    width: 100%;
    max-width: 90%;
  }
}
/* 📘 SEO Text Box */
.seo-text {
  background-color: #fefefe;
  border-left: 6px solid #4db6ac;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px 25px;
  margin: 30px auto;
  max-width: 800px;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  animation: fadeIn 0.6s ease-in;
}

/* 📌 Info Note (like subject-note) */
.subject-note {
  background: #fffbe6;
  border-left: 4px solid #fbbf24;
  padding: 10px 14px;
  margin: 10px 0 20px;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
}
.content {
  background: #fff;
  padding: 30px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 850px;
  margin: auto;
}

/* to leave no extra space */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}
footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

.bottom-disclaimer {
  margin: 0;
  padding: 0;
}
/* study material */
.study-material {
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9ff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.study-material h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.chapter-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 6px;
  width: calc(50% - 20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.chapter-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.chapter-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

