/* Preloader */
#preloader {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  opacity:1;
  transition: opacity 0.1s linear; /* faster fade */
}

#preloader.hidden {
  opacity:0;
  pointer-events:none;
}

#preloader .spinner {
  border:3px solid #f3f3f3;
  border-top:3px solid #fc319a;
  border-radius:50%;
  width:30px;
  height:30px;
  animation: spin 0.4s linear infinite; /* faster spin */
}

@keyframes spin {
  0% { transform:rotate(0deg); }
  100% { transform:rotate(360deg); }
}

/* Fast body fade */
body.fade-out { opacity:0; transition: opacity 0.05s linear; }
body.fade-in  { opacity:1; transition: opacity 0.05s linear; }

.owl-nav {
  display: none;
}

/* Custom active tab styles */
.custom-tabs .tab-item .tab-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.custom-tabs .tab-item .tab-btn.active {
  border-bottom:  rgb(245 158 11);
  color: rgb(245 158 11);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-button.active {
  color: #D97706; 
  border-bottom-color: #D97706 !important; 
}


/* Thin horizontal scrollbar */
::-webkit-scrollbar {
  height: 6px;             
}

::-webkit-scrollbar-track {
  background: #e5e7eb;    
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #e5e7eb;
}

img.site_logo {
    width: 160px;
    height: 100%;
}


.banner-ad-box {
    width: 300px;
    height: 330px;
}

.banner-ad-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f9fafb; 
    border: 1px solid #e5e7eb; 
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.banner-ad-inner:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.banner-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem; /* xl */
    padding: 0.25rem;
    transition: transform 0.3s ease;
}

.banner-ad-img:hover {
    transform: scale(1.05);
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Optional: Transition for smooth rotation */
.fa-chevron-down {
    transition: transform 0.2s ease;
}


/* Blog Content Styles - Compact & Responsive */
.rich-text {
    color: #374151;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1rem;
}

/* Headings with better vertical rhythm */
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    font-weight: 700;
    color: #111827;
    margin: 1.5em 0 0.75em;
    line-height: 1.3;
}

.rich-text h1 { font-size: 1.8rem; }
.rich-text h2 { font-size: 1.5rem; }
.rich-text h3 { font-size: 1.25rem; }

/* Paragraphs & Text */
.rich-text p {
    margin: 0 0 1.25rem;
    color: #4b5563;
}

/* Links */
.rich-text a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}
.rich-text a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Lists - more compact */
.rich-text ul,
.rich-text ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}
.rich-text li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

/* Blockquotes - subtle style */
.rich-text blockquote {
    border-left: 3px solid #e5e7eb;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    background-color: #f9fafb;
    font-style: normal;
}

/* Images - responsive with caption style */
.rich-text img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 4px;
}

/* Horizontal Rule - subtle */
.rich-text hr {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

/* Tables - responsive */
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}
.rich-text th,
.rich-text td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.rich-text th {
    background-color: #f3f4f6;
}

/* Code blocks */
.rich-text pre {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.rich-text code {
    font-family: monospace;
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rich-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    .rich-text h1 { font-size: 1.6rem; }
    .rich-text h2 { font-size: 1.3rem; }
    .rich-text h3 { font-size: 1.1rem; }
    
    .rich-text ul,
    .rich-text ol {
        padding-left: 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .rich-text {
        line-height: 1.5;
    }
    .rich-text h1 { font-size: 1.4rem; }
    .rich-text h2 { font-size: 1.2rem; }
    
    .rich-text blockquote {
        padding: 0.5rem;
        margin: 1rem 0;
    }
}