/* =================================================================
   Original Styles from style-ui-7.css
================================================================= */
.header-mobile-container {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.header-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: #ffffff;
}

body.dark-mode .header-scrolled {
    background-color: #222222;
}
.fbt-widget-heading {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  font-family: "Oxygen", sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-preferred-size: auto;
      flex-basis: auto;
}

.fbt-widget-heading::after {
  content: '';
  background: #eeeeee;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 1px;
  z-index: 0;
  -webkit-box-ordinal-group: 3;
      -ms-flex-order: 2;
          order: 2;
}

.fbt-widget-heading.no-border::after {
  height: 0;
  background: transparent;
}

.fbt-widget-heading > span {
  position: relative;
  padding: 6px 17px 7px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  line-height: normal;
  z-index: 1;
  color: #ffffff;
  white-space: nowrap;
  margin-right: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
}

.fbt-widget-heading > span::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  content: '';
  -webkit-transform: skewX(-19deg);
          transform: skewX(-19deg);
  border-radius: 7px;
  background-color: var(--vr-theme-color);
}

.fbt-widget-heading a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-ordinal-group: 4;
      -ms-flex-order: 3;
          order: 3;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-left: 10px;
  font-size: 15px;
  white-space: nowrap;
  color: #595959;
}

.fbt-widget-heading a:hover {
  color: var(--vr-theme-color);
}

.fbt-widget-heading a span {
  font-size: 12px;
  margin-right: 5px;
  line-height: normal;
}
span.fkp {
    flex: 1;
}

.mean,
blockquote {
    font-style: italic
}

.bottom-menu,
.mobile_navbar_one,
.post-text ul li:last-child:after {
    display: none
}

@media screen and (max-width:500px) {
    .bottom-menu {
        max-width: 100%;
        width: 100%;
        position: fixed;
        bottom: 0;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 5px;
        padding-bottom: 5px;
        left: 0;
        right: 0;
        z-index: 999999;
        box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0
    }

    .bottom-menu a {
        font-family: calibri;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        padding: 5px;
        color: #555;
        font-weight: 600;
        font-size: 12px;
        text-decoration: none;
        transition: .3s;
        left: 0
    }

    .bottom-menu a i,
    .bottom-menu a img {
        font-size: 20px;
        margin-bottom: 10px
    }

    .bottom-menu a.sat {
        background-color: var(--vr-theme-color);
        color: #fff;
        border-radius: 100%;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -18px;
        border: 6px solid #eee
    }

    .bottom-menu a.sat:focus {
        border-color: var(--vr-block-color);
        color: #fff;
        border: 2px solid #444
    }

    .bottom-menu a.active,
    .bottom-menu a:focus {
        color: #ff3f56
    }

    .bottom-menu a:last-child {
        margin-right: 0;
        margin-left: 0
    }
}

.post-text ul {
    list-style-type: none;
    padding-left: 15px
}

.post-text ul li {
    position: relative;
    padding: 0 0 10px 20px;
    font-size: 14px;
    font-weight: 600
}

.post-text ul li:before {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 7px;
    height: 7px;
    background-color: var(--vr-block-color);
    border-radius: 100%;
    z-index: 1
}

.post-text ul li:after {
    position: absolute;
    content: '';
    top: 8px;
    left: 6px;
    height: 100%;
    border-left: 1px dashed #999;
    z-index: 0
}

.highlight {
    background-color: #fffbe6;
    color: #5d520a; 
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #fff3c4;
    font-weight: 500;
    display: inline;
}

.code {
    background-color: #1e398a;
    padding: 5px 10px;
    font-weight: 600;
    color: #fff;
    font-size: 1em
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    padding: 20px;
    position: relative
}

.profile-title {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    width: 100%
}

.profile-name {
    font-size: 1.8em;
    font-weight: 700;
    padding: 6px 0;
    color: #555;
    text-align: center;
    border-top: 1px solid orange;
    border-bottom: 1px solid green;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .2), 2px 2px 4px rgba(0, 0, 0, .15);
    transition: color .3s
}

.download-btn,
.image-caption {
    color: #fff;
    text-align: center
}

.profile-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto
}

.fprofile-image {
    width: 300px;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: transform .3s, box-shadow .3s;
    filter: brightness(90%) contrast(100%)
}

.image-caption {
    font-size: 1em;
    background-color: rgba(0, 0, 0, .5);
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    max-width: 260px;
    margin-top: -33px;
    position: relative
}

.profile-image-container:hover .fprofile-image {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .3)
}

.profile-details h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
    border-radius: 5px
}

.profile-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px
}

.profile-details table td {
    padding: 10px;
    border-bottom: 1px solid #ddd
}

.profile-details p {
    line-height: 1.6;
    color: #333
}

.download-btn {
    display: block;
    margin: 20px auto;
    background-color: #4caf50;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer
}

.download-btn:hover:hover {
    background-color: #45a049
}

.profile-details {
    margin: auto
}


.newsticker-container {
    background: #f5f5f5;
    color: #333
}

.profile-card {
    border-radius: 15px;
    text-align: center;
    transition: transform .3s ease-in-out
}

.profile-card:hover {
    transform: translateY(-10px)
}

.profile-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    font-family: Arial, sans-serif;
    letter-spacing: 1px
}


.profile-label {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px
}

.profile-label li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color .3s, transform .2s
}

.profile-label li:hover {
    background-color: #f1f1f1;
    transform: translateX(5px)
}

.label_name {
    font-weight: 600;
    color: #555;
    font-size: 1.1em
}

.value_name {
    margin-top: 5px;
    font-size: 1.2em;
    color: #111;
    font-weight: 500
}

