/*
Theme Name: FM-AIRE
Theme URI: https://www.theabfm.org
Description: Astra Child Theme
Author: ABFM
Author URI: https://www.theabfm.org
Template: astra
Version: 1.0.7
Text Domain: astra-child
*/

/* Grid layout: always 3 columns */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 2em 0;
}

/* Card styling */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.post-thumbnail img,
.placeholder-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Content */
.post-content {
    padding: 1em;
    text-align: left;
}

.post-title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: #333;
}

.post-excerpt {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 1em;
}

.read-more {
    display: inline-block;
    font-weight: bold;
    color: #0073aa;
}

.read-more:hover {
    color: #005177;
}

ul.info_list {
    list-style: none;
    padding: 0;
    position: relative;
}

ul.info_list:before {
    content: '';
    background: #7e9dab;
    display: inline-block;
    position: absolute;
    left: 18px;
    width: 2px;
    height: 100%;
}

ul.info_list li:before {
    content: '';
    background: #06435e;
    display: inline-block;
    position: absolute;
    left: 0px;
    width: 40px;
    height: 40px;
    top: 16px;
    border-radius: 50%;
    transform: translateY(-50%);
}

ul.info_list li {
    margin: 10px 0;
    padding-left: 60px;
    position: relative;
}

ul.squares {
    list-style-type: square;
}

ul.squares li::marker {
    color: #DA222B;
}

.wpcf7-submit {
    display: block;
    margin: auto;
}

.ast-hf-menu-2 .menu-item a {
    display: flex;
    align-items: center;
}

