:root {
    color-scheme: light dark;
  --bg-color: #ffffff;
  --text-color: #000000;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

nav,
.footer,
.primary, .primary-btn, .bg-primary-color, .bg-category-color {
  --bg-color: #061148;
  --text-color: #ffffff;
  background-color: var(--bg-color);
  color: var(--text-color);
}

html.dark-mode .bg-category-color {
  --bg-color: gold;
  --text-color: #061148;
  background-color: var(--bg-color);
  color: var(--text-color);
}

html.dark-mode .notification-div {
    --bg-color: #000000 !important;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Dark Mode */
html.dark-mode,
html.dark-mode nav,
html.dark-mode .footer,
html.dark-mode .primary,
html.dark-mode .bg-primary-color {
  --bg-color: #121212;
  --text-color: #ffffff;
}

html.dark-mode .primary-btn, .primary-btn:hover {
    background: dimgray;
    color: #ffffff !important;
}

html.dark-mode .header,
html.dark-mode .head-title {
    border-bottom: solid 1px gray;
}

html.dark-mode .footer {
    border-top: solid 1px gray;
}


/* Dark Mode */
html.dark-mode form,
html.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #ffffff;
}

html.dark-mode form input,
html.dark-mode form textarea,
html.dark-mode form select,
html.dark-mode form button {
  background-color: #2c2c2c !important;
  color: #ffffff !important;
  border: 1px solid gray !important;
}

html.dark-mode  .shadow-div {
    border: 1px solid gray;
}

body {
    font-family: 'Noto Sans Tamil', 'Latha', 'Arial', sans-serif;
    font-size: 13px;
}

.form-control {
    font-size: 13px;
    padding: .475rem .75rem;
}

.fs-custom {
    font-size: 13px !important;
}

.fs-12px {
    font-size: 12px !important;
}

.fs-14px {
    font-size: 14px !important;
}

.fs-15px {
    font-size: 15px !important;
}

.fs-16px {
    font-size: 16px !important;
}

.fs-20px {
    font-size: 20px !important;
}

.custom-content span {
    font-size: 16px !important;
}

.container.details-page {
    max-width: 830px;
}

@media (max-width: 999px) {
    .container.details-page {
        max-width: 675px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 1800px;
    }    
}

@media (min-width: 1700px) {
    .container {
        max-width: 1600px;
    }

    .container.details-page {
        max-width: 1140px;
    }
}

@media (min-width: 1200px) and (max-width: 1700px) {
    .container {
        max-width: 1250px !important;
    }
}

.custom-img-height {
    height: 150px;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: bold;
}

#commentform, #commentform .form-submit input {
    font-size: 13px;
}

#comment, .comment-section {
    width: 100%;
}

@media (min-width: 768px) {
    .custom-img-height {
        height: 300px;
    }

    .comment-section {
        width: 75%;
    }
}

.text-primary-color {
    color: #061148;
}

html.dark-mode .text-primary-color {
    color: #ffffff;
}

.text-primary-color:hover {
    color: #061148;
}

.pl-2rem {
    padding-left: 2rem;
}

.heading, #navbarNav ul li a.no-white {
    color: #061148;
}

#navbarNav ul li a {
    color: white;
}

/* nav menu active color set start */
.navbar-nav .current-menu-item a,
.navbar-nav .active a,
.footer-nav .current-menu-item a,
.footer-nav .active a {
    color: #dc3545 !important;
    font-weight: bold;
}

.navbar-nav .current-menu-item a:hover,
.navbar-nav .active a:hover,
.footer-nav .current-menu-item a:hover,
.footer-nav .active a:hover {
    color: #dc3545 !important;
}

.nav-item a {
    text-align: center;
}

@media (max-width: 639px) {
    .banner-story {
        font-size: 12px !important;
        line-height: normal !important;
    }
}

@media (max-width: 1300px) {
    .single-page-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .submit-page-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1300px) {
    .single-page-padding {
        padding-left: 15rem;
        padding-right: 15rem;
    }

    .submit-page-padding {
        padding-left: 10rem;
        padding-right: 10rem;
    }
}

@media (max-width: 1025px) {
    #menu-header-menu .menu-icon, .custom-menu-icon {
        position: absolute;
        left: 5rem;
    }
}

@media (max-width: 767px) {
    #menu-header-menu .menu-icon, .custom-menu-icon {
        position: absolute;
        left: 5rem;
    }

    .custom-menu {
        position: absolute;
        margin-top: 10px;
    }

    .custom-menu-icon {
        margin-top: 10px;
    }

    .header-coll {
        margin-bottom: 15px;;
    }
}

