/* Legenda Page Specific Styles */

/* Hero Section */
.legenda-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://4.bp.blogspot.com/-UkIS77lF5Dg/WAyI3ng6SmI/AAAAAAAADVg/2l-HCJscrYM-Kfci1qb6jY3B70n1voPQACLcB/s1600/Ilustrasi-Prabu-Siliwangi1452737345.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
}

.legenda-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.legenda-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search & Filter Section */
.search-filter {
    background-color: #f4f4f4;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-filter .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #333;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #f0f0f0;
}

.filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background-color: #fff;
}

.featured-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.featured-text {
    flex: 1;
}

.featured-label {
    display: inline-block;
    background-color: #ffdd00;
    color: #000;
    padding: 5px 15px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.featured-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.featured-image {
    flex: 1;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.featured-image:hover img {
    transform: scale(1.03);
}

/* Articles Grid */
.articles-grid {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #f0f0f0;
}

.pagination-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pagination-btn.next {
    width: auto;
    padding: 0 15px;
}

/* Newsletter Section */
.newsletter {
    background-color: #000;
    color: #fff;
    padding: 80px 0;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    background-color: #ffdd00;
    color: #000;
    border: none;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form .btn:hover {
    background-color: #e6c700;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-content {
        flex-direction: column;
    }
    
    .featured-text, .featured-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .legenda-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .search-filter .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-box {
        justify-content: space-between;
    }
    
    .featured-text h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form .btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .legenda-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .legenda-hero {
        padding: 80px 0 60px;
    }
    
    .filter-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .featured-text h2 {
        font-size: 1.8rem;
    }
}
