/*
Theme Name: MOHSINEALAMARIBH
Theme URI: https://irbahnet.com
Author: Antigravity
Author URI: https://google.com
Description: A high-performance, SEO-optimized WordPress theme replicating the Irbahnet design with advanced customization.
Version: 1.5.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: irbahnet
*/

/* VARIABLES */
:root {
    --brand-color: #3560ab;
    --dark-brand-color: #032e79;
    --text-color: #2c2f34;
    --bg-color: #fbfbfb;
    --white: #ffffff;
    --gray-light: #f1f1f1;
    --gray-border: #e0e0e0;
    --font-base: 'Tajawal', sans-serif;
}

/* GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* direction is set dynamically via body.rtl or body.ltr classes (see Customizer language setting) */
    direction: rtl; /* default fallback = Arabic RTL */
}

body.dark-mode {
    --bg-color: #2a2a2a;
    --text-color: #e0e0e0;
    --white: #353535;
    --gray-light: #3a3a3a;
    --gray-border: #444;
    --nav-text-color: #e0e0e0;
    --card-bg: #353535;
    --input-bg: #3a3a3a;
    --meta-color: #aaa;
}

/* Dark Mode Global Overrides */
body.dark-mode .main-header,
body.dark-mode .site-header,
body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .post-item,
body.dark-mode .main-nav .sub-menu {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--gray-border);
}

body.dark-mode .main-header {
    border-bottom: 1px solid var(--gray-border);
}

body.dark-mode .logo .arabic-title {
    color: var(--text-color);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--gray-border);
}

body.dark-mode .top-search {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-title h3 {
    color: var(--white);
    /* In dark mode variable context, this might be dark bg, so we use text color or white text var if separate */
    color: #fff;
}

body.dark-mode .post-title a {
    color: #fff;
}

body.dark-mode .post-meta,
body.dark-mode .entry-meta {
    color: var(--meta-color);
}

body.dark-mode .social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Floating Action Menu --- */
.floating-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Align to right as per image/RTL preference usually, or left if user prefers */
    display: flex;
    flex-direction: column-reverse;
    /* Stack from bottom up */
    gap: 10px;
    z-index: 9999;
    align-items: center;
}

.float-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 18px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-settings {
    background-color: #333;
}

.btn-up {
    background-color: #0d1b3e;
}

/* Dark Blue */
.btn-dark {
    background-color: #008080;
}

/* Teal */
.btn-menu {
    background-color: #1e5f74;
}

/* Blue/Grid */
.btn-search {
    background-color: #d32f2f;
}

/* Red */
.btn-home {
    background-color: #f9a825;
}

/* Orange */

/* --- Dark Mode Deep Fixes --- */
/* Force background on body and generic containers if they have overrides */
body.dark-mode {
    background-color: #2a2a2a !important;
}

body.dark-mode .site-content,
body.dark-mode .wrapper,
body.dark-mode #page {
    background-color: #2a2a2a !important;
}

/* Ensure no white backgrounds linger */
body.dark-mode .container {
    background-color: transparent;
}

/* Tool pages specific fixes */
body.dark-mode .tool-content-card,
body.dark-mode .plagiarism-container,
body.dark-mode .converter-box {
    background-color: #353535 !important;
    border-color: #444 !important;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #fff;
}

/* Fix generic white backgrounds */
body.dark-mode .bg-white {
    background-color: #353535 !important;
}

/* Tool Cards */
body.dark-mode .tool-card {
    background: #353535 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tool-name {
    color: #e0e0e0;
}

/* Footer */
body.dark-mode .footer {
    background-color: #2a2a2a !important;
    color: #ccc;
    border-top: 1px solid #333;
}

body.dark-mode .footer h3,
body.dark-mode .footer .widget-title {
    color: #fff;
}

body.dark-mode .copyright-bar {
    background-color: #252525 !important;
    border-top: 1px solid #333 !important;
    color: #888 !important;
}

