/* === BASE COLORS === */
:root {
  --primary: #164863;
  --secondary: #222831;
  --accent: #427D9D;
  --light: #9BBEC8;
  --dark: #222831;

  --bg: #ffffff;
  --text: var(--dark);
  --card-bg: #ffffff;
  --border: #eee;
  --muted: #6c757d;

  --bodybg: #f8f9fa;
  --navbg1:rgba(22, 72, 99, 1);
  --navbg2:rgba(28, 103, 88, 1);
  --home-sec-2:#f5f5f5;
  --text-muted:rgb(33 37 41 / 75%);
  --main-heading:#f8f9fa;

}

/* === DARK MODE COLORS === */
:root.dark {
  --primary: #9BBEC8;
  --secondary: #dce3e9;
  --accent: #00bcd4;
  --light: #2b3a45;
  --dark: #f5f5f5;

  --bg: #111827;
  --text: #e2e8f0;
  --card-bg: #1e293b;
  --border: #374151;
  --muted: #a3a3a3;

  --bodybg: var(--bg);
  --navbg1:#092635;
  --navbg2:#1B4242;
  --home-sec-2:var(--light);
  --text-muted:#e2e8f0;
  --main-heading:#111827;
}


/* 2. Prevent Copy/Cut and Text Selection */
/* CSS to disable text selection */
.no-select {
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard */
}


/* === Lexend Font === */

