/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

/* category grid container */
.astra-cat-grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 0;
    text-decoration: none;
}

.astra-cat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.astra-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* category image wrapper */
.astra-cat-image-wrapper {
    position: relative;
    /* height: 200px; */
    overflow: hidden;
}

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

.astra-cat-card:hover .astra-cat-image {
    transform: scale(1.05);
}

.astra-cat-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%); */
}

.astra-cat-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.astra-cat-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.astra-cat-desc {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.astra-cat-link-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0274be; /* Astra blue */
    margin-top: auto;
}

/* mobile style */
@media (max-width: 768px) {
    .astra-cat-grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Astra page style */
ul.page-numbers {
    display: flex;
    justify-content: center;
    width: 100%;             
    margin: 2rem 0 !important; 
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

ul.page-numbers li {
    margin: 0 5px;
}

ul.page-numbers li a, 
ul.page-numbers li span {
    display: inline-block;
    padding: 8px 12px;
    line-height: 1.2;
    border: 1px solid #FFB900;
    border-radius: 4px;
    text-decoration: none;
    color: #555555;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mouse hover effect */
.page-numbers li a:hover {
    background-color: #FFB900;
    color: #fff;
}

/* Highlight the current page (perfectly matches the yellow theme) */
.page-numbers li span.current {
    background-color: #FFB900;
    color: #fff;
    border-color: #FFB900;
    font-weight: 600;
}

/* Ellipsis style */
.page-numbers li span.dots {
    border: none;
    background: transparent;
}

@media (max-width: 768px) {
    ul.page-numbers li a, 
    ul.page-numbers li span {
        padding: 10px 12px;
        min-height: 44px; /* iOS/Android Recommended minimum touch size */
        min-width: 44px;
    }
}