/* Sidebar */
body.dark-mode aside.sidebar,
body.dark-mode .sidebar-column {
    background-color: transparent;
}

body.dark-mode .sidebar .widget {
    background-color: #353535 !important;
    border: 1px solid #333;
    border-radius: 8px;
}

body.dark-mode .sidebar .widget-title,
body.dark-mode .sidebar h3 {
    color: #fff !important;
}

/* Nav Menu */
body.dark-mode .main-nav {
    background-color: #353535;
}

body.dark-mode .main-nav a,
body.dark-mode .nav-menu-ul a {
    color: #e0e0e0 !important;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .nav-menu-ul a:hover {
    color: var(--brand-color) !important;
}

body.dark-mode .main-nav .sub-menu {
    background-color: #252525 !important;
    border: 1px solid #333;
}

/* Section Headers */
body.dark-mode .section-header {
    border-bottom-color: #333;
}

body.dark-mode .section-title,
body.dark-mode .main-section-title h1,
body.dark-mode .section-title h2 {
    color: #fff !important;
}

body.dark-mode .section-header .more-link {
    background-color: var(--brand-color);
    color: #fff !important;
}

/* News Ticker */
body.dark-mode .news-ticker-wrap {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b3e 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Post Items / Article Cards */
body.dark-mode .post-item,
body.dark-mode .post-card,
body.dark-mode article {
    background-color: #353535;
    border-color: #333;
}

body.dark-mode .post-details {
    background-color: #353535;
}

body.dark-mode .entry-content,
body.dark-mode .post-content {
    color: #ccc;
}

body.dark-mode .post-content a {
    color: var(--brand-color);
}

/* Single Article Page */
body.dark-mode .single-post-content,
body.dark-mode .entry-header {
    background-color: transparent;
    color: #e0e0e0;
}

/* Grid Sections */
body.dark-mode .irbahnet-grid-section {
    background-color: transparent;
}

/* Pagination */
body.dark-mode .pagination a,
body.dark-mode .page-numbers {
    background-color: #353535;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .pagination a:hover,
body.dark-mode .page-numbers:hover {
    background-color: var(--brand-color);
    color: #fff;
}

/* Comments */
body.dark-mode .comment-body {
    background-color: #353535;
    border-color: #333;
}

body.dark-mode .comment-author {
    color: #fff;
}

/* Breadcrumbs */
body.dark-mode .breadcrumb {
    color: #aaa;
}

body.dark-mode .breadcrumb a {
    color: #ccc;
}

/* Mid-Article Related */
body.dark-mode .mid-article-related {
    background-color: #353535 !important;
    border-color: #333 !important;
}

body.dark-mode .mid-related-title {
    color: #e0e0e0;
}

/* Scrollbar for dark mode */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Theme Toggle Button Style */
.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
.site-header {
    width: 100%;
    font-family: var(--font-base);
}

.top-bar {
    background-color: var(--brand-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding: 10px 0;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.top-utils {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.top-search {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased spacing between icon and input */
    color: #fff;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.3s ease;
}

.top-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-field {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-base);
    width: 100%;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.8);
}


.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a {
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #32beeb;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.logo .arabic-title {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: -5px;
}

.logo .english-title {
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    display: flex;
}

.logo .irbah {
    color: #D32F2F;
}

.logo .net {
    color: var(--text-color);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    background-color: transparent;
    margin-right: 20px;
}

.main-nav ul,
.main-nav .nav-menu-ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    color: var(--nav-text-color, #333333);
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
    color: var(--menu-accent-color, var(--brand-color));
}

/* Nav Menu Models */
/* Model 2: Subbox Style */
.main-nav.model-2 ul,
.main-nav.model-2 .nav-menu-ul {
    align-items: stretch; /* Make all items inherit max height */
}
.main-nav.model-2 li {
    display: flex;
}
.main-nav.model-2 a {
    border-radius: 8px; /* Softer rounded corners */
    background-color: rgba(0, 0, 0, 0.03); /* Faint gray instead of hard shapes */
    border: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 6px 14px;
    margin: 0 4px; /* Space between interactive elements */
    height: 100%; /* Stretch to fill LI */
    justify-content: center;
    text-align: center;
}
body.dark-mode .main-nav.model-2 a {
    background-color: rgba(255, 255, 255, 0.05);
}
.main-nav.model-2 a:hover,
.main-nav.model-2 .current-menu-item > a {
    background-color: var(--menu-accent-color, var(--brand-color));
    color: #fff !important;
}
.main-nav.model-2 a:hover i,
.main-nav.model-2 .current-menu-item > a i {
    color: #fff !important;
}

/* Model 3: Underline Effect */
.main-nav.model-3 a {
    position: relative;
    padding-bottom: 6px; 
    border-bottom: 2px solid transparent; /* No gray borders */
    background-color: transparent !important; /* Keep clean */
}
body.dark-mode .main-nav.model-3 a {
    border-bottom-color: transparent;
}
.main-nav.model-3 a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--menu-accent-color, var(--brand-color));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px;
}
.main-nav.model-3 a:hover::after,
.main-nav.model-3 .current-menu-item > a::after {
    width: 100%;
}


/* Nav Menu Icons */
.main-nav a i {
    font-size: 1.25em;
    width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav a:hover i {
    transform: translateY(-3px) scale(1.1);
}

/* Safety Net: Hide FontAwesome icons/SVGs that are direct children of LI (prevents duplication) */
.main-nav li>i[class*="fa-"],
.main-nav li>svg[class*="fa-"] {
    display: none !important;
}

/* Icon Colors as per Image and Common Brands */
.main-nav li .fa-home {
    color: #ea4335;
}

.main-nav li .fa-dollar-sign {
    color: #34a853;
}

.main-nav li .fa-desktop {
    color: #4285f4;
}

.main-nav li .fa-blogger {
    color: #f57d00;
}

.main-nav li .fa-windows {
    color: #00a4ef;
}

.main-nav li .fa-globe {
    color: #5f6368;
}

.main-nav li .fa-mobile-alt {
    color: #3ddc84;
}

.main-nav li .fa-youtube {
    color: #ff0000;
}

.main-nav li .fa-bullhorn {
    color: #fb1;
}

.main-nav li .fa-envelope {
    color: #ea4335;
}

.main-nav li .fa-facebook {
    color: #1877f2;
}

.main-nav li .fa-twitter {
    color: #1da1f2;
}

.main-nav li .fa-instagram {
    color: #e1306c;
}


@media (min-width: 992px) {
    .main-nav .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        min-width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
        border-top: 2px solid var(--brand-color);
    }

    .main-nav li:hover>.sub-menu {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .grid-4-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-4-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav ul,
    .main-nav .nav-menu-ul {
        flex-direction: column;
    }

    .main-header-inner {
        justify-content: center;
        position: relative;
    }

    .logo {
        margin: 0 auto;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 15px; /* RTL, so visually left */
        top: 50%;
        transform: translateY(-50%);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

/* NEWS TICKER - Modern Design */
.news-ticker-wrap {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--dark-brand-color) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(53, 96, 171, 0.2);
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 50px;
    position: relative;
}

.news-ticker-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.ticker-label {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    border-radius: 8px 0 0 8px;
    position: relative;
    z-index: 2;
}

.ticker-label i {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ticker-items {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.ticker-items a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.ticker-items a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.ticker-items span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 15px;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.news-ticker-wrap:hover .ticker-items {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-ticker-wrap {
        min-height: 45px;
        border-radius: 6px;
    }

    .ticker-label {
        padding: 0 15px;
        font-size: 13px;
    }

    .ticker-label i {
        font-size: 16px;
    }

    .ticker-items {
        font-size: 13px;
    }

    .ticker-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .ticker-label span {
        display: none;
    }

    .ticker-label {
        padding: 0 12px;
    }
}

/* FEATURED POSTS */
.featured-posts-section {
    margin-top: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.featured-item {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.featured-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.cat-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 11px;
    color: #fff;
    margin-bottom: 8px;
}

.cat-label.tech {
    background: #3560ab;
}

.featured-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.4;
}

.featured-title a {
    color: #fff;
}

.featured-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MAIN CONTENT */
.main-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.main-column {
    flex: 0 0 calc(66.666% - 15px);
    max-width: calc(66.666% - 15px);
}

.sidebar-column {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
}

aside.sidebar {
    position: sticky;
    top: 20px;
    height: auto;
    max-height: calc(100vh - 40px);
    /* Ensures tall sidebars are scrollable and not hidden */
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
aside.sidebar::-webkit-scrollbar {
    display: none;
}

/* Align Main Header with Sidebar Widget Title (Compensate for widget padding + potential H2 margins) */
.main-column .section-header {
    margin-top: 0;
}

/* --- Article Title Styles --- */

/* Boxed Style (Image N1) */
.post-title-style-boxed .single-post-title,
.post-title-style-boxed .post-content h1,
.post-title-style-boxed .post-content h2,
.post-title-style-boxed .post-content h3,
.post-title-style-boxed .post-content h4 {
    background: #f4f4f4 !important;
    padding: 15px 20px !important;
    border-right: 5px solid var(--brand-color) !important;
    border-radius: 4px !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Bordered Style */
.post-title-style-bordered .single-post-title,
.post-title-style-bordered .post-content h1,
.post-title-style-bordered .post-content h2,
.post-title-style-bordered .post-content h3,
.post-title-style-bordered .post-content h4 {
    border-bottom: 3px solid var(--brand-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 25px !important;
    display: block !important;
}

/* Centered Style */
.post-title-style-centered .single-post-title,
.post-title-style-centered .post-content h1,
.post-title-style-centered .post-content h2,
.post-title-style-centered .post-content h3,
.post-title-style-centered .post-content h4 {
    text-align: center !important;
    position: relative !important;
    padding: 15px 0 !important;
    margin-bottom: 30px !important;
    display: block !important;
}

.post-title-style-centered .single-post-title::after,
.post-title-style-centered .post-content h1::after,
.post-title-style-centered .post-content h2::after,
.post-title-style-centered .post-content h3::after,
.post-title-style-centered .post-content h4::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 3px !important;
    background: var(--brand-color) !important;
    margin: 10px auto 0 !important;
}

/* Dark Mode Adjustments */
body.dark-mode .post-title-style-boxed h1,
body.dark-mode .post-title-style-boxed h2,
body.dark-mode .post-title-style-boxed h3,
body.dark-mode .post-title-style-boxed h4 {
    background: #2a2a2a !important;
    color: #eee !important;
}

/* Responsive: Stack on mobile */
@media (max-width: 991px) {
    .main-content-row {
        flex-direction: column;
    }

    .main-column,
    .sidebar-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Global Section Header handled in main.css */

.view-more-btn,
.more-link {
    background-color: var(--brand-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
    /* Ensure proper sizing */
}

.view-more-btn:hover,
.more-link:hover {
    background-color: #0b1a3d;
    color: #fff;
    /* Ensure text stays white */
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #dcdcdc;
    /* Frame around list */
    border-radius: 8px;
    /* Rounded corners */
    padding: 0 20px;
    /* Internal spacing */
    background-color: var(--white);
}

.post-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 0;
}

.post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Post Thumbnail Container */
.post-thumb {
    width: 320px;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    margin-left: 20px;
    /* Space between image and text (RTL) */
}

.post-cat {
    position: absolute;
    top: 0;
    right: 0;
    background: #0b1a3d;
    color: #fff;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0 0 0 10px;
    z-index: 10;
}

/* Post Image Transitions */
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Smooth transition */
}

/* HOVER EFFECT: Zoom and Fade */
.post-card:hover .post-thumb img,
.featured-item:hover {
    transform: scale(1.1);
    /* Zoom in */
    opacity: 0.9;
    /* Slight fade */
}

/* Also apply to featured items background if possible, or just the container scaling? 
   Featured items use background-image, so we can't scale the image easily without scaling container.
   Let's add a pseudo-element or just separate logic for them if needed. 
   Actually, for background-image, 'background-size' transition is expensive. 
   Let's stick to simple brightness for featured items or scale the container content?
*/
.featured-item {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.featured-item:hover .featured-content {
    /* Optional: move text up slightly */
    transform: translateY(-5px);
    transition: transform 0.3s;
}

.post-details {
    padding: 20px;
    flex-grow: 1;
}

.post-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-color);
}

.post-excerpt {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 15px;
    margin-bottom: 15px;
}

.more-link {
    display: inline-block !important;
    background: #84ad7a !important;
    color: #fff !important;
    padding: 4px 14px !important;
    border-radius: 1px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    transition: background 0.3s !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    width: 100px !important;
    text-align: center !important;
    margin-top: 15px !important;
}

.more-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(53, 96, 171, 0.3) !important;
    background: var(--dark-brand-color) !important;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }

    .post-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* SIDEBAR */
.widget {
    background: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* --- CUSTOM WIDGETS STYLES --- */

/* Social Widget */
.irbahnet-social-widget {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.irbahnet-social-widget .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.2s;
}

.irbahnet-social-widget .social-icon:hover {
    transform: translateY(-3px);
}

.irbahnet-social-widget .facebook {
    background-color: #1877f2;
}

.irbahnet-social-widget .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.irbahnet-social-widget .twitter {
    background-color: #000;
}

.irbahnet-social-widget .tiktok {
    background-color: #000;
}

.irbahnet-social-widget .youtube {
    background-color: #ff0000;
}

.irbahnet-social-widget .pinterest {
    background-color: #bd081c;
}

/* Categories Widget */
/* Style 1: Buttons Grid */
.irbahnet-categories-widget.cat-style-1 ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.irbahnet-categories-widget.cat-style-1 li {
    flex: 1 1 calc(50% - 5px);
    /* 2 columns */
}

.irbahnet-categories-widget.cat-style-1 a {
    display: block;
    background-color: #0b1a3d;
    /* Dark Blue */
    color: #fff;
    text-align: center;
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s;
}

.irbahnet-categories-widget.cat-style-1 a:hover {
    background-color: var(--brand-color);
}

/* Recent Posts Widget */
.irbahnet-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.irbahnet-posts-widget li.widget-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.irbahnet-posts-widget li.widget-post-item:last-child {
    margin-bottom: 0;
}

.widget-post-thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.widget-post-content {
    flex-grow: 1;
}

.widget-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.widget-post-meta {
    font-size: 12px;
    color: #999;
}

/* Updated Widget Title to match Section Headers */
.widget-title,
.widget h2,
.widget h3,
.sidebar-column .wp-block-heading {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
    position: relative;
    padding-bottom: 12px;
    width: 100%;
    margin-top: 0;
}

/* Blue underline effect using pseudo-element (Fixed width approximation for sidebar) */
.widget-title::after,
.widget h2::after,
.widget h3::after,
.sidebar-column .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    /* Approximate text width for sidebar titles */
    height: 2px;
    background-color: var(--brand-color);
}

/* FOOTER */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

/* SINGLE POST STYLES */
.single-post-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--brand-color);
}

.single-post-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.post-meta.single-meta {
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 10px 0;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 30px;
}

.content-ad-top,
.content-ad-bottom {
    background: var(--gray-light);
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    margin: 30px 0;
    color: var(--text-color);
    opacity: 0.5;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 20px;
}

.post-tags {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
}

/* --- FEATURED LAYOUT GRIDS --- */

/* Transition for smooth switching if JS enabled (optional) */
.featured-grid {
    transition: all 0.5s ease;
}

/* Layout 1: Standard (Default) */
.featured-grid.layout-1 {
    grid-template-columns: repeat(3, 1fr);
}

/* Layout 2: Focus (Grand Feature) */
.featured-grid.layout-2 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
}

.featured-grid.layout-2 .featured-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.featured-grid.layout-2 .featured-item:not(:nth-child(1)) {
    height: 220px;
}

/* Layout 3: List (Side Focus) */
.featured-grid.layout-3 {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(3, 150px);
}

.featured-grid.layout-3 .featured-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / -1;
    height: 100%;
}

.featured-grid.layout-3 .featured-item:not(:nth-child(1)) {
    height: 100%;
}

/* Layout 4: Mosaic */
.featured-grid.layout-4 {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
}

.featured-grid.layout-4 .featured-item:nth-child(1),
.featured-grid.layout-4 .featured-item:nth-child(2) {
    grid-column: span 2;
}

.featured-grid.layout-4 .featured-item:nth-child(n+3) {
    grid-column: span 1;
}

/* Layout 5: Grid 2x2 */
.featured-grid.layout-5 {
    grid-template-columns: repeat(2, 1fr);
}

/* --- GRID 4 WIDGET STYLES (Previously Missing) --- */
.irbahnet-grid-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-top: 40px;
}

