/*
Theme Name: News Theme
Author: Subash
Version: 1.0
*/
@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
    padding-top: 80px;
}
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Wrap all content in a flex container */
#page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
/* Main content grows to fill available space */
main {
    flex: 1;
}
.container {
    max-width: 1200px; /* change as needed */
}
.btn-primary {
    background: #ed2027;
    color: #fff;
    border-radius: 20px;
    padding: 5px 22px;
    border:1px solid #ed2027;
}
.btn-primary:hover {
    background: #fff;
    color: #ed2027;
    border: 1px solid #ed2027;
}


/* header */
html body header.bg-light {
    padding: 0px 0px;
    background-color: #f4f4f4 !important;
}
.nav .nav-link.active {
  color: #ed2027; /* Highlight color */
}

.nav-item a {
    color:#000;
    margin: 0px;
    padding: 0px !important;
    margin-right: 15px;
}
.nav-item.dropdown a {
    margin-right: 12px!important;
}
.nav-item a:hover, .nav-item a:focus {
    color:#ed2027;
}
.header-social a {
    color:#000;
}
.header-social a:hover {
    color:#ed2027;
}
.header-social {
    padding: 0.5rem;
}
.header-search  {
    width: 255px;
}
.header-search form {
    margin-bottom:0px;
}
/* .header-search form {
    position: relative;
} */
.header-search input[type="search"] {
    max-width: 100%;
    border-radius: 20px;
    padding: 5px 20px;
}
.header-search button {
    background-color: unset;
    border-color: unset;
    color: #000;
    border: unset;
    padding: 0px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(-10px, -50%);
}
.header-search button:hover, .header-search button:active {
    background-color: unset!important;
    border-color: unset!important;
    color:#000;
}
header .dropdown-toggle::after {
    vertical-align: 0.130em;
}
.header-search input[type="search"]:focus {
    outline: unset;
    border-color: unset;
    box-shadow: unset;
}
.header-search form {
    position: relative;
}
.dropdown-menu {
    background: #f4f4f4;
    border: unset;
}
/* Hide the clear (×) button in input type=search */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

input[type="search"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type="search"]::-moz-search-clear {
    display: none;
}
/* Navigation underline animation */
.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  color: #000; /* adjust to your theme color */
  transition: color 0.3s ease;
      text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px; /* thickness of the underline */
  width: 0;
  background-color: #ed2027; /* color of the underline */
  transition: width 0.3s ease-in-out;
}

/* When hovered or active */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Optional: change color for active or hover */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ed2027;
}

