/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: A child theme for Astra.
Author: Shakil Ahmed Raju
Author URI: https://hs.com.bd/
Template: astra
Version: 1.0.0
*/




/* ====================== */
/* PAGINATION STYLES */
/* ====================== */

.astra-pagination {
    margin: 3rem 0 2rem;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.astra-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.astra-pagination li {
    margin: 0;
}

.astra-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Current/active page */
.astra-pagination .page-numbers.current {
    background-color: #28bd86; /* Primary color */
    border-color: #28bd86;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(40, 189, 134, 0.2);
}

/* Hover states */
.astra-pagination .page-numbers:not(.current):not(.dots):hover {
    background-color: #1b5fc1; /* Secondary color */
    border-color: #1b5fc1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(27, 95, 193, 0.1);
}

/* Navigation arrows */
.astra-pagination .page-numbers.prev,
.astra-pagination .page-numbers.next {
    padding: 0 16px;
    background-color: #f8fafc;
}

.astra-pagination .page-numbers.prev:hover,
.astra-pagination .page-numbers.next:hover {
    background-color: #1b5fc1; /* Secondary color */
    color: white;
}

/* Disabled dots */
.astra-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    cursor: default;
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .astra-pagination ul {
        gap: 4px;
    }
    .astra-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.875rem;
    }
    .astra-pagination .page-numbers.prev,
    .astra-pagination .page-numbers.next {
        padding: 0 12px;
    }
}

/* Hide default Astra pagination when our custom version exists */
.ast-pagination + .astra-pagination,
.astra-pagination + .ast-pagination {
    display: none;
}

/* ====================== */
/* FILTER BUTTON STYLES */
/* ====================== */

.category-filters-wrapper {
    margin: 2rem 0 3rem;
}

.category-filters {
    gap: 12px;
}

.filter-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-button:not(.active) {
    background-color: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.filter-button.active {
    background-color: #28bd86; /* Primary color */
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(40, 189, 134, 0.2);
}

.filter-button:not(.active):hover {
    background-color: #1b5fc1; /* Secondary color */
    color: white;
    border-color: #1b5fc1;
}
.posts-grid {
    display: grid;
    gap: 2rem; /* Spacing between posts */
    /* Responsive grid columns: auto-fit creates as many columns as possible, minmax sets min/max width */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Responsive filter buttons */
@media (max-width: 640px) {
    .category-filters {
        gap: 8px;
    }
    .filter-button {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
}

/* Loading Spinner Styles */
.astra-child-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.astra-child-spinner-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #3b82f6; /* Blue color - change as needed */
    border-radius: 50%;
    animation: astra-child-spin 1s linear infinite;
}

@keyframes astra-child-spin {
    to { transform: rotate(360deg); }
}

section.ast-archive-description {
    padding: 3em!important;
}
.author-profile-box {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
	background: #f8f9fa;
	padding: 30px;
	margin-bottom: 40px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.author-profile-box .author-avatar img {
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	height: 120px;
	width: 120px;
}

.author-profile-box .author-details {
	flex: 1;
	min-width: 250px;
}

.author-profile-box .author-name {
	font-size: 2rem;
	margin-bottom: 10px;
	color: #28bd86;
}

.author-profile-box .author-bio {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 15px;
}

.author-profile-box .author-meta {
	list-style: none;
	padding-left: 0;
	font-size: 1rem;
}

.author-profile-box .author-meta li {
	margin-bottom: 8px;
}

/* Custom layout for single posts */
@media (min-width: 922px) {
    body.single-post #primary {
        width: 60%;
        float: left;
    }

    body.single-post #secondary {
        width: 40%;
        float: right;
    }
	body.single-post article.ast-article-single{
		padding: 3em!important;
	}
}

body.registration .site .ast-single-related-posts-container{
	display: none;
}


/* Author Row Styles */
/* Author Row Styles */
.author-row-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px;
    justify-content: flex-start;
    scrollbar-width: none; /* Firefox */
}
.author-row-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.author-row-item {
    text-align: center;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-row-item img {
    border-radius: 50%!important;
    border: 3px solid #28bd86!important; /* primary color */
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
	width: 60px;
	height: 60px!important;
}

.author-row-item:hover img {
    transform: scale(1.1);
    border-color: #1b5fc1!important; /* secondary color */
}

.author-row-item .author-name {
    margin-top: 8px;
    font-size: 14px;
    color: #1b5fc1; /* secondary */
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    display: block;
}

.author-row-item a:hover .author-name {
    color: #28bd86; /* primary */
}

.wpforms-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	background-color: #28bd86; /* Primary color */
    color: white;
}



.wpforms-submit:hover {
    background-color: #1b5fc1; /* Secondary color */
    color: white;
    border-color: #1b5fc1;
}


