/*
Theme Name: Astra Child
Template: astra
Version: 1.0.8
*/

/* Document List Template Styles */

.documents-directory {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 30px;
}

.document-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-card h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.document-card p {
    font-size: 16px;
    color: #555;
    flex-grow: 1;
}

.download-btn,
.download-btn:link,
.download-btn:visited {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    background-color: #0077cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.download-btn:hover,
.download-btn:focus,
.download-btn:active {
    background-color: #005fa3;
    color: #ffffff;
    text-decoration: none;
}

/* Tablet and Mobile: show 1 column */
@media (max-width: 1024px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* Company single page */
.single-company #content.site-content > .ast-container {
    padding-top: 3rem;
}

.single-company .company-profile {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-company .company-profile h1 {
    margin-top: 0;
}

.single-company .company-featured-image,
.single-company .company-logo {
    margin-bottom: 1.5rem;
}

.single-company .company-featured-image img,
.single-company .company-logo img {
    max-width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .single-company #content.site-content > .ast-container {
        padding-top: 2rem;
    }

    .single-company .company-profile {
        margin-left: 16px;
        margin-right: 16px;
        padding: 24px;
    }
}

/* Event single page */
.single-event .event-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.single-event .event-published-date {
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.single-event .event-image {
    margin-bottom: 20px;
}

.single-event .event-image img {
    max-width: 100%;
    height: auto;
}

.single-event .event-summary {
    margin-bottom: 30px;
}

.single-event .event-post-navigation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.single-event .event-post-navigation .post-navigation {
    margin: 0;
    padding: 0;
}

.single-event .event-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.single-event .event-post-navigation .nav-previous,
.single-event .event-post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.single-event .event-post-navigation .nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .single-event .event-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .single-event .event-post-navigation .nav-links {
        flex-direction: column;
    }

    .single-event .event-post-navigation .nav-previous,
    .single-event .event-post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

/* Scroll to top — HFE, Astra, Essential Addons (site-wide) */
.hfe-scroll-to-top-wrap:not(.zato-scroll-visible),
.eael-ext-scroll-to-top-wrap:not(.zato-scroll-visible),
#ast-scroll-top:not(.zato-scroll-visible) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hfe-scroll-to-top-wrap.zato-scroll-visible,
.eael-ext-scroll-to-top-wrap.zato-scroll-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

.hfe-scroll-to-top-wrap,
.eael-ext-scroll-to-top-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    pointer-events: none;
}

.hfe-scroll-to-top-wrap .hfe-scroll-to-top-button,
.hfe-scroll-to-top-button,
.eael-ext-scroll-to-top-wrap .eael-ext-scroll-to-top-button,
.eael-ext-scroll-to-top-button {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    pointer-events: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    background-color: #1D68B3 !important;
    color: #ffffff !important;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hfe-scroll-to-top-button i,
.hfe-scroll-to-top-button img,
.hfe-scroll-to-top-button span,
.eael-ext-scroll-to-top-button i,
.eael-ext-scroll-to-top-button img,
.eael-ext-scroll-to-top-button span {
    display: block;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
}

.hfe-scroll-to-top-button i,
.eael-ext-scroll-to-top-button i {
    display: inline-block;
    line-height: 1 !important;
    color: #ffffff !important;
    transform: none;
}

/* fa-chevron-up points up by default; only flip down-pointing icons */
.hfe-scroll-to-top-button i[class*="chevron-down"],
.hfe-scroll-to-top-button i[class*="angle-down"],
.hfe-scroll-to-top-button i[class*="arrow-down"],
.eael-ext-scroll-to-top-button i[class*="chevron-down"],
.eael-ext-scroll-to-top-button i[class*="angle-down"],
.eael-ext-scroll-to-top-button i[class*="arrow-down"] {
    transform: rotate(180deg);
}

.hfe-scroll-to-top-button i::before,
.eael-ext-scroll-to-top-button i::before {
    display: block;
    line-height: 1;
}

.hfe-scroll-to-top-button img,
.eael-ext-scroll-to-top-button img {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#ast-scroll-top {
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    line-height: 1 !important;
    right: 24px !important;
    bottom: 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    background-color: #1D68B3 !important;
    color: #ffffff !important;
    z-index: 99999;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

#ast-scroll-top.zato-scroll-visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}

#ast-scroll-top .ast-icon.icon-arrow svg {
    margin: 0 !important;
    vertical-align: middle;
    transform: rotate(180deg) !important;
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
}

@media (max-width: 768px) {
    .hfe-scroll-to-top-wrap,
    .eael-ext-scroll-to-top-wrap {
        right: 16px;
        bottom: 16px;
    }

    #ast-scroll-top {
        right: 16px !important;
        bottom: 16px !important;
    }
}

