/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/
/* Change Bootstrap color variables */
:root {
  --bs-primary: #D12828;
  --bs-link-color: #D12828;
  --bs-link-hover-color: #000000;
}

/* Apply to Bootstrap buttons */
.btn-primary,
.btn-outline-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-outline-primary:hover {
  background-color: #000000;
  border-color: #000000;
  color: #fff;
}

/* Focus/active state for buttons */
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-primary:active,
.btn-outline-primary:active {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Make all <a> tags match */
a {
  color: var(--bs-link-color);
  text-decoration: none;
}

/* Light gray background for category badges */
a.badge.bg-primary-subtle.text-primary-emphasis {
  background-color: #f0f0f0 !important; /* Light gray */
  color: #000 !important; /* Black text */
  border: none !important;
}

/* Hover state */
a.badge.bg-primary-subtle.text-primary-emphasis:hover {
  background-color: #D12828 !important; /* Your brand color */
  color: #fff !important; /* White text */
}

a:hover {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

/* Pagination link default state */
.page-link {
  color: #000; /* Black text */
  border: 1px solid #000; /* Black border */
}

/* Hover effect */
.page-link:hover {
  background-color: #000; /* Black background on hover */
  color: #fff; /* White text */
  border-color: #000;
}

/* Active (current page) state */
.page-item.active .page-link {
  background-color: #D12828 !important; /* Red background */
  color: #fff !important; /* White text */
  border: 1px solid #D12828 !important; /* Red border */
}

/* Focus state (when clicked) */
.page-link:focus {
  background-color: #D12828 !important; /* Red background on focus */
  color: #fff !important;
  border: 1px solid #D12828 !important;
  box-shadow: none !important; /* Remove blue glow */
}

/* post title shower in lang */
.single-post h1.entry-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
}


/* Hide author name site-wide - unique selector for Bootscore */
.bscore-post-meta .byline,
.bscore-post-meta .byline a,
.byline,
.author,
.post-author {
    display: none !important;
}

/* Arrow list style (only applies to UL with class arrow-list) */
ul.arrow-list {
  list-style: none !important; /* Remove default bullets */
  padding-left: 0 !important;
}

ul.arrow-list li {
  position: relative;
  padding-left: 25px !important; /* Space for the icon */
}

ul.arrow-list li::before {
  content: "\f105"; /* Font Awesome unicode for fa-angle-right */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important; /* Solid style */
  position: absolute;
  left: 0;
  top: 0;
  color: #D12828 !important; /* Red arrow */
  font-size: 14px; /* Adjust icon size */
}

/* Hide breadcrumb section on Home page and multiple specific pages */
.page-id-2131 .breadcrumbhomegk,
.page-id-2133 .breadcrumbhomegk,
.page-id-57632 .breadcrumbhomegk {
    display: none !important;
}

/* Ensure Elementor image alignment works on frontend */
.elementor-widget-text-editor img.alignleft {
  display: inline-block;
  float: left;
  margin: 0 15px 15px 0;
}

.elementor-widget-text-editor img.alignright {
  display: inline-block;
  float: right;
  margin: 0 0 15px 15px;
}

.elementor-widget-text-editor img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: none;
}



/* Hide Bootscore single post Prev/Next navigation */
.single-post nav[aria-label="bs page navigation"] {
    display: none !important;
}


/* PETITION PAGE CSS */
.table-responsive{
font-family: 'Montserrat';
}
#petitions_filed_tbl_wrapper{
    width: 99% !important;
}
#petitions_filed_tbl_wrapper .dataTables_filter input{
width:auto;
}
table#petitions_filed_tbl {
    border: 1px solid #000;
    border-collapse: collapse;
}
table#petitions_filed_tbl i[class*='fa']{
	font-size:24px;
}
table#petitions_filed_tbl th {
    text-align: center;
}
table#petitions_filed_tbl th, table#petitions_filed_tbl td {
    vertical-align: middle;
    color: #000;
    font-size: 0.8em;
	border:1px solid #000;
}

table#petitions_filed_tbl td[data-column='Sr. No.'], table#petitions_filed_tbl td[data-column='Case No.'], table#petitions_filed_tbl td[data-column='Forum'], table#petitions_filed_tbl td[data-column='Order'], table#petitions_filed_tbl td[data-column='Download Notice'] {
    text-align: center;
}
table#tbl_sort{
border-collapse: collapse;
    font-family: Montserrat;
    font-size: 12px;	
}

