/*Articles page css*/

/* Articles Hero - prefixed */
.article-hero {
    background: linear-gradient(145deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

.article-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.article-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.article-hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.article-hero-search .input-group {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.article-hero-search input {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
}

.article-hero-search button {
    background-color: var(--accent-orange);
    border: none;
    padding: 0 30px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.article-hero-search button:hover {
    background-color: #e09d30;
}

/* Featured Articles - prefixed */


/* Regular Articles Grid - prefixed */
.article-grid-main {
    margin-bottom: 60px;
}

.article-card-item {
    background: var(--card-bg);
    border: 1px solid var(--light-green);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.article-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.article-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-card-title a {
    color: var(--dark-green);
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--primary-green);
}

.article-card-excerpt {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    margin-top: auto;
}

.article-card-author-sm {
    display: flex;
    align-items: center;
}

.article-card-author-img-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.article-card-author-name-sm {
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-read-time-sm {
    color: var(--accent-orange);
    font-size: 0.8rem;
}

/* Sidebar - prefixed */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.article-widget-title {
    font-family: 'Roboto Slab', serif;
    color: var(--dark-green);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
}

.article-category-list {
    list-style: none;
    padding: 0;
}

.article-category-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 8px;
}

.article-category-list a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.article-category-list a:hover {
    color: var(--accent-orange);
}

.article-popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.article-popular-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
}

.article-popular-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.article-popular-title a {
    color: var(--dark-green);
    text-decoration: none;
}

.article-popular-date {
    font-size: 0.8rem;
    color: #64748b;
}



/* Newsletter - prefixed */
.article-newsletter {
    background: linear-gradient(145deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
}

.article-newsletter h4 {
    color: white;
    border-bottom: none;
}

.article-newsletter .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px;
    margin-bottom: 15px;
}

.article-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.article-btn-subscribe {
    background-color: var(--accent-orange);
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.article-btn-subscribe:hover {
    background-color: #e09d30;
    transform: translateY(-2px);
}

/* Pagination - prefixed */
.article-pagination {
    justify-content: center;
    margin-top: 50px;
}

.article-pagination .page-link {
    color: var(--dark-green);
    border: none;
    background: white;
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.article-pagination .page-item.active .page-link {
    background-color: var(--accent-orange);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .article-hero-title {
        font-size: 2.5rem;
    }


}

@media (max-width: 768px) {
    .article-hero {
        padding: 60px 0;
    }

    .article-hero-title {
        font-size: 2rem;
    }
}


/*Articles Details Page*/

/* Breadcrumb (article-specific) */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
    list-style: none;
    border-bottom: 1px solid var(--border-light);
}

.article-breadcrumb li {
    font-size: 0.9rem;
}

.article-breadcrumb li+li:before {
    content: "/";
    padding: 0 8px;
    color: var(--primary-green);
}

.article-breadcrumb a {
    color: var(--dark-green);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--accent-orange);
}

.article-breadcrumb .active {
    color: #64748b;
}

/* Article Detail */
.article-detail-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 60px 0;
}

.article-header {
    margin-bottom: 30px;
}

.article-category {
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-green);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;

}

.article-author {
    display: flex;
    align-items: center;
}

.article-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--light-green);
}

.article-author-info h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.article-author-info p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.article-date {
    color: #64748b;
    font-size: 0.95rem;
}

.article-date i {
    color: var(--accent-orange);
    margin-right: 5px;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark-green);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    color: #334155;
}

.article-content blockquote {
    background: var(--light-green);
    padding: 20px;
    border-left: 5px solid var(--accent-orange);
    font-style: italic;
    margin: 30px 0;
    border-radius: 8px;
}

/* Vocabulary grid premium */
.vocab-section-wrapper {
    margin: 3rem 0 1.5rem;
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-top: 1.2rem;
}

.vocab-card {
    background: white;
    border-radius: 24px;
    padding: 1.2rem 1.5rem;
    transition: all 0.25s ease;
    border: 1px solid #f0e9df;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.vocab-card:hover {
    transform: translateY(-4px);
    border-color: #e9b35f;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.vocab-term {
    font-weight: 800;
    font-size: 1.2rem;
    color: #2c6e49;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
    border-left: 3px solid #e9b35f;
    padding-left: 12px;
}

.vocab-definition {
    color: #3e5a6b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .vocab-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-detail-wrapper {
        padding: 1.8rem;
    }
}

.article-share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 40px 0;
}

.article-share-section span {
    font-weight: 600;
}

.article-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-green);
    color: var(--dark-green);
    border-radius: 50%;
    margin-right: 8px;
    transition: 0.2s;
}

.article-share-icons a:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
}

