/* Articles Page Styles */

/* Page Banner */
.page-banner {
    position: relative;
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-dots.png');
    opacity: 0.1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.banner-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Section Heading */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-heading.centered {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.heading-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
}

.heading-left p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin: 0;
}

.section-heading.centered h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-heading.centered h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-heading.centered p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-top: 20px;
    max-width: 600px;
}

/* Latest Overview Section */
.latest-overview {
    background-color: white;
    padding-top: 80px;
    padding-bottom: 60px;
}

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

.overview-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 20px;
}

.card-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.card-category:hover {
    color: var(--primary-dark);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

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

.card-meta {
    color: var(--light-text);
    font-size: 0.85rem;
}

.meta-date {
    display: flex;
    align-items: center;
}

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

/* Categories List Section */
.categories-list {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.categories-accordion {
    margin-top: 50px;
}

.category-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.category-item.active .category-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-item.active .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 25px;
    border-top: 1px solid #eee;
}

.category-description {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.category-description p {
    color: var(--light-text);
    margin-bottom: 15px;
}

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

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

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-row {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.article-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.article-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-row:hover .article-thumbnail img {
    transform: scale(1.1);
}

.article-info {
    flex: 1;
}

.article-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-info h4 a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-info h4 a:hover {
    color: var(--primary-color);
}

.article-subtitle {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
    font-style: italic;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.read-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.no-articles-message {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    color: var(--light-text);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: white;
}

.newsletter-container {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    padding: 60px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-dots.png');
    opacity: 0.1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 500px;
}

.newsletter-form {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 500px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
}

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

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 15px 25px;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e09000;
}

.form-agreement {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.form-agreement a {
    color: white;
    text-decoration: underline;
}

/* No Content Message */
.no-content {
    text-align: center;
    padding: 50px;
    background-color: #f9f9f9;
    border-radius: 10px;
    color: var(--light-text);
}

/* Button Styles */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .newsletter-container {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .page-banner {
        padding: 60px 0 80px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .latest-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .newsletter-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 50px 0 70px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .heading-left h2 {
        font-size: 1.8rem;
    }
    
    .section-heading.centered h2 {
        font-size: 1.8rem;
    }
    
    .latest-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 15px 20px;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .category-content {
        padding: 20px;
    }
    
    .article-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .newsletter-container {
        padding: 30px 20px;
    }
    
    .newsletter-content h2 {
        font-size: 1.7rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 40px 0 60px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .card-image {
        height: 180px;
    }
}