@media only screen and (min-width: 991px) and (max-width: 1300px) {
    .footer-border, footer {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .header-logo-responsive {
        width: 100%;
    }
}

/* nav menu active color set end */

.btn-primary {
    background-color: #061148;
}

.btn-primary:hover, .primary-btn:hover {
    background-color: #ffffff;
    border-color: #061148;
    color: #061148 !important;
}

.btn-secondary {
    background-color: white;
    border-color: #061148;
    color: #061148;
}

.btn-secondary:hover {
    background-color: #061148;
}

a {
    color: #061148;
    text-decoration: none;
}

a:hover, .footer-menu li:hover {
    text-decoration: underline;
}

.footer-menu li {
    text-decoration: none;
    list-style: none;
    line-height: 2rem;
}

.footer-menu li a {
    color: white;
    text-decoration: none !important;
}

/* .text-primary {
    color: #061148 !important;
} */

.primary:hover {
    background-color: #061148;
}

.border-dashed-contact {
    border: 2px dashed rgb(211, 47, 47) !important;
    padding: 5rem;
}

.form-control.height {
    height: 3rem !important;
}

/* Style for pagination items */
.pagination .page-numbers {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #061148;
    text-decoration: none;
}

/* Hover effect for pagination items */
.pagination .page-numbers:hover {
    /* background-color: #F39422; */
    background-color: #061148;
    color: #fff;
}

/* Active page number styling */
.pagination .page-numbers.current {
    background-color: #061148;
    color: #fff;
    border: 1px solid #061148;
}

/* Style for prev and next buttons */
.pagination .prev, .pagination .next {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #061148;
}

.pagination .prev:hover, .pagination .next:hover {
    background-color: #061148;
    color: #fff;
}

/* post search start */
.menu-search {
    position: relative;
    display: inline-block;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    margin-top: 10px;;
}

.search-box form {
    display: flex;
    gap: 5px;
}

.search-box input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}

.search-box button {
    background-color: #061148;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.d-none {
    display: none;
}
/* post search end */


/* Post search start */
.search-container {
    position: relative;
}

.search-input {
    height: 45px;
    border-radius: 30px;
    padding-left: 40px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}
/* Post search end */

/* competition start */
/* .competition-img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 10px;
} */

/* .pagination style start */
.pagination .page-item a {
    background-color: #f8f9fa;
    color: #061148;
    text-decoration: none;
}

.pagination .page-item a:hover {
    background-color: #061148;
    color: #fff;
}

.pagination .page-item.active a {
    background-color: #061148;
    color: #fff;
    border: 1px solid #061148;
}
/* .pagination style end */

/* footer menu style start */
.footer-border {
    position: relative;
}

.footer-border::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 7%;
    transform: translateX(-50%);
    height: 0.125rem;
    width: 3rem;
    background-color: rgb(211, 47, 47);
    top: 25px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-menu li {
    display: flex;
    align-items: center;
}

.footer-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.footer-menu .menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu .menu-icon i {
    font-size: 0.9rem;
}

.footer-menu .menu-text {
    font-size: 14px;
    font-weight: bold;
}
/* footer menu style end */

/* emojis start */
.emoji-reactions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: fit-content;
    /* margin: 20px auto; */
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

/* Emoji Button */
.emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.emoji-btn:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.emoji-btn:active {
    transform: scale(0.9);
}

/* Emoji Icon */
.emoji-icon {
    font-size: 24px;
    user-select: none;
}

/* Reaction Count */
.count {
    position: absolute;
    bottom: 35px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 1px 6px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

.icon-container {
    display: inline-block;
    position: relative; /* This makes sure the count badge is positioned relative to the icon */
}

.count-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    padding: 0;
}

.emoji-btn .count:not(:empty) {
    display: block;
}

/* 📌 Mobile & Tablet Responsive */
@media (max-width: 768px) {
    .emoji-reactions {
        gap: 10px; /* Reduce spacing */
        padding: 6px;
        border-radius: 40px;
    }

    .emoji-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .emoji-icon {
        font-size: 20px;
    }

    .count {
        bottom: 25px;
        font-size: 10px;
        padding: 1px 5px;
        min-width: 18px;
    }
}

/* 📌 Extra Small Screens (Mobile) */
@media (max-width: 480px) {
    .emoji-reactions {
        gap: 8px;
        flex-wrap: wrap;
        padding: 5px;
    }

    .emoji-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .emoji-icon {
        font-size: 18px;
    }

    .count {
        bottom: 22px;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
    }
}
/* emojis end */

.ck-editor__editable, .trumbowyg-editor {
    min-height: 1200px !important;
    max-height: 1500px;
    overflow-y: auto;
}

.contact-border::before {
    left: 10% !important;
    top: 30px !important;
}

/* Rating section start */
.star {
    font-size: 35px;
    cursor: pointer;
    color: transparent;
    -webkit-text-stroke: 1px gold; /* Border color */
    transition: 0.3s;
}
.star.rated, .star:hover {
    color: gold;
}
/* Rating section end */

#commentform .trumbowyg-box {
    min-height: 50% !important;
}

p.form-submit {
    text-align: right;
}

/* Fix the Trumbowyg emoji dropdown visibility */
.trumbowyg-dropdown {
    max-height: 250px; /* Adjust height for responsiveness */
    overflow-y: auto; /* Enable scrolling if necessary */
    white-space: normal;
}

/* Ensure the emoji container is fully visible */
.trumbowyg-dropdown-emoji {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px; /* Adjust based on your layout */
    padding: 10px;
    gap: 10px;
}