@media(min-width:600px) {

    .label_name,
    .value_name {
        flex: 1
    }

    .value_name {
        text-align: right
    }
}

.names {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    justify-content: center
}

.baby_name {
    width: 300px;
    display: flex;
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    position: relative;
    margin: 10px auto;
    cursor: pointer
}

.baby_name:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, .15), 0 3px 6px rgba(0, 0, 0, .24);
    transform: translateY(-3px)
}

.first_letter {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    background: #ecf0f1;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center
}

.name_title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0
}

.mean {
    font-size: 1.1rem;
    color: #2ecc71;
    margin-top: 10px
}

.serial {
    font-size: 1rem;
    font-weight: 700;
    color: #9b59b6;
    background: #f4f1ff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .1)
}

.copy_button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer
}

@media (max-width:600px) {
    .profile-container {
        padding: 10px
    }

    .fprofile-image {
        width: 270px;
        height: auto
    }

    .profile-details table td {
        padding: 5px
    }

    .download-btn {
        padding: 8px 16px
    }

    .names .baby_name {
        height: auto;
        padding: 15px 0
    }

    #searchBox {
        width: 100%;
        margin: 10px;
        font-size: 1.2rem
    }

    .baby_name {
        width: 100%;
        margin: 20px 10px
    }

    .first_letter {
        font-size: 2rem;
        width: 60px;
        height: 60px
    }

    .mean,
    .name_title,
    .serial {
        font-size: 1.2rem
    }

    #searchBox,
    .baby_name {
        width: calc(100% - 20px)
    }
}

#searchBox {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 20px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    box-sizing: border-box
}
.post-title {
    color: #555
}

@media screen and (max-width: 600px) {
    .mobile_navbar_one {
        width: 100%;
        height: 48px;
        position: relative;
        background-color: #fff;
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        display: flex;
        overflow-y: hidden;
        overflow-x: auto;
        flex-wrap: inherit;
        box-sizing: border-box;
        flex-shrink: 0;
        border-bottom: 1px solid #eee;
        font-weight: 500;
        -ms-overflow-style: none;
        overflow: -moz-scrollbars-none;
    }

    .mobile_navbar_one::-webkit-scrollbar {
        display: none
    }

    #mobile_navbar_one {
        left: 0;
        right: 0
    }

    .mobile_navbar_one>li>a {
        margin: 0;
        border: 0;
        padding: 0 10px;
        position: relative;
        -webkit-flex-grow: 0;
        -ms-flex-positive: 0;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
        text-decoration: none;
        text-align: center;
        /* यह ऊंचाई 48px सही है */
        height: 48px;
        line-height: 48px;
        font-size: 16px;
        overflow-x: auto;
        display: inline-block;
        border: none;
        color: #555;
    }

    ul.mobile_navbar_one {
        list-style: none;
    }

    .mobile_navbar_one>li.active>a,
    .mobile_navbar_one>li.active>a:focus,
    .mobile_navbar_one>li.active>a:hover {
        border-width: 0;
    }

    .mobile_navbar_one>li.active>a,
    .mobile_navbar_one>li>a:hover {
        border: none;
        color: #ff69b4;
        border-radius: 3px;
    }

    .mobile_navbar_one>li>a::after {
        content: "";
        background: var(--vr-theme-color);
        height: 2px;
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 1px;
        transition: 250ms;
        transform: scale(0);
    }

    .mobile_navbar_one>li.active>a::after,
    .mobile_navbar_one>li:hover>a::after {
        transform: scale(1);
    }

    .item-meta-date {
        margin-left: 35px;
    }
}

.green {
    fill: #189555
}

.blue {
    fill: rgb(29, 155, 240)
}

.gold {
    fill: rgb(255, 224, 66)
}

.silver {
    fill: rgb(130, 154, 171)
}

.admin,
.blue,
.gold,
.green,
.silver {
    width: 20px;
    line-height: 20px;
    margin-left: 3px
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    justify-content: center;
    align-items: center;
    z-index: 999
}

.popup-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    width: 30em;
    opacity: 0;
    transform: scale(.8);
    transition: .3s ease-in-out
}

.popup-card {
    padding: 20px;
    text-align: center
}

.popup-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0d6efd;
    font-weight: 700
}

.popup-card p {
    font-size: 16px;
    margin-bottom: 20px
}

.tweet-box {
    background: linear-gradient(135deg, #f9f9fb 0, #fff 100%);
    border: none;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08), 0 0 10px rgba(0, 0, 0, .05);
    transition: .3s ease-in-out;
    max-width: 680px;
    font-family: Inter, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    background-clip: padding-box
}

.tweet-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12), 0 0 15px rgba(0, 0, 0, .07)
}

.tweet-box strong {
    color: #000;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .3px
}

.tweet-box p {
    color: #1c2526;
    font-size: 16px;
    line-height: 1.7;
    margin: 8px 0;
    animation: .5s ease-out slideIn
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-10px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.tweet-box a {
    color: #1da1f2;
    font-weight: 600;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: .3s
}

.tweet-box a:hover {
    background: rgba(29, 161, 242, .1);
    color: #0a74b8;
    text-decoration: underline
}

.tweet-box p:last-child {
    color: #606c88;
    font-size: 14px;
    font-style: italic;
    margin-top: 12px;
    border-top: 1px dashed #e1e8ed;
    padding-top: 10px
}

.tweet-box::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/5968/5968958.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .6;
    pointer-events: none
}

blockquote {
    position: relative;
    border-left: 5px solid #3498db;
    padding: 20px 25px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f0f9ff, #fff);
    font-size: 18px;
    color: #2c3e50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    border-radius: 10px;
    transition: .3s
}

blockquote::before {
    content: '“';
    font-size: 60px;
    color: #3498db;
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: .2
}

