/* Page Header */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 95, 60, 0.8), rgba(15, 95, 60, 0.6));
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-yellow);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-family: 'Amiri', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Filter Section */
.blog-filter-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.filter-header h2 .highlight-green {
    color: var(--primary-green);
}

.filter-header h2 .highlight-orange {
    color: var(--secondary-yellow);
}

.filter-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 95, 60, 0.3);
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 3px solid var(--secondary-yellow);
    transform: scale(1.02);
}

.blog-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.blog-card.hidden {
    display: none;
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-card.featured .blog-image {
    height: 100%;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-green);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 15px rgba(15, 95, 60, 0.3);
}

.blog-date .date {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-yellow);
    color: var(--orange-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content {
    padding: 30px;
}

.blog-card.featured .blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.blog-category {
    background: rgba(15, 95, 60, 0.1);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-author,
.read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-author i,
.read-time i {
    font-size: 11px;
}

.blog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.featured .blog-title {
    font-size: 28px;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.featured .blog-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 4;
    margin-bottom: 25px;
}

.blog-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-green-hover);
    gap: 12px;
}

.blog-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.search-bar {
    position: relative;
    max-width: 500px;
    width: 100%;
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 8px 25px rgba(15, 95, 60, 0.2);
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-green);
    border: none;
    padding: 16px 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-btn:hover {
    background: var(--primary-green-hover);
}

.search-btn i {
    font-size: 16px;
}

/* Pagination Section */
.pagination-section {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 48px;
}

.page-number:hover,
.page-number.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.page-dots {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 8px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* Newsletter CTA Section */
.newsletter-cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    color: var(--orange-text);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content h2 .highlight-green {
    color: var(--primary-green);
}

.cta-content h2 .highlight-orange {
    color: var(--secondary-yellow);
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form .newsletter-input {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.newsletter-form button {
    background: var(--secondary-yellow);
    color: var(--orange-text);
    border: none;
    padding: 16px 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-yellow-hover);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .page-header {
        height: 35vh;
        min-height: 350px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .blog-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .page-btn,
    .page-number {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .newsletter-form .newsletter-input {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 30vh;
        min-height: 300px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .blog-filter-section,
    .blog-grid-section,
    .newsletter-cta-section {
        padding: 50px 0;
    }
    
    .filter-header h2 {
        font-size: 26px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card.featured {
        transform: none;
        border-width: 2px;
    }
    
    .blog-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-card.featured .blog-title {
        font-size: 24px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-numbers {
        order: 1;
    }
    
    .prev-btn {
        order: 2;
    }
    
    .next-btn {
        order: 3;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .newsletter-form .newsletter-input {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-form input {
        border-radius: 15px 15px 0 0;
    }
    
    .newsletter-form button {
        border-radius: 0 0 15px 15px;
        padding: 18px 32px;
    }
    
    .search-container {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .search-input {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 14px 20px;
        min-width: 55px;
    }
    
    .search-btn i {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 25vh;
        min-height: 250px;
    }
    
    .page-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.5;
    }
    
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .blog-filter-section,
    .blog-grid-section,
    .newsletter-cta-section {
        padding: 40px 0;
    }
    
    .filter-header h2 {
        font-size: 22px;
    }
    
    .filter-tabs {
        gap: 8px;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-card.featured .blog-title {
        font-size: 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .blog-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .blog-link {
        font-size: 13px;
    }
    
    .page-numbers {
        gap: 5px;
    }
    
    .page-number {
        padding: 10px 12px;
        min-width: 40px;
        font-size: 13px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 15px;
    }
    
    .cta-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .newsletter-form input {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .newsletter-form button {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .search-container {
        margin: 25px 0;
        padding: 0 10px;
    }
    
    .search-input {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 18px;
        min-width: 50px;
    }
    
    .search-btn i {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .page-header {
        min-height: 220px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .page-subtitle {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
    
    .filter-tabs {
        padding: 0 5px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 16px;
    }
    
    .blog-card.featured .blog-title {
        font-size: 18px;
    }
}