.article-author-bio {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-author-bio-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.article-author-bio-text h4 {
    margin-bottom: 10px;
    color: var(--dark-green);
}

.article-author-bio-text p {
    margin-bottom: 0;
    color: #475569;
}

/* Related Articles */
.article-related-title {
    font-size: 1.8rem;
    margin: 60px 0 30px;
    color: var(--dark-green);
}

.article-related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.article-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-related-content {
    padding: 20px;
}

.article-related-category {
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.article-related-title-small {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-related-title-small a {
    color: var(--dark-green);
    text-decoration: none;
}

.article-related-title-small a:hover {
    color: var(--primary-green);
}

.article-related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

/* Sidebar */
.article-sidebar {
    margin-top: 60px;
    position: sticky;
    top: 120px;
}

.article-sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.article-widget-title {
    font-family: 'Roboto Slab', serif;
    color: var(--dark-green);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
}

/* Category list */
.article-category-list {
    list-style: none;
    padding: 0;
}

.article-category-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 8px;
}

.article-category-list a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.article-category-list a:hover {
    color: var(--accent-orange);
}

.article-popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.article-popular-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
}

.article-popular-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.article-popular-title a {
    color: var(--dark-green);
    text-decoration: none;
}

.article-popular-date {
    font-size: 0.8rem;
    color: #64748b;
}



/* Calendar Widget */


/* Newsletter */
.article-newsletter {
    background: linear-gradient(145deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
}

.article-newsletter .article-widget-title {
    color: white;
    border-bottom-color: white;
}

.article-newsletter .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px;
    margin-bottom: 15px;
}

.article-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.article-btn-subscribe {
    background-color: var(--accent-orange);
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.article-btn-subscribe:hover {
    background-color: #e09d30;
    transform: translateY(-2px);
}



/* Responsive */
@media (max-width: 992px) {
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-detail-wrapper {
        padding: 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }
}























/* ========== COMMENTS SECTION (ac- prefix) ========== */
.ac-comments-wrapper {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ac-comments-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
}

.ac-comments-list {
    margin-bottom: 2rem;
}

.ac-comment-thread {
    margin-bottom: 2rem;
}

.ac-comment {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.ac-comment:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ac-admin-reply {
    margin-left: 2.5rem;
    margin-top: 0.75rem;
    background: #f8fafc;
    border-left: 4px solid var(--dark-green);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.ac-comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ac-comment-avatar {
    flex-shrink: 0;
}

.ac-avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 1.8rem;
}

.ac-avatar-user {
    background: var(--primary-green);
    color: white;
}

.ac-avatar-admin {
    background: var(--dark-green);
    color: white;
    font-size: 1.4rem;
}

.ac-comment-meta {
    flex: 1;
}

.ac-comment-author {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}


.ac-comment-date {
    font-size: 0.8rem;
    color: #64748b;
}

.ac-comment-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 0;
}

.ac-comment-actions {

    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f7;
}

.ac-like-btn,
.ac-reply-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    transition: all 0.2s;
    cursor: pointer;
}

.ac-like-btn i,
.ac-reply-btn i {
    margin-right: 0.35rem;
}

.ac-like-btn:hover,
.ac-reply-btn:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.ac-like-count {
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Empty comments */
.ac-empty-comments {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
}

.ac-empty-comments p {
    color: #64748b;
    margin: 0;
}

/* Comment form */
.ac-comment-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.ac-form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.ac-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ac-form-group {
    flex: 1;
    min-width: 200px;
}

.ac-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.ac-input,
.ac-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    transition: 0.2s;
}

.ac-input:focus,
.ac-textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.ac-submit-btn {
    background: #32511f;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 1rem;
    font-weight: 500;
    color: white;
    transition: 0.2s;
}

.ac-submit-btn:hover {
    background: var(--primary-green);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .ac-admin-reply {
        margin-left: 1rem;
    }

    .ac-form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========== FAQ SECTION (afaqs- prefix) ========== */
.afaqs-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.afaqs-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    text-align: center;

}

.afaqs-accordion {
    margin-top: 1rem;
}

.afaqs-item {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.afaqs-item:last-child {
    margin-bottom: 0;
}

.afaqs-question {
    width: 100%;
    background: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.afaqs-question:hover {
    background: #f1f5f9;
}

.afaqs-question[aria-expanded="true"] .afaqs-icon {
    transform: rotate(180deg);
}

.afaqs-icon {
    font-size: 0.9rem;
    color: var(--accent-orange);
    transition: transform 0.3s;
}

.afaqs-answer {
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Optional: if you use Bootstrap collapse, ensure transitions */
.collapse:not(.show) {
    display: none;
}