blockquote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08)
}

.contact-info {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px
}

.contact-info p {
    margin: 5px 0
}

.basis-member.staff {
    padding: 1rem 0;
    font-family: 'Raleway', sans-serif;
}

.basis-member.staff .member-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee !important;
}

.basis-member.staff .member-box .card-body {
    position: relative;
    height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

.basis-member.staff .member-box .shape {
    width: 200px;
    height: 200px;
    background: #f42077;
    opacity: 0.2;
    position: absolute;
    top: 0;
    right: -100px;
    transform: rotate(45deg);
}

.basis-member.staff .member-box .card-img-top {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border-top-left-radius: 0;
    border-bottom: 5px solid var(--vr-theme-color);
}

.basis-member.staff .member-box .member-title {
    font-size: 20px;
    font-weight: 600;
}

.basis-member.staff .profile_pro {
    width: 260px;
    text-align: center;
    background: #169179;
    color: #fff;
    opacity: 0.3;
    position: absolute;
    top: 40px;
    font-size: 15px;
    right: -100px;
    float: left;
    transform: rotate(45deg);
}

/* --- FOOTER FIX --- */
.basis-member.staff .profile_tag {
    width: 100%;
    text-align: center;
    background: #169179;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 16px;
    /* Main change: Added padding for better spacing */
    padding: 12px 0;
}

/* --- HEADER FIX --- */
.basis-member.staff .profile_tag_title {
    /* Main change: Made it a full-width, proper header */
    width: 100%;
    left: 0;
    right: 0;
    text-align: center;
    background: #f8f9fa;
    color: #333;
    position: absolute;
    top: 0;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/*
=================================================================
  1. POST CARD (General Card for Posts)
=================================================================
*/
.post-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-card .card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.post-card .badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    /* Using theme variable for badge background */
    background-color: var(--vr-theme-color);
    color: #fff;
    font-weight: 500;
    z-index: 2;
}

.post-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card .card-content .title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-card .card-content .title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .card-content .title a:hover {
    /* Using theme variable for link hover color */
    color: var(--vr-theme-color);
}

.post-card .post-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.post-card .post-meta a,
.post-card .post-meta span {
    color: #7f8c8d;
}

/*
=================================================================
  2. FEATURED SECTION STYLES
=================================================================
*/

/* --- Main post card in the slider --- */
.post-card-large {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fit image without distortion */
    object-fit: cover;
}

.post-card-large .caption {
    /* Using block color variable for dark background */
    background-color: var(--vr-block-color, #222);
    color: #fff;
    padding: 20px;
}

.post-card-large .caption .title {
    font-size: 1.2rem;
}

.post-card-large .caption .title a {
    color: #fff;
    text-decoration: none;
}

/* --- Slider Navigation --- */
.featured-slider-wrapper {
    position: relative;
}

.featured-slider-wrapper .slick-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.featured-slider-wrapper .slick-arrow:hover {
    /* Using theme variable for hover background */
    background-color: var(--vr-theme-color);
}

.featured-slider-wrapper .slick-prev {
    left: 15px;
}

.featured-slider-wrapper .slick-next {
    right: 15px;
}

/* --- Slider Dots --- */
.slider-dots-container {
    text-align: center;
    padding-top: 15px;
}

.slick-dots {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button {
    font-size: 0; /* Hide text */
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.slick-dots li.slick-active button {
    /* Using theme variable for active dot */
    background-color: var(--vr-theme-color);
    border-color: var(--vr-theme-color);
}


/* --- Headlines list on the right --- */
.headlines-wrapper .list-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.featured-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-card-small {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.post-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.post-card-small .img-link {
    flex-shrink: 0;
    margin-right: 15px;
}

.post-card-small .item-image {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.post-card-small .item-content .title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.post-card-small .item-content .title a {
    color: #212529;
    font-weight: 600;
    text-decoration: none;
}

.post-card-small .item-content .title a:hover {
    /* Using theme variable for link hover color */
    color: var(--vr-theme-color);
}

.post-card-small .post-meta .date {
    font-size: 0.8rem;
    color: #6c757d;
}

.role {
      font-size: 0.6rem;
      font-weight: 600;
      padding: 0px 6px;
      margin: 5px;
      transform: skew(-25deg);
      border-radius: 4px;
      position: relative;
      color: #fff;
      letter-spacing: 0.8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 20px;
      box-shadow: 0 0 8px rgba(255,255,255,0.2);
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    .role::after {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      border-radius: 4px;
      pointer-events: none;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 0 12px rgba(255,255,255,0.3);
    }

    /* Role-specific glowing gradients */
    .official {
      background: linear-gradient(135deg, #ff6ec4, #333);
    }

    .editor {
      background: linear-gradient(135deg, #1e3c72, #2a5298);
    }

    .reporter {
      background: linear-gradient(135deg, #00b347, #4df08a);
    }

    .member {
      background: linear-gradient(135deg, #ff1a1a, #ff4d4d);
    }

    .verified {
        background: linear-gradient(135deg, #ffdd00, #ffee70);
        color: #000;
        font-weight: bold;
    }

    .author {
      background: linear-gradient(135deg, #6f42c1, #b678f2);
    }

    .guest {
      background: linear-gradient(135deg, #00c9ff, #92fe9d);
      color: #000;
    }

/*
=================================================================
  3. BLOCK 6 - VIDEO SHOWCASE (with Laptop Fix)
=================================================================
*/
.video-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.video-showcase-grid .hero-post .post-card {
    height: 100%;
}

.video-showcase-grid .playlist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* For Laptops and larger screens (above 992px) */
@media (min-width: 992px) {
    .video-showcase-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    }

    .video-showcase-grid .hero-post {
        height: 100%;
    }

    .video-showcase-grid .playlist-wrapper {
        max-height: 520px;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Optional: Custom scrollbar styling */
    .video-showcase-grid .playlist-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .video-showcase-grid .playlist-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .video-showcase-grid .playlist-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .video-showcase-grid .playlist-wrapper::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }
}

/*
=================================================================
  4. PLAYLIST ITEM (Used in Block 6 and Widgets)
=================================================================
*/
.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.playlist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.playlist-item .item-image {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.playlist-item .item-content .title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.playlist-item .item-content .title a {
    color: #333;
    text-decoration: none;
}

.playlist-item .item-content .post-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 5px;
}


/*
=================================================================
  5. SIDEBAR WIDGETS
=================================================================
*/
.sidebar-widget {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar-widget .widget-head .title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
}

/* Post list inside a widget */
.sidebar-widget .playlist-item {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.sidebar-widget .playlist-item:not(:last-child) {
    margin-bottom: 20px;
}

.sidebar-widget .playlist-item:hover {
    transform: translateX(0);
}

/* Tag list inside a widget */
.sidebar-widget .tag-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sidebar-widget .tag-list li a {
    display: block;
    background-color: #f4f7f9;
    color: #555;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-widget .tag-list li a:hover {
    /* Using theme variable for tag hover */
    background-color: var(--vr-theme-color);
    color: #fff;
}

/* 'Follow Us' inside a widget */
.widget-follow .item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: #7f8c8d;
}

.widget-follow .item a:hover {
    background-color: #f4f7f9;
}

.widget-follow .item a:hover i,
.widget-follow .item a:hover span {
    /* Using theme variable for icon/text hover color */
    color: var(--vr-theme-color);
}


.widget-follow .item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.widget-follow .item span {
    font-size: 12px;
}

/*
=================================================================
  6. RELATED POSTS CARD
=================================================================
*/

/* This class fits the image in a 16:9 ratio without distortion */
.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the most important line */
    transition: transform 0.3s ease-in-out; /* For smooth effect on hover */
}

/* A slight zoom on the image when hovering over the card */
.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.card-title a {
    /* To show long titles in the next line */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Shows only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px; /* Minimum height for 2 lines */
}

 .fact-check {
            background-color: #e7f3fe;
            border-left: 5px solid #f56;
            padding: 10px;
            margin: 10px 0;
        }


/* =================================================================== */
/* 1. GLOBAL SLIDER & CARD STYLES
/* This section ensures both "Live Updates" and "Videos" look the same.
/* =================================================================== */

#live-updates-carousel.slick-slider,
#video-carousel-container.slick-slider {
    margin: 0 -6px;
}

#live-updates-carousel .slick-slide,
#video-carousel-container .slick-slide {
    padding: 0 1px;
    box-sizing: border-box;
    height: auto;
}

#live-updates-carousel .slick-track,
#video-carousel-container .slick-track {
    display: flex;
    align-items: stretch;
}

#live-updates-carousel .slick-slide > div,
#video-carousel-container .slick-slide > div {
    height: 100%;
}

#live-updates-carousel .live-update-item .img-container {
    background-color: #f0f0f0;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* ADDED: This rounds the top corners of the image container */
}

#live-updates-carousel .live-update-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-update-item.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-update-item.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.live-update-item .img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    overflow: hidden;
}

.live-update-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.live-update-item.card:hover .img-container img {
    transform: scale(1.08);
}

.live-update-item .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.live-update-item .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.live-update-item .card-title a {
    color: #212529;
    text-decoration: none;
}

/* --- Base Card Footer --- */
.live-update-item .card-footer-meta {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #f0f0f0;
    padding: 12px 15px;
    margin-top: auto;
}

.live-update-item .live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #d92128;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}
.live-update-item .live-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: #d92128;
    animation: ripple-effect 2s infinite ease-out;
    z-index: -1;
    opacity: 0.7;
}
@keyframes ripple-effect {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Pulsing dot for the main section title */
.live-pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ff2525;
    border-radius: 50%;
    margin-left: 10px;
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 37, 37, 1);
}
@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 37, 37, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 37, 37, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 37, 37, 0); }
}

/* =================================================================== */
/* 2. Live Updates Footer
/* =================================================================== */

#live-updates-carousel .live-update-item .card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#live-updates-carousel .live-update-item .timeline-author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#live-updates-carousel .live-update-item .timeline-author-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#live-updates-carousel .live-update-item .timeline-time {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =================================================================== */
/* 3. VIDEO LIGHTBOX STYLES
/* =================================================================== */
.video-section-custom .media-icon .play-icon {
    font-size: 60px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;

}

.video-section-custom .img-link:hover .media-icon .play-icon {
    transform: scale(1.1);
    opacity: 1;
}
#video-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-lightbox-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
}

