/*
 Theme Name:   Maxsys Hub
 Theme URI:    https://hub.maxsys.org
 Description:  Child theme for the FreelanceEngine theme, customized for Maxsys.org's mission.
 Author:       Maxsys Dev Team
 Author URI:   https://maxsys.org
 Template:     freelanceengine
 Version:      1.0.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         technology, support, community, nonprofit
 Text Domain:  maxsys-hub
*/

/* --- 1. Global Branding & Variables --- */
:root {
    --maxsys-blue-dark: #1A3E6C;
    --maxsys-green: #34A853; 
    --maxsys-blue-light: #4285F4;
    --maxsys-text-primary: #333333;
    --maxsys-text-secondary: #5f6f81;
    --maxsys-background-light: #f9f9f9;
    --maxsys-border-light: #e0e0e0;
}

/* --- 2. General Typography & Body Styles --- */
body { font-family: 'Raleway', sans-serif; color: var(--maxsys-text-primary); background: #fff; padding-top: 60px; font-size: 1.8rem;/* Offset for fixed header */ }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--maxsys-blue-dark); }
a { color: var(--maxsys-blue-light); }
a:hover { color: #357ABD; }
/*
================================================================
3. Header: Three-Component Flexbox Layout (Definitive)
================================================================
*/

/* --- A. Main Header Container --- */
.fre-header-wrapper {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px !important;
    min-height: 60px !important;
    border-bottom: 1px solid var(--maxsys-border-light);
}

/* --- B. Desktop Layout (992px and wider) --- */
@media (min-width: 1200px) {

    /* Make the container a flexbox to control alignment of its direct children */
    body #main_header.fre-header-wrap > .container {
        height: 100%;
        display: flex;
        align-items: center; /* This vertically centers everything */
    }

    /* Reset padding on the direct children of the flex container */
    body #main_header .fre-site-logo,
    body #main_header .fre-search-wrap,
    body #main_header .fre-menu-top,
    body #main_header .fre-account-wrap,
    body #main_header .fre-login-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Adjust logo height */
    body #main_header .fre-site-logo > a {
        height: 40px;
        display: flex;
        align-items: center;
    }

    /* --- C. THE CRITICAL FIX for the Three-Component Layout --- */

    /* Allow the menu to take up space, but don't force it to expand */
    body #main_header .fre-menu-top {
        flex-shrink: 0; /* Prevents the menu from shrinking if space is tight */
    }

    /* This single line tells the account block to push itself to the far right */
    body #main_header .fre-account-wrap,
    body #main_header .fre-login-wrap {
        margin-left: auto;
    }


    /* Vertically center the parent theme's menu items */
    body #main_header .fre-menu-main > li {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

/* --- D. Special Menu Link Styling --- */
.fre-menu-main > li > a:hover { color: var(--maxsys-green) !important; }

.fre-account {
    padding: 12px 0;
}
.fre-account-wrap .fre-notification
 {
    margin: 19px 0;
}

.fre-login-wrap {
    padding: 12px 0;
}

.fre-search-wrap .support-center-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--maxsys-blue-dark);
    line-height: 20px;
    background: none;
    border: none;
    padding: 0 10px;
    margin: 0;
}
.fre-search-wrap .support-center-link:hover {
    color: var(--maxsys-green);
    text-decoration: none;
}
.fre-search-wrap {
    width: auto;
}
/*
================================================================
4. Button Styles
================================================================
*/
body .fre-btn, body .btn-submit, body .fre-submit-btn,
body .fre-normal-btn, body .fre-small-btn {
    background: var(--maxsys-green) !important;
    border: 2px solid var(--maxsys-green) !important;
    box-shadow: none !important;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
}
body .fre-btn:hover, body .btn-submit:hover, body .fre-submit-btn:hover,
body .fre-normal-btn:hover, body .fre-small-btn:hover {
    background: #fff !important;
    color: var(--maxsys-green) !important;
}
body .fre-btn-o, body .fre-normal-btn-o {
    border-color: var(--maxsys-green) !important;
    color: var(--maxsys-green) !important;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
}
body .fre-btn-o:hover, body .fre-normal-btn-o:hover {
    background: var(--maxsys-green) !important;
    color: #fff !important;
}

