/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    --primary-color: #cb0c0c;
    --secondary-color: #952624;
     --green-accent: #5fb36a;
    --transition-speed: 0.3s;
     --facebook: #1877f2;
    --twitter: #000000;
    --linkedin: #0a66c2;
     --border-light: #e5e5e5;
    --email: #ea4335;
  

      /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --border-light: #e5e5e5;
    --border-medium: #d0d0d0;
    --background-light: #f8f9fa;
    --background-gray: #f5f5f5;
    --white: #ffffff;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

 

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

/* ==========================================
   Main Wrapper
   ========================================== */
.main-wrapper {
    /* min-height: 100vh; */
    padding: 2rem 0;
}

/* ==========================================
   Section Titles
   ========================================== */
.hdrblog-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.6rem;
    letter-spacing: -0.5px;
}

/* ==========================================
   Featured Article Card (Left Column)
   ========================================== */
.top-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 6px 2px rgb(163 163 163 / 22%);;
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
}

.top-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.top-image-wrapper {
    position: relative;
    width: 100%;
    height: 299px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.top-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.top-card:hover .top-image {
    transform: scale(1.05);
}

.top-content {
    padding: 1.4rem;
}

.top-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.9rem * 2);
}
.top-title a {color: var(--text-dark);}
.top-title:hover a {color: var(--primary-color);}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.meta-date {
    color: var(--light-text);
    font-weight: 400;
}

.meta-divider {
    color: var(--border-color);
}

.meta-author {
    color: var(--light-text);
    font-weight: 400;
}

.top-excerpt {
    color: var(--light-text);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    transition: color var(--transition-speed) ease;
}

.read-more-link:hover {
    color: var(--secondary-color);
}

/* ==========================================
   Top Reads Article List (Right Column)
   ========================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.article-item {
    display: flex;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
       padding: 1rem;
    box-shadow: 0px 0px 6px 2px rgba(201, 201, 201, 0.22);
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
}
.article-item a {color: var(--text-dark);}

.article-item:hover {
    /* transform: translateX(5px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.article-item:hover a{color: var(--primary-color);}

.article-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--green-accent);
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.article-item:hover .article-image {
    transform: scale(1.08);
}

/* Green overlay effect for placeholder styling */
.article-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(95, 179, 106, 0.15);
    pointer-events: none;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight:500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-small {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.meta-date-small {
    color: var(--light-text);
    font-weight: 400;
}

.meta-divider-small {
    color: var(--border-color);
}

.meta-author-small {
    color: var(--green-accent);
    font-weight: 600;
}

/* ====================================
   ARTICLE HEADER
   ==================================== */

.article-header {
    margin-bottom: var(--spacing-xl);
}

.article-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.category-badge {
    display: inline-block;
    color: var(--text-medium);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--font-primary);
}

.article-date {
    color: var(--text-light);
    font-size: var(--fs-sm);
}

.article-main-title {
    font-family: var(--font-primary);
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}


/* ====================================
   FEATURED IMAGE
   ==================================== */

.featured-image-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ====================================
   ARTICLE CONTENT
   ==================================== */

.article-content {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--text-medium);
}

.content-section {
    margin-bottom: var(--spacing-sm);
}

.lead-paragraph {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.section-heading {
    font-family: var(--font-primary);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.subsection-heading {
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.article-content p {
    margin-bottom: var(--spacing-xs);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.inline-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}


/* ====================================
   SHARE SECTION
   ==================================== */

.share-section {
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-light);
}

.share-title {
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    font-size: var(--fs-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.share-facebook {
    background-color: var(--facebook);
}

.share-twitter {
    background-color: var(--twitter);
}

.share-linkedin {
    background-color: var(--linkedin);
}

.share-email {
    background-color: var(--email);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}


/* ====================================
   SIDEBAR STYLES
   ==================================== */

.sidebar {
    position: sticky;
    top: var(--spacing-md);
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}


/* ====================================
   SEARCH WIDGET
   ==================================== */

.search-form .form-control {
    border: 1px solid var(--border-medium);
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: var(--fs-base);
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-search {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
}

.btn-search:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}


/* ====================================
   RECENT POSTS WIDGET
   ==================================== */

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recent-post-item {
    display: flex;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

.recent-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-light);
}


/* ====================================
   CATEGORIES WIDGET
   ==================================== */

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: var(--spacing-xs);
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--fs-md);
    transition: all var(--transition-fast);
}

.category-item a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding-left: var(--spacing-md);
}

