/* FAB speed-dial */
#float-fab-group {
    position: fixed;
    bottom: 100px;
    right: 22px;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.fab-item {
    position: relative;
    display: flex;
    align-items: center;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s, box-shadow 0.2s, background 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.26);
    color: #fff;
}

#float-contact-btn {
    background: #0b5ed7;
}

#float-contact-btn:hover {
    background: #0a4fc4;
}

.fab-wa {
    background: #25D366;
}

.fab-wa:hover {
    background: #1ebe5d;
}

.fab-call {
    background: #0b5ed7;
}

.fab-call:hover {
    background: #0a4fc4;
}

.fab-label {
    position: absolute;
    right: 58px;
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.18s, transform 0.18s;
}

.fab-label::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1a1a2e;
    border-right-width: 0;
}

.fab-item:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

/* Action items: collapsed by default */
.fab-action {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.8);
    transition: opacity 0.22s, transform 0.22s;
}

.fab-action:nth-child(1) {
    transition-delay: 0.08s;
}

.fab-action:nth-child(2) {
    transition-delay: 0.04s;
}

.fab-action:nth-child(3) {
    transition-delay: 0s;
}

#float-fab-group.open .fab-action {
    opacity: 1;
    pointer-events: all;
    transform: none;
}

#float-fab-group.open .fab-action:nth-child(1) {
    transition-delay: 0.12s;
}

#float-fab-group.open .fab-action:nth-child(2) {
    transition-delay: 0.07s;
}

#float-fab-group.open .fab-action:nth-child(3) {
    transition-delay: 0.02s;
}

/* Main CTA toggle button */
.fab-main {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0b5ed7 0%, #1e7cf0 100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s, box-shadow 0.2s;
    animation: fab-pulse 2.8s infinite;
}

.fab-main:hover {
    transform: scale(1.1) !important;
}

#float-fab-group.open .fab-main {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: rotate(45deg);
    box-shadow: 0 6px 22px rgba(220, 38, 38, 0.4);
    animation: none;
}

#float-fab-group.open .fab-main:hover {
    transform: rotate(45deg) scale(1.1) !important;
}

#fab-main-item .fab-label {
    right: 66px;
    font-size: 13px;
    padding: 7px 14px;
}

@keyframes fab-pulse {
    0% {
        box-shadow: 0 4px 18px rgba(11, 94, 215, 0.3), 0 0 0 0 rgba(11, 94, 215, 0.45);
    }

    100% {
        box-shadow: 0 4px 18px rgba(11, 94, 215, 0.3), 0 0 0 16px rgba(11, 94, 215, 0);
    }
}

/* Modal header */
#contactModal .modal-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #1e7cf0 100%);
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
}

#contactModal .modal-title {
    font-size: 18px;
    font-weight: 700;
}

#contactModal .modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

#contactModal {
    font-family: "DM Sans", sans-serif;
}

#contactModal .form-control {
    font-family: "DM Sans", sans-serif;
}

/* Success state */
#float-success-msg {
    display: none;
    text-align: center;
    padding: 10px 0 6px;
}

#float-success-msg .fs-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

#float-success-msg h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

#float-success-msg p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* --------- */

