/* Featured Section Styles */
.featured-section {
    position: relative;
    background-color: #f9f9f9;
    padding: 100px 0;
    overflow: hidden;
}

.featured-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 160, 0, 0.05) 100%);
    z-index: 1;
}

.featured-section .container {
    position: relative;
    z-index: 2;
}

/* Section Title */
.featured-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.title-badge {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Layout */
.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-main {
    grid-column: 1;
}

.featured-secondary {
    grid-column: 2;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
}

/* Featured Cards */
.featured-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-card-large {
    height: 100%;
}

.featured-card-small {
    display: flex;
    flex-direction: row;
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card-large .card-image-wrapper {
    height: 300px;
    width: 100%;
}

.featured-card-small .card-image-wrapper {
    width: 140px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Card Body Structure for Small Cards */
.featured-card-small .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content-top {
    flex: 1;
}

/* Category Pill */
.category-pill {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Card Content */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-card-small .card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-card-small .card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.card-subtitle {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-subtitle-small {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-excerpt-small {
    color: var(--light-text);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta */
.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-card-small .card-meta {
    margin-top: auto;
    font-size: 0.85rem;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-date {
    color: var(--light-text);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.meta-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Read More Buttons */
.btn-readmore {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-readmore:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-readmore:hover i {
    transform: translateX(3px);
}

.link-readmore {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.link-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.link-readmore:hover {
    color: var(--primary-dark);
}

.link-readmore:hover i {
    transform: translateX(3px);
}

/* Featured Footer */
.featured-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: var(--light-text);
}

.featured-view-all {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.featured-view-all i {
    font-size: 0.8rem;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.featured-view-all:hover {
    color: var(--primary-dark);
}

.featured-view-all:hover i {
    transform: translateX(3px);
}

/* Decorative Elements */
.decorative-element {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}

.element-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    top: -100px;
    right: -100px;
}

.element-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.1) 0%, rgba(255, 160, 0, 0.05) 100%);
    bottom: -50px;
    left: -50px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .featured-section .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .featured-section {
        padding: 80px 0;
    }
    
    .featured-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-main,
    .featured-secondary {
        grid-column: 1;
    }
    
    .featured-secondary {
        grid-template-rows: unset;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .featured-card-large .card-image-wrapper {
        height: 250px;
    }
    
    .featured-section .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 60px 0;
    }
    
    .featured-section .section-title h2 {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .featured-secondary {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-card-small {
        flex-direction: row;
    }
    
    .featured-card-small .card-image-wrapper {
        width: 135px;
    }
    
    .card-subtitle-small {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .card-excerpt-small {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .featured-section {
        padding: 50px 0;
    }
    
    .featured-section .section-title h2 {
        font-size: 1.6rem;
    }
    
    .featured-card-large .card-image-wrapper {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-excerpt {
        margin-bottom: 15px;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .featured-card-small {
        flex-direction: column;
    }
    
    .featured-card-small .card-image-wrapper {
        width: 100%;
        height: 160px;
    }
    
    .card-excerpt-small {
        -webkit-line-clamp: 3;
    }
}