/* ===================================
   Category Section Styles - Style 1
   =================================== */

/* Category Header */
.category-section-header {
    margin-bottom: 40px;
}

.category-section-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 72px;
    color: #0D0C22;
    margin-bottom: 12px;
}

.category-section-title a {
    color: #0D0C22;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-section-title a:hover {
    color: #007B9A;
}

.category-section-description {
    font-size: 20px;
    line-height: 32px;
    width: 50%;
    color: #3D3D4E;
    line-height: 1.6;
    max-width: 800px;
}

.category-section-description p {
    margin: 0;
}

/* Posts Container */
.category-section-posts {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Featured Post (First Post) */
.category-featured-post {
 
    overflow: hidden;
  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-featured-post:hover {
    transform: translateY(-4px);
}

.category-featured-content {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.category-featured-image {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    border-radius: 32px;
}

.category-featured-text {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.category-featured-image img {
    width: 100%;
    height: 420px;
    border-radius: 32px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-featured-post:hover .category-featured-image img {
    transform: scale(1.05);
}

/* Version 2: Text First, Image Second */
.category-section-v2 .category-featured-image {
    order: 2;
}

.category-section-v2 .category-featured-text {
    order: 1;
    padding-left: 0;
    padding-right: 20px;
}

.category-featured-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-featured-title-featured{
        display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



.category-featured-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-featured-title a:hover {
    color: #007B9A;
}

.category-featured-excerpt {
    font-size: 20px;
    line-height: 32px;
    color: #3D3D4E;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-featured-excerpt-features{
     display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Regular Posts Grid (Posts 2-4) */
.category-regular-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Featured Badge for Featured Post */
.category-featured-post .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #007B9A 0%, #005f7a 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 123, 154, 0.3);
    
}

.category-featured-post .featured-badge svg {
    margin-top: 1px;
}

/* Tags for Featured Post */
.category-featured-text .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.category-featured-text .tag-pill {
    display: inline-block;
    padding: 8px;
    background: #F3AFE440;
    color: #3D3D4E;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border:none;
}

.category-featured-text .tag-pill:hover {
    background: #007B9A;
    color: #fff;
}

/* Author and Date for Featured Post */
.category-featured-text .post-author-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin: 0px;
    color: #6E6D7A;
}

.category-featured-text .author-name {
    color: #6E6D7A;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 12px;
}

.category-featured-text .author-name:hover {
    color: #007B9A;
}

.category-featured-text .date-separator {
    width: 4px;
    height: 4px;
    background: #6E6D7A;
    border-radius: 50%;
    margin: 0px;
}

.category-featured-text .post-date {
    color: #6E6D7A;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .category-featured-image {
        flex: 1;
    }
    
    .category-featured-text {
        flex: 1;
    }
    
    .category-featured-title{
        font-size: 32px;
        line-height: 40px;
    }
    
    .category-featured-image img{
        height: 320px;
    }
    
    .category-featured-image {
        min-height: 320px;
    }
    
    .category-regular-posts {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 768px) {
    .category-section-v2 .category-featured-image{
        order: 1;
    }
    .category-section-v2 .category-featured-text{
        order: 2;
    }
    .category-featured-post{
        max-width: 400px;       
    }
    .category-section-posts{
        gap: 60px;
    }
    .category-featured-content {
        flex-direction: column;
    }
    
    .category-section-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .category-section-description{
        width: 100%;
        max-width: 360px;
    }
    
    .category-featured-title {
        font-size: 18px;
        line-height: 1.3;
    }
    .category-featured-excerpt{
        font-size: 16px;
        line-height: 1.3;
    }
    
    .category-featured-text {
        padding: 0px;
        padding-top:12px;
    }
    
    /* Version 2 mobile adjustments */
    .category-section-v2 .category-featured-text {
        padding: 0px;
        padding-top: 12px;
    }
    
    .category-regular-posts {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .post-thumbnail img, .category-featured-image img{
        border-radius: 20px;
    }
    .post-thumbnail, .category-featured-image{
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .category-section-title {
        font-size: 28px;
    }
    
    .category-featured-image {
        min-height: 250px;
    }
    
    .category-featured-text {
        padding: 0px;
        padding-top:12px;
    }
    
    /* Version 2 adjustments */
    .category-section-v2 .category-featured-text {
        padding: 0px;
        padding-top: 12px;
    }
    
    .category-featured-title {
        font-size: 20px;
    }
}

/* ===================================
   Category Section Styles - Style 2
   =================================== */

/* Note: Style 2 uses same header and featured post styles as Style 1 */

/* Regular Posts Grid (Posts 2-4) - Style 2 */
.category-regular-posts-style2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

/* Post Card - Style 2 (copy of post-card styles from blogs.css) */
.post-card-style2 {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card-style2:hover {
    transform: translateY(-4px);
    
}

/* Featured Badge - Style 2 */
.featured-badge-style2 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #007B9A 0%, #005f7a 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 123, 154, 0.3);
}

.featured-badge-style2 svg {
    margin-top: 1px;
}

/* Post Thumbnail - Style 2 */
.post-thumbnail-style2 {
    position: relative;
    overflow: hidden;
    height: 262px;
    border-radius: 20px;
}

.post-thumbnail-style2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.post-card-style2:hover .post-thumbnail-style2 img {
    transform: scale(1.05);
}

/* Post Content - Style 2 */
.post-content-style2 {
    padding-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tags - Style 2 */
.post-tags-style2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
}

.tag-pill-style2 {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    border: 0.5px solid #B6BBBE;
    color: #323234;
    font-size: 12px;
    font-weight: 500;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-pill-style2:hover {
    background: #007B9A;
    color: #fff;
}

/* Post Title - Style 2 */
.post-title-style2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.post-title-style2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-style2 a:hover {
    color: #007B9A;
}

/* Post Excerpt - Style 2 */
.post-excerpt-style2 {
    font-size: 14px;
    color: #4F4F52;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Author and Date - Style 2 */
.post-author-date-style2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    color: #999;
}

.author-avatar-link-style2 {
    display: flex;
    align-items: center;
    line-height: 0;
}

.author-avatar-style2 {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.author-avatar-link-style2:hover .author-avatar-style2 {
    opacity: 0.8;
}

.author-name-style2 {
    color: #232325;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-name-style2:hover {
    color: #007B9A;
}

.date-separator-style2 {
    width: 6px;
    height: 6px;
    background: #03030833;
    border-radius: 50%;
    margin: 0 7px;
}
.date-separator-featured {
    width: 4px;
    height: 4px;
    background: #9E9EA7;
    border-radius: 50%;
    margin: 0 7px;
}

.post-date-style2 {
    color: #6E6D7A;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design for Style 2 */
@media (max-width: 1024px) {
    .category-regular-posts-style2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        row-gap: 40px;
    }
    .category-section-posts{
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-regular-posts-style2 {
        grid-template-columns: 1fr;
        gap: 60px;
        max-width: 400px;
    }
    .category-section-posts{
        gap: 60px;
    }
    .post-title-style2{
        font-size: 18px;
        line-height: 1.3;
    }
    .post-excerpt-style2{
        font-size: 16px;
        line-height: 1.3;
    }

    
    .post-thumbnail-style2,
    .post-thumbnail-style2 img {
        border-radius: 20px;
    }
}

/* ===================================
   Featured Posts Section Styles
   =================================== */

/* Two Column Grid Layout */
.featured-posts-two-column-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 31px;
    align-items: start;
}

/* Featured Post Main Column */
.featured-posts-main-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E7E7E9;
}
.featured-post-vertical{
    padding-right: 22px;
}
/* Featured Post Vertical Layout (Column direction) */
.featured-post-vertical .category-featured-content {
    flex-direction: column;
}

.featured-post-vertical .category-featured-text {
    padding-left: 0;
    padding-top: 20px;
}

/* Responsive Design for Featured Posts Section */
@media (max-width: 1024px) {
    .featured-posts-two-column-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .featured-posts-two-column-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .featured-post-vertical .category-featured-content {
        max-width: 100%;
    }
    
    .featured-post-vertical .category-featured-text {
        padding-top: 12px;
    }
}

/* ===================================
   Regular Posts Vertical Scroll Section
   =================================== */

.regular-posts-vertical-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header with Tabs */
.regular-posts-header {
    margin-bottom: 48px;
}

.regular-posts-tabs {
    display: flex;
    gap: 0;
    
}

.regular-posts-tab {
    background: none;
    border: 1px solid transparent;
    padding: 8px 17px;
    margin-right: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #0D0C22;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 888px;
}

.regular-posts-tab:hover {
    background: #F3F3F480;
    color: #0D0C22;

    border: 1px solid #E7E7E9;
}

.regular-posts-tab.active {
    background: #F3F3F480;
    color: #0D0C22;

    border: 1px solid #E7E7E9;
}


/* Vertical Scroll Container */
.regular-posts-scroll-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.regular-posts-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
    padding-right: 16px;
    height: 100%;
}

.regular-posts-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.regular-posts-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.regular-posts-scroll-container::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 3px;
}

.regular-posts-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

/* Individual Post Card */
.regular-post-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    background: #fff;
    transition: transform 0.3s ease;
}

.regular-post-card:hover {
    transform: translateX(4px);
}

.regular-post-image {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.regular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.regular-post-card:hover .regular-post-image img {
    transform: scale(1.05);
}

.regular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: start;
}

.regular-post-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #0D0C22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regular-post-title a {
    color: #0D0C22;
    text-decoration: none;
    transition: color 0.3s ease;
}

.regular-post-title a:hover {
    color: #007B9A;
}

.regular-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6E6D7A;
}

.regular-post-category a {
    color: #6E6D7A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.regular-post-category a:hover {
    color: #007B9A;
}

.regular-post-separator {
    color: #B6BBBE;
}

.regular-post-date {
    color: #6E6D7A;
}

/* Responsive Design for Vertical Scroll Section */
@media (max-width: 768px) {
    .regular-posts-header {
        margin-bottom: 20px;
    }
    
    .regular-posts-tab {
        font-size: 14px;
        margin-right: 24px;
    }
    
    .regular-posts-vertical-section {
        height: auto !important;
        max-width: 400px;
    }
    
    .regular-posts-scroll-wrapper {
        max-height: 500px !important;
    }
    
    .regular-posts-scroll-container {
        max-height: 500px !important;
        padding-right: 12px;
    }
    
    .regular-post-image {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 480px) {
 
    
    .regular-post-title {
        font-size: 14px;
    }
    
    .regular-post-meta {
        font-size: 11px;
    }
}

