﻿
/* ==========================================================================
   34. Blog Page Layout
   ========================================================================== */
.blog-content {
    padding: 100px 0;
}

body.dark-mode .blog-content {
    background-color: #232722 !important;
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

/* Blog Items */
.blog-list {
    display: flex;
    flex-direction: row;
    gap: unset;
}

.blog-item {
    position: relative;
    /* border-bottom: 1px solid #eee; */
    /* background: #fafaf9; */
    /* padding: 40px; */
    /* border-radius: 30px; */
}

.blog-item__img-wrapper {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-item__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-item__img {
    transform: scale(1.05);
}

.blog-item {
    padding-bottom: 60px;
    /* border-bottom: 1px solid #eee; */
}

    .blog-item:last-of-type {
        padding-bottom: 0;
        border-bottom: none;
    }

.blog-item__tags {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    gap: 10px;
}

.blog-item__tag {
    background: white;
    padding: 6px 16px;
    border-radius: 0px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.blog-item__content-row {
    display: flex;
    gap: unset;
    background: #fafaf9;
    padding: 40px;
}

body.dark-mode .blog-item__content-row {
    background: #6E726D;
}

.blog-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

    .blog-item__date .day {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
        color: #1a1a1a;
    }

    .blog-item__date .month {
        font-size: 0.75rem;
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.blog-item__info {
    flex: 1;
}

.blog-item__title {
    font-size: 22px;
    font-weight: normal;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.1;
    transition: opacity 0.3s;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

body.dark-mode .blog-item__title {
    color: #fff;
}

.blog-item__title:hover {
    opacity: 0.8;
}

.blog-item__excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

body.dark-mode .blog-item__excerpt {
    color: #d6d6d6;
}

body.dark-mode .blog-item__category {
    color: #fff;
}

.blog-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.read-article {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.dark-mode .read-article{
    color: #fff;
}

.read-article__icon {
    width: 44px;
    height: 44px;
    border-radius: 0%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.read-article:hover .read-article__icon {
    background: var(--color-accent);
    color: white;
}

.read-article__icon--active {
    background: var(--color-accent);
    color: white;
}

.blog-item__category {
    font-size: 0.75rem;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   35. Sidebar Widgets
   ========================================================================== */
    .sidebar {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sidebar-widget__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

    .sidebar-widget__title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #eee;
    }

/* Specific Search Widget */
.search-widget {
    background: #fafaf9;
    padding: 40px;
    border-radius: 0px;
}

.sidebar-widget:first-of-type .sidebar-widget__title {
    margin-bottom: 20px;
}

    .sidebar-widget:first-of-type .sidebar-widget__title::after {
        display: none;
    }

.search-box {
    position: relative;
}

.search-box__input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 0px;
    border: 1px solid #eee;
    background: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

    .search-box__input:focus {
        border-color: var(--color-accent);
    }

.search-box__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    padding: 5px 0;
    transition: color 0.3s;
}

    .category-link:hover,
    .category-link--active {
        color: var(--color-accent);
    }

.category-count {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
}

.category-link:hover .category-count,
.category-link--active .category-count {
    background: var(--color-accent);
    color: white;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recent-post-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: 0px;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 8px;
    display: block;
}

.recent-post-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-btn {
    padding: 10px 20px;
    background: #f8f8f8;
    border-radius: 0px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

    .tag-btn:hover,
    .tag-btn--active {
        background: #1a1a1a;
        color: white;
    }

/* Sidebar Newsletter Widget */
.blog-load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    min-width: 250px;
}

    .load-more-btn:hover {
        border-color: #1a1a1a;
        background: #1a1a1a;
        color: white;
    }

/* Sidebar Newsletter Widget */
.sidebar-newsletter {
    background: #1a1917;
    padding: 50px 40px;
    border-radius: 30px;
    color: white;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    width: 100%;
    padding: 18px 25px;
    background: #2a2a2a;
    border: none;
    border-radius: 12px;
    color: white;
    outline: none;
}

.newsletter-submit {
    width: 100%;
    padding: 18px;
    background: #bc5a41;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

    .newsletter-submit:hover {
        background: #a44d36;
    }

/* Responsive Grid */
@media (max-width: 1200px) {
    .blog-grid-layout {
        gap: 40px;
    }

    .blog-item__title {
        font-size: 2.2rem;
    }

    .page-hero__title {
        font-size: 4rem;
    }
}

@media (max-width: 991px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 60px;
    }

    .page-hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 507px;
    }

    .page-hero__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .page-hero__title {
        font-size: 48px; /* Fixed size as requested */
    }

    .page-hero__label-group {
        margin-bottom: 1.5rem;
    }

    .blog-item__content-row {
        display: flex;
        gap: unset;
        background: #fafaf9;
        padding: 40px;
    }

    .blog-item__date {
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
    }

    .blog-item__title {
        font-size: 2rem;
    }

    .blog-item__img-wrapper {
        border-radius: 16px;
    }
}

/* Success Numbers Section */
.success-numbers {
    background-color: #1a1917;
    padding: 80px 0;
    color: white;
}

.success-numbers__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.success-numbers__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.success-numbers__value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    letter-spacing: -1px;
}

.success-numbers__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .success-numbers__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .success-numbers {
        padding: 60px 0;
    }

    .success-numbers__value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .success-numbers__container {
        gap: 32px 16px;
    }

    .success-numbers__value {
        font-size: 2rem;
    }

    .success-numbers__label {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   36. Single Blog Page
   ========================================================================== */

.article-section {
    padding: 100px 0;
    background-color: white;
}

body.dark-mode .article-section {
    background-color: #232722 !important;
}

.article-container {
    display: flex;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Social Share Sidebar */
.social-sidebar {
    width: 40px;
    flex-shrink: 0;
}

.social-sidebar__sticky {
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.share-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
}

.share-line {
    width: 1px;
    height: 40px;
    background-color: #eee;
}

.share-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

    .share-icon:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

/* Article Body */
.article-body {
    flex-grow: 1;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

    .article-content p {
        margin-bottom: 2rem;
    }

    body.dark-mode .article-content p{
        color: #fff;
    }

    .article-content h2,
    .article-content h3 {
        margin: 3rem 0 1.5rem;
        color: var(--color-bg-dark);
        font-weight: 700;
    }

    .article-content h2 {
        font-size: 1.75rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }
    .article-content a {
        text-decoration: underline;
        color: var(--color-accent);
    }
    /* Article Image */
    .article-image-box {
        margin: 4rem 0;
    }

    .article-image-box img {
        border-radius: 0px;
        width: 100%;
    }

.article-image-caption {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 1.5rem;
}

/* Bottom Tags */
.article-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4rem;
}

.article-tags__label {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-right: 8px;
}

.article-tag {
    background: #f4f4f4;
    padding: 12px 24px;
    border-radius: 0px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .article-tag:hover {
        background: #ebebeb;
        color: #111;
    }

/* Author Box */
.author-box {
    background: #f9f9f9;
    border-radius: 0px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-box__img {
    width: 80px;
    height: 80px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box__info {
    flex-grow: 1;
}

.author-box__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.author-box__name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.author-box__label {
    background: #ffebe6;
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 0px;
    letter-spacing: 1px;
}

.author-box__bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-box__social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.author-box__social-link {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

    .author-box__social-link:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

@media (max-width: 991px) {
    .article-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }

    .social-sidebar {
        display: none;
    }

    .article-body {
        width: 100%;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-image-box {
        margin: 2.5rem 0;
    }

    /* Social Share Mobile (Refined Design) */
    .social-share-mobile {
        display: block !important;
        margin: 40px 0;
        padding: 30px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .share-header-mobile {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .share-line-mobile {
        height: 1px;
        width: 40px;
        background: #ccc;
    }

    .share-label-mobile {
        font-size: 0.75rem;
        font-weight: 700;
        color: #999;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .share-icons-mobile {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
    }

        .share-icons-mobile .share-icon {
            width: 44px;
            height: 44px;
            border: 1px solid #eee;
            color: #333;
        }

    .article-footer {
        margin-top: 3rem;
        padding-top: 0;
        border-top: none;
    }

    .article-tags {
        gap: 15px;
    }

    .article-tags__label {
        width: auto;
        margin-bottom: 0;
    }

    .author-box {
        flex-direction: column;
        gap: 25px;
        padding: 30px;
    }

    .author-box__img {
        width: 110px;
        height: 110px;
    }
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */

.related-posts {
    padding: 80px 0;
    background-color: var(--color-bg-beige);
}

.related-posts__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: 40px;
}

body.dark-mode .related-posts__title {
    color: #fff;
}

body.dark-mode .related-post-card__heading {
    color: #fff;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-card__image-wrap {
    position: relative;
    margin-bottom: 20px;
}

.related-post-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}

.related-post-card__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 14px;
    border-radius: 0px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-bg-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .related-post-card__tag svg {
        color: var(--color-accent);
    }

.related-post-card__heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-bg-dark);
    margin-bottom: 8px;
    transition: color 0.3s;
    line-height: 1.2;
}

.related-post-card:hover .related-post-card__heading {
    color: var(--color-accent);
}

.related-post-card__date {
    font-size: 0.8rem;
    color: #57534e;
}

@media (max-width: 991px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .related-posts__title {
        font-size: 1.5rem;
    }
}