/* Adjust individual emoji buttons */
.trumbowyg-dropdown-emoji button {
    flex: 1 1 40px; /* Adjust width for responsiveness */
    font-size: 20px;
    text-align: center;
    padding: 5px;
    border: none;
    background: none;
    cursor: pointer;
}

/* Fix positioning issues */
.trumbowyg-box {
    position: relative; /* Ensure dropdown is positioned correctly */
}

/* Prevent overflow issues */
.trumbowyg-editor {
    overflow: visible !important;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .trumbowyg-dropdown-emoji {
        max-width: 280px; /* Reduce width for smaller screens */
    }
    .trumbowyg-dropdown-emoji button {
        flex: 1 1 30px; /* Keep it smaller for mobile */
        font-size: 18px;
    }
}

/* Remove shadow and outline on focus */
.emojionearea.form-control {
    box-shadow: none !important;
    border: 1px solid #ced4da !important;
}

/* Remove shadow on focus */
.emojionearea.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.reactions-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sec-comment {
    flex: 1;
    text-align: center;
    padding: 10px;
    min-width: 250px; /* Ensures responsiveness */
}

/* Vertical Divider */
.comment-sec {
    border-right: 2px solid #ddd;
    border-left: 2px solid #ddd;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* On smaller screens, stack items vertically */
@media (max-width: 999px) {
    .reactions-container {
        flex-direction: column;
    }
    .comment-sec {
        border-right: none;
        border-left: none;
        border-top: 2px solid #ddd;
        border-bottom: 2px solid #ddd;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 15px;
    }

    .reactions-container {
        width: 100%;
    }
}

.competition-alert {
    width: 100%;
    max-width: 75%;
}

@media (max-width: 991px) {
    .competition-alert {
        max-width: 100%;
    }
}

.show-more-btn, #show-more-competitions, #trendingStories {
    width: 20%;
}

@media (max-width: 767px) {
    .show-more-btn, #show-more-competitions, #trendingStories {
        width: 40%;
    }
}

.swiper-slide.custom-width {
    width: 200px !important;
}

body, html {
    overflow-x: hidden;
}

.swiper-container {
    overflow: hidden;
}

.story-img-custom-size {
    height: 300px;
    width: 220px;
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .story-img-custom-size {
        height: 300px;
        width: 275px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .story-img-custom-size {
        height: 300px;
        width: 200px;
    }
}

@media (min-width: 1400px) and (max-width: 1699px) {
    .story-img-custom-size {
        height: 300px;
        width: 175px;
    }
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Dark mode (auto) */
@media (prefers-color-scheme: dark) {
  .btn-close {
    filter: invert(100%) grayscale(100%) brightness(200%);
  }
}

/* OR class-based dark mode */
html.dark-mode .btn-close {
  filter: invert(100%) grayscale(100%) brightness(200%);
}

html.dark-mode .trumbowyg-button-pane {
  background: #1e1e1e;
  border-bottom: 1px solid #444;
}

html.dark-mode .trumbowyg-button-pane button {
  color: #f1f1f1;
}

html.dark-mode .trumbowyg-button-pane button:hover {
  background: #333;
}

html.dark-mode .trumbowyg-button-pane svg {
  fill: #f1f1f1;
  stroke: #f1f1f1;
}

html.dark-mode ::placeholder {
  color: #aaa;
  opacity: 1;
}


.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Optional — Duplicate content for seamless loop */
.marquee-content::after {
  content: attr(data-duplicate);
}

.trending-swiper .swiper-button-next::after,
.trending-swiper .swiper-button-prev::after {
  color: #061148; /* 🔸 change this to your preferred color */
  font-size: 24px; /* optional: make arrows bigger */
  font-weight: bold;
}

/* Optional: adjust hover color */
.trending-swiper .swiper-button-next:hover::after,
.trending-swiper .swiper-button-prev:hover::after {
  color: #061148; /* darker hover color */
}

html.dark-mode .trending-swiper .swiper-button-next::after,
html.dark-mode .trending-swiper .swiper-button-prev::after,
html.dark-mode .trending-swiper .swiper-button-next:hover::after,
html.dark-mode .trending-swiper .swiper-button-prev:hover::after {
  color: #ffff;
}

.pricing-card {
    border-radius: 20px;
    overflow: hidden;
}


/* .pricing-card {
    border-radius: 25px;
    overflow: hidden;
    --bg-color: #ffffff;
    position: relative;
}

.pricing-footer {
    background: #cacbcf;
    padding: 20px 0;
    border-top-left-radius: 60px;
} */

/* Dark Mode */
/* html.dark-mode .pricing-card,
html.dark-mode .pricing-footer {
  --bg-color: #121212;
  --text-color: #ffffff;
  border: 1px solid gray;
}

.pricing-header {
    padding: 20px 0;
    border-bottom: 1px solid gray;
    border-bottom-right-radius: 60px;
    border-bottom-left-radius: 0;
}

.green-text {
    color: #3bb54a !important;
} */
