/* Single News Template Styles */

.single-news {
    width: 100%;
}

/* Hero Section (dark background with "Blog" title) */
.single-news-hero {
    width: 100%;
    background-color: #0b1324;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.single-news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../bg_breadcrumbs.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.single-news-hero__inner {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .single-news-hero__inner {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .single-news-hero__inner {
        padding-left: 1.25%;
        padding-right: 1.25%;
    }
}

@media (max-width: 575px) {
    .single-news-hero__inner {
        padding-left: 0.75%;
        padding-right: 0.75%;
    }
    .single-news-hero {
        padding: 60px 0;
    }
}

.single-news-hero__content {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.single-news-hero__title {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .single-news-hero__title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .single-news-hero__title {
        font-size: 28px;
    }
}

/* Main Content Layout */
.single-news-content {
    padding: 60px 0;
    background: #ffffff;
    width: 100%;
}

.single-news-content__inner {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .single-news-content__inner {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .single-news-content__inner {
        padding-left: 1.25%;
        padding-right: 1.25%;
    }
}

@media (max-width: 991px) {
    .single-news-content__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .single-news-content__inner {
        padding-left: 0.75%;
        padding-right: 0.75%;
    }
    .single-news-content {
        padding: 40px 0;
    }
}

.single-news-content__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Featured Image */
.single-news-main-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.single-news-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Post Meta (Date and Categories) */
.single-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.single-news-meta__date,
.single-news-meta__categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-news-meta__date i,
.single-news-meta__categories i {
    font-size: 14px;
    color: #9ca3af;
}

.single-news-meta__categories a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-news-meta__categories a:hover {
    color: #43b02a;
}

/* Post Title */
.single-news-post-title {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .single-news-post-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .single-news-post-title {
        font-size: 24px;
    }
}

/* Post Content */
.single-news-post-content {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3436;
}

.single-news-post-content p {
    margin: 0 0 20px;
}

.single-news-post-content h1,
.single-news-post-content h2,
.single-news-post-content h3,
.single-news-post-content h4,
.single-news-post-content h5,
.single-news-post-content h6 {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 700;
    color: #0b1324;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.single-news-post-content a {
    color: #43b02a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-news-post-content a:hover {
    color: #3aa326;
    text-decoration: underline;
}

/* Blockquote styling */
.single-news-post-content blockquote {
    border-left: 4px solid #ffd700;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #2d3436;
    background: transparent;
}

.single-news-post-content blockquote p {
    margin: 0 0 12px;
}

.single-news-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images in content */
.single-news-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-news-post-content figure,
.single-news-post-content .wp-block-image {
    margin: 0 0 24px;
}

.single-news-post-content figure img,
.single-news-post-content .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Two images in a row - using a wrapper class */
.single-news-post-content .two-images-row {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.single-news-post-content .two-images-row > figure,
.single-news-post-content .two-images-row > .wp-block-image,
.single-news-post-content .two-images-row > p {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.single-news-post-content .two-images-row img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 767px) {
    .single-news-post-content .two-images-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Tags and Share Section */
.single-news-tags-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
    flex-wrap: wrap;
    gap: 20px;
}

.single-news-tags-share > .single-news-share {
    transform: translateX(-10px);
}

.single-news-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.single-news-tags__label {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0b1324;
    background: #0b1324;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
}

.single-news-tags__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-news-tags__tag {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.single-news-tags__tag:hover {
    background: #e5e7eb;
    color: #0b1324;
}

.single-news-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.single-news-share__text {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

.single-news-share i {
    font-size: 14px;
    color: #6b7280;
}

.single-news-share__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 8px;
}

.single-news-share:hover .single-news-share__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.single-news-share__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-news-share__list li {
    margin: 0;
    padding: 0;
}

.single-news-share__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #0b1324;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.single-news-share__list a svg {
    width: 16px;
    height: 16px;
    display: block;
}

.single-news-share__list li.facebook a:hover {
    background: #1877f2;
    color: #ffffff;
}

.single-news-share__list li.twitter a:hover {
    background: #000000;
    color: #ffffff;
}

.single-news-share__list li.linkedin a:hover {
    background: #0077b5;
    color: #ffffff;
}

.single-news-share__list li.pinterest a:hover {
    background: #bd081c;
    color: #ffffff;
}

.single-news-share__list li.reddit a:hover {
    background: #ff4500;
    color: #ffffff;
}

/* Related Posts Section */
.single-news-related {
    margin: 0 0 40px;
    padding-top: 0;
}

.single-news-related__title {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 32px;
    line-height: 1.2;
}

.single-news-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.single-news-related__card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-news-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.single-news-related__card-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.single-news-related__card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-news-related__card:hover .single-news-related__card-image img {
    transform: scale(1.05);
}

.single-news-related__card-content {
    padding: 20px;
}

.single-news-related__card-tags {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-news-related__card-title {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 12px;
    line-height: 1.3;
}

.single-news-related__card-title a {
    color: #0b1324;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-news-related__card-title a:hover {
    color: #43b02a;
}

.single-news-related__card-excerpt {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3436;
    margin: 0 0 16px;
}

.single-news-related__card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.single-news-related__card-author-line {
    width: 40px;
    height: 2px;
    background: #43b02a;
}

.single-news-related__card-author-name {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-news-related__card-author-name:hover {
    color: #43b02a;
}

@media (max-width: 767px) {
    .single-news-tags-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single-news-related__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-news-related__title {
        font-size: 24px;
    }
}

/* Mobile styles for social share dropdown */
@media (max-width: 575px) {
    .single-news-share {
        position: relative;
        overflow: visible;
    }
    
    .single-news-share__dropdown {
        position: absolute;
        left: -20px !important;
        right: auto !important;
        transform: none !important;
        top: 100%;
        margin-top: 8px;
        margin-left: 0;
        margin-right: 0;
        width: auto !important;
        max-width: 80vw !important;
        box-sizing: border-box;
    }
    
    .single-news-share:hover .single-news-share__dropdown {
        transform: none !important;
    }
}