.subscribe_content  {
    margin-left: 15px;
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
/* Dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    padding: 10px 0;
}
.dropdown-menu a {
    color: #333;
    padding: 8px 20px!important;
    display: block;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background-color: #f8f9fa;
}
.nav-item .bi-chevron-right {
    font-size: 10px;
    margin-left: -2px;
}
.nav-item .bi-chevron-right:before {
    vertical-align: -.05em!important;
}
.subscribe_button_header {
    background: #ed2027;
    border:1px solid #ed2027;
    color: #fff;
    border-radius: 20px;
    padding: 10px 22px;
    line-height: 0;
}
.login_button_header {
    line-height: 0;
    padding: 16.5px 22px!important;
}
.subscribe_button_header {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.subscribe_button_header:hover {
    background: #fff;
    color: #ed2027;
    border: 1px solid #ed2027;
}
.dropdown-menu a:after {
    display: none;
}
.dropdown-menu a:hover {
    background-color: unset;
}
header.bg-light {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
} 
.profile_button_header {
    background: unset;
    border: unset;
    padding: 0;
}
.profile_button_header:hover i {
    background-color: #fff;
    border: 1px solid #ed2027;
}
.profile_button_header i {
    border-radius: 50%;
    padding: 10px 12px;
    font-size: 15px;
    background-color:#ed2027;
    border: 1px solid #ed2027;
}
#profileDropdown {
    background: #f4f4f4!important;
    border: unset!important;
    border-radius: 8px!important;
    padding: 10px 0!important;
}
#profileDropdown a:hover {
    color:#ed2027!important;
}
@media (max-width: 1024px) {
    .subscribe_button_header {
        padding: 5px 15px;
    }
}
@media (max-width: 980px) {
    .navbar-collapse  .nav-item a {
        padding: 8px 0px !important;
    }
}
@media (max-width: 768px) {
    .subscribe_content  {
        margin-top: 20px;
    }
    .navbar-collapse  .nav-item a {
        padding: 8px 0px !important;
    }
}


/* footer */
.footer_logo {
    max-width: 200px;
}
footer {
    flex-shrink: 0;
}
.footer_social a {
    color:#fff;
}
.footer_social a:hover {
    color:#ed2027;
}
.copy_right_text {
    padding-top:10px;
    border-top: 1px solid gray;
    font-size: 14px;
}
footer h5 {
    margin-bottom:10px;
}
.nav-link.active {
    color:#ed2027!important;
}
#menu-footer-menu .nav-item a:hover, #menu-footer-menu .nav-item a:focus {
    color:#ed2027!important;
}
.footer_social i {
    font-size: 20px;
}
.subscribe_button_footer {
    background: #ed2027;
    border:1px solid #ed2027;
    color: #fff;
    border-radius: 20px;
    padding: 5px 22px;
}
.subscribe_button_footer:hover {
    background: #fff;
    color: #ed2027;
    border: 1px solid #ed2027;
}
.location_footer i {
    vertical-align: top;
    padding: 5px 0px;
}
.footer_location_item {
    margin-left:8px;
}
.footer_last_column {
    padding-left: 50px;   
}
/* Scroll to Top Button Styling */
.scroll-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: #ED2027;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 9px 15px;
    font-size: 15px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease;
    z-index:9;
}
footer .subscribe_content{
    margin-left:0px;
}

.footer_register_contents a {
    color: inherit;
    text-decoration: unset;
}
.footer_register_contents a:hover {
    color: #ED2027;
    text-decoration: unset;
}

/* Hover effect */
.scroll-btn:hover {
    background-color: #ED2027;
}
@media (max-width: 768px) {
    .footer_last_column {
        padding-left: 10px;
    }
    footer {
        text-align: center;
    }
    footer .container .col-md-4 .mt-2 {
        padding-right: 0!important;
    }
}

/* page  content */
.card  {
    border: 1px solid #ccc!important;
    background-color: #f5f5f5;
    padding: 0px;
}
.card-body {
    background-color: unset;
    padding: 20px;
}
.card-body .card-date, .card-body .feed-title {
    color: gray;
    display: inline-block;
    font-size: 15px;
}
.card-footer  {
    background-color: unset;
    border:unset;
    padding: 20px;
    padding-top:10px;
}
.card-body a,.card-footer a {
    background: unset;
    border: unset;
    color: #000;
    padding: 0;
    text-decoration: unset;
}
.card-footer a {
    text-decoration: underline;
}
.card-body a:hover, .card-footer a:hover {
    color: #ed2027;
    background: unset;
}
.card .card-img-top {
    height: 300px;
    background-position: center;
    background-size: cover;
}
.card .card-small-img {
    height: 250px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}
