/* ==========================================================================
   1. Sidebar Customization (Force White Skin)
   ========================================================================== */

/* Override Sidebar Background */
.side-aside .widget-title {
    color: #222 !important;
    border-color: #eee !important;
}

/* Close Button */
.side-aside .close-side-aside {
    color: #333 !important;
}

.side-aside .close-side-aside:hover {
    color: #ff0000 !important;
}

/* Scrollbar customization for white theme */
.side-aside-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc !important;
}

.side-aside-wrapper::-webkit-scrollbar-track {
    background-color: #f5f5f5 !important;
}


/* ==========================================================================
   2. Icons Block Styling
   ========================================================================== */
#cd-lateral-nav {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 99;
    /* Space for the close button if it is absolute */
}


#cd-lateral-nav .topIcons {
    margin-bottom: 10px;
}



/* Sidebar Logo */
.sidebar-logo {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
    display: inline-block;
}

.cntnrIcons {
    display: flex;
    justify-content: space-around;
    /* Distribute icons evenly */
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cntnrIcons .icons {
    text-align: center;
    flex: 1;
    /* Equal width */
    max-width: 60px;
    /* Adjust as needed */
}

.cntnrIcons .icons a {
    display: block;
    transition: transform 0.2s ease;
}

.cntnrIcons .icons a:hover {
    transform: translateY(-3px);
    /* Hover Effect */
}

.cntnrIcons .icons img {
    width: 40px;
    /* Icon size */
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Mobile Responsiveness for Icons */
@media (max-width: 767px) {
    .cntnrIcons .icons img {
        width: 32px;
        height: 32px;
    }
}


/* ==========================================================================
   Custom CSS v7 - Opinions Slider Design & Fixes
   ========================================================================== */

/* 1. Opinions Slider Container */
.opinions-slider-container {
    padding: 40px 0;
    position: relative;
    background: #fff;
    /* White background as requested */
}

.opinions-slider-container .section-title {
    text-align: right;
    margin-bottom: 30px;
    padding-right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #e02f2f;
    /* Red */
    border-bottom: 2px solid #ddd;
    display: inline-block;
}

/* 2. Swiper Layout */
.opinionsSwiper {
    padding: 20px 50px 50px 50px !important;
    /* Side padding for arrows */
}

/* 3. Opinion Card Styling */
.opinion-slide {
    height: auto;
}

.opinion-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    color: inherit;
}

.opinion-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e02f2f;
}

/* 4. Author Image (Larger) */
.opinion-author-img {
    width: 160px;
    /* Increased size */
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px auto;
    border: 5px solid #f0f0f0;
    transition: border-color 0.3s;
}

.opinion-card:hover .opinion-author-img {
    border-color: #e02f2f;
    /* Red border on hover */
}

.opinion-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Typography */
.opinion-author-name {
    font-size: 20px;
    font-weight: bold;
    color: #e02f2f;
    margin: 10px 0 5px 0;
}

.opinion-author-title {
    font-size: 14px;
    color: #777;
    display: block;
    margin-bottom: 15px;
}

.opinion-post-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

/* 6. Navigation Buttons (Red Circles) */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: #e02f2f !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(224, 47, 47, 0.3) !important;
    opacity: 1 !important;
    top: 50% !important;
    transform: translateY(-50%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #b50b0b !important;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Pagination Dots */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #e02f2f !important;
    width: 12px;
}

/* ==========================================================================
   Single Opinion Page Styling
   ========================================================================== */
.single-opinion-author-box {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.opinion-author-img-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.opinion-author-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-author-name-single {
    font-size: 28px;
    font-weight: bold;
    color: #e02f2f;
    margin: 0 0 10px 0;
}

.opinion-author-title-single {
    font-size: 18px;
    color: #555;
    display: block;
}

/* ==========================================================================
   Opinions Archive Styling
   ========================================================================== */
.opinions-archive-list {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    /* Optional rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Optional default shadow */
}

.opinion-archive-item {
    border-bottom: 1px dashed #ddd;
    /* Dashed separator */
    padding: 30px 0;
    transition: background 0.3s;
}

.opinion-archive-item:last-child {
    border-bottom: none;
}

.opinion-item-inner {
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 30px;
    /* Space between image and text */
}

/* Avatar Styling */
.opinion-author-avatar {
    flex-shrink: 0;
    width: 160px;
    /* Large Size */
    height: 160px;
}

.opinion-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #b30000;
    /* Red Border */
    padding: 3px;
    background: #fff;
    transition: transform 0.3s;
}

.opinion-archive-item:hover .opinion-author-avatar img {
    transform: rotate(5deg);
}

/* Content Styling */
.opinion-content {
    flex-grow: 1;
}