.video-lightbox-content {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#video-lightbox-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 0;
}

#video-lightbox-close:hover {
    opacity: 1;
}

/* ===============================================================
   DARK MODE STYLES FOR ALL SECTIONS
=============================================================== */

.dark-mode .live-update-item .card-text {
    color: #a0a0a0;
}
.dark-mode .live-update-item .card-footer-meta {
    background-color: #2a2a2a;
    border-top-color: #333;
    color: #a0a0a0;
}
.dark-mode .live-update-item .timeline-author-link {
    color: #b0b0b0;
}

/* =================================================================== */
/* Post Page: Live Updates Vertical Timeline (Final Stylish Version)
/* =================================================================== */
.live-updates-container {
    margin-top: 40px;
    padding-top: 20px;
}
.live-updates-container .title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
    display: flex;
    align-items: center;
}
/* Google Icon Styling for Timeline Title */
.live-updates-container .title .material-symbols-outlined {
    color: #e74c3c;
    margin-right: 10px;
    font-size: 30px; /* Icon size */
}

.timeline {
    position: relative;
    padding-left: 35px;
    border-left: 3px dotted #dcdcdc;
}
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 22px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid #3498db;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}
.timeline-item:first-child .timeline-dot {
    border-color: #e74c3c;
    animation: timeline-pulse 2s infinite;
}
@keyframes timeline-pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.timeline-item:hover .timeline-dot { transform: scale(1.2); }