/* mahalogo edit*/
.mahalogoedit {
    height: 55px !important;
}

/* Mobile view */
@media (max-width: 768px) {
    .mahalogoedit {
        height: 25px !important;
    }
}


/* analytify footer visitor count css start */
.visitor-counter {
    display: flex;
    gap: 5px;
    justify-content: left;
    align-items: flex-start;
}

.visitor-counter span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 25px;
    background: linear-gradient(to bottom, #1a1a1a, #000);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border: 1px solid #333;
    font-family: monospace;
}
/* analytify footer visitor count css end */

/* Voice search scc in header START CODE */
/* Base sizing uses rem so zooming scales everything consistently */
:root {
  --btn-size: 2.25rem; /* button width/height (scales with font-size and browser zoom) */
  --gap: 0.5rem;
  --radius: 0.5rem;
  --accent: #f05;
  --voice-bg: #555;
}

/* Container - allow wrapping when space is tight */
.wp-voice-search-form {
    display: flex;
    align-items: center;
    gap: var(--gap);
    position: relative;
    width: 100%;
    max-width: 60rem; /* practical maximum width on wide screens */
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

/* Input grows to fill available space, but won't force the buttons out.
   min-width:0 is critical to allow flex children to shrink inside overflowed containers. */
.wp-voice-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    font-size: 1rem;
    line-height: 1.2;
    border: 1px solid Black;
    border-radius: var(--radius);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Buttons are square, accessible size, and remain visible when zoomed */
.wp-voice-btn,
.wp-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-size);
    height: var(--btn-size);
    min-width: var(--btn-size);
    min-height: var(--btn-size);
    border: none;
    border-radius: calc(var(--radius) / 1.2);
    cursor: pointer;
    background-color: var(--accent);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    box-sizing: border-box;
    padding: 0;
}

/* Voice button variant */
.wp-voice-btn {
    background-color: var(--voice-bg);
}

/* Make icons scale nicely inside buttons */
.wp-voice-btn i,
.wp-search-btn i {
    font-size: 1rem; /* scales with zoom */
    display: block;
}

/* Visible focus outlines for keyboard accessibility */
.wp-voice-btn:focus,
.wp-search-btn:focus,
.wp-voice-search-input:focus {
    outline: 3px solid rgba(0,0,0,0.12);
    outline-offset: 2px;
}

/* Popup positioned relative to the voice button; will not overflow input area */
.wp-speak-popup {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem); /* below the form */
    right: 0; /* align to the right side of the form by default */
    background: #e53935;
    color: white;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* When popup should appear near the voice button specifically (JS toggles class) */
.wp-speak-popup[class~="--anchor-voice"] {
    right: var(--btn-size); /* move left so it sits next to voice button */
}

/* Responsive behavior: allow buttons to wrap beneath the input if extremely zoomed / narrow */
@media (max-width: 420px) {
    .wp-voice-search-form {
        gap: 0.4rem;
    }
    .wp-voice-btn,
    .wp-search-btn {
        width: 2rem;
        height: 2rem;
    }
}

/* If the container becomes very narrow, stack buttons below input for best usability */
@media (max-width: 360px) {
    .wp-voice-search-form {
        flex-wrap: wrap;
    }
    .wp-voice-search-input {
        width: auto;
    }
    .wp-voice-btn,
    .wp-search-btn {
        margin-top: 0.25rem;
    }
}
/* Voice search scc in header END CODE */

/* Maintaince ticker hider when no use, code css dont remove */



/* End -  Maintaince ticker hider when no use, code css dont remove */


/* Force visible focus on Smart Slider slides */
.n2-ss-slide:focus,
.n2-ss-slide:focus-visible {
    outline: 3px solid #0073ff !important;
    outline-offset: -3px !important; /* brings border inside */
    position: relative;
    z-index: 9999;
}

/* If inner layer is receiving focus */
.n2-ss-layer:focus,
.n2-ss-layer-content:focus {
    outline: 3px solid #0073ff !important;
    outline-offset: -3px !important;
}

/* Extra fix for clickable YouTube slides */
.n2-ss-slide[role="button"]:focus {
    box-shadow: 0 0 0 3px #0073ff inset !important;
}