.card_featured_title {
    font-size: 22px;
    text-decoration: unset;
}
.card_featured_title a{
    text-decoration: unset;
}
.card .badge {
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #ed2027 !important;
    position: absolute;
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
    font-size: 16px;
    border-top-right-radius: unset;
}
.no_post_content {
    font-size: 30px;
}
.page-numbers {
    padding: 0px 5px;
    color: inherit;
    text-decoration: unset;
    font-size: 18px;
}
.page-numbers.current {
    color:#ed2027;
}
.card_source_link {
    text-decoration: underline!important;
}
.share-icons {
    z-index: 1000;
    top: -50%;
    left: 100%;
    width: max-content;
    transform: translate(0%, -50%);
    text-align: center;
}
.share-icons i:before {
    color: #000;
}
.share-icons i:hover:before {
    color: #ed2027;
}
.no-copy {
    user-select: none;       /* Disable text selection */
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* contact page */
.contact_info_container a {
    color:inherit;
    text-decoration: unset;
}
.contact_info_container a:hover {
    color:#ed2027;
}
.contact_info_container .p-3 {
    padding-left: 100px !important;
}
.contact-form input:focus, .contact-form input:focus-visible, .contact-form textarea:focus, .contact-form textarea:focus-visible {
    outline: unset;
    box-shadow: unset;
    border-color: #dee2e6;
    border-color:unset
}
.post-like-btn.liked {
    color: #ed2027;
}
.post-like-btn.disabled {
    opacity: 0.6;
    cursor: wait;
}
/* Tooltip style for disabled-like */
.disabled-like {
    position: relative;
}

.disabled-like::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* show above the element */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.disabled-like:hover::after {
    opacity: 1;
}


.card_no_link a {
cursor:default;
}
.card_no_link {
    position: relative;
}
.card_no_link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* show above the element */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.card_no_link:hover::after {
    opacity: 1;
}


.news_no_link {
    position: relative;
}
.news_no_link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 0%;
    left: 25%;
    transform: translate(-50%, 0%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.news_no_link:hover::after {
    opacity: 1;
}

.news_no_link_small {
    position: relative;
}
.news_no_link_small::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 0%;
    left: 55%;
    transform: translate(-50%, 0%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.news_no_link_small:hover::after {
    opacity: 1;
}

.cat_news_no_link {
    position: relative;
}
.cat_news_no_link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 30%;
    left: 60%;
    transform: translate(-60%, -30%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.cat_news_no_link:hover::after {
    opacity: 1;
}


@media (max-width: 786px) {
    .contact_info_container {
        margin-top: 20px;
    }
    .contact_info_container .p-3{
        padding-left: 0 !important;
    }
}

/* single page */
.sidebar_items_container .list-group-item {
    border: unset;
    border-bottom: 1px solid #ccc;
    border-radius: unset;
    padding: 10px;
    padding-left: 0;
}
.sidebar_items_container .list-group-item a {
    color:gray;
    text-decoration: unset;
}
.sidebar_items_container .list-group-item a:hover {
    color:#ed2027;
    text-decoration: unset;
}
.sidebar_items_container {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 100px; /* Distance from top of viewport */
}
.single_news_content {
    padding-right: 80px;
}

/* Optional: ensure it doesn't overflow the container */
@media (min-width: 768px) {
    .sidebar_items_container {
        max-height: calc(100vh - 240px); /* Adjust based on top offset */
        overflow-y: auto;
    }
}

/* login page */
.login-form button.btn, .registration-form button.btn{
    background: #ed2027;
    border: 1px solid #ed2027;
    color: #fff;
    border-radius: 20px;
    text-align: center;
    display: block;
    padding: 5px 22px !important;
}
.login-form button.btn:hover, .registration-form button.btn:hover {
    background: #fff;
    border: 1px solid #ed2027;
    color: #ed2027;
}
.subscribe_button_header a {
    color: inherit;
    text-decoration: unset;
}
.login_register_link {
    text-align: left;
    padding: 20px 0px;
    padding-bottom: 0px;
}
.login_register_link a {
    color: #000;
}
.login_register_link a:hover {
    color: #ed2027;
}

/* profile page */

#profileTabs .nav-item {
    background: #f8f9fa;
    border-bottom: unset;
    border-radius: 10px;
    color:#000;
}
#profileTabs .nav-item button {
    color:#000;
}

/* login page */
.forgot_password_link a {
    color:inherit;
}
.forgot_password_link a:hover {
    color:#ed2027;
}
