/* ------------------------------------------------------------
    READING PROGRESS BAR
    ------------------------------------------------------------ */
.fid-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 2000; background: transparent; }
.fid-progress-bar { height: 100%; background: var(--bs-warning); width: 0%; transition: width 0.1s ease; }

/* ------------------------------------------------------------
    NAVIGATION (STYLING & HOVER EFFECTS)
    ------------------------------------------------------------ */
.fid-navbar { background: var(--bs-dark); border-bottom: 1px solid var(--bs-warning); padding: 0.5rem 0; }
.fid-navbar .nav-link { color: var(--bs-white) !important; font-weight: 500; transition: var(--fid-transition); position: relative; }
.fid-navbar .nav-link:hover, .fid-navbar .nav-link.active { color: var(--bs-warning) !important; }

.fid-dropdown { background: var(--bs-dark) !important; border: 1px solid var(--bs-warning) !important; border-radius: 0; margin-top: 10px; min-width: 17rem !important; }
.fid-dropdown .dropdown-item { color: var(--bs-white); transition: var(--fid-transition); }
.fid-dropdown .dropdown-item:hover { background: var(--bs-warning); color: var(--bs-dark); }

.navbar-nav .dropdown-menu {
    padding: 0px 10px 0px 10px !important;
}

/* ------------------------------------------------------------
    FLOATING ACTIONS (SHARE & SCROLL)
    ------------------------------------------------------------ */
.fid-action-group { position: fixed; bottom: 30px; right: 30px; z-index: 1500; display: flex; flex-direction: column; gap: 10px; }
.fid-btn-action { width: 50px; height: 50px; border-radius: 0; background: var(--bs-primary); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--bs-warning); transition: var(--fid-transition); }
.fid-btn-action:hover { background: var(--bs-warning); color: var(--bs-dark); }

#fid-share-menu { display: none; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(20px); transition: var(--fid-transition); }
#fid-share-menu.show { display: flex; opacity: 1; transform: translateY(0); }

#fid-scroll-top { display: none; }

@media (max-width: 768px) {
    .fid-action-group { position: fixed; bottom: 20px; right: 10px; }
    /* .fid-btn-action { opacity: 0.5; } */
    .fid-btn-action { background: transparent; color: var(--bs-warning); border: 1px solid var(--bs-warning); }
}

/* POST-INDEX */
/* Decoration Textures */
.bg-text-decoration {
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    z-index: -1;
    user-select: none;
    text-transform: uppercase;
}

/* --- News Section Header --- */
.fid-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 5px solid var(--bs-danger);
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* --- News Card --- */
.fid-news-card {
    background: var(--bs-white);
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-bottom: 3px solid transparent;
}

.fid-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.13);
    border-bottom-color: var(--bs-danger);
}

/* Image wrapper with slanted cut */
.fid-news-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0% 100%);
    flex-shrink: 0;
}

.fid-news-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: grayscale(15%);
}

.fid-news-card:hover img {
    transform: scale(1.07);
    filter: grayscale(0%);
}

/* Card body */
.fid-news-card .card-body {
    padding: 18px 20px 12px;
    background: var(--bs-white);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Multiple category badges */
.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.card-category-badge {
    display: inline-block;
    background: var(--bs-danger);
    color: var(--bs-white);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 14px 3px 8px;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}

/* Card title */
.fid-news-card .card-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--bs-dark);
    transition: color 0.25s;
    max-height: calc(3 * 1.45em);
    overflow: hidden;
    flex-grow: 1;
    margin-bottom: 0;
}

.fid-news-card:hover .card-title { color: var(--bs-danger); }

/* Meta row (author + date) */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary);
    flex-shrink: 0;
}

.card-meta-author { color: var(--bs-dark); }

.fid-news-card .card-date {
    font-size: 0.65rem;
    color: var(--bs-secondary);
    font-weight: 700;
    text-transform: uppercase;
    display: inline;
    margin-bottom: 0;
}

/* Footer bar */
.card-footer-bar {
    padding: 10px 20px;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.card-footer-bar::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--bs-danger);
    transition: width 0.3s ease;
}

.fid-news-card:hover .card-footer-bar::before { width: 100%; }

.card-read-more {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bs-danger);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
    pointer-events: none;
}

.fid-news-card:hover .card-read-more { gap: 10px; }
/* END-POST-INDEX */

/* POST-SHOW */
/* --- Article Header wrapper --- */
.article-header {
    max-width: 860px;
    margin: 0 auto;
}

/* --- Category badges row (multiple) --- */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.article-category {
    display: inline-block;
    padding: 4px 16px;
    background: var(--bs-danger);
    color: var(--bs-white);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    padding-right: 22px;
    text-decoration: none;
    transition: background 0.2s;
}

.article-category:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

/* --- Title & Meta --- */
.article-title {
    font-weight: 900;
    font-size: 2.4rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--bs-dark);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.article-meta strong { color: var(--bs-dark); }

/* --- Featured Image --- */
.featured-image-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.featured-image {
    width: 100%;
    object-fit: contain;
    max-height: 520px;
    display: block;
}

/* --- Article body content wrapper --- */
.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 20px 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--bs-dark);
}

/* --- Tags section --- */
.post-tags-section {
    /* max-width: 860px; */
    margin: 0 auto;
    /* padding: 0 20px; */
}

.tags-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bs-secondary);
    margin-bottom: 10px;
}

/* --- Glassmorphism Tags --- */
.tag-pill {
    display: inline-block;
    padding: 5px 16px;
    background: var(--bs-secondary-soft);
    border: 1px solid var(--bs-border-color);
    font-size: 0.75rem;
    font-weight: 700;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: var(--bs-dark);
    text-decoration: none;
    transition: all 0.25s;
    clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
    padding-right: 20px;
}

.tag-pill:hover {
    background: var(--bs-dark);
    color: var(--bs-warning);
}

/* --- Categories + tags row in page/show --- */
.content-meta-row {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.content-meta-row .content-meta-block {
    flex: 1 1 auto;
}

.content-meta-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bs-secondary);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .article-title { font-size: 1.7rem; }
    .featured-image { max-height: 280px; }
    .article-header, .article-body, .featured-image-wrapper, .post-tags-section, .content-meta-row {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/* END-POST-SHOW */

/* RELATED & NEW POSTS */
.new-post-section,
.related-post-section {
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    margin-bottom: 28px;
    overflow: hidden;
}

/* --- Sidebar Title --- */
.sidebar-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    color: var(--bs-white);
    margin: 0 0 0 0;
    padding: 13px 50px 13px 18px;
    background: var(--bs-dark);
    position: relative;
    overflow: hidden;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 0;
    height: 100%;
    width: 56px;
    background: var(--bs-danger);
    transform: skewX(-14deg);
}

/* --- Sidebar Card (The Link) --- */
.sidebar-card {
    display: flex;
    align-items: stretch;
    text-decoration: none !important;
    background: var(--bs-white);
    padding: 0;
    margin: 0;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--bs-border-color);
    position: relative;
    overflow: hidden;
}

.sidebar-card:last-child { border-bottom: none; }

/* Red sweep on hover */
.sidebar-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--bs-danger);
    transition: width 0.3s ease;
}

.sidebar-card:hover { background: rgba(var(--bs-dark-rgb), 0.025); }
.sidebar-card:hover::before { width: 100%; }

/* --- Thumbnail --- */
.sidebar-img-thumb {
    width: 90px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.4s ease, filter 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.sidebar-card:hover .sidebar-img-thumb {
    transform: scale(1.06);
    filter: grayscale(0%);
}

/* --- Card Body --- */
.sidebar-card-body {
    flex-grow: 1;
    overflow: hidden;
    padding: 10px 12px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-card-date {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bs-danger);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sidebar-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bs-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-card:hover .sidebar-card-title { color: var(--bs-danger); }

/* Container for sidebar widgets */
.post-sidebar { position: sticky; top: 90px; }

@media (max-width: 991px) { .post-sidebar { position: static; } }
/* END RELATED & NEW POSTS */

/* ------------------------------------------------------------
    GLOBAL
    ------------------------------------------------------------ */
img {
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .gjs-cell {
        display: table-cell !important;
    }
}

#content-layout {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* --- Pagination Styling (Bootstrap 5.1 Override) --- */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    border: none;
    background: var(--bs-white);
    color: var(--bs-dark);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: all 0.3s;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%); /* Sporty Slanted Link */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Active State */
.pagination .page-item.active .page-link {
    background: var(--bs-danger) !important;
    color: var(--bs-white) !important;
    box-shadow: 0 8px 15px rgba(139, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Hover State */
.pagination .page-link:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Disabled State */
.pagination .page-item.disabled .page-link {
    background: var(--bs-secondary-soft);
    color: var(--bs-secondary);
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.55;
    box-shadow: none;
}

/* Special Prev/Next Buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    background: var(--bs-danger);
    color: var(--bs-white);
}

@media (max-width: 768px) {
    .t-section { font-size: 2rem; }
    .pagination .page-link { padding: 8px 15px; font-size: 0.9rem; }
}

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-move { cursor: move; }