/**
 * PFE - Astra Theme Customizations
 * All plugin styles consolidated in one file
 */

/* ============================================
   GENERAL THEME CUSTOMIZATIONS
   ============================================ */

.site-title{
	display:none;
}

.custom-logo{
	border-radius:5px;
}

.ast-builder-menu-1 .sub-menu .menu-link,
.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-item .sub-menu .menu-link,
.ast-theme-transparent-header .main-header-menu .menu-item .sub-menu .menu-link {
    line-height: 1!important;
    color: var(--ast-global-color-3)!important;
}

.main-header-bar .main-header-bar-navigation .sub-menu {
    line-height: 1!important;
}


/* ============================================
   PAGE TITLE ABOVE FEATURED IMAGE
   ============================================ */

.custom-page-title-wrap {
    padding: 2rem 0;
    text-align: center;
}

.custom-page-title-wrap .entry-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}


/* ============================================
   CATEGORY CARDS
   ============================================ */

.pfe-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem!important;
}

.pfe-category-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.pfe-category-card a{
	text-decoration:none!important;
}

.pfe-category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.pfe-category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.pfe-category-link:hover,
.pfe-category-link:focus,
.pfe-category-link:active {
    text-decoration: none;
}

.pfe-category-title,
.pfe-category-description,
.pfe-category-description a {
    text-decoration: none;
}

.pfe-category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.pfe-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pfe-category-card:hover .pfe-category-image img {
    transform: scale(1.05);
}

.pfe-category-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pfe-category-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.pfe-category-description {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.pfe-category-description p:last-child {
    margin-bottom: 0;
}

.pfe-category-meta {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.pfe-category-count {
    font-size: 0.875rem;
    color: #999;
    font-weight: 500;
}

.pfe-category-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pfe-category-card:hover .pfe-category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.pfe-category-arrow svg {
    color: #333;
}

.pfe-category-card:not(:has(.pfe-category-image)) .pfe-category-content {
    padding-top: 2rem;
}


/* ============================================
   FEATURED POST
   ============================================ */

.pfe-featured-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.pfe-featured-post:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pfe-featured-post-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.pfe-featured-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pfe-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pfe-featured-post:hover .pfe-featured-post-image img {
    transform: scale(1.05);
}

.pfe-featured-post-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.pfe-featured-post-category a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /*transition: all 0.3s ease;*/
	transition:none;
}

.pfe-featured-post-category a:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pfe-featured-post-content {
    padding: 2rem;
}

.pfe-featured-post-meta {
    margin-bottom: 1rem;
}

.pfe-featured-post-date {
    display: inline-block;
    color: #999;
    font-size: 0.875rem;
    font-weight: 500;
}

.pfe-featured-post-title {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.pfe-featured-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pfe-featured-post-title a:hover {
    color: #0066cc;
}

.pfe-featured-post-excerpt {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 1.125rem;
    line-height: 1.7;
}

.pfe-featured-post-excerpt p:last-child {
    margin-bottom: 0;
}

.pfe-featured-post-content a {
	text-decoration:none!important;
}

.pfe-featured-post-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--ast-global-color-1);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pfe-featured-post-button:hover {
    background: #0052a3;
    transform: translateX(4px);
    text-decoration: none;
}

.pfe-featured-post-button svg {
    transition: transform 0.3s ease;
}

.pfe-featured-post-button:hover svg {
    transform: translateX(4px);
}


/* ============================================
   STICKY SIDEBAR
   ============================================ */

@media (min-width: 922px) {
    .secondary,
    .widget-area,
    #secondary {
        position: sticky;
        top: 2rem;
        align-self: flex-start;
    }

    .secondary .widget,
    .widget-area .widget {
        margin-bottom: 2rem;
    }
}

.site-footer {
    clear: both;
}


/* ============================================
   CATEGORY HIGHLIGHT IN SIDEBAR
   ============================================ */

.pfe-sidebar-link {
    display: block!important;
    padding: 0.5rem 0.8rem!important;
    border-left: 4px solid transparent;
}

.pfe-current-category {
    font-weight: 700!important;
    color: var(--ast-global-color-1)!important;
    background: rgba(0, 102, 204, 0.05);
    border-left: 4px solid #28a745!important;
}

#secondary li{
	margin:0px!important;
	line-height:1.5em!important;
}

.ast-terms-link{
	display:none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Page Title */
    .custom-page-title-wrap {
        padding: 1.5rem 0;
    }

    .custom-page-title-wrap .entry-title {
        font-size: 2rem;
    }

    /* Category Cards */
    .pfe-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .pfe-category-content {
        padding: 1.25rem;
    }

    .pfe-category-title {
        font-size: 1.25rem;
    }

    .pfe-category-image {
        height: 150px;
    }

    /* Featured Post */
    .pfe-featured-post-image {
        height: 300px;
    }

    .pfe-featured-post-content {
        padding: 1.5rem;
    }

    .pfe-featured-post-title {
        font-size: 1.5rem;
    }

    .pfe-featured-post-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Page Title */
    .custom-page-title-wrap {
        padding: 1rem 0;
    }

    .custom-page-title-wrap .entry-title {
        font-size: 1.75rem;
    }

    /* Category Cards */
    .pfe-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pfe-category-content {
        padding: 1rem;
    }

    .pfe-category-title {
        font-size: 1.125rem;
    }

    .pfe-category-arrow {
        top: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
    }

    /* Featured Post */
    .pfe-featured-post-image {
        height: 250px;
    }

    .pfe-featured-post-content {
        padding: 1.25rem;
    }

    .pfe-featured-post-title {
        font-size: 1.25rem;
    }

    .pfe-featured-post-category {
        top: 1rem;
        left: 1rem;
    }

    .pfe-featured-post-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}