.irbahnet-grid-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.irbahnet-grid-section .section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.irbahnet-grid-section .section-title h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-color);
}

.irbahnet-grid-section .view-more-btn {
    background-color: var(--brand-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.irbahnet-grid-section .view-more-btn:hover {
    background-color: #0b1a3d;
}

.grid-4-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: auto;
}

.grid-4-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* border: 1px solid #eee; Optional based on preference */
}

.grid-4-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.grid-4-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-4-item:hover .grid-4-thumb img {
    transform: scale(1.1);
}

.grid-4-thumb .cat-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand-color);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}

.grid-4-content {
    padding: 15px;
}

.grid-4-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.grid-4-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.grid-4-title a:hover {
    color: var(--brand-color);
}

.grid-4-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-4-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-4-wrap {
        grid-template-columns: 1fr;
    }
}

/* FREE TOOLS SECTION */
.free-tools-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--brand-color);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    margin-left: 12px;
    flex-shrink: 0;
}

.main-section-title {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.main-section-title h1 {
    margin: 0;
    font-size: 24px;
}

body.dark-mode .section-icon {
    background-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(53, 96, 171, 0.3);
}

.tools-header h3 {
    position: relative;
    padding-bottom: 5px;
    margin: 0;
}

.tools-header h3::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-color);
}