.timeline-content.card {
    background: #ffffff;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-content.card::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 24px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #ffffff;
    z-index: 2;
    filter: drop-shadow(-2px 1px 1px rgba(0,0,0,0.02));
}
.timeline-content.card::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 23px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 13px solid #ecf0f1;
    z-index: 1;
}
.timeline-content .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.timeline-content .card-header {
    background-color: #fff;
    font-weight: 600;
    color: #34495e;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f2f5;
}
.timeline-content .card-body {
    padding: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}
.timeline-content .card-footer {
    background-color: #f9fafb;
    border-top: 1px solid #f0f2f5;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.timeline-content .card-footer .timeline-author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.timeline-content .card-footer .timeline-author-link:hover {
    color: #000;
}
.timeline-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.timeline-time {
    display: flex;
    align-items: center;
    color: #7f8c8d;
}
/* Google Icon Styling for Footer */
.timeline-time .material-symbols-outlined {
    margin-right: 5px;
    font-size: 18px; /* Icon size */
    vertical-align: middle; /* Align icon with text */
}


/* Styling for the right side of the timeline footer */
.timeline-meta-right {
    display: flex;
    align-items: center;
    gap: 15px; /* समय और शेयर बटन के बीच की दूरी */
}

/* New Share Popover Styling */
.share-container {
    position: relative; /* यह पॉपओवर की पोजीशन के लिए जरूरी है */
}

.btn-share-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.btn-share-toggle:hover {
    background-color: #f0f0f0;
}
.btn-share-toggle .material-symbols-outlined {
    font-size: 22px;
    color: #555;
}

/* The popover menu */
.share-popover {
    position: absolute;
    bottom: 120%; /* बटन के ऊपर दिखेगा */
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    padding: 8px;
    border-radius: 50px; /* गोलाकार किनारों के लिए */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 100;
    
    /* डिफ़ॉल्ट रूप से छिपा हुआ */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* सक्रिय होने पर दिखाएं */
.share-popover.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-popover a,
.share-popover .btn-copy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

.share-popover a:hover,
.share-popover .btn-copy-link:hover {
    transform: scale(1.1);
}

.share-popover svg {
    width: 20px;
    height: 20px;
    fill: #555;
}

/* Copy Link Tooltip */
.btn-copy-link .copy-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* "LIVE" टेक्स्ट बैज के लिए स्टाइलिंग */
.role-live {
  display: inline-block;
  background-color: #d92128; /* लाल बैकग्राउंड */
  color: #fff; /* सफेद टेक्स्ट */
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;

  /* रिपल एनीमेशन यहाँ लागू किया गया है */
  animation: ripple-badge-animation 2s infinite;
  box-shadow: 0 0 0 0 rgba(217, 33, 40, 1);
}

/* "LIVE" बैज के लिए रिपल की-फ्रेम */
@keyframes ripple-badge-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 33, 40, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(217, 33, 40, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 33, 40, 0);
  }
}