/* Footer address block padding (mobile only) */
@media (max-width: 767.98px) {
    .footer-address-wrap {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Footer accordion dark theme (mobile only) */
.footer-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-color: #adb5bd;
    --bs-accordion-btn-color: #adb5bd;
    --bs-accordion-active-color: #adb5bd;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.12);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 1.5rem;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-body-padding-y: 0.5rem;
    border-top: 1px solid #343a40;
    border-bottom: 1px solid #343a40;
}

/* ------------ Signle Blog post css -------- */
.sk {
    background: #e2e5ea;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: sk-shimmer 1.5s infinite;
}

@keyframes sk-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.sk-pill {
    width: 90px;
    height: 28px;
    border-radius: 20px;
}

.sk-title {
    width: 60%;
    height: 36px;
}

.sk-title-sm {
    width: 45%;
    height: 22px;
}

.sk-w-25 {
    width: 25% !important;
}

.sk-w-60 {
    width: 60% !important;
}

.sk-w-75 {
    width: 75% !important;
}

.sk-w-80 {
    width: 80% !important;
}

.sk-w-85 {
    width: 85% !important;
}

.sk-w-90 {
    width: 90% !important;
}

.sk-meta {
    width: 80px;
    height: 16px;
    border-radius: 4px;
}

.sk-hero-img {
    width: 100%;
    height: 420px;
}

.sk-line {
    width: 100%;
    height: 14px;
}

.sk-block-img {
    width: 100%;
    height: 260px;
}

.sk-card {
    width: 100%;
    height: 200px;
}

.sk-card-sm {
    width: 100%;
    height: 160px;
}

.sk-rel-card {
    width: 100%;
    height: 280px;
}

.share-btn-hover {
    width: 38px;
    height: 38px;
    min-width: 38px;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}

.share-btn-hover:hover {
    background: #1a1a2e;
    color: #fff !important;
    border-color: #1a1a2e !important;
}

.post-nav-hover {
    transition: background .2s, border-color .2s;
}

.post-nav-hover:hover {
    background: #f5f6f8;
    border-color: #b0b8c4 !important;
}

.category-link-hover {
    transition: color .15s;
}

.category-link-hover:hover span {
    color: var(--bs-primary) !important;
}

.category-link-hover:hover svg {
    stroke: var(--bs-primary);
}

.social-follow-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}

.social-follow-btn:hover {
    background: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
}


/* =========================================
   Auto TOC with Toggle - Rajcomm Theme
   ========================================= */
.rc-toc-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.rc-toc-wrap:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Primary accent top border */
.rc-toc-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0b5ed7;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* TOC Header with Toggle Button */
.rc-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

.rc-toc-header:hover {
    background-color: #f9fafb;
}

.rc-toc-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    pointer-events: none;
}

/* Toggle Chevron */
.rc-toc-toggle-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.rc-toc-header[aria-expanded="true"] .rc-toc-toggle-icon {
    transform: rotate(180deg);
    color: #0b5ed7;
}

/* TOC Body - Collapsible */
.rc-toc-body {
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
    opacity: 1;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.rc-toc-body.rc-toc-collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
}

/* TOC List */
.rc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rc-toc-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-toc-list a {
    display: block;
    padding: 0.8rem 0.75rem;
    /* border-radius: 0.375rem; */
    text-decoration: none;
    color: #374151;
    font-size: 0.94rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

.rc-toc-list a:hover {
    background-color: #f3f4f6;
    color: #0b5ed7;
    border-left-color: #0b5ed7;
    padding-left: 1rem;
}

/* Active state while scrolling */
.rc-toc-list a.rc-toc-active {
    background-color: #eff6ff;
    color: #0b5ed7;
    border-left-color: #0b5ed7;
    font-weight: 600;
}

/* Indentation for H3-H6 */
.rc-toc-list .toc-h2 {
    padding-left: 0.75rem;
}

.rc-toc-list .toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.rc-toc-list .toc-h4 {
    padding-left: 2.25rem;
    font-size: 0.87rem;
}

.rc-toc-list .toc-h5 {
    padding-left: 3rem;
    font-size: 0.84rem;
}

.rc-toc-list .toc-h6 {
    padding-left: 3.5rem;
    font-size: 0.84rem;
}

/* Mobile: full-width tap area */
@media (max-width: 767.98px) {
    .rc-toc-wrap {
        margin-bottom: 1.5rem;
    }

    .rc-toc-header {
        padding: 1rem 1.25rem;
    }

    .rc-toc-body {
        padding: 0 1.25rem 1.1rem 1.25rem;
    }

    .rc-toc-body.rc-toc-collapsed {
        padding: 0 1.25rem;
    }
}