/* Meta Top (Author) */
.opinion-meta-top {
    margin-bottom: 10px;
}

.opinion-author {
    color: #b30000;
    /* Red Author Name */
    font-weight: bold;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.opinion-author .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Title */
.opinion-title {
    margin: 10px 0;
    line-height: 1.4;
}

.opinion-title a {
    color: #000;
    /* Black Title */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.opinion-title a:hover {
    color: #b30000;
}

/* Meta Bottom (Date) */
.opinion-meta-bottom {
    margin-top: 10px;
}

.opinion-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Single Opinion Page - Author Block (circular image + red name bar)
   Inserted between standard post head and content, like single.php
   ========================================================================== */
.opinion-author-block {
    text-align: center;
    margin: 20px 0 30px 0;
}

.opinion-author-block .opinion-hero-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #b30000;
    padding: 3px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 0 auto;
    display: block;
}

.opinion-author-block .opinion-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.opinion-author-block .opinion-author-name-bar {
    background: #b30000;
    color: #fff;
    padding: 12px 0;
    margin: 0;
    text-align: center;
}

.opinion-author-block .opinion-author-name-bar h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-align: center !important;
}

/* Legacy hero styles kept for backward compatibility */
.single-opinion-visual-header {
    text-align: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 0;
}

/* Badge Row */
.opinion-badge-row {
    text-align: right;
    margin-bottom: 10px;
}

.opinion-cat-badge {
    background: #b30000;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
}

/* Post Title */
.opinion-post-title {
    text-align: right;
    font-size: 28px;
    font-weight: bold;
    color: #b30000;
    /* Red Title */
    margin: 10px 0 15px 0;
    line-height: 1.3;
}

/* Date Row */
.opinion-header-top-row {
    text-align: right;
    margin-bottom: 20px;
    color: #555;
    font-size: 13px;
}

.opinion-date-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.opinion-date-display .dashicons {
    color: #b30000;
    /* Red Icon */
}

/* Author Hero Image */
.opinion-author-hero {
    position: relative;
    margin-bottom: 30px;
    /* More space */
    display: flex;
    justify-content: center;
}

.opinion-hero-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #b30000;
    padding: 2px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.opinion-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Author Name Bar */
.opinion-author-name-bar {
    background: #b30000;
    color: #fff;
    padding: 12px 0;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 0;
    /* Full width look or slight radius */
}

.opinion-author-name-bar h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    text-align: center !important;
}

/* Share Bar */
.opinion-share-bar-container {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    position: relative;
}

.opinion-share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.share-main-icon-wrapper {
    position: absolute;
    right: 0;
    /* Right aligned share icon */
    top: 50%;
    transform: translateY(-50%);
}

.share-main-icon {
    width: 35px;
    height: 35px;
    background: #b30000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 18px;
    font-family: 'dashicons';
    /* Force Font */
}

.share-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff !important;
    transition: all 0.2s;
    font-family: 'dashicons';
    /* Force Font */
    text-decoration: none !important;
}

.share-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-fb {
    background: #1877f2;
}

.share-tw {
    background: #000;
}

.share-wa {
    background: #25d366;
}

.share-tg {
    background: #0088cc;
}

.opinion-tags {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Default Tielabs Title Hide */
.single-opinion-header {
    display: none !important;
}

/* Hide old one if exists */

/* Related - Sidebar/List Style */
.opinion-related-posts .related-grid {
    display: flex;
    /* Vertical list on single? Or Sidebar-like? User screenshot usually shows sidebar style choice, but let's stick to valid grid for bottom */
    flex-direction: column;
    gap: 15px;
}

.opinion-related-posts .related-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
    text-align: right;
}

.opinion-related-posts .related-thumb-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.opinion-related-posts .related-thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex-grow: 1;
}

.related-author-name {
    display: block;
    font-size: 12px;
    color: #e02f2f;
    margin-bottom: 3px;
}

.related-post-title a {
    color: #333;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}


.opinion-title {
    margin: 5px 0;
    font-size: 20px;
    line-height: 1.4;
}

.opinion-title a {
    color: #333;
    text-decoration: none;
}

.opinion-title a:hover {
    color: #e02f2f;
}

.opinion-meta-bottom {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.opinion-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Archive */
@media (max-width: 600px) {
    .opinion-item-inner {
        flex-direction: row;
        /* Keep row even on mobile for consistent "chat" look, or stack if preferred? User said "Vertical List" */
        align-items: flex-start;
    }

    .opinion-author-avatar {
        width: 60px;
        height: 60px;
    }

    .opinion-title {
        font-size: 18px;
    }
}

.opinion-card .opinion-post-title {
    font-size: 18px;
    font-weight: 200;
    text-align: center;
}