.newsletter-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 30px;
        background-color: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid #eee;
    }
    .newsletter-container h1 {
        text-align: center;
        color: #333;
        font-weight: 600;
        margin-bottom: 10px;
    }
    .newsletter-container .lead {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
    }
    /* टॉप कंट्रोल (Select All और नया बटन) के लिए स्टाइल */
    .top-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #e9ecef;
        padding: 10px 15px;
        border-radius: 8px;
        margin-bottom: 25px;
    }
    .select-all-label {
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    .select-all-label input {
        margin-right: 8px;
    }
    /* कैटेगरी कार्ड का नया डिजाइन */
    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        margin-bottom: 30px;
    }
    .category-card {
        cursor: pointer;
        position: relative;
    }
    .category-card input[type="checkbox"] {
        display: none; /* असली चेकबॉक्स छिपा हुआ है */
    }
    .category-content {
        background-color: #fff;
        border: 2px solid #ddd;
        border-radius: 8px;
        padding: 20px 15px;
        text-align: center;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .category-card .category-name {
        font-size: 1.05rem;
        font-weight: 500;
        color: #333;
        transition: color 0.3s ease;
    }
    /* जब कार्ड सेलेक्ट होगा तो ऐसा दिखेगा */
    .category-card input[type="checkbox"]:checked + .category-content {
        border-color: #007bff;
        background-color: #f0f8ff; /* हल्का नीला रंग */
    }
    .category-card input[type="checkbox"]:checked + .category-content .category-name {
        color: #007bff;
    }
    /* चेकमार्क का स्टाइल */
    .checkmark {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 22px;
        height: 22px;
        background-color: #007bff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        transform: scale(0);
        transition: transform 0.2s ease;
    }
    .category-card input[type="checkbox"]:checked + .category-content .checkmark {
        transform: scale(1); /* जब सेलेक्ट हो तो चेकमार्क दिखाएं */
    }
    /* सब्सक्राइब बटन का स्टाइल */
    .btn-subscribe {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: 8px;
    }

            :root {
            --theme-primary: #007BFF; /* A professional and vibrant blue */
            --theme-success: #20c997; /* A modern green for success states */
            --theme-background: #f8f9fa; /* A light grey background */
            --theme-card-bg: #ffffff; /* White background for main content */
            --theme-text-dark: #212529; /* Dark color for main text */
            --theme-text-light: #6c757d; /* Lighter color for subtitles */
            --theme-border: #dee2e6; /* Standard border color */
            --theme-font: 'Inter', sans-serif; /* Clean and modern font */
        }


        .prefs-container {
            width: 100%;
            max-width: 960px;
            background: var(--theme-card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            border: 1px solid var(--theme-border);
        }

        .prefs-content-padding {
             padding: 2rem 2.5rem;
        }

        .prefs-header h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .prefs-header .prefs-subtitle {
            font-size: 1rem;
            color: var(--theme-text-light);
            margin-bottom: 2rem;
        }

        /* Messages (Success/Error) Area Styling */
        .message-box {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 1rem;
            border: 1px solid transparent;
            text-align: center;
        }
        .message-box.success {
            background-color: #d4edda;
            border-color: #c3e6cb;
            color: #155724;
        }
        .message-box.success h2 {
            font-size: 1.5rem;
            margin: 0 0 10px 0;
        }

        .controls-panel {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 1rem;
            background-color: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 2rem;
        }

        .select-all-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-weight: 500;
        }

        .select-all-label input {
            margin-right: 0.75rem;
            width: 1.15rem;
            height: 1.15rem;
            accent-color: var(--theme-primary);
        }

        .action-btn {
            background: linear-gradient(45deg, var(--theme-primary), #0056b3);
            color: white;
            font-size: 1rem;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0,123,255,0.3);
            text-decoration: none;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,123,255,0.4);
        }

        .category-selection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
        }

        .category-tile input[type="checkbox"] {
            display: none;
        }

        .category-tile-label {
            display: block;
            border: 2px solid var(--theme-border);
            border-radius: 10px;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            position: relative;
        }

        .category-tile-label:hover {
             border-color: var(--theme-primary);
             transform: translateY(-3px);
        }

        .category-tile-label strong {
            font-weight: 600;
            font-size: 1.1rem;
        }

        .selection-checkmark {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background-color: var(--theme-border);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: scale(0.5);
            opacity: 0;
            transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        }

        .category-tile input:checked + .category-tile-label {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 2px var(--theme-primary);
        }

        .category-tile input:checked + .category-tile-label .selection-checkmark {
            transform: scale(1);
            opacity: 1;
            background-color: var(--theme-primary);
        }

        .prefs-footer {
            text-align: center;
            padding: 1.5rem;
            margin-top: 2rem;
            border-top: 1px solid var(--theme-border);
        }

        @media (max-width: 768px) {
            body { padding: 0.5rem; }
            .prefs-content-padding { padding: 1.5rem; }
            .prefs-header h2 { font-size: 1.5rem; }
            .controls-panel { flex-direction: column; align-items: stretch; }
            .action-btn { width: 100%; text-align: center; }
        }

/* =================================================================
   Dark Mode Styles
================================================================= */
.dark-mode {
    --theme-background: #121212;
    --theme-card-bg: #1e1e1e;
    --theme-text-dark: #e0e0e0;
    --theme-text-light: #a0a0a0;
    --theme-border: #333333;
}

.dark-mode body {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .bottom-menu {
    background-color: #1e1e1e;
    box-shadow: rgba(255, 255, 255, .1) 0 0 5px 0, rgba(255, 255, 255, .1) 0 0 1px 0;
}

.dark-mode .bottom-menu a {
    color: #a0a0a0;
}

.dark-mode .bottom-menu a.active,
.dark-mode .bottom-menu a:focus {
    color: #ff3f56;
}

.dark-mode .bottom-menu a.sat {
    border: 6px solid #2a2a2a;
}

.dark-mode .post-text ul li:after {
    border-left: 1px dashed #666;
}

.dark-mode .code {
    background-color: #3a509a;
    color: #e0e0e0;
}

.dark-mode .profile-container,
.dark-mode .baby_name {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, .05);
}

.dark-mode .profile-title,
.dark-mode .profile-name {
    color: #e0e0e0;
}

.dark-mode .fprofile-image {
    border: 2px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}

.dark-mode .profile-details h2 {
    border-bottom: 2px solid #555;
}

.dark-mode .profile-details table td {
    border-bottom: 1px solid #444;
}

.dark-mode .profile-details p {
    color: #b0b0b0;
}

.dark-mode .newsticker-container {
    background: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .profile-card h1 {
    color: #e0e0e0;
}

.dark-mode .profile-label li {
    border: 1px solid #444;
    background-color: #2a2a2a;
}

.dark-mode .profile-label li:hover {
    background-color: #333;
}

.dark-mode .label_name {
    color: #a0a0a0;
}

.dark-mode .value_name {
    color: #e0e0e0;
}

.dark-mode .first_letter {
    color: #3498db;
    background: #2c3e50;
}

.dark-mode .name_title {
    color: #e0e0e0;
}

.dark-mode #searchBox {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
}

.dark-mode .post-title {
    color: #e0e0e0;
}

