* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
}


.navbar {
     display:flex;
    align-items:center;
    flex-wrap: nowrap;
    justify-content:space-between;
    padding:0 10px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 0 10%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



@media (max-width: 768px) {

  .navbar {
    padding-left: 10px !important;
    padding-right: 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    overflow: visible; /* hidden नहीं */
  }

  .menu-toggle,
  .hamburger {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
    z-index: 1001;
    flex-shrink: 0;
  }

}



.logo{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
}

.logo img{
    width:60px;
    height:60px;
    border-radius:50%;
}

.logo span{
    color:#fff;
    font-size:20px;
    font-weight:bold;
}

.logo h1,
.logo a {
    color: #fff;          /* सफेद रंग */
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;  /* SciTech Bihar एक ही लाइन में रहेगा */
    margin: 0;
}




.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffe600;
}


/* Mobile Menu */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;      /* पहले 100% या 90% होगा */
    max-width: 300px;
    height: 100vh;
    background: #1f3b93;
    transition: 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }
}


@media (max-width:768px){

  .logo{
      margin-left: 0;
      gap: 8px;
  }

  .logo h1{
      font-size: 1.4rem;
  }

  .dropdown{
      margin-left: 0 !important;
  }

  .hamburger{
      margin-right: 0 !important;
      padding-right: 5px;
  }

}


/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 32px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* ===== X Animation ===== */

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* ================= MOBILE MENU ================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {

        position: fixed;

        top: 70px;
        right: -100%;

        width: 250px;
        height: calc(100vh - 70px);

        background: #1e3a8a;

        display: flex;
        flex-direction: column;

        align-items: center;

        padding-top: 30px;

        gap: 25px;

        transition: right 0.4s ease;

        z-index: 999;
    }

    /* MENU OPEN */

    .nav-links.active {
        right: 0;
    }
}


@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {

        position: fixed !important;

        top: 70px !important;
        right: -100% !important;

        width: 250px !important;
        height: 100vh !important;

        background: #1e3a8a !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;

        padding-top: 40px !important;

        gap: 25px !important;

        transition: 0.4s ease !important;

        z-index: 999 !important;
    }

    .nav-links.active {
        right: 0 !important;
    }
}