.wpforo-home a::before {
    content: '\f086';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.wpforo-logout a::before {
    content: '\f08b';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.wpforo-login a::before {
    content: '\f2c2';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.wpforo-register a::before {
    content: '\f090';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.menu-item-11 a::before {
    content: '\f007';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.menu-item-529 a::before {
    content: '\f15c';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.menu-item-637 a::before {
    content: '\f086';
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 18px;
}

.site-navigation .menu-link {
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-navigation .menu-link:hover {
    transform: scale(1.1);
}

#primary-site-navigation-desktop .main-header-menu>li {
    position: relative;
    padding: 0px 5px;
}

#primary-site-navigation-desktop .main-header-menu>li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30%;
    width: 2px;
    background-color: #DA222B;
}

.ast-icon.icon-search {
    transition: all 0.3s ease;
}

.ast-icon.icon-search:hover {
    color: #09658E;
    transform: scale(1.5);
}

/*WPForo*/
.wpforo {
    padding: 0px !important;
    background: #fafafa !important;
}

.wpf-subforum-sep {
    height: 0px !important;
}

.forum-title {
    font-weight: normal !important;
    line-height: 1.4em !important;
    color: #0B445E !important;
    font-size: 36px !important;
}

.wpforo-category {
    background-color: transparent !important;
    border-radius: 0 !important;
}

.wpforo-cat-panel {
    padding: 0 !important;
}

/* End WPForo*/

/*Custom WPForo Login*/
.custom-profile-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-form {
    width: 100%;
    max-width: 500px;
    border: 1px solid #7e9dab !important;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    margin-top: 64px !important;
    margin-bottom: 32px !important;
}

.custom-login-content {
    margin-top: 20px !important;
    text-align: center;
}

.custom-field {
    margin-bottom: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-field label {
    margin-top: 20px !important;
    width: 50%;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
}

.custom-input {
    width: 50% !important;
}

.custom-login-button {
    width: 100% !important;
    background-color: #0B445E !important;
    color: #FAFAFA !important;
    border: none !important;
    font-size: 16px !important;
    margin-top: 20px !important;
    text-align: center;
    border-radius: 0 0 4px 4px !important;
}

.custom-login-button:hover {
    background-color: #10658C !important;
    color: #FFFFFF !important;
}

.custom-forgot-pass {
    margin-top: 5px;
    font-size: 12px;
    width: 50% !important;
    color: #0b445e !important;
    text-align: left !important;
}

.custom-forgot-pass:hover {
    text-decoration: underline !important;
}

/*END Custom WPForo Login*/


/* Event Deadline */
.deadline-event {
    background-color: #ff4d4d;
    color: white;
    padding: 15px;
    text-align: center;
    border: 2px solid darkred;
}

/* End Event Deadline */

/* wpforo hide */
.wpforo-topic-head-wrap {
    display: none;
}

.wpforo-topic-footer {
    display: none;
}

/* End wpforo hide */


/* Header button */
.button-link-header {
    width: 100%;
    padding: 16px 32px;
    background-color: #EAEDF5;
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    display: inline-block;
    color: #0B445E;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.button-link-header:hover {
    transform: scale(1.05);
}

#member-community {
    display: none;
}

/* End Header button */
.wpcf7-form p {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
    }

    .create-document-button {
        margin: 10px 0 0 0;
    }

    .post-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-item-thumbnail {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .post-item-thumbnail img {
        width: auto;
        max-width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .post-item-content {
        width: 100%;
    }
}

/* Layout Container */
.document-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

/* Category Box */
.category-box {
    flex: 1 1 250px;
    max-width: 300px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Category Filters List */
.category-filters {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-filters li {
    margin-bottom: 0.75rem;
}

.category-filters li a {
    display: block;
    padding: 16px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-filters li a:hover {
    background: #0B445E;
    color: #fafafa;
    border-color: #0B445E;
}

/* Posts Section */
.posts-section {
    flex: 1;
}


.post-list-item {
    list-style: none;
    margin-bottom: 1rem;
}

.post-link {
    text-decoration: none;
    color: inherit;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    padding: 1rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.post-thumb {
    flex: 0 0 160px;
    max-width: 160px;
}

.post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.post-content-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #111827;
}

.entry-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.document-meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Responsive Layout */
@media (max-width: 640px) {
    .post-item {
        flex-direction: column;
    }

    .post-thumb {
        width: 100%;
        max-width: none;
    }

    .post-thumb img {
        height: 180px;
    }

    .post-footer {
        justify-content: flex-start;
    }

    .document-layout {
        flex-direction: column;
    }

    .category-box {
        max-width: 100%;
        order: -1;
    }
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body,
    .site,
    .ast-container,
    .site-content,
    .entry-content {
        background: #ffffff !important;
    }

    header,
    footer,
    .no-print,
    .ast-breadcrumbs,
    .site-navigation {
        display: none !important;
    }

    .elementor-section,
    .elementor-column,
    .elementor-widget {
        break-inside: avoid !important;
    }

    .break-page {
        break-before: page;
    }

    .e-con-inner {
        gap: 40px !important;
    }
}

.site-content .ast-container {
    display: block;
    max-width: 1200px;
}

/*Start Community*/
.hero-section {
    background: linear-gradient(150deg, #0B445E, #4A779F);
    text-align: center;
    padding: 80px 20px !important;
    color: #fafafa !important;
    border-radius: 8px;
    margin: 16px 0px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.forum {
    flex-grow: 1;
}

@media (max-width: 640px) {
    .profile {
        display: none;
    }

    .hero-section {
        padding: 50px 8px !important;
    }
}

.profile-card {
    border-radius: 8px;
    background-color: #333333;
    padding: 16px !important;
    text-align: center;
}

.profile-card img {
    border-radius: 50% !important;
    border: 8px solid #4A779F !important;
}

/*End Communnity*/

/*Start Topic*/
.wpf-topic-forum-field {
    display: none;
}

.wpforo-category {
    border-radius: 8px 8px 0 0 !important;
    background-color: #0B445E !important;
    padding: 0px 8px !important;
}

.forum-title {
    color: #fafafa !important;
}

.thread-container {
    padding: 20px !important;
    background-color: #E1E1E1;
    border-radius: 8px;
}

.thread-body {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    font-size: 16px !important;
}

.thread-body p {
    font-size: 16px !important;
}

.thread-title {
    display: flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 8px !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}


.right-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*End Topic*/

.print-button {
    padding: 10px 25px !important;
}