.dark-mode .mobile_navbar_one {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

.dark-mode .mobile_navbar_one>li>a {
    color: #a0a0a0;
}

.dark-mode .popup-container {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(0, 0, 0, .8);
}

.dark-mode .popup-card p {
    color: #e0e0e0;
}

.dark-mode .tweet-box {
    background: linear-gradient(135deg, #2a2a2a 0, #1e1e1e 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2), 0 0 10px rgba(0, 0, 0, .15);
}

.dark-mode .tweet-box strong,
.dark-mode .tweet-box p {
    color: #e0e0e0;
}

.dark-mode .tweet-box p:last-child {
    color: #888;
    border-top: 1px dashed #444;
}

.dark-mode blockquote {
    border-left: 5px solid #3498db;
    background: linear-gradient(135deg, #2c3e50, #1e1e1e);
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.dark-mode .contact-info {
    background-color: #2a2a2a;
}

.dark-mode .post-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.dark-mode .post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .post-card .card-content .title a {
    color: #e0e0e0;
}

.dark-mode .post-card .post-meta a,
.dark-mode .post-card .post-meta span {
    color: #a0a0a0;
}

.dark-mode .post-card-large .caption {
    background-color: #2a2a2a;
}

.dark-mode .headlines-wrapper .list-title {
    border-bottom: 2px solid #333;
    color: #e0e0e0;
}

.dark-mode .post-card-small {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.dark-mode .post-card-small:hover {
    border-color: #555;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .post-card-small .item-content .title a {
    color: #e0e0e0;
}

.dark-mode .post-card-small .post-meta .date {
    color: #a0a0a0;
}

.dark-mode .playlist-item {
    background-color: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dark-mode .playlist-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.dark-mode .playlist-item .item-content .title a {
    color: #e0e0e0;
}

.dark-mode .playlist-item .item-content .post-meta {
    color: #a0a0a0;
}

.dark-mode .sidebar-widget {
    background-color: #1e1e1e;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.dark-mode .sidebar-widget .widget-head .title {
    color: #e0e0e0;
}

.dark-mode .sidebar-widget .tag-list li a {
    background-color: #2a2a2a;
    color: #a0a0a0;
}

.dark-mode .sidebar-widget .tag-list li a:hover {
    color: #fff;
}

.dark-mode .widget-follow .item a {
    color: #a0a0a0;
}

.dark-mode .widget-follow .item a:hover {
    background-color: #2a2a2a;
}

.dark-mode .fact-check {
    background-color: rgba(231, 243, 254, 0.1);
    border-left: 5px solid #f56;
}

.dark-mode .section-live-updates {
    background-color: #1a1a1a;
}

.dark-mode .section-live-updates .section-title .title {
    color: #e0e0e0;
}

.dark-mode .live-updates-wrapper::-webkit-scrollbar-track { background: #333; }
.dark-mode .live-updates-wrapper::-webkit-scrollbar-thumb { background: #555; }
.dark-mode .live-updates-wrapper::-webkit-scrollbar-thumb:hover { background: #777; }

.dark-mode .live-update-item.card {
    border: 1px solid #333;
    background-color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dark-mode .live-update-item.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.dark-mode .live-update-item .img-container {
    background-color: #333;
}

.dark-mode .live-update-item .card-title a {
    color: #e0e0e0;
}

.dark-mode .live-update-item .card-text {
    color: #a0a0a0;
}

.dark-mode .live-updates-container .title {
    border-bottom: 2px solid #333;
    color: #e0e0e0;
}

.dark-mode .timeline {
    border-left: 3px dotted #555;
}

.dark-mode .timeline-dot {
    background-color: #1e1e1e;
}

.dark-mode .timeline-content.card {
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dark-mode .timeline-content.card::before {
    border-right-color: #2a2a2a;
}

.dark-mode .timeline-content.card::after {
    border-right-color: #444;
}

.dark-mode .timeline-content .card-header {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

.dark-mode .timeline-content .card-body {
    color: #b0b0b0;
}

.dark-mode .timeline-content .card-footer {
    background-color: #1e1e1e;
    border-top: 1px solid #444;
}

.dark-mode .timeline-content .card-footer .timeline-author-link {
    color: #b0b0b0;
}
.dark-mode .timeline-content .card-footer .timeline-author-link:hover {
    color: #fff;
}

.dark-mode .timeline-time {
    color: #a0a0a0;
}

.dark-mode .btn-share-toggle:hover {
    background-color: #333;
}

.dark-mode .btn-share-toggle .material-symbols-outlined {
    color: #a0a0a0;
}

.dark-mode .share-popover {
    background-color: #333;
    border: 1px solid #555;
}

.dark-mode .share-popover a,
.dark-mode .share-popover .btn-copy-link {
    background-color: #444;
}

.dark-mode .share-popover svg {
    fill: #a0a0a0;
}

.dark-mode .newsletter-container {
    background-color: #1e1e1e;
    border: 1px solid #333;
}
.dark-mode .newsletter-container h1 {
    color: #e0e0e0;
}
.dark-mode .newsletter-container .lead {
    color: #a0a0a0;
}

.dark-mode .top-controls {
    background-color: #2a2a2a;
}
.dark-mode .select-all-label {
    color: #e0e0e0;
}

.dark-mode .category-content {
    background-color: #2a2a2a;
    border: 2px solid #444;
}
.dark-mode .category-card .category-name {
    color: #e0e0e0;
}

.dark-mode .category-card input[type="checkbox"]:checked + .category-content {
    border-color: #007bff;
    background-color: #2c3e50;
}
.dark-mode .category-card input[type="checkbox"]:checked + .category-content .category-name {
    color: #fff;
}

.dark-mode .prefs-container {
    background: #1e1e1e;
    border: 1px solid #333;
}
.dark-mode .prefs-header h2 {
    color: #e0e0e0;
}
.dark-mode .prefs-header .prefs-subtitle {
    color: #a0a0a0;
}

.dark-mode .message-box.success {
    background-color: rgba(32, 201, 151, 0.1);
    border-color: rgba(32, 201, 151, 0.3);
    color: #20c997;
}

.dark-mode .controls-panel {
    background-color: #2a2a2a;
}
.dark-mode .select-all-label {
    color: #e0e0e0;
}

.dark-mode .category-tile-label {
    border: 2px solid #444;
}
.dark-mode .category-tile-label:hover {
     border-color: var(--theme-primary);
}

.dark-mode .category-tile-label strong {
    color: #e0e0e0;
}

.dark-mode .selection-checkmark {
    background-color: #444;
}

.dark-mode .prefs-footer {
    border-top: 1px solid #333;
}

/* ===============================================================
   1. Author Box (_author_box.php)
================================================================*/
.dark-mode .card.bg-light-subtle {
    background-color: #2a2a2a !important; /* गहरे रंग का बैकग्राउंड */
    border: 1px solid #444 !important;
}

.dark-mode .card .text-decoration-none {
    color: #e0e0e0; /* लिंक टेक्स्ट का रंग */
}

.dark-mode .card .text-muted {
    color: #a0a0a0 !important; /* हल्का टेक्स्ट रंग */
}

/* लेखक के सोशल मीडिया लिंक */
.dark-mode .profile-social-links li a {
    color: #a0a0a0;
    background-color: #333;
}

.dark-mode .profile-social-links li a:hover {
    color: #fff !important;
    background-color: var(--vr-theme-color) !important; /* थीम के मुख्य रंग का उपयोग */
}

/* ===============================================================
   2. Author Alert & Newsletter (_author_alert.php)
================================================================*/

/* न्यूज़लेटर बॉक्स */
.dark-mode .card.bg-light {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
}

.dark-mode .card .fw-bold.text-primary {
    color: #58a6ff !important;
}

.dark-mode .newsletter-form .form-control {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}

/* लेखक प्रस्ताव अलर्ट */
.dark-mode .alert.alert-light {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444 !important;
}

.dark-mode .alert.alert-light .alert-heading {
    color: #e0e0e0;
}

.dark-mode .alert.alert-light hr {
    border-top-color: #444;
}

/* RSS फ़ीड अस्वीकरण अलर्ट */
.dark-mode .alert.alert-secondary {
    background-color: #333;
    color: #c0c0c0;
    border-color: #555;
}

.dark-mode .alert.alert-secondary .alert-link {
    color: #8cb4ff;
}

/* भूमिका-आधारित अलर्ट कार्ड बॉडी */
.dark-mode .card .card-body .item.text-muted {
    color: #c0c0c0 !important;
}

.dark-mode .card[class*="bg-"] .text-white {
     /* पहले से ही सही स्टाइल है, कोई बदलाव की जरूरत नहीं */
}


/* ===============================================================
   3. Table of Contents / Key Moments (_toc.php)
================================================================*/
.dark-mode .card.border-light {
    background-color: #1e1e1e;
    border-color: #333 !important;
}

.dark-mode .card .text-dark {
    color: #e0e0e0 !important;
}

.dark-mode .card .border-bottom,
.dark-mode .card .border-top {
    border-color: #333 !important;
}

.dark-mode .list-group-item {
    background-color: transparent;
    border-color: #333;
}

.dark-mode .list-group-item-action:hover,
.dark-mode .list-group-item-action:focus {
    background-color: #2a2a2a;
}

.dark-mode .bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.2) !important;
}

.dark-mode .border-danger.border-opacity-25 {
    border-color: rgba(220, 53, 69, 0.4) !important;
}

.dark-mode .bg-danger.bg-opacity-10 .fw-bold.text-danger {
    color: #f5c2c7 !important;
}

.dark-mode .bg-danger.bg-opacity-10 p {
     color: #e6a7ac;
}

.dark-mode .bg-danger.bg-opacity-10 a {
    color: #f5c2c7 !important;
    text-decoration: underline !important;
}


/* ===============================================================
   4. URL Copy Box (_url_copy.php)
================================================================*/
.dark-mode .input-group .form-control {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .input-group .form-control:focus {
    background-color: #333;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.5);
}

.dark-mode #copySuccess {
    color: #28a745; /* गहरे बैकग्राउंड के लिए थोड़ा चमकदार हरा */
}


/* ===============================================================
   5. Profile Page (_profile.php)
================================================================*/
.dark-mode .profile-main-image {
    border: 4px solid #2a2a2a; /* इमेज का बॉर्डर */
}

.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333 !important;
}
.dark-mode .card.shadow-sm {
     box-shadow: 0 .125rem .25rem rgba(0,0,0,.5)!important;
}

.dark-mode h3.card-title, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #e0e0e0;
}

.dark-mode .btn-light.border {
    background-color: #2a2a2a;
    border-color: #444 !important;
}

/* X (Twitter) जैसे जेनेरिक आइकॉन के लिए */
.dark-mode a[title="X (Twitter)"] svg {
    fill: #e0e0e0;
}

.dark-mode .card-footer.bg-light {
    background-color: #2a2a2a !important;
}

.dark-mode .nav-tabs .nav-link {
    color: #a0a0a0;
    border-color: transparent;
}

.dark-mode .nav-tabs .nav-link.active {
    color: #58a6ff;
    background-color: #1e1e1e;
    border-color: #444 #444 #1e1e1e;
}

.dark-mode .info-pair {
    border-bottom: 1px solid #333;
}

.dark-mode .label_name {
    color: #a0a0a0;
}

.dark-mode .label_value {
    color: #e0e0e0;
}

.dark-mode .label_value a.btn-link {
    color: #58a6ff;
}

.dark-mode .quote-card {
    background-color: #2a2a2a;
    border-left-color: var(--bs-primary);
}

.dark-mode .card-header.bg-light {
    background-color: #2a2a2a !important;
}

.dark-mode div.text-muted {
    color: #a0a0a0 !important;
}
.dark-mode .highlight {
    background-color: #4d441f; 
    color: #fff4c8;
    border-color: #6a5d28;
}

}