/* --- Modern Hero Section CSS --- */
.hero-modern {
    background: linear-gradient(135deg, #0044cc 0%, #002266 100%); /* गहरा नीला ग्रेडिएंट */
    padding: 60px 5%;
    color: white;
    display: flex;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1.2; /* टेक्स्ट को थोड़ा ज़्यादा जगह दी */
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: #ffd700; /* पीला रंग नाम के लिए */
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background: #ffd700;
    color: #002266;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* इमेज बॉक्स स्टाइल */
.hero-image-box {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 5px solid rgba(255,255,255,0.2);
    background: white; /* इमेज के पीछे सफ़ेद बैकग्राउंड ताकि पारदर्शी इमेज अच्छी दिखे */
    padding: 5px;
}

/* मोबाइल के लिए Responsive */
@media (max-width: 850px) {
    .hero-container {
        flex-direction: column; /* मोबाइल पर ऊपर-नीचे */
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image-box {
        order: -1; /* इमेज को मोबाइल पर ऊपर दिखाएगा */
    }
}


/* Ticker/News */
.ticker {
    background: #e63946;
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.ticker .label {
    background: black;
    padding: 5px 10px;
    margin-right: 10px;
}

.ticker marquee {
    flex: 1;
}

/* Letters Section */
.letters-section {
    padding: 40px 20px;
    background: #f4f6fb;
    text-align: center;
}

.letters-section h2 {
    margin-bottom: 25px;
    color: #0b3d91;
}

.letters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* YouTube Section */
.youtube {
    text-align: center;
    padding: 50px 20px;
}

.youtube h2 {
    color: #0b3d91;
    margin-bottom: 20px;
}

.yt-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.yt-btn {
    background: red;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Home Sections */
.home-sections {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.daily-updates,
.study-material {
    flex: 1;
    background: #f5f6fb;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.daily-updates h2,
.study-material h2 {
    color: #0b3d91;
    margin-bottom: 15px;
}

.daily-updates ul,
.study-material ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

.daily-updates li,
.study-material li {
    margin: 6px 0;
    font-size: 18px;
}

/* Latest Card */
.latest-card {
    flex: 1.2;
    background: white;
    padding: 25px;
    border-left: 6px solid #e63946;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.latest-card h2 {
    margin-bottom: 10px;
    color: #e63946;
}

.latest-card p {
    margin-top: 8px;
    color: #444;
    font-size: 15px;
}

.read-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0b3d91;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Popular Posts */
.popular-posts {
    background: white;
    padding: 25px;
    margin: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-posts ul {
    list-style: none;
    padding-left: 0;
}

.popular-posts li {
    margin: 8px 0;
}

/* A
/* Details */
details ul {
    margin-top: 10px;
    padding-left: 25px;
    line-height: 1.8;
}

details ul li a {
    color: #1f4ea3;
    font-weight: 500;
    text-decoration: none;
}

details ul li a:hover {
    text-decoration: underline;
}

/* Class Grid */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.class-card {
    display: block;
    background: white;
    padding: 25px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: #0b3d91;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.class-card:hover {
    background: #0b3d91;
    color: white;
}

/* Subject Grid */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.subject-card {
    display: block;
    background: white;
    padding: 25px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: #0b3d91;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.subject-card:hover {
    background: #0b3d91;
    color: white;
    transform: translateY(-5px);
}


/* ड्रॉपडाउन कार्ड और सेलेक्ट बॉक्स की स्टाइलिंग */
.dropdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-card select {
  width: 85%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background-color: white;
  cursor: pointer;
  outline: none;
}

.dropdown-card select:focus {
  border-color: #007bff; /* आपके थीम के अनुसार बदला जा सकता है */
}




.popular-topics{
    padding:50px 20px;
    background:#f7f9fc;
    text-align:center;
}

.popular-topics h2{
    color:#002266;
    margin-bottom:30px;
    font-size:2rem;
}

.topic-card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1000px;
    margin:auto;
}

.topic-card{
    background:#ffffff;
    padding:25px 20px;
    border-radius:12px;
    text-decoration:none;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    transition:0.3s ease;
    border:1px solid #e5e5e5;
}

.topic-card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.topic-card h3{
    color:#003399;
    margin-bottom:10px;
    font-size:1.2rem;
}

.topic-card p{
    color:#444;
    font-size:0.95rem;
}





/* Blog Section */
.blog-section {
    padding: 40px;
    background: #f5f6fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.blog-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     width: 100%;
}

.blog-card h3 {
    color: #0b3d91;
    margin-bottom: 10px;
}

.blog-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0b3d91;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.blog-card img {
    width: 100%;
    height: 200px;   /* सभी इमेज की ऊँचाई बराबर */
    object-fit: cover; /* इमेज को crop करके fit करेगा */
    border-radius: 8px;
}


/* Chapter Grid */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.chapter-card {
    display: block;
    background: white;
    padding: 20px;
    text-decoration: none;
    color: #0b3d91;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    transition: 0.3s;
}

.chapter-card:hover {
    background: #0b3d91;
    color: white;
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

   

    .nav-links li {
        margin: 10px;
    }

    .hamburger {
        display: flex;
    }

    .home-sections {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .search-box.active {
        width: 150px;
    }

    .hero {
        font-size: 30px;
       
    }

    .hero p {
        font-size: 16px;
    }
}


body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 20px;
  background: #f9f9f9;
}

h1, h2 {
  color: #2c3e50;
}


.answer-box {
  background: #eafaf1;
  padding: 20px;
  border: 2px solid #27ae60;
  border-radius: 8px;
  margin-top: 30px;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 20px;
  background: #f9f9f9;
}

h1, h2 {
  color: #2c3e50;
}

.mcq-bilingual {
  text-align: center;
}

.mcq-bilingual button {
  display: block;
  width: 60%;
  margin: 10px auto;
  padding: 10px;
  border-radius: 8px;
}

.mcq-bilingual button:hover {
  background-color: #f0f0f0;
}

.answer-box {
  background: #eafaf1;
  padding: 20px;
  border: 2px solid #27ae60;
  border-radius: 8px;
  margin-top: 30px;
}

.question {
    cursor: pointer;
    transition: 0.3s;
}

.question:hover {
    background: #e9f2ff;
}


#nextBtn {
  margin-top: 15px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#mcq-bilingual-container .mcq-bilingual button {
  display: block !important;
  width: 100% !important;
  margin: 10px 0 !important;
}

button.correct {
  background: green;
  color: white;
}

button.wrong {
  background: red;
  color: white;
}

.progress-box {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  margin: 10px 0;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: green;
  border-radius: 10px;
  transition: 0.3s;
}

.section-buttons button {
  padding: 8px 12px;
  margin: 5px;
  border: none;
  background: #0b3d91; /* 🔵 default */
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

/* 🔵 hover सिर्फ normal buttons */
.section-buttons button:hover:not(.active):not(.completed) {
  background: #1e5bbf;
}

/* 🟠 active */
.section-buttons button.active {
  background: orange;
  color: white;
}

/* 🟢 completed */
.section-buttons button.completed {
  background: green;
  color: white;
}


.options button {
    width: 100%; /* बटन पूरे बॉक्स की चौड़ाई घेर लेंगे */
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: 0.3s;
    text-align: left; /* टेक्स्ट को बाईं ओर रखने के लिए */
}

.options button:hover {
    background-color: #e0e0e0;
}

/* सही और गलत उत्तर के रंग */
.correct {
    background-color: #4CAF50 !important;
    color: white;
}

.wrong {
    background-color: #f44336 !important;
    color: white;
}

/* MCQ कंटेनर के लिए स्टाइल */
#mcq-container {
    margin-top: 20px;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* प्रश्न के बॉक्स के लिए */
.question-box h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* विकल्पों (Options) को एक के नीचे एक करने के लिए मुख्य कोड */
.options {
    display: flex;
    flex-direction: column; /* यह एक के नीचे एक लाएगा */
    gap: 12px; /* बटनों के बीच की दूरी */
}

/* विकल्पों वाले बटन की स्टाइल */
.options button {
    width: 100%; /* पूरी चौड़ाई */
    padding: 15px;
    font-size: 16px;
    text-align: left; /* टेक्स्ट बाईं ओर */
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Arial', sans-serif;
}

/* माउस ले जाने पर (Hover) */
.options button:hover:not([disabled]) {
    background-color: #f0f7ff;
    border-color: #2196F3;
    transform: translateY(-2px);
}

/* सही उत्तर का रंग */
.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724;
    font-weight: bold;
}

/* गलत उत्तर का रंग */
.wrong {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24;
}

/* सेक्शन बटनों के लिए भी थोड़ी स्टाइल (Optional) */
.section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.section-buttons button {
    padding: 8px 15px;
    border: none;
    background: #5c67f2;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.section-buttons button.active {
    background: #28a745; /* एक्टिव सेक्शन का रंग हरा */
}

#progress-bar {
    transition: width 0.4s ease-in-out; /* इससे प्रोग्रेस बार स्मूथली बढ़ेगा */
}

/* बटनों की लिस्ट को नंबरिंग देना */
.options {
    counter-reset: option-counter; /* काउंटर शुरू करें */
}

.options button::before {
    counter-increment: option-counter;
    content: counter(option-counter, upper-alpha) ") "; /* A), B) आदि दिखाएगा */
    margin-right: 10px;
    font-weight: bold;
    color: #555;
}

/* जब बटन सही या गलत हो, तो अक्षर का रंग सफ़ेद कर दें */
.correct::before, .wrong::before {
    color: white !important;
}

@media (max-width: 600px) {
    .options button {
        font-size: 14px;
        padding: 12px;
    }
    h2 { font-size: 1.2rem; }
}




/* Study Material Section Styling */
.study-material {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.study-material h2 {
    font-size: 2rem;
    color: #002266;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* हेडिंग के नीचे एक छोटी लाइन */
.study-material h2::after {
    content: '';
    width: 50%;
    height: 3px;
    background: #ffd700;
    position: absolute;
    bottom: -10px;
    left: 25%;
}


/* --- न्यू मॉडर्न क्लास कार्ड्स स्टाइल --- */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.class-card {
    position: relative;
    background: #ffffff; /* डिफ़ॉल्ट सफ़ेद बैकग्राउंड */
    border: 2px solid #0044cc;
    color: #0044cc;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 20px; /* ज़्यादा गोल कोने */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* स्मूथ बाउंस इफेक्ट */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* माउस ले जाने पर (Hover Effect) */
.class-card:hover {
    transform: translateY(-12px) scale(1.03); /* ऊपर उठना और थोड़ा बड़ा होना */
    box-shadow: 0 15px 35px rgba(0,68,204,0.2);
    color: #ffffff !important; /* टेक्स्ट सफ़ेद हो जाएगा */
}

/* बटन के अंदर बैकग्राउंड चमक (Hover Background) */
.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0044cc; /* होवर करने पर नीला रंग */
    z-index: -1;
    transform: scaleX(0); /* शुरू में छुपा रहेगा */
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}

.class-card:hover::before {
    transform: scaleX(1); /* माउस ले जाने पर रंग फैलेगा */
    transform-origin: left;
}

/* --- हर क्लास के लिए अलग रंग (Optional) --- */
/* अगर आप चाहते हैं कि हर क्लास का होवर रंग अलग हो, तो इसे इस्तेमाल करें */
.class-card:nth-child(1):hover::before { background: #e74c3c; } /* Class 6 - Red */
.class-card:nth-child(2):hover::before { background: #2ecc71; } /* Class 7 - Green */
.class-card:nth-child(3):hover::before { background: #3498db; } /* Class 8 - Blue */
.class-card:nth-child(4):hover::before { background: #9b59b6; } /* Class 9 - Purple */
.class-card:nth-child(5):hover::before { background: #f39c12; } /* Class 10 - Orange */

/* बॉर्डर का रंग भी होवर पर बदलें */
.class-card:nth-child(1):hover { border-color: #e74c3c; }
.class-card:nth-child(2):hover { border-color: #2ecc71; }
.class-card:nth-child(3):hover { border-color: #3498db; }
.class-card:nth-child(4):hover { border-color: #9b59b6; }
.class-card:nth-child(5):hover { border-color: #f39c12; }

/* --- फूटर सुधार (CSS) --- */
.main-footer {
    background-color: #001a4d; /* गहरा नीला */
    color: #ffffff;
    padding: 60px 0 0 0; /* ऊपर-नीचे थोड़ी जगह दें */
    margin-top: 50px;
    font-family: 'Arial', sans-serif;
    
    /* 🔥 पक्की ऊंचाई (fixed height) को हटाएँ */
    height: auto !important; 
    
    /* ओवरफ्लो को visible रखें */
    overflow: visible !important; 
    
    /* चौड़ाई पूरी रखें */
    width: 100%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex; /* फ्लेक्सबॉक्स का उपयोग करें */
    flex-wrap: wrap; /* मोबाइल पर कॉलम को नीचे लाने के लिए */
    justify-content: space-between;
    padding: 0 20px 40px 20px; /* नीचे थोड़ी ज़्यादा जगह */
    gap: 30px; /* कॉलम के बीच दूरी */
    
    /* 🔥 इसकी भी fixed height हटाएँ */
    height: auto !important; 
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-about h3, .footer-links h4, .footer-social h4 {
    color: #ffd700; /* पीला रंग हेडिंग के लिए */
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
    width: fit-content;
}

.social-icons a:hover {
    background: #ffd700;
    color: #001a4d;
    transform: translateX(5px);
}

/* कॉपीराइट पट्टी */
.footer-bottom {
    background-color: #000d26;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}




/* Latest Letters Styling */
.letter-box-modern {
    background: #fdfdfd;
    border-left: 5px solid #d32f2f; /* लाल रंग की साइड लाइन */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0044cc;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.view-all-btn:hover {
    background-color: #002266;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,68,204,0.3);
}

/* सरकारी लेटर्स की लिस्ट के लिए */
.letter-item {
    background: #ffffff;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.letter-item:hover {
    border-color: #0044cc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateX(5px); /* हल्का सा दाईं ओर खिसकना */
}

.pdf-btn {
    background: #d32f2f;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

.pdf-btn:hover {
    background: #b71c1c;
}

/* मोबाइल के लिए */
@media (max-width: 600px) {
    .letter-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.section-buttons button.completed {
    background-color: #28a745 !important; /* Green */
    color: white;
}
.section-buttons button.active {
    background-color: #ff9800 !important; /* Orange */
}


.visitor-counter {
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
  background: #222; color: rgb(80, 8, 181);
  box-shadow: inset 0 0 5px #000;
}

.visitor-counter span#count {
  font-family: 'Courier New', Courier, monospace; /* थोड़ा डिजिटल लुक के लिए */
  letter-spacing: 1px;
}


.pdf-link {
    background-color: #dc3545; /* लाल रंग */
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.pdf-link:hover {
    background-color: #c82333;
    color: white;
}


/* MCQ कंटेनर के अंदर के बटनों (options) के लिए */
#mcq-bilingual-container button {
    display: block;          /* बटन को पूरी लाइन घेरने दें */
    width: 100%;             /* पूरी चौड़ाई */
    margin-bottom: 10px;     /* हर बटन के नीचे थोड़ी जगह */
    padding: 12px;           /* बटन के अंदर जगह */
    text-align: left;        /* टेक्स्ट बाईं ओर */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
}

/* बटन पर माउस ले जाने पर रंग बदलें */
#mcq-bilingual-container button:hover {
    background-color: #e2e2e2;
}


/* ऑप्शंस को वर्टिकल (Vertical) करने के लिए */
.option-btn {
    display: block !important; /* नई लाइन से शुरू करने के लिए */
    width: 100%;               /* पूरी चौड़ाई */
    margin: 10px 0;            /* हर ऑप्शन के बीच गैप */
    padding: 15px;             /* बटन के अंदर जगह */
    text-align: left;          /* लिखावट बाईं ओर */
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.option-btn:hover {
    background-color: #f1f1f1;
}

/* इसे सबसे नीचे पेस्ट करें ताकि यह सबको ओवरराइड कर दे */
#mcq-bilingual-container .option-btn {
    display: block !important;
    width: 100% !important;
    clear: both; /* पुरानी किसी सेटिंग को हटाने के लिए */
    margin-bottom: 10px;
    padding: 12px;
}

/* जो सेक्शन अभी चुना हुआ है (Active) */
.section-buttons button.active {
    background-color: #ff9800 !important; /* संतरा रंग */
    color: white;
    border: 2px solid #e65100;
    font-weight: bold;
    transform: scale(1.05); /* थोड़ा बड़ा दिखेगा */
}

/* जो सेक्शन पूरा हो चुका है (Completed) */
.section-buttons button.completed {
    background-color: #4caf50 !important; /* हरा रंग */
    color: white;
    position: relative;
}

/* Completed बटन पर एक छोटा टिक मार्क (Optional) */
.section-buttons button.completed::after {
    content: " ✓";
    font-size: 12px;
}

/* बटन का डिफ़ॉल्ट स्टाइल (अगर पहले से न हो) */
.section-buttons button {
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}








/* कार्ड का मुख्य लेआउट */
.chapter-card {
    background: #0e80ec;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    color: white;
}

/* बटनों को दो भागों में बांटने के लिए कंटेनर */
.card-links {
    display: flex;
    gap: 10px; /* बटनों के बीच की दूरी */
    justify-content: space-between;
    margin-top: 15px;
}

/* बटनों की सामान्य स्टाइलिंग */
.link-btn {
    flex: 1; /* दोनों बटन बराबर चौड़ाई के होंगे */
    padding: 10px 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    color: white;
}

/* MCQ बटन का रंग (Orange/Blue) */
.mcq-btn {
    background-color: #f39c12;
}

.mcq-btn:hover {
    background-color: #e67e22;
}

/* PDF बटन का रंग (Red/Green) */
.pdf-btn {
    background-color: #e74c3c;
}

.pdf-btn:hover {
    background-color: #c0392b;
}

/* मोबाइल के लिए एडजस्टमेंट (अगर स्क्रीन छोटी हो तो बटन ऊपर-नीचे हो जाएंगे) */
@media (max-width: 400px) {
    .card-links {
        flex-direction: column;
    }
}

.heat { 
  background: #9c27b0; /* बैंगनी (Purple) रंग */
  color: white;        /* टेक्स्ट का रंग सफेद */
}





/* सबसे पहले ये सुनिश्चित करें कि .card की कॉमन स्टाइल ये है */
.card {
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    color: white; /* टेक्स्ट का रंग सफेद */
    display: block; /* यह सुनिश्चित करेगा कि यह ठीक से दिखे */
}

/* अब प्रत्येक क्लास के लिए सिर्फ बैकग्राउंड कलर रखें */
.cdp { background-color: #3498db !important; }
.cdp:hover { background-color: #2980b9 !important; }

.phy { background-color: #9b59b6 !important; }
.phy:hover { background-color: #8e44ad !important; }

.che { background-color: #e67e22 !important; }
.che:hover { background-color: #d35400 !important; }

.his { background-color: #27ae60 !important; }
.his:hover { background-color: #219150 !important; }




.dropdown{
    position:relative;
}

.dropdown > a{
    color:white !important;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:220px;
    list-style:none;
    padding:0;
    margin:0;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
    z-index:1000;
}

.dropdown-menu li{
    border-bottom:1px solid #eee;
}

.dropdown-menu li a{
    display:block;
    padding:12px;
    color:#333;
    text-decoration:none;
}

.dropdown-menu li a:hover{
    background:#f5f5f5;
}

.dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown {
    margin-left: 0;
}



.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    
    /* यहाँ ध्यान दें: padding को बढ़ाएं */
    padding: 30px 10px; 
    
    /* यह सबसे ज़रूरी है: इसे visible रखें */
    overflow: visible; 
    width: 100%;
}
    /* यह बॉक्स की जगह को फिक्स रखेगा ताकि वे ओवरलैप न हों */
    .box-wrapper {
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .myBox {
        width: 35px;
        height: 35px;
        background: rgb(6, 233, 44);
        color: #150dfb;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        border-radius: 5px;
        animation: spin 3s linear infinite;
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }