/* ============================================
   SLIMRCHAT CONTENT STYLES
   Page widgets, cards, sections
   ============================================ */

/* ============================================
   RESPONSIVE TITLE TRUNCATION
   Desktop shows full title, mobile shows truncated
   ============================================ */
.title-truncated { display: none; }
@media (max-width: 767px) {
    .title-full { display: none !important; }
    .title-truncated { display: inline !important; }
    /* Disable CSS line-clamp on mobile homepage — PHP truncation handles it */
    .is-homepage .picks-card-title,
    .is-homepage .post-card-title,
    .is-homepage .small-post-title,
    .mobile-latest-card-title {
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
}

/* ============================================
   HOMEPAGE BODY STYLES
   ============================================ */
body.is-homepage {
    background-color: #e8f4f6;
}

/* Override any theme containers on homepage */
body.is-homepage .wrap,
body.is-homepage .container,
body.is-homepage .pageWrap,
body.is-homepage .bigContainer,
body.is-homepage .flex,
body.is-homepage .main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* Prevent horizontal scroll */
body.is-homepage {
    overflow-x: hidden;
}

/* Reset any theme grid/flex on homepage content */
body.is-homepage .widget-container * {
    box-sizing: border-box;
}

/* ============================================
   COMMON CONTAINER
   ============================================ */
.widget-container {
    padding: 40px 0;
    max-width: calc(100% - 230px);
    margin: 0 auto;
    box-sizing: border-box;
}

.widget-container + .widget-container {
    padding-top: 20px;
}

/* Mobile-only Latest section - hidden on desktop */
.mobile-latest-section {
    display: none;
}

/* Mobile-only ad section - hidden on desktop */
.mobile-only-ad-section {
    display: none;
}

/* Mobile Latest Cards - horizontal layout */
.mobile-latest-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-latest-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.mobile-latest-card:hover {
    opacity: 0.85;
}

.mobile-latest-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 14px 14px 16px;
}

.mobile-latest-card-tag {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
}

.mobile-latest-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #004559;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-latest-card-date {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #888;
}

.mobile-latest-card-image {
    width: 120px;
    min-height: 100px;
    overflow: hidden;
}

.mobile-latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty column placeholder for 4-col grid alignment */
.empty-column {
    /* intentionally empty to maintain grid structure */
}

/* ============================================
   SECTION HEADERS - INTER BOLD
   ============================================ */
.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #004559;
    margin: 0;
}

.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header-flex h2 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #004559;
    margin: 0;
}

/* ============================================
   SEE MORE BUTTONS
   ============================================ */
.see-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 4px 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    transform: scale(0.9);
    transform-origin: right center;
}

.see-more-button:hover { opacity: 0.85; }

.see-more-button .arrow-circle {
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.see-more-button .arrow-circle svg { width: 12px; height: 12px; }

/* ============================================
   FEATURED POSTS
   ============================================ */
.forum-posts-widget {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.featured-post {
    position: relative;
    border-radius: 10px;
    overflow: hidden !important;
    aspect-ratio: 16 / 10;
    min-width: 0;
    max-width: 100%;
}

.featured-post a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.featured-post-image,
.featured-post img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
}

.featured-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.featured-post-tag {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-post-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 46px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    margin: 0;
}

.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
}

.latest-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.small-post-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    padding: 7px;
    background-color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.small-post-card:hover { opacity: 0.85; }

.small-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 8px 8px 10px;
}

.small-post-tag {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    transform: scale(0.85);
    transform-origin: left center;
}

.small-post-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-post-date {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #888;
    transform: scale(0.8);
    transform-origin: left center;
}

.small-post-image {
    width: 120px;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.small-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   PICKS WIDGET
   ============================================ */
.picks-widget {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: stretch;
}

.advert-space {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.advert-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: #888;
    transform: scale(0.85);
    flex-shrink: 0;
}

.advert-placeholder {
    width: 100%;
    flex: 1;
    min-height: 400px;
    background-color: transparent;
    border-radius: 10px;
}

.picks-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.picks-posts {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 20px;
    align-items: stretch;
}

.picks-featured {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.picks-featured a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.picks-featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.picks-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picks-featured-content {
    padding: 18px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.picks-featured-tag {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    transform: scale(0.85);
    transform-origin: left center;
}

.picks-featured-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #004559;
    line-height: 1.15;
    margin: 0;
}

.picks-featured-date {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #888;
    transform: scale(0.8);
    transform-origin: left center;
    margin-top: auto;
}

.picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.picks-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.picks-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.picks-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.picks-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picks-card-content {
    padding: 12px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.picks-card-tag {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    transform: scale(0.85);
    transform-origin: left center;
}

.picks-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.picks-card-date {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #888;
    transform: scale(0.8);
    transform-origin: left center;
    margin-top: auto;
}

.picks-card:hover, .picks-featured:hover { opacity: 0.9; }

/* ============================================
   REAL STORIES
   ============================================ */
.real-stories-widget {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.story-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.story-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.story-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    padding-top: 80px;
        padding-left: 20px;
    padding-right: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.story-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.story-card:hover { opacity: 0.9; }

.advert-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.advert-horizontal .advert-placeholder {
    flex: 1;
    max-width: 728px;
    min-height: 100px !important;
    height: 100px !important;
}

.advert-horizontal .advert-label {
    writing-mode: vertical-rl;
}

/* Square Ad (for mobile) */
.advert-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.advert-square .advert-placeholder {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.advert-square .advert-label {
    writing-mode: horizontal-tb;
}

/* Responsive Ad - Horizontal on desktop, Square on mobile */
.advert-responsive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.advert-responsive .advert-placeholder {
    flex: 1;
    max-width: 728px;
    min-height: 100px !important;
    height: 100px !important;
    max-height: 100px !important;
}

.advert-responsive .advert-label {
    writing-mode: vertical-rl;
}

/* ============================================
   POST CARDS
   ============================================ */
.category-section .section-header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-section .section-header-grid h2 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #004559;
    margin: 0;
}

.category-section .section-header-grid .see-more-button {
    /* flex positions this correctly */
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.category-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.category-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.post-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.post-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-card-tag {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-date {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

.post-card:hover { opacity: 0.9; }

.advert-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.advert-column .advert-placeholder {
    width: 100%;
    height: 250px;
}

.category-ad-wrapper {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.divider-wrapper { grid-column: 1 / -1; padding-top: 20px; }
.divider-wrapper-full { grid-column: 1 / -1; padding-top: 20px; }
.divider-line { width: 100%; height: 1px; background-color: #c5d8dc; margin-bottom: 10px; }

/* ============================================
   LATEST CHATS
   ============================================ */
.latest-chats-widget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.chat-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.chat-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    padding: 20px;
}

.chat-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #888;
    transform: scale(0.85);
    transform-origin: left center;
}

.chat-card:hover { opacity: 0.9; }

/* ============================================
   CTA BANNERS
   ============================================ */
.cta-banner {
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.cta-banner-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0;
}

.cta-button-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1.5px solid #004559;
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 6px 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-outline:hover { background: rgba(0, 69, 89, 0.08); }

.cta-button-outline .arrow-circle {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button-outline .arrow-circle svg { width: 14px; height: 14px; }

/* Reduce gap after CTA banner */
.cta-banner + .section-header-flex,
.widget-container:has(.cta-banner) + .widget-container {
    padding-top: 25px;
}

.cta-banner-dark {
    background: #004559;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-banner-dark .cta-banner-title {
    color: #fff;
    text-align: left;
}

.cta-banner-dark .cta-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cta-button-gradient {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 8px 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-gradient:hover { opacity: 0.9; }

.cta-button-gradient .arrow-circle {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button-gradient .arrow-circle svg { width: 12px; height: 12px; }

/* ============================================
   CATEGORY PAGE HEADER
   ============================================ */
.category-page-wrapper,
.tag-page-wrapper {
    background-color: #e8f4f6;
    min-height: 100vh;
    overflow-x: hidden;
}

.category-page-wrapper .widget-container,
.tag-page-wrapper .widget-container {
    max-width: 1400px;
    padding: 40px;
}

.category-page-wrapper .widget-container + .widget-container,
.tag-page-wrapper .widget-container + .widget-container {
    padding-top: 20px;
}

.category-page-header {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 40px 30px;
}

.category-page-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #004559;
    line-height: 1.1;
    margin: 0 0 15px;
    max-width: 700px;
}

.category-page-intro {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 588px;
    margin-bottom: 25px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.category-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 10px 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-button:hover { opacity: 0.9; }

.category-button .arrow-circle {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-button .arrow-circle svg { width: 12px; height: 12px; }

/* ============================================
   TEAM CARDS
   ============================================ */
.team-section {
    background-color: #e8f4f6;
    padding: 40px 0;
}

.team-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.team-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.team-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 15px;
    text-align: left;
}

.team-card-name {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #004559;
    margin: 0 0 5px;
}

.team-card-role {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
}

.team-card:hover { opacity: 0.9; }
.team-card-static { cursor: default; }
.team-card-static:hover { opacity: 1; }

/* ============================================
   BLOG POST STYLES
   ============================================ */
body.single-post {
    overflow-x: hidden;
}

.blog-wrapper {
    background: #fff;
}

.post-bottom-sections {
    background-color: #e8f4f6;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
}

.article-category:hover {
    opacity: 0.8;
}

.article-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #004559;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.article-meta {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1rem;
    color: #888;
    margin-bottom: 25px;
}

.article-meta a {
    color: #004559;
    text-decoration: underline;
    font-weight: 700;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.85;
}

.share-button svg {
    width: 16px;
    height: 16px;
}

.article-intro {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #004559;
    margin-top: 25px;
    font-weight: 400;
}

.featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

.article-content > p:first-child {
    font-size: 17px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 20px;
}

/* ---- POST HEADINGS (article-content) ----
   H3 intentionally matches H2 visually for SEO flexibility.
   !important overrides global heading rules in all.min.css */
.article-content h2,
.article-content h3 {
    font-family: "ClashDisplay-Variable", sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #004559 !important;
    line-height: 1.25 !important;
    margin: 35px 0 18px 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

.article-content h4 {
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #004559 !important;
    line-height: 1.35 !important;
    margin: 28px 0 12px 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

.article-content h5 {
    font-family: "Inter", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #555 !important;
    line-height: 1.35 !important;
    margin: 24px 0 10px 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* ---- PAGE HEADINGS (sitepage content) ----
   Same hierarchy as posts, for Terms of Use etc. */
.content.sitepage h1,
.content.sitepage .text h1 {
    font-family: "ClashDisplay-Variable", sans-serif !important;
    font-size: 36px !important;
    font-weight: 500 !important;
    color: #004559 !important;
    line-height: 1.15 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.content.sitepage h2,
.content.sitepage .text h2,
.content.sitepage h3,
.content.sitepage .text h3 {
    font-family: "ClashDisplay-Variable", sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #004559 !important;
    line-height: 1.25 !important;
    margin: 35px 0 18px 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

.content.sitepage h4,
.content.sitepage .text h4 {
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #004559 !important;
    line-height: 1.35 !important;
    margin: 28px 0 12px 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Page body text baseline */
.content.sitepage .text p,
.content.sitepage .text li {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

.content.sitepage .text p {
    padding-bottom: 20px;
}

.content.sitepage .text a {
    color: #004559;
    text-decoration: underline;
}

.content.sitepage .text a:hover {
    color: #00c9a7;
}

.content.sitepage .text ul {
    list-style: disc;
    margin: 0 0 25px 25px;
}

.content.sitepage .text ol {
    list-style: decimal;
    margin: 0 0 25px 25px;
}

.content.sitepage .text li {
    padding-bottom: 5px;
}

/* First heading on page shouldn't have top margin */
.content.sitepage .text > h1:first-child,
.content.sitepage .text > h2:first-child,
.content.sitepage .text > h3:first-child {
    margin-top: 0 !important;
}

.article-content blockquote {
    border-left: 4px solid #00c9a7;
    padding: 20px 25px;
    margin: 30px 0;
    background-color: #f8fafa;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.article-content img {
    border-radius: 10px;
    margin: 30px 0;
    max-width: 100%;
}

.article-content a {
    color: #004559;
    text-decoration: underline;
}

.article-content a:hover {
    color: #00c9a7;
}

/* Constrain tables to fit within content */
.article-content table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    table-layout: fixed;
}

.article-content table td,
.article-content table th {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content table tr:first-child td,
.article-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #004559;
}

/* Constrain images with inline width/height */
.article-content img {
    border-radius: 10px;
    margin: 30px 0;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.in-article-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.in-article-ad .advert-label {
    writing-mode: vertical-rl;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: #888;
}

.in-article-ad .advert-placeholder {
    flex: 1;
    max-width: 728px;
    height: 90px;
    background-color: #d5d5d5;
    border-radius: 6px;
}

/* Article Tag Pills */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.article-tags-label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #004559;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 8px 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tag-pill:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.article-tag-pill .arrow-circle {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-tag-pill .arrow-circle svg {
    width: 14px;
    height: 14px;
}

/* Blog Sidebar */
.blog-post-layout .sidebar {
    position: sticky;
    top: 60px;
}

.blog-post-layout .sidebar-section {
    margin-bottom: 30px;
}

.blog-post-layout .sidebar-section-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #004559;
    margin-bottom: 20px;
}

.blog-post-layout .sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post-layout .sidebar-card {
    display: flex;
    flex-direction: column;
    background-color: #e8f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-layout .sidebar-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.blog-post-layout .sidebar-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-post-layout .sidebar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-layout .sidebar-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-post-layout .sidebar-card-tag {
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    transform: scale(0.85);
    transform-origin: left center;
}

.blog-post-layout .sidebar-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0;
}

.blog-post-layout .sidebar-card-date {
    font-family: "Inter", sans-serif;
    font-size: 8px;
    color: #888;
    transform: scale(0.8);
    transform-origin: left center;
}

.blog-post-layout .sidebar-card:hover {
    opacity: 0.9;
}

.blog-post-layout .sidebar-cta {
    display: block;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    border-radius: 10px;
    padding: 25px 20px;
    text-decoration: none;
    position: relative;
}

.blog-post-layout .sidebar-cta-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0;
    padding-right: 40px;
}

.blog-post-layout .sidebar-cta-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-layout .sidebar-cta-button svg {
    width: 16px;
    height: 16px;
}

.blog-post-layout .sidebar-cta:hover {
    opacity: 0.9;
}

.blog-post-layout .sidebar-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.blog-post-layout .sidebar-ad .advert-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: #888;
}

.blog-post-layout .sidebar-ad .advert-placeholder {
    width: 100%;
    height: 250px;
    background-color: #b8cacd;
    border-radius: 10px;
}

/* ============================================
   USEFUL TOOLS PAGE STYLES
   ============================================ */

/* Hide overflow on tools page */
body.page-template-useful-tools {
    overflow-x: hidden;
}

/* Hide any default page wrapper/content that theme might add */
body.page-template-useful-tools .pageWrap,
body.page-template-useful-tools .page-content,
body.page-template-useful-tools .entry-content,
body.page-template-useful-tools > .container,
body.page-template-useful-tools .topSection,
body.page-template-useful-tools .content-area,
body.page-template-useful-tools .content.sitepage,
body.page-template-useful-tools .sitepage,
body.page-template-useful-tools .bigContainer,
body.page-template-useful-tools .container.bottmain {
    display: none !important;
}

/* Override any white backgrounds on tools page elements */
body.page-template-useful-tools .tools-wrapper,
body.page-template-useful-tools .tools-header,
body.page-template-useful-tools .tools-container {
    background-color: transparent !important;
}

body.page-template-useful-tools .tools-wrapper {
    background-color: #e8f4f6 !important;
}

/* Ensure tools wrapper shows */
body.page-template-useful-tools .tools-wrapper {
    display: block !important;
}

.tools-wrapper {
    background-color: #e8f4f6;
    min-height: 100vh;
    overflow-x: hidden;
}

.tools-container {
    max-width: calc(100% - 230px);
    margin: 0 auto;
    padding: 60px 0;
}

.tools-header {
    max-width: 600px;
    margin-bottom: 50px;
    background: transparent;
}

.tools-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #004559;
    line-height: 1.1;
    margin: 0 0 25px 0;
}

.tools-intro {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
}

.tool-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card-image::before {
    content: '';
    position: absolute;
    width: 45%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border-radius: 50%;
    z-index: 1;
}

.tool-card-image img {
    position: relative;
    width: 35%;
    height: auto;
    object-fit: contain;
    z-index: 2;
}

.tool-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #fff;
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    z-index: 3;
}

.tool-card-content {
    background-color: #fff;
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.tool-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0;
}

/* ============================================
   OUR STORY / ABOUT PAGE STYLES
   ============================================ */

/* Hide the live prices/chats bar on about pages */
body.page-template-ourstory .header-live { display: none !important; }

.about-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
}

.about-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #004559;
    line-height: 1.1;
    margin: 0 0 30px 0;
}

.about-content {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:first-of-type {
    font-size: 17px;
    line-height: 1.7;
}

/* Manifesto Box */
.manifesto-box {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.manifesto-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #004559;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.manifesto-intro {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #004559;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.manifesto-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #004559;
    line-height: 1.5;
}

.manifesto-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
}

.manifesto-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #004559;
    font-weight: bold;
}

.manifesto-list li:last-child {
    margin-bottom: 0;
}

/* Bottom sections wrapper (Team + Latest Chats) */
.ourstory-bottom-sections {
    background-color: #e8f4f6;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.team-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.team-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 15px;
    text-align: left;
}

.team-card-name {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #004559;
    margin: 0 0 5px 0;
}

.team-card-role {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
}

.team-card:hover {
    opacity: 0.9;
}

/* Horizontal ad below team */
.team-ad-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.team-ad-horizontal .advert-placeholder {
    max-width: 728px;
    width: 100%;
    height: 90px;
    background-color: #b8cacd;
    border-radius: 10px;
}

.team-ad-horizontal .advert-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: #888;
    writing-mode: vertical-rl;
}

/* ============================================
   AUTHOR PAGE STYLES
   ============================================ */

/* Hide the live prices/chats bar on author pages */
body.author .header-live { display: none !important; }

.page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
}

/* Author Header Section */
.author-header {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto;
    gap: 20px 80px;
    align-items: start;
    margin-bottom: 60px;
}

.author-info {
    padding-top: 20px;
    grid-row: 1 / 3;
}

.author-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-sidebar-ad {
    grid-column: 2;
}

.author-name {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: #004559;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

/* Social Icons */
.author-social {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: #004559;
}

/* Author Bio */
.author-bio {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Author Content */
.author-content {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555;
    line-height: 1.4;
}

.author-content h4 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #004559;
    line-height: 1.3;
    margin: 25px 0 12px 0;
}

.author-content p {
    margin-bottom: 15px;
}

.author-content ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.author-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* Author Image */
.author-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Ad (author page specific) */
.author-sidebar-ad .sidebar-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.author-sidebar-ad .sidebar-ad .advert-label {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #888;
    transform: scale(0.85);
}

.author-sidebar-ad .sidebar-ad .advert-placeholder {
    width: 100%;
    height: 250px;
    background-color: #d5d5d5;
    border-radius: 6px;
}

/* Author Articles Section */
.author-articles-wrapper {
    background-color: #e8f4f6;
    width: 100%;
}

.author-articles-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.section-header-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header-author h2 {
    font-family: "Inter", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #004559;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Writers Section */
.writers-wrapper {
    background-color: #e8f4f6;
    width: 100%;
}

.writers-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
}

.writers-section .section-header-author {
    padding-top: 30px;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Writer Card */
.writer-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.writer-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.writer-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.writer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-card-content {
    padding: 15px;
    text-align: left;
}

.writer-card-name {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #004559;
    margin: 0 0 5px 0;
}

.writer-card-role {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
}

.writer-card:hover {
    opacity: 0.9;
}

/* Author Bottom Sections (light blue bg) */
.author-bottom-sections {
    background-color: #e8f4f6 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.author-bottom-sections .widget-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background-color: transparent !important;
}

.author-bottom-sections .widget-container:first-child {
    padding-top: 40px;
}

.author-bottom-sections .widget-container + .widget-container {
    padding-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1399px) {
    .widget-container { padding: 40px 0; max-width: calc(100% - 150px); }
    .forum-posts-widget { grid-template-columns: 1fr 380px; }
    .featured-post-title { font-size: 38px; }
    .picks-widget { grid-template-columns: 120px 1fr; }
    .stories-grid { gap: 15px; }
    .story-card-title { font-size: 18px; }
    .category-grid { gap: 15px; }
}

@media (max-width: 1199px) {
    .widget-container { padding: 30px 0; max-width: calc(100% - 80px); }
    .forum-posts-widget { grid-template-columns: 1fr 340px; gap: 15px; }
    .featured-post-title { font-size: 34px; }
    .small-post-title { font-size: 15px; }
    .picks-widget { grid-template-columns: 100px 1fr; gap: 15px; }
    .picks-featured-title { font-size: 22px; }
    .picks-card-title { font-size: 16px; }
    .stories-grid { gap: 12px; }
    .story-card-title { font-size: 16px; }
    .category-grid { grid-template-columns: 1fr 1fr 1fr; }
    .post-card-title { font-size: 16px; }
    .latest-chats-widget { gap: 15px; }
    .team-grid { gap: 15px; }
    .category-page-header { padding: 30px; }
    .category-page-title { font-size: 42px; }
    
    /* Blog post */
    .blog-container { padding: 30px; }
    .blog-post-layout { gap: 30px; }
    .article-title { font-size: 40px; }
    
    /* Author page */
    .page-container { padding: 30px; }
    .author-header { gap: 20px 50px; grid-template-columns: 1fr 320px; }
    .author-name { font-size: 36px; }
    .author-articles-section { padding: 30px; }
    .writers-section { padding: 0 30px 30px 30px; }
    .articles-grid { gap: 15px; }
    .writers-grid { gap: 15px; }
    
    /* Our Story page */
    .about-container { padding: 30px; }
    .about-layout { gap: 40px; grid-template-columns: 1fr 380px; }
    .about-title { font-size: 40px; }
    
    /* Useful Tools page */
    .tools-container { max-width: calc(100% - 150px); padding: 50px 0; }
    .tools-title { font-size: 42px; }
    .tools-grid { gap: 20px; }
}

@media (max-width: 991px) {
    .widget-container { padding: 25px 0; max-width: calc(100% - 50px); }
    .forum-posts-widget { grid-template-columns: 1fr; gap: 25px; }
    .featured-post { aspect-ratio: 16 / 9; }
    .featured-post-title { font-size: 32px; }
    .picks-widget { grid-template-columns: 1fr; gap: 20px; }
    .advert-space { order: -1; margin-bottom: 15px; display: none; }
    .advert-space .advert-placeholder { min-height: 90px; height: 90px; }
    .picks-posts { grid-template-columns: 1fr 1fr; }
    .picks-grid { grid-template-columns: 1fr; gap: 15px; }
    .stories-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .category-section .section-header-grid { display: flex; justify-content: space-between; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .category-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .category-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .advert-column { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
    .advert-column .advert-placeholder { max-width: 400px; height: 100px; }
    .divider-wrapper { grid-column: 1 / -1; }
    .latest-chats-widget { grid-template-columns: repeat(2, 1fr); }
    .cta-banner-title { font-size: 22px; }
    .cta-banner-dark { flex-direction: column; text-align: center; }
    .cta-banner-dark .cta-banner-title { text-align: center; }
    .cta-banner-dark .cta-buttons { flex-wrap: wrap; justify-content: center; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .category-page-header { padding: 25px 20px; }
    .category-page-title { font-size: 36px; }
    .team-section-inner { padding: 0 20px; }
    
    /* Blog post */
    .blog-container { padding: 25px 20px; }
    .blog-post-layout { grid-template-columns: 1fr; gap: 40px; }
    .blog-post-layout .sidebar { position: static; }
    .blog-post-layout .sidebar-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .article-title { font-size: 36px; }
    .single h1 { font-size: 40px !important; }
    
    /* Author page */
    .page-container { padding: 25px 20px; }
    .author-header { grid-template-columns: 1fr; gap: 20px; }
    .author-info { grid-row: auto; text-align: center; padding-top: 0; display: contents; }
    .author-name { order: 1; text-align: center; }
    .author-social { order: 2; justify-content: center; margin-bottom: 10px; }
    .author-image-wrapper { order: 3; max-width: 280px; margin: 0 auto; }
    .author-bio { order: 4; text-align: center; }
    .author-content { order: 5; }
    .author-sidebar-ad { order: 6; grid-column: 1; max-width: 350px; margin: 10px auto 0; width: 100%; }
    .author-articles-section { padding: 25px 20px; }
    .writers-section { padding: 0 20px 25px 20px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .writers-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Our Story page */
    .about-container { padding: 25px 20px; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-title { font-size: 36px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Useful Tools page */
    .tools-container { max-width: calc(100% - 80px); padding: 40px 0; }
    .tools-title { font-size: 36px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 767px) {
    .widget-container { padding: 20px 0; max-width: calc(100% - 40px); }
    .featured-post { aspect-ratio: 4 / 3; }
    .featured-post-title { font-size: 26px; }
    .picks-posts { grid-template-columns: 1fr; }
    .picks-featured-title { font-size: 24px; }
    .picks-grid { grid-template-columns: 1fr 1fr; }
    
    /* Homepage mobile: Hide Latest from main featured, show mobile Latest section */
    .is-homepage .forum-posts-widget .latest-posts {
        display: none;
    }
    
    .mobile-latest-section {
        display: block;
    }

    .mobile-only-ad-section {
        display: block;
    }

    /* Mobile Latest grid - not needed, using card layout */
    
    /* Real Stories - start horizontal scroll earlier */
    .real-stories-widget {
        margin-right: -20px;
    }
    .real-stories-widget .advert-horizontal {
        display: none !important; /* hidden on mobile — JS injects separate ad units */
    }
    .stories-grid { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-right: 20px;
    }
    .story-card {
        flex: 0 0 55%;
        scroll-snap-align: start;
    }
    .story-card-title { font-size: 16px; }
    
    .category-section .section-header-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .cta-banner-title { font-size: 20px; }
    .category-page-header { padding: 20px; }
    .category-page-title { font-size: 32px; }
    .category-buttons { flex-direction: column; }
    .category-button { justify-content: space-between; }
    
    /* Tag/Category page mobile - reduce padding */
    .category-page-wrapper .widget-container,
    .tag-page-wrapper .widget-container {
        padding: 15px;
    }
    .category-page-wrapper .widget-container + .widget-container,
    .tag-page-wrapper .widget-container + .widget-container {
        padding-top: 10px;
    }
    
    /* Tag page mobile - first card full width, rest horizontal */
    .tag-page-wrapper .tag-top-cards .category-grid-3col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* First card in top section stays as normal card */
    .tag-page-wrapper .tag-top-cards .post-card:first-child {
        width: 100%;
    }
    
    /* 2nd and 3rd cards become horizontal */
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) {
        width: 100%;
        height: 100px;
        display: flex;
        flex-direction: row;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) a {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-image {
        order: 2;
        width: 100px;
        height: 100px;
        flex: 0 0 100px;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-image img {
        width: 100px;
        height: 100px;
        object-fit: cover;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-content {
        order: 1;
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-title {
        font-size: 14px;
        line-height: 1.3;
        margin: 5px 0;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-tag {
        font-size: 9px;
    }
    .tag-page-wrapper .tag-top-cards .post-card:not(:first-child) .post-card-date {
        font-size: 10px;
    }
    
    /* Related articles - all horizontal cards */
    .tag-page-wrapper .tag-related-articles .category-grid-4col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .tag-page-wrapper .tag-related-articles .post-card {
        width: 100%;
        min-height: 100px;
        height: auto;
        display: flex;
        flex-direction: row;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    .tag-page-wrapper .tag-related-articles .post-card a {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .tag-page-wrapper .tag-related-articles .post-card-image {
        order: 2;
        width: 100px;
        flex: 0 0 100px;
        align-self: stretch;
    }
    .tag-page-wrapper .tag-related-articles .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .tag-page-wrapper .tag-related-articles .post-card-content {
        order: 1;
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .tag-page-wrapper .tag-related-articles .post-card-title {
        font-size: 14px;
        line-height: 1.3;
        margin: 5px 0;
    }
    .tag-page-wrapper .tag-related-articles .post-card-tag {
        font-size: 9px;
    }
    .tag-page-wrapper .tag-related-articles .post-card-date {
        font-size: 10px;
    }
    
    /* Category related articles - full width stacked cards (matching tag template) */
    .category-page-wrapper .category-related-articles .category-grid-4col {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        gap: 12px;
        margin-right: 0;
        padding-right: 0;
    }
    .category-page-wrapper .category-related-articles .post-card {
        flex: none !important;
        width: 100% !important;
        display: grid;
        grid-template-columns: 1fr;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    .category-page-wrapper .category-related-articles .post-card a {
        display: grid;
        grid-template-columns: 1fr 120px;
        width: 100%;
    }
    .category-page-wrapper .category-related-articles .post-card-image {
        order: 2;
        width: 120px;
        min-height: 100px;
        aspect-ratio: auto;
        overflow: hidden;
    }
    .category-page-wrapper .category-related-articles .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-page-wrapper .category-related-articles .post-card-content {
        order: 1;
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .category-page-wrapper .category-related-articles .post-card-title {
        font-size: 14px;
        line-height: 1.3;
        margin: 5px 0;
    }
    .category-page-wrapper .category-related-articles .post-card-tag {
        font-size: 9px;
    }
    .category-page-wrapper .category-related-articles .post-card-date {
        font-size: 10px;
    }
    .cat-related-hidden {
        display: none !important;
    }
    
    /* Responsive ad becomes square on mobile */
    .advert-responsive {
        flex-direction: column;
        align-items: center;
    }
    .advert-responsive .advert-placeholder {
        flex: none;
        width: 300px;
        max-width: 100%;
        height: 250px;
    }
    .advert-responsive .advert-label {
        writing-mode: horizontal-tb;
    }
    
    /* Blog post */
    .blog-container { padding: 20px; }
    .article-title { font-size: 30px; }
    .single h1 { font-size: 35px !important; }
    .share-button { 
        padding: 8px 14px; 
        font-size: 13px; 
    }
    .share-button svg {
        width: 14px;
        height: 14px;
    }
    .blog-post-layout .sidebar-posts { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; 
    }
    .blog-post-layout .sidebar-posts .sidebar-card:nth-child(n+5) {
        display: none;
    }
    
    /* Single post Real Stories - horizontal carousel on mobile */
    .post-bottom-sections .stories-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-right: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .post-bottom-sections .stories-grid::-webkit-scrollbar {
        display: none;
    }
    .post-bottom-sections .story-card {
        flex: 0 0 55%;
        scroll-snap-align: start;
    }
    .post-bottom-sections .story-card:nth-child(n+5) {
        display: block;
    }
    .post-bottom-sections .real-stories-widget {
        margin-right: -20px;
        overflow: visible;
    }
    
    /* Author page */
    .page-container { padding: 20px; }
    .author-name { font-size: 32px; }
    .author-bio { font-size: 16px; }
    .author-content { font-size: 15px; }
    
    /* Our Story page */
    .about-container { padding: 20px; }
    .about-title { font-size: 32px; }
    
    /* Useful Tools page */
    .tools-container { max-width: calc(100% - 50px); padding: 30px 0; }
    .tools-title { font-size: 32px; }
    .tools-header { margin-bottom: 35px; }
}

@media (max-width: 575px) {
    .widget-container { padding: 15px 0; max-width: calc(100% - 30px); }
    .section-header h2, .section-header-flex h2 { font-size: 20px; }
    .featured-post-title { font-size: 22px; }
    .small-post-card { grid-template-columns: 1fr 90px; }
    .small-post-image { width: 90px; }
    .small-post-title { font-size: 14px; }
    
    /* SlimrChat Picks - Full width featured, 2x2 grid below */
    .picks-widget { grid-template-columns: 1fr; }
    .picks-featured { margin-bottom: 15px; }
    .picks-featured-title { font-size: 22px; }
    .picks-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .picks-card-title { font-size: 14px; }
    
    /* Real Stories - Horizontal scroll */
    .real-stories-widget {
        margin-right: -15px;
        overflow: visible;
    }
    .stories-grid { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-right: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .stories-grid::-webkit-scrollbar {
        display: none;
    }
    .story-card {
        flex: 0 0 65%;
        scroll-snap-align: start;
    }
    .story-card-title { font-size: 14px; }
    .real-stories-widget .advert-horizontal {
        display: none !important; /* hidden on mobile — JS injects separate ad units */
    }
    .category-grid, .category-grid-3col, .category-grid-4col { 
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        margin-right: -15px;
        padding-right: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .category-grid::-webkit-scrollbar,
    .category-grid-3col::-webkit-scrollbar,
    .category-grid-4col::-webkit-scrollbar {
        display: none;
    }
    .category-grid .post-card,
    .category-grid-3col .post-card,
    .category-grid-4col .post-card {
        flex: 0 0 calc(50% - 6px);
        scroll-snap-align: start;
    }
    .category-grid .empty-column { display: none; }
    .category-grid .divider-wrapper,
    .category-grid .advert-column { 
        display: none; 
    }

    /* Override carousel for 'You might be interested in' sections - always 2-col grid */
    .interested-section .category-grid-4col,
    .author-bottom-sections .category-grid-4col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .interested-section .category-grid-4col .post-card,
    .author-bottom-sections .category-grid-4col .post-card {
        flex: none !important;
        width: auto !important;
    }
    
    /* Ads should show on mobile - but not sidebar ad on homepage (mobile-only-ad handles it) */
    .advert-space { display: none; }
    .advert-column { 
        display: flex !important;
        flex: 0 0 100%;
        margin-top: 15px;
    }
    
    /* Latest Chats */
    .latest-chats-widget { grid-template-columns: 1fr; }
    
    /* CTA Banner - Text left, arrow only button */
    .cta-banner { 
        padding: 22px 18px; 
        border-radius: 12px; 
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    .cta-banner-title { 
        font-size: 18px; 
        text-align: left;
        flex: 1;
    }
    .cta-button-outline {
        padding: 0;
        background: #fff;
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0;
        gap: 0;
    }
    .cta-button-outline .arrow-circle {
        background: transparent;
        width: 24px;
        height: 24px;
    }
    .cta-button-outline .arrow-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .cta-banner-dark { padding: 22px 18px; border-radius: 12px; }
    .team-grid { gap: 12px; }
    .team-card-name { font-size: 16px; }
    .category-page-header { padding: 15px; }
    .category-page-title { font-size: 28px; }
    .category-page-intro { font-size: 15px; }
    .team-section-inner { padding: 0 15px; }
    
    /* Blog post */
    .blog-container { padding: 15px; }
    .article-title { font-size: 26px; }
    .share-button { 
        padding: 6px 12px; 
        font-size: 12px; 
    }
    .share-button svg {
        width: 12px;
        height: 12px;
    }
    .blog-post-layout .sidebar-posts { 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Single post Real Stories - horizontal carousel */
    .post-bottom-sections .stories-grid {
        gap: 12px;
    }
    .post-bottom-sections .story-card {
        flex: 0 0 65%;
    }
    .post-bottom-sections .story-card-title {
        font-size: 14px;
    }
    
    /* Author page */
    .page-container { padding: 15px; }
    .author-name { font-size: 28px; }
    .author-bio { font-size: 15px; }
    .author-content { font-size: 14px; }
    .author-articles-section { padding: 15px; }
    .writers-section { padding: 0 15px 15px 15px; }
    .articles-grid { grid-template-columns: 1fr; }
    .writers-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .section-header-author h2 { font-size: 20px; }
    .writer-card-name { font-size: 16px; }
    .author-image-wrapper .sidebar-ad .advert-placeholder { height: 150px; }
    
    /* Our Story page */
    .about-container { padding: 15px; }
    .about-title { font-size: 28px; }
    .manifesto-box { padding: 20px; }
    .manifesto-title { font-size: 22px; }
    .team-grid { gap: 15px; }
    .team-card-name { font-size: 16px; }
    
    /* Useful Tools page */
    .tools-container { max-width: calc(100% - 30px); padding: 25px 0; }
    .tools-title { font-size: 28px; }
    .tools-intro { font-size: 15px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .tool-card { border-radius: 10px; }
    .tool-card-content { padding: 12px; }
    .tool-card-title { font-size: 15px; }
    .tool-card-tag { font-size: 7px; padding: 4px 8px; }
}

/* ============================================
   WPFORO CUSTOMIZATIONS
   ============================================ */

/* Hide profile avatars in Recent Topics list (next to "By Username") */
#wpforo .wpf-sbd-topic .wpforo-post-author-avatar,
#wpforo .wpforo-recent-topics .wpforo-post-author-avatar,
#wpforo .wpf-sbd-topic .wpf-member-avatar,
#wpforo .wpforo-recent-topics .wpf-member-avatar,
.wpf-sbd-topic .wpforo-post-author-avatar,
.wpforo-recent-topics .wpforo-post-author-avatar,
.wpf-sbd-topic .wpf-member-avatar,
.wpforo-recent-topics .wpf-member-avatar,
#wpforo-wrap .wpforo-list-item .wpf-sbd-topic .wpf-topic-side-avatar,
#wpforo-wrap .wpforo-list-item .wpforo-recent-topics .wpf-topic-side-avatar,
.wpforo-forum-footer .wpf-member-avatar,
.wpforo-last-topic .wpf-member-avatar,
.wpf-last-info .wpf-member-avatar,
#wpforo-wrap .wpf-sbd-wrap .wpf-sbd-item .wpf-sbd-avatar,
#wpforo-wrap .wpf-sbd-wrap .wpf-sbd-item .wpf-member-avatar,
.wpf-sbd-item .wpf-sbd-avatar,
.wpf-sbd-item .wpf-member-avatar {
    display: none !important;
}

/* ============================================
   MOBILE LIVE BANNER (Homepage only)
   ============================================ */
.mobile-live-banner {
    display: none;
}

@media (max-width: 991px) {
    .mobile-live-banner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background-color: #e5e5e5;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        overflow: hidden;
        margin: 15px 0;
    }
    
    .mobile-live-col {
        background-color: #fff;
        padding: 15px;
    }
    
    .mobile-live-banner .live-indicator {
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: "Inter", sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #ff4757;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    
    .mobile-live-banner .live-dot {
        width: 6px;
        height: 6px;
        background-color: #ff4757;
        border-radius: 50%;
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
        animation: pulse-glow 1.5s ease-in-out infinite;
    }
    
    .mobile-live-banner h4 {
        font-family: "Inter", sans-serif;
        font-size: 16px;
        font-weight: 400;
        color: #004559;
        margin: 0 0 12px 0;
        padding: 0;
    }
    
    .mobile-live-banner .prices-label {
        display: none;
    }
    
    .mobile-price-buttons {
        display: flex;
        flex-direction: column;
        gap: 6px;
                align-items: flex-start;

    }
    
    .mobile-price-buttons .price-button {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
        color: #004559;
        font-family: "Inter", sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 2px 6px 2px 7px;
        border-radius: 20px;
        text-decoration: none;
    }
    
    .mobile-price-buttons .arrow-circle {
        width: 18px;
        height: 18px;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-price-buttons .arrow-circle svg {
        width: 10px;
        height: 10px;
    }
    
    .mobile-chats-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-chat-item {
        font-family: "Inter", sans-serif;
        font-size: 16px !important;
        font-weight: 400;
        color: #6b7280;
        text-decoration: none;
        line-height: 1.2;
    }
    
    .mobile-chat-item:hover {
        color: #004559;
    }
}

/* ==============================================
   HOMEPAGE MOBILE FIX
   Add this to the END of content-styles.css
   ============================================== */

/* Fix: The base .forum-posts-widget has grid-template-columns with !important
   which overrides the mobile media query. We need !important here too. */
@media (max-width: 991px) {
    .forum-posts-widget {
        grid-template-columns: 1fr !important;
    }

    /* Make the mobile-live-banner not bleed off screen */
    .mobile-live-banner {
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
                margin: 0px 0 !important;
    }

    /* Only show the first chat item */
    .mobile-chats-list {
        position: relative;
        min-height: 95px;
        overflow: hidden;
    }

    .mobile-chats-list .mobile-chat-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transform: translateY(6px);
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .mobile-chats-list .mobile-chat-item.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Hide 'Latest Chats' heading on mobile */
    .mobile-live-chats h4 {
        display: none;
    }

    .mobile-price-buttons .price-button {
    transform: none;
}
}

/* ==============================================
   HOMEPAGE MOBILE REORDER + LAYOUT FIXES v4
   Add to the END of content-styles.css
   
   Requires homepage-mobile-reorder.js
   ============================================== */

@media (max-width: 767px) {

    /* ---- FLEX WRAPPER ---- */
    .homepage-sections-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center; /* centre the widget-container children */
    }

    /* Sections inside wrapper need full width to centre properly */
    .homepage-sections-wrap > .widget-container {
        width: 100%;
    }

    /* ---- SECTION ORDER ---- */
    /* v5: Order is now controlled entirely by JS DOM manipulation.
       CSS order properties have been removed to prevent sync bugs.
       The JS appendChild() calls guarantee the exact sequence. */


    /* ---- LATEST (now handled by PHP mobile-latest-section) ---- */
    /* CSS at 767px breakpoint shows .mobile-latest-section via display:block */


    /* ---- SLIMRCHAT PICKS ---- */
    /* Show picks-featured as full-width on mobile */
    .is-homepage .picks-featured {
        display: block;
        width: 100%;
    }

    .is-homepage .picks-posts {
        grid-template-columns: 1fr !important;
    }

    .is-homepage .picks-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .is-homepage .picks-widget {
        display: flex !important;
        flex-direction: column !important;
    }

    .is-homepage .picks-widget .advert-space {
        display: none !important;
    }



    /* ---- CATEGORY SECTIONS: 2-col grid, NOT carousels ---- */
    .is-homepage .category-grid,
    .is-homepage .category-grid-3col,
    .is-homepage .category-grid-4col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .is-homepage .category-grid .post-card,
    .is-homepage .category-grid-3col .post-card,
    .is-homepage .category-grid-4col .post-card {
        flex: none !important;
        width: auto !important;
    }


    .is-homepage .category-section .advert-column,
    .is-homepage .category-section .empty-column,
    .is-homepage .category-section .divider-wrapper {
        display: none !important;
    }

    /* Tighten gap between Starting Out and Side Effects */
    .homepage-sections-wrap > .section-starting-out {
        padding-bottom: 5px !important;
    }

    .homepage-sections-wrap > .section-side-effects {
        padding-top: 5px !important;
    }


    /* ---- MOBILE AD BLOCKS (inserted by JS) ---- */
    .mobile-ad-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
    }

    .mobile-ad-block .advert-label {
        font-family: "Inter", sans-serif;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        color: #aaa;
        letter-spacing: 0.5px;
        writing-mode: horizontal-tb;
        order: 2;
    }

    .mobile-ad-block .advert-placeholder {
        width: 100%;
        min-height: 300px;
        height: 300px;
        background: #b8cacd;
        border-radius: 10px;
        order: 1;
    }
}


/* ---- Override ≤575px carousel for homepage categories ---- */
@media (max-width: 575px) {
    .is-homepage .category-grid,
    .is-homepage .category-grid-3col,
    .is-homepage .category-grid-4col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .is-homepage .category-grid .post-card,
    .is-homepage .category-grid-3col .post-card,
    .is-homepage .category-grid-4col .post-card {
        flex: none !important;
        width: auto !important;
    }
}
/* ============================================
   CATEGORY PAGE: LOAD MORE BUTTONS (Task 8)
   ============================================ */
.more-article-hidden {
    display: none !important;
}

.related-article-hidden {
    display: none !important;
}

.tag-related-hidden,
.news-article-hidden,
.search-result-hidden {
    display: none !important;
}

.author-article-hidden {
    display: none !important;
}

.more-articles-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.load-more-btn,
.show-all-btn,
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 10px 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.load-more-btn {
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
}

.show-all-btn {
    background: transparent;
    border: 1.5px solid #004559;
    color: #004559;
}

.back-to-top-btn {
    background: #004559;
    color: #fff;
}

.load-more-btn:hover,
.show-all-btn:hover,
.back-to-top-btn:hover {
    opacity: 0.85;
}

/* ============================================
   CATEGORY PAGE: MOBILE LIVE BANNER (Task 9)
   ============================================ */
.category-mobile-live-banner {
    display: none;
}

@media (max-width: 991px) {
    .category-mobile-live-banner {
        display: grid;
        max-width: calc(100% - 40px);
        margin: 0 auto 15px;
    }
}

@media (max-width: 575px) {
    .category-mobile-live-banner {
        max-width: calc(100% - 30px);
    }
}

/* ============================================
   CATEGORY PAGE: MOBILE LAYOUT (Task 10)
   ============================================ */
@media (max-width: 767px) {
    /* Category top cards: 1 featured full width, then 2 horizontal cards */
    .category-page-wrapper .category-top-cards .category-grid-3col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .category-page-wrapper .category-top-cards .post-card:first-child {
        width: 100%;
    }
    
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) a {
        display: grid;
        grid-template-columns: 1fr 120px;
        width: 100%;
    }
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) .post-card-image {
        order: 2;
        width: 120px;
        min-height: 100px;
        aspect-ratio: auto;
        overflow: hidden;
    }
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) .post-card-content {
        order: 1;
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .category-page-wrapper .category-top-cards .post-card:not(:first-child) .post-card-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    /* Mid cards: single column, horizontal layout like homepage Latest */
    .category-page-wrapper .category-mid-cards .category-grid-4col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .category-page-wrapper .category-mid-cards .post-card {
        width: 100%;
        min-height: 100px;
        height: auto;
        display: flex;
        flex-direction: row;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    .category-page-wrapper .category-mid-cards .post-card a {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .category-page-wrapper .category-mid-cards .post-card .post-card-image {
        order: 2;
        width: 100px;
        flex: 0 0 100px;
        aspect-ratio: auto;
        align-self: stretch;
    }
    .category-page-wrapper .category-mid-cards .post-card .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-page-wrapper .category-mid-cards .post-card .post-card-content {
        order: 1;
        flex: 1;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .category-page-wrapper .category-mid-cards .post-card .post-card-title {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Category tag buttons - display as row/inline on mobile */
    .category-tag-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .category-tag-buttons .category-button {
        font-size: 9px;
        padding: 6px 8px 6px 12px;
    }
}

/* ============================================
   AUTHOR PAGE: MOBILE 2 COLUMNS (Task 18)
   ============================================ */
@media (max-width: 767px) {
    /* Author articles: 2 columns on mobile */
    .author-articles-section .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Hide 5th+ cards on mobile ONLY if they haven't been revealed by JS.
       JS adds .author-mobile-shown when Show More / Show All is clicked. */
    .author-articles-section .articles-grid .post-card:nth-child(n+5):not(.author-mobile-shown) {
        display: none;
    }
    
    /* You might be interested in: 2 columns, 8 total (already 4 from PHP, show more loads rest) */
    .author-bottom-sections .category-grid-4col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .author-bottom-sections .category-grid-4col .post-card {
        flex: none !important;
        width: auto !important;
    }

    /* Single post 'You might be interested in' - 2 column grid, not carousel */
    .interested-section .category-grid-4col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .interested-section .category-grid-4col .post-card {
        flex: none !important;
        width: auto !important;
    }
}

/* ============================================
   AUTHOR INTERESTED HIDDEN (Task 17)
   ============================================ */
.author-interested-hidden {
    display: none !important;
}

/* ============================================
   TAG BREADCRUMB (Task 12)
   ============================================ */
.tag-breadcrumb {
    margin-bottom: 12px;
}

.tag-breadcrumb a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #00c9a7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tag-breadcrumb a:hover {
    opacity: 0.7;
}

/* ============================================
   CATEGORY TAG BUTTONS INLINE (Task 7)
   ============================================ */
.category-tag-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================
   MOBILE AD BLOCKS: 300px height, label BELOW
   Only affects mobile - desktop unchanged
   ============================================ */
@media (max-width: 767px) {
    .advert-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .advert-horizontal .advert-placeholder {
        flex: none;
        width: 100%;
        min-height: 300px !important;
        height: 300px !important;
        max-height: 300px !important;
    }

    .advert-horizontal .advert-label {
        writing-mode: horizontal-tb;
        order: 2;
    }
    
    /* Also apply to category-ad-wrapper horizontals */
    .category-ad-wrapper .advert-horizontal {
        flex-direction: column;
        align-items: center;
    }

    /* Advert-space (picks sidebar ad) on mobile */
    .advert-space {
        align-items: center;
    }
    
    .advert-space .advert-placeholder {
        min-height: 300px !important;
        height: 300px !important;
    }

    /* Responsive ad blocks too */
    .advert-responsive {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .advert-responsive .advert-placeholder {
        flex: none;
        width: 100%;
        min-height: 300px !important;
        height: 300px !important;
        max-height: 300px !important;
    }

    .advert-responsive .advert-label {
        writing-mode: horizontal-tb;
        order: 2;
    }
}

/* Search pagination styles */
.search-pagination a,
.search-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: #004559;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 150ms ease;
}
.search-pagination a:hover {
    background: #f0f9ff;
    border-color: #004559;
}
.search-pagination span.current {
    background: #004559;
    color: #fff;
    border-color: #004559;
}

/* Search results wrapper uses same styles as tag page */
.search-results-wrapper .tag-page-header {
    text-align: center;
}

/* Mobile-only ad slot - hidden on desktop where sidebar ad is visible */
@media (min-width: 992px) {
    .mobile-only-ad {
        display: none;
    }
}
