/* Hero Section */
.guide-hero {
    background-color: #f8f9fa;
    padding: 80px 0 60px;
    margin-top: 76px;
}

.guide-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #2e2e2e;
    line-height: 1.5;
}

/* Main Content */
.guide-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

/* Filter Section */
.filter-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.btn-search {
    background-color: #1b760a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #155d08;
}

.filter-dropdowns .form-select {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* Categories Filter */
.categories-filter {
    margin-top: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #7a7a7a;
    margin-bottom: 20px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.btn-select-all {
    padding: 6px 16px;
    background-color: #6ca643;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-select-all:hover {
    background-color: #5a943a;
}

.btn-reset {
    padding: 6px 16px;
    background-color: #fff;
    color: #333;
    border: 1px solid #004b00;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background-color: #004b00;
    color: #fff;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #2e2e2e;
    border-radius: 0;
    cursor: pointer;
}

.category-item label {
    font-size: 16px;
    font-weight: 500;
    color: #2e2e2e;
    cursor: pointer;
    margin: 0;
}

/* Articles Section */
.articles-section {
    min-height: 500px;
}

.guide-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.guide-card-inner {
    display: block;
}

.guide-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.category-badge {
    position: absolute;
    top: 11px;
    left: 32px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* Card Content */
.guide-card-content {
    padding: 30px;
}

.guide-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.guide-card-title a {
    color: inherit;
    text-decoration: none;
}

.guide-card-title a:hover {
    color: #004b00;
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.guide-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.guide-card-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.guide-card-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read-more {
    background: white;
    color: #004b00;
    border: 2px solid #004b00;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background: #004b00;
    color: white;
}

.guide-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background-color: rgba(0, 75, 0, 0.08);
    transition: all 0.3s ease;
}

.guide-tag:hover {
    background-color: rgba(0, 75, 0, 0.15);
}


/* Pagination */
.guide-pagination {
    margin-top: 40px;
}

.guide-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.guide-pagination .page-item {
    margin: 0;
}

.guide-pagination .page-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #004b00;
    border: 1px solid #004b00;
}

.guide-pagination .page-item.active .page-link {
    background-color: #004b00;
    color: #fff;
    border-color: #004b00;
}

.guide-pagination .page-link:hover {
    background-color: #004b00;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .guide-card-image {
        height: 250px;
    }
    
    .guide-card-content {
        padding: 25px;
    }
    
    .guide-card-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .filter-section {
        padding: 20px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .category-actions .btn {
        width: 100%;
    }
    
    .guide-pagination .page-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}