.category-count {
    color: var(--text-light);
    font-size: var(--fs-xs);
}


/* ====================================
   TAGS WIDGET
   ==================================== */

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-light);
    color: var(--text-medium);
    font-size: var(--fs-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


/* ====================================
   CTA WIDGET
   ==================================== */

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    text-align: center;
}

.cta-content {
    color: var(--white);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.cta-title {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-sm);
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: var(--accent-pink);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ==========================================
   Responsive Design
   ========================================== */

/* Desktop (≥ 992px) - Default styles above */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hdrblog-title {
        font-size: 1.75rem;
    }
    
    .top-title {
        font-size: 1.35rem;
    }
    
    .article-item {
        gap: 1rem;
        padding: 1rem;
    }
    
    .article-image-wrapper {
        width: 120px;
        height: 95px;
    }
    
    .article-title {
        font-size: 0.95rem;
    }
      .article-main-title {
        font-size: var(--fs-2xl);
    }
    
    .featured-image-container {
        height: 400px;
    }
    
    .section-heading {
        font-size: var(--fs-xl);
    }
    
    .sidebar {
        position: relative;
        top: 0;
        margin-top: var(--spacing-xl);
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .main-wrapper {
        padding: 1rem 0;
    }
    
    .hdrblog-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .top-image-wrapper {
        height: 240px;
    }
    
    .top-content {
        padding: 1.5rem;
    }
    
    .top-title {
        font-size: 1.25rem;
    }
    
    .top-excerpt {
        font-size: 0.875rem;
    }
    
    .article-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-image-wrapper {
        width: 100%;
        height: 180px;
    }
    
    .article-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .blog-single {
        padding: var(--spacing-md) 0;
    }
    
    .article-main-title {
        font-size: var(--fs-xl);
        line-height: 1.3;
    }
    
    .featured-image-container {
        height: 300px;
        border-radius: var(--radius-md);
    }
    
    .article-content {
        font-size: var(--fs-base);
    }
    
    .lead-paragraph {
        font-size: var(--fs-md);
    }
    
    .section-heading {
        font-size: var(--fs-lg);
    }
    
    .subsection-heading {
        font-size: var(--fs-md);
    }
    
    .sidebar {
        position: relative;
        top: 0;
        margin-top: var(--spacing-xl);
    }
    
    .sidebar-widget {
        padding: var(--spacing-md);
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: var(--fs-base);
    }
}

/* Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hdrblog-title {
        font-size: 1.375rem;
    }
    
    .top-card {
        border-radius: 8px;
    }
    
    .top-content {
        padding: 1.25rem;
    }
    
    .top-title {
        font-size: 1.15rem;
    }
    
    .article-item {
        border-radius: 8px;
        padding: 1rem;
    }
    
    .article-image-wrapper {
        height: 160px;
        border-radius: 6px;
    }
    .article-main-title {
        font-size: var(--fs-lg);
    }
    
    .featured-image-container {
        height: 250px;
    }
    
    .article-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .content-section {
        margin-bottom: var(--spacing-sm);
    }
    
    .recent-post-image {
        width: 70px;
        height: 70px;
    }
    
    .share-buttons {
        gap: var(--spacing-xs);
    }
    
    .share-btn {
        width: 38px;
        height: 38px;
        font-size: var(--fs-sm);
    }
}

/* ==========================================
   Accessibility Enhancements
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.top-card:focus-within,
.article-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}