/*
================================================================
5. Modal & Form Styles
================================================================
*/
.modal-header .modal-title {
    color: var(--maxsys-blue-dark);
}
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form label {
    font-weight: 600;
    color: var(--maxsys-text-secondary);
}
.auth-form .form-control {
    height: 44px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: none;
}
.radio-item {
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.radio-item:hover {
    border-color: var(--maxsys-green);
}
.radio-item input[type="radio"] {
    display: none;
}
.radio-item input[type="radio"]:checked + label {
    color: var(--maxsys-green);
    font-weight: 700;
}
.radio-item input[type="radio"]:checked + label:before {
    content: "\f058";
    font-family: "FontAwesome";
    margin-right: 8px;
    color: var(--maxsys-green);
}
.radio-item label {
    cursor: pointer;
    width: 100%;
    margin: 0;
}

/*
================================================================
7. Footer Styles
================================================================
*/

footer#fre_primary_footer { display: none !important; }
.copyright-wrapper { background-color: var(--maxsys-blue-dark); padding: 20px 0; color: #fff; }
.copyright-wrapper .container .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.copyright-wrapper .fre-footer-logo a { display: block; width: 150px; height: 30px; background-image: url('assets/maxsys-logo-white.png'); background-size: contain; background-repeat: no-repeat; text-indent: -9999px; }
.copyright-wrapper .copyright { color: rgba(255,255,255,0.7); font-size: 14px; text-align: right; }
@media (max-width: 767px) {
    .copyright-wrapper .container .row { flex-direction: column; }
    .copyright-wrapper .fre-footer-logo { margin: 0 auto 15px; }
    .copyright-wrapper .copyright { text-align: center; }
}
.footer-copyright-wrapper {
    margin-top: 0;
}
/*
================================================================
9. Custom Homepage Template Styles (Consolidated V3)
================================================================
*/
.home-block-banner h1 {
    color: var(--maxsys-blue-dark);
    font-weight: 700;
    font-size: 42px;
}
    .fre-background {
        height: 460px;
    }
/* --- Hero Section --- */
.home-block-banner { background: linear-gradient(135deg, #F5E6D3 0%, #FFF8E8 100%); }
.home-block-banner #title_banner { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
.home-block-banner .banner-subtitle { font-size: 1.8rem; color: #555; line-height: 1.8; max-width: 900px; margin-bottom: 1.5rem; }
.cta-buttons .fre-btn { background: var(--maxsys-blue-light) !important; border-color: var(--maxsys-blue-light) !important; border-radius: 8px; }
.cta-buttons .fre-btn-o { border-color: var(--maxsys-blue-light) !important; color: var(--maxsys-blue-light) !important; background: white !important; border-radius: 8px; }
.trust-line { font-size: 1.8rem; color: #777; margin-top: 1.5rem; }
@media (max-width: 991px) { .home-block-banner .banner-subtitle, .trust-line { display: none; } }

/* --- General Homepage Sections --- */
.home-section { padding: 40px 2rem; }
.section-light { background: #fff; }
.section-cream { background: #FAFAF8; }
.section-blue { background: var(--maxsys-blue-dark); color: white; }
.section-blue h2, .section-blue h3, .section-blue p { color: white; }
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 1rem; }
.subtitle { text-align: center; font-size: 1.8rem; color: #666; margin-bottom: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- C. Three-Column Card Layout (Used in multiple sections) --- */
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 2rem; margin-bottom: 1rem; }
.card p { color: var(--maxsys-text-secondary); }
.card ul { list-style: none; text-align: left; margin-top: 1rem; padding: 0; }
.card li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; }
.card li:before { content: "•"; position: absolute; left: 0; color: var(--maxsys-blue-light); font-weight: bold; }

/* --- D. How It Works Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 1.5rem; }
.step-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.step h3 { font-size: 2rem; margin-bottom: 1rem; }
.step p { color: var(--maxsys-text-secondary); }

/* --- E. "Real Problems" Examples Grid --- */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.example-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); text-align: center; }
.example-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.example-card h4 { color: var(--maxsys-blue-light); margin-bottom: 0.5rem; font-size: 1.8rem; }
.example-card p { color: #666; font-size: 1.8rem; font-style: italic; }
.emphasis { background: #FFF8E1; padding: 1.5rem; border-radius: 8px; text-align: center; margin: 2rem auto; max-width: 800px; border-left: 4px solid #FF8C42; }
.emphasis strong { color: var(--maxsys-blue-dark); font-size: 1.8rem; }

/* --- F. Two-Column "Belongs Here" & Final CTA Layout --- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; margin-top: 3rem; }
.col-card { background: white; padding: 2.5rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); text-align: left; }
.col-card h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--maxsys-blue-light); }
.section-blue .col-card h3, .section-blue .col-card p { color: var(--maxsys-text-primary); } /* Text inside cards on blue bg should be dark */
.col-card p { color: var(--maxsys-text-secondary); }
.col-card ul { list-style: none; margin: 1.5rem 0; padding: 0; }
.col-card li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; }
.col-card li:before { content: "✓"; position: absolute; left: 0; color: var(--maxsys-blue-light); font-weight: bold; }
.btn { padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.8rem; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s; }
.btn-primary { background: var(--maxsys-blue-light); color: white; }
.btn-primary:hover { background: #357ABD; }
.btn-accent { background: #FF8C42; color: white; }
.btn-accent:hover { background: #E67A30; }

/* --- G. "Real People" Profile Cards --- */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.profile { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: left; }
.profile-icon { width: 80px; height: 80px; background: #E3F2FD; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; margin: 0 auto 1rem; }
.profile h4 { text-align: center; color: var(--maxsys-blue-light); margin-bottom: 1rem; }
.profile p { font-style: italic; color: #666; line-height: 1.6; }

/* --- H. FAQ Section --- */
.faq { max-width: 900px; margin: 3rem auto 0; }
.faq-item { background: white; padding: 1.5rem; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-align: left;}
.faq-question { font-weight: 600; color: var(--maxsys-blue-dark); margin-bottom: 0.5rem; }
.faq-answer { color: #666; line-height: 1.7; }

/* --- I. Story & Signature Section --- */
.story { max-width: 800px; margin: 0 auto; text-align: left; }
.story p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.8rem; }
.signature { text-align: center; margin-top: 2rem; font-style: italic; color: #666; }

/* --- J. Responsive Adjustments --- */
@media (max-width: 991px) {
    .three-col, .two-col, .profiles, .examples-grid, .steps {
        grid-template-columns: 1fr; /* Stack columns on tablets */
    }
    .card, .col-card, .profile, .example-card, .step {
        margin-bottom: 30px;
    }
}
@media (max-width: 768px) {
    .home-section { padding: 30px 1rem; }
    .hero h1, .section-title { font-size: 1.8rem; }
}
/*
================================================================
15. Responsive Utilities & Banner Refinements
================================================================
*/
@media (max-width: 768px) {

    /* --- B. Control the Logo Size --- */
    body #main_header .fre-site-logo {
        padding: 15px; /* Remove default padding */
    }
    body #main_header .fre-site-logo a,
    body #main_header .fre-site-logo img {
        height: 30px; /* <-- ADJUST THIS VALUE TO YOUR DESIRED LOGO HEIGHT */
        max-height: 30px;
        width: auto;
    }
}
@media (max-width: 768px) {
 body .fre-bg-content .fre-btn, .fre-btn-o, .fre-bg-content .fre-payment-list>li>.btn, .fre-bg-content .fre-btn-disable
 {
        margin-top: 10px;
        min-width: 192px;
    }
}
.banner-subtitle {
    font-size: 2rem;
    color: var(--maxsys-text-secondary);
    max-width: 800px;
    margin: 20px auto 0;
font-weight: 600;
}
@media (max-width: 768px) {
    .fre-background {
        height: 320px;
    }
}

/* --- Responsive Rule to hide the element on mobile --- */
/* This rule will apply to any screen smaller than 768px (standard tablet breakpoint) */
@media (max-width: 768px) {
.home-block-banner .banner-subtitle  {
        display: none !important; /* Hide the element */
    }
}
@media (max-width: 768px) {
    .home-block-banner #title_banner {
        font-size: 2.5rem; 
font-weight: 400;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
    /* Hide the entire alert banner container */
    .alert-banner, .trust-line {
        display: none !important;
    }
}
/*
================================================================
2.5 Alert Banner
================================================================
*/
.alert-banner {
    background: #FFF8E1; /* Light yellow background */
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 2px solid #FFE082; /* Slightly darker yellow border */
    font-size: 1.6rem;
    color: #594f34; /* Darker text for readability */
}
.alert-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}
.alert-banner strong {
    color: #d88100; /* Orange-yellow for emphasis */
}
/*
================================================================
19. Branded Authentication Page Styles
================================================================
*/
.page-template-page-auth .fre-authen-wrapper {
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.page-template-page-auth .fre-authen-login h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}
.page-template-page-auth .fre-input-field {
    margin-bottom: 20px;
}
.page-template-page-auth .fre-input-field input {
    width: 100%;
    height: 44px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 0 15px;
}
.page-template-page-auth .fre-input-field .fre-btn {
    width: 100%;
    padding: 12px;
}
.page-template-page-auth .fre-authen-footer {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