.lexend-font {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* === Lexend Font === */

/* === GENERAL === */
body {
  /*font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; */
  font-family: "Lexend", sans-serif; 
  background: var(--bodybg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* === GENERAL === */
/*body {
  background-color: #ffffff;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
}*/


/*.ad-box, .ad-inline { 
  background:#e9ecef; 
  border:1px dashed #ced4da; 
  padding:18px; 
  color:#6c757d; 
  margin-bottom:1rem; 
}*/

/* === AD BOX === */
.ad-box, .ad-inline {
  background: var(--light);
  border: 2px dashed var(--secondary);
  padding: 18px;
  color: var(--dark);
  margin-bottom: 1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* === AD BOX === */
.ad-box {
  background: var(--light);
  color: var(--dark);
  padding: 15px;
  border: 2px dashed var(--secondary);
  border-radius: 8px;
  font-weight: 600;
}


.container { max-width: 1140px; }

/* Gallery section */

.image-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.image-card:hover {
  transform: scale(1.05);
}

/* Gallery section */


/* video section */

.video-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card:hover {
  transform: scale(1.03);
}
.play-button {
  font-size: 40px;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* video section */



/* === HEADINGS === */
h3, h5, h6 {
  color: var(--secondary);
  font-weight: 500;
}

/* === LINKS === */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* === NAVBAR === */
  .navbar {
    background: #164863;
/*    background: linear-gradient(90deg, rgba(22, 72, 99, 1) 0%, rgba(28, 103, 88, 1) 60%);*/
    padding: 0.2rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg,rgba(255, 154, 0, 1) 0%, rgba(255, 103, 1, 1) 60%);
    border-image-slice: 1;
}

.navbar {
  background: linear-gradient(90deg, var(--navbg1) 0%, var(--navbg2) 60%);
/*  border-image: linear-gradient(90deg,#FF9A00 0%,#FF6701 60%);*/
}


.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}


.navbar .nav-link:hover {
  color: var(--accent) !important;
}


/* === CARDS & LIST === */
.list-group-item {
  border-left: 3px solid var(--primary);
  transition: 0.3s ease;
}
.list-group-item:hover {
  background-color: var(--light);
  border-left: 3px solid var(--accent);
}


/* === LIST & CARD === */
.list-group-item {
  background: var(--card-bg);
  color: var(--text);
  border-left: 3px solid var(--primary);
  border-bottom: 1px dashed var(--border);
  transition: 0.3s ease;
}
.list-group-item:hover {
  background-color: var(--light);
  border-left-color: var(--accent);
}


.card {
  border: 1px solid #eee;
  transition: all 0.3s ease-in-out;
}
.card {
  background: var(--card-bg);
  border: 0px solid var(--border);
  border-radius: 0px;
}


.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-title {
  color: var(--secondary);
}



/* === GALLERIES === */
.image-card, .video-card {
  cursor: pointer;
  border: 1px solid var(--light);
  transition: 0.3s;
}
.image-card:hover, .video-card:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}

/* === GALLERIES === */
.image-card, .video-card {
  cursor: pointer;
  border: 0px solid var(--light);
  transition: 0.3s;
  background: var(--card-bg);
  border-radius: 0px;
}


.play-button {
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
}


/* === FOOTER === */
footer {
  background: #164863;
  color: #fff;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg,rgba(255, 154, 0, 1) 0%, rgba(255, 103, 1, 1) 60%);
  border-image-slice: 1;
}

/* === FOOTER === */
footer {

  background: linear-gradient(90deg, var(--navbg1) 0%, var(--navbg2) 60%);
/*  border-image: linear-gradient(90deg,#FF9A00 0%,#FF6701 60%);*/
}


footer a {
  /*color: var(--accent);*/
  color:#ff6701;
}
footer a:hover {
  color: #fff;
}



.footer a:hover {
  color: #ff4b2b;
}

.footer h6, 
.footer h5, 
.footer h3 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
      color: #ffffff;
}

.footer input.form-control {
    background-color: #ffffff;
    border: none;
    color: #000000;
}

.footer input::placeholder {
  color: #aaa;
}


.footer button.btn.btn-danger {
    background-color: rgb(244 89 32);
    border-color: #F44336;
}


/* === SECTION SPACING === */
.home-sec-one, .home-sec-two, .home-sec-three { padding: 3.2rem 0rem; }
.home-sec-two { background-color: var(--home-sec-2); }

/* === SCROLLBAR === */
/* width */
::-webkit-scrollbar { width: 8px;}

/* Track */
::-webkit-scrollbar-track { background: #FCECDD;}
 
/* Handle */
::-webkit-scrollbar-thumb { background: #FEA82F; }

/* Handle on hover */
::-webkit-scrollbar-thumb:hover { background: #FF6701; }


.logo { width: 200px; }


/* === CATEGORY LIST === */
.list-unstyled li {
    margin-bottom: 5px;
    border-bottom: solid 1px #eeeeee;
    border-bottom-style: dashed;
}

.list-unstyled li {
  border-bottom: 1px dashed var(--border);
}



/* === THEME TOGGLE BUTTON === */

.navbar-toggler {
    color: rgb(255 255 255);
    border: var(--bs-border-width) solid rgb(255 255 255);
        filter: brightness(1000%);
}

.theme-toggle {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  background: var(--light);
  transform: translateY(-1px);
}

ul.footer-nav {
    display: flex;
    justify-content: space-between;
    list-style-type: square;
    margin-bottom: 0rem;
}

.footer-nav .nav-link {
    font-weight: 500;
}

.footer-row-one{
    display: flex;
    align-content: center;
    align-items: center;
  }







  /* Hide Google bar and style the selector */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }

#google_translate_element select {
  border-radius: 6px;
  padding: 5px 8px;
  background: #222;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#google_translate_element select:hover {
  background: #444;
}



/* ðŸ” Scroll-to-Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  font-size: 20px;
  background-color: #ff4d00;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 4px 15px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: #d13d00;
  transform: scale(1.1);
}


.heading-box{
    padding-left: 0px;
    display: -moz-box;
    display: flex;
    -moz-box-align: center;
    align-items: center;
    position: relative;
        justify-content: space-between;
  }

.heading-box:after {
    content: "";
    height: 2px;
    background-color: #ff6701;
    position: absolute;
    width: 100%;
    left: 0;
}

.heading-box:before {
  /*  content: "";
    border-left: 4px solid #ff6701;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;*/
}

.heading-box h3{
    background: var(--main-heading);
    z-index: 1;
    padding: 0 10px 0 10px;
    border-left: solid 3px #ff6701;
  }

.txtMore{
    background: var(--main-heading);
    color: #ff6701;
    z-index: 1;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 400;
}



.card-img, .card-img-top {border-radius: 0px !important;}

button.btn-close.btn-close-white {
    position: absolute;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 45px;
    left: -10px;
    top: -10px;
    opacity: 1;
    z-index: 100000;
}

.modal-body.text-center.p-0 {
    background: linear-gradient(90deg, var(--navbg1) 0%, var(--navbg2) 60%);
}

aside.col-lg-3 .card .card-body {border-left: solid 3px #ff9900;}

/*/big-box/*/
.big-box .article-box {
    width: 100%;
    height: 300px;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
}
.big-box a.list-group-item.list-group-item-action.url {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(0 0 0 / 99%) 100%);
    height: 100%; display: flex; align-items: flex-end; justify-content: flex-start;
}
.big-box .flex-grow-1 {
    padding: 15px 15px 10px 15px;
    bottom: 0;
}
.big-box .d-flex.justify-content-between {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.big-box .text-muted {
    background: linear-gradient(90deg, var(--navbg1) 0%, var(--navbg2) 60%);
    color: #ffffff !important;
    padding: 3px 6px 3px 6px;
    border-radius: 0px 0px 0px 0px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    width: fit-content;
}
.big-box h5.mb-1 {
    color: #fff;
    font-size: 1.3rem;
}
.big-box small {
    color: #ebebeb;
    font-size: 13px;
    line-height: 1.6em;
    display: inline;
}

.big-box button.like-btn.border-0.bg-transparent { color: #fff;}
.col-lg-6.big-box { margin-bottom: 22px;}
.col-lg-4.big-box { margin-bottom: 22px;}
.date-like {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
}
/*/big-box/*/

.col-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.about {
    margin-bottom: 20px;
    margin-top: 20px;
    background-color: #fff;
    padding: 2.5em;
    margin-left: auto;
    margin-right: auto;
}

 .row.quiz-buttion a.btn.btn-primary.btn-lg
 {   
    background: linear-gradient(90deg, var(--navbg1) 0%, var(--navbg2) 60%);
    border: 0px;
    border-radius: 10px;
    padding: 5px 20px;
 }
    
/* --- Notes --- */

.not .row{ gap: 15px;}

.not .notes-box {
    background:#ffffff;
    border:1px solid #e6e6e6;
    border-radius:10px;
    padding:18px;
    margin-bottom:18px;
    transition:0.2s;
    width: 32.45%;
}
.not .notes-box:hover {
    transform: translateY(-4px);
    box-shadow:0 8px 28px rgba(0,0,0,0.08);
}
.not .notes-title {
    font-size:20px;
    font-weight:500;
}
.not .download-btn {
    border-radius:6px;
}
/* --- Notes --- */

/* --- Calculator --- */

    .cal .calc-btn { padding:18px; border-radius:10px; background:#fff; border:1px solid #e6e6e6; cursor:pointer; transition:.15s; text-align:center;}
    .cal .calc-btn:hover { transform: translateY(-4px); box-shadow:0 8px 24px rgba(15,23,42,0.06); }
    .cal .modal-body .row > * { margin-bottom:8px; }
    .cal pre.result { background:#f8f9fb; padding:10px; border-radius:6px; }
    .cal .small-note { font-size:13px; color:#666; }
    
/* --- Calculator --- */
.search-form{
    gap: 6px;
    z-index: 1;
    background-color: #f8f9fa;
    padding: 0px 0px 0px 10px;
}

.home-featured-cats .heading-box h3 { background: var(--card-bg);}
.home-featured-cats .txtMore{ background: var(--card-bg);}

.home-sec-two .heading-box h3 { background: var(--home-sec-2);}
.home-sec-two .txtMore{ background: var(--home-sec-2);}

.d-flex.home-featured-cats-twoo { gap: 12px;}
.home-featured-cats .like-btn { color: var(--text-muted) !important;}
.catt .like-btn { color: var(--text);}
.category-date-like {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 10px;
}

@media (min-width: 320px) and (max-width: 600.98px) { 

.home-featured-cats.py-4.pt-0 .col-md-6.mb-4{ padding-right: 0px; padding-left: 0px; }
.home-featured-cats.py-4.pt-0 .row{  margin:0px; }
.home-featured-cats.py-4.pt-0 .card-body{ padding: 15px 12px; }
.home-featured-cats.py-4.pt-0 .col-12.mb-3 {padding: 0px;}

.home-featured-cats .container {
    max-width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}

.logo { width: 130px;}

ul.footer-nav {
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
    align-items: flex-end;
    align-content: stretch;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-left: 0rem;
}

 .footer .col-sm-12 { width: 100%;}
 .home-sec-one, .home-sec-two, .home-sec-three { padding: 2.5rem 0rem;}
 .txtMore { font-size: 16px; padding: 0 0px 0 8px;}
 #scrollTopBtn { bottom: 9px; right: 12px; padding: 5px 15px; border-radius: 90%;}
 .col-6 { width: 100%;}

 .quiz-container { margin: 30px 15px !important;}
 .quiz-buttion .col-md-3 { width: 33.33%;}
 .row.quiz-buttion a.btn.btn-primary.btn-lg { border-radius: 6px; padding: 2px 8px;}
 
 .about { padding: 0.5em; }
 
 .cal .col-6.col-md-3 { width: 50%;}
 
 .not .row { gap: 15px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: center;}
 .not .notes-box { margin-bottom: 1px;  width: 92%;}
 .search-form {gap: 0px;justify-content: flex-end; width: 60%;}
 .search-form .form-control {border-radius: 0px !important; width: 70%;padding: 5px 5px;}
 .search-form  button.btn.btn-primary { border-radius: 0px;padding: 2px 6px;}
 
 .d-flex.w-100.category-sec { display: flex; flex-direction: column; gap: 10px;}
 .category-sec .d-flex.justify-content-between.align-items-start {display: flex; flex-wrap: wrap;}
 .category-sec img{ width: 100% !important; height: unset !important; margin-right: 0px !important;}
 }
 

@media (min-width: 922px) {
    .main-post-section {  
      max-width: 750px;
      background-color: #fff;
      padding: 2.5em;
      margin-left: auto;
      margin-right: auto;
    }
    .meta-share {
      max-width: 750px;
      padding: 0px;
      margin-left: auto;
      margin-right: auto;
    }
    .main-post-second {  
      max-width: 750px;
      padding: 1em 0em;
      margin-left: auto;
      margin-right: auto;
    }
    .h1, h1 {font-size: 2rem;}
    .h2, h2 {font-size:1.5rem;}
    .h3, h3 {font-size: 1.3rem;}
}


/* quiz start */
.quiz-container {
     max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.quiz-container h2 {
  text-align: center;
  margin-bottom: 20px;
}
.question {
  margin-bottom: 25px;
}
.options label {
  display: block;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.options label:hover {
  background: #f2f2f2;
}
.timer {
  text-align: right;
  font-weight: bold;
  color: #ff5722;
}
#resultModal .modal-content {
  border-radius: 15px;
}
/* quiz end */


/*quiz buttion start*/
.quiz-buttiob {  
    padding: 1px 2px;  
    position: fixed;
    width: 50px;
    height: 45px;
    top: 155px;
    right: 0px;
    background-color: #fff;
    border-radius: 50px 0px 0px 50px;
    z-index: 100;}
.quiz-buttiob img{ width:42px; }

.pulse{  animation: pulse 2s infinite; }

     @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }
/*quiz buttion end*/

.big-box .article-box {
  /*
  The transition property needs to explicitly list 'background-position'
  or use 'all' for all animatable properties.
  */
  transition: transform 0.2s, background-position 0.5s ease-out; /* Added background-position */
  
  /* Optionally, you might use 'all' for simplicity: */
  /* transition: all 0.5s ease-out; */

  background-position: center center; /* Define initial position */
}

.big-box .article-box:hover {
  /* This change will now animate smoothly */
  background-position: center bottom;
}

article.main-post-section img {
    width: 100%;
}

@media (min-width: 922px) {
    .comment-box {
        max-width: 750px;
        padding: 0px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ------ blog ------ */

/* css for psot -- pH क्या है?*/

.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
    border-radius: 2px;
}

 ul{ padding-left:1.1rem; margin-top:6px; }

table{
      width:100%;
      border-collapse:collapse;
      margin:10px 0 0;
      font-size:15px;
    }
    
table th, table td{
      text-align:left;
      padding:10px 8px;
      border:1px solid #eef6fb;
    }
blockquote{margin:12px 0;padding:12px 16px;background:#f9f6f0;border-left:4px solid #e8c07a;color:#4a4a4a}
/* ------ blog ------ */

.game-box{
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    gap: 12px;
}

.games {padding: 30px 0px;}