.btn-paid-services {
    background-color: var(--dark-brand-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-paid-services:hover {
    background-color: var(--brand-color);
    color: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.tool-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 140px;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon-wrap {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.tool-name {
    background-color: var(--dark-brand-color);
    color: #fff;
    font-size: 13px;
    padding: 8px 5px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tool Gradients */
.bg-blue-grad {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.bg-green-grad {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-teal-grad {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

.bg-purple-grad {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.bg-orange-grad {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.bg-indigo-grad {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}

.bg-red-grad {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
}

.bg-dark-grad {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.bg-blue-dark-grad {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bg-yellow-grad {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.bg-pink-grad {
    background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%);
}

.bg-sky-grad {
    background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%);
}

.bg-green-dark-grad {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.bg-yellow-dark-grad {
    background: linear-gradient(135deg, #f8ff00 0%, #3ad59f 100%);
}

.bg-blue-light-grad {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.bg-red-dark-grad {
    background: linear-gradient(135deg, #870000 0%, #190a05 100%);
}

.bg-teal-dark-grad {
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
}

.bg-gray-grad {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-card {
        height: 120px;
    }

    .tool-icon-wrap {
        font-size: 24px;
    }
}

/* ULTRA-ROBUST SECTION HEADERS (Modern Premium Style) */
.section-title h1,
.section-title h2,
.section-title h3,
.main-section-title h1,
.main-section-title h2 {
    position: relative !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
    display: inline-block !important;
    width: 100%;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.section-title h1::after,
.section-title h2::after,
.section-title h3::after,
.main-section-title h1::after,
.main-section-title h2::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: -1px !important;
    right: 0 !important;
    width: 60px !important;
    height: 5px !important;
    background: linear-gradient(90deg, var(--brand-color) 0%, #32beeb 100%) !important;
    border-radius: 50px !important;
    z-index: 5 !important;
    box-shadow: 0 2px 4px rgba(53, 96, 171, 0.3);
}

/* Secondary line for extra modern feel */
.section-title h1::before,
.section-title h2::before,
.section-title h3::before,
.main-section-title h1::before,
.main-section-title h2::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: -1px !important;
    right: 0 !important;
    width: 100px !important;
    height: 1px !important;
    background-color: #eee !important;
    z-index: 1 !important;
}

/* Ensure the container bottom border doesn't overlap weirdly */
.section-header {
    border-bottom: none !important;
    margin-bottom: 30px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Centered View More Wrapper for bottom placement */
.view-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 10px;
    width: 100%;
}

.view-more-btn.bottom-btn {
    padding: 10px 30px;
    font-size: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(53, 96, 171, 0.2);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-more-btn.bottom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(53, 96, 171, 0.3);
    background-color: var(--dark-brand-color);
}

/* --- CONSOLIDATED THEME ASSETS (v1.3.1) --- */

/* NEWS TICKER */
.news-ticker-wrap {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
}

.ticker-label {
    background-color: var(--dark-brand-color);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    padding: 0 15px;
    color: var(--text-color);
    font-size: 14px;
}

.ticker-items {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    display: inline-block;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* POST CARDS PREMIUM */
.post-card {
    background: #fff;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-cat {
    position: absolute;
    top: 0;
    right: 0;
    background: #0b1a3d;
    color: #fff;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0 0 0 10px;
    z-index: 2;
}

.more-link {
    display: inline-block !important;
    background: #84ad7a !important;
    color: #fff !important;
    padding: 4px 14px !important;
    border-radius: 1px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    transition: background 0.3s !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    width: 100px !important;
    text-align: center !important;
    margin-top: 15px !important;
}

.more-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(53, 96, 171, 0.3) !important;
    background: #2a4b8d !important;
}

/* MAIN LAYOUT GRID */
.main-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.posts-list .post-card {
    flex-direction: row;
    height: auto;
    min-height: 220px;
}

.posts-list .post-thumb {
    width: 320px;
    height: 220px;
    flex-shrink: 0;
}

.posts-list .post-details {
    padding-right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .posts-list .post-card {
        flex-direction: column;
    }

    .posts-list .post-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .posts-list .post-details {
        padding: 20px;
    }
}

/* Mobile Visibility Control */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }

    /* Hide sidebar on mobile */
    .sidebar-column {
        display: none !important;
    }

    /* Make main content full width on mobile when sidebar is hidden */
    .main-column {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--brand-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* =========================================
   2. Typography
   ========================================= */
.mid-article-related {
    margin: 30px 0;
    padding: 0;
}

.mid-related-header {
    text-align: right;
    margin-bottom: 15px;
}

.mid-related-header span {
    display: inline-block;
    background: var(--brand-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
}


.mid-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Vertical line on the right */
.mid-related-list::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--brand-color);
}

.mid-related-item {
    position: relative;
    padding: 18px 30px 18px 0;
}

.mid-related-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--brand-color);
    border-radius: 50%;
    z-index: 1;
}

.mid-related-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: right;
}

.mid-related-meta i {
    margin-left: 5px;
}

.mid-related-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.7;
    transition: color 0.3s;
    text-align: right;
}

.mid-related-title:hover {
    color: var(--brand-color);
}

@media (max-width: 768px) {
    .mid-article-related {
        padding: 20px 15px;
    }

    .mid-related-list::before {
        right: 5px;
    }

    .mid-related-item {
        padding: 15px 25px 15px 0;
    }

    .mid-related-title {
        font-size: 15px;
    }
}