/**
 * Theme Name: Astra Child
 * Theme URI: https://miblockchain.org/
 * Template: astra
 * Description: Child theme for Michigan Blockchain Council branding
 * Author: Michigan Blockchain Council
 * Author URI: https://miblockchain.org/
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: astra-child
 * Tags: blockchain, crypto, web3, technology
 */

/* Add your custom CSS below this line */
:root {
    --ast-global-color-0: #00287E; /* MBC Blue */
    --ast-global-color-1: #4A5565; /* MBC Grey */
    --ast-global-color-2: #00287E; /* Dark Blue */
    --ast-global-color-3: #E5E7EB; /* Light Grey */
    --ast-global-color-4: #000000; /* Black */
    --ast-global-color-5: #FFFFFF; /* White */
    --ast-font-family: 'Alexandria', sans-serif;
}

html {
    background-color: var(--ast-global-color-5);
}

body.ast-page-builder-template {
    background-color: var(--ast-global-color-5);
}

/* Main Header Layout */
.ast-masthead-custom-menu-items {
    display: flex;
    align-items: center;
}

/* Social Icons */
.mbc-social-icons {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.mbc-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: opacity 0.3s ease;
}

.mbc-social-icons a:hover {
    opacity: 0.8;
}
/* Contact Form 7 Phantom Spinner Hotfix */
.wpcf7-spinner {
    display: none;
}

/* Center the navigation */
.main-header-bar .ast-flex {
    justify-content: center;
    background-color: var(--ast-global-color-5);
}

.ast-primary-header-bar {
    background-color: var(--ast-global-color-5);
    border-bottom: 0px;
}

/* Make sure the header container has enough space */
.ast-builder-grid-row {
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 921px) {
    .mbc-social-icons {
        justify-content: center;
        padding: 10px 0;
    }
    
    .mbc-social-icons a {
        margin: 0 10px;
    }
}

/* Ensure the header items are properly aligned */
.ast-builder-layout-element {
    display: flex;
    align-items: center;
}

.mbc-social-icons a {
    display: inline-block;
    margin-left: 15px;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.mbc-social-icons a:hover {
    opacity: 0.8;
}

.mbc-social-icons img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Adjust header layout for better spacing */
.ast-builder-header-main-layout-1 {
    position: relative;
}

/* Header Spacer */
.mbc-spacer {
    width: 100%;
    height: 32px;
    background-image: url('assets/divider-bg.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-color: var(--ast-global-color-3);
    display: block;
    border-top: 2px solid var(--ast-global-color-3);
    border-bottom: 2px solid var(--ast-global-color-3);
}

.ast-container .e-con-full {
    padding-inline-end: 0;
    padding-inline-start: 0;
}

.hero h1 {
    font-size: 64px;
    line-height: 1;
    padding-bottom: 20px;
}

.home-section .hero-heading-text a {
    border-bottom: 4px solid var(--ast-global-color-0);
    padding-bottom: 7px;
    font-weight: 800;
}
/* Custom styles for MBC branding */
.site-title a {
    color: var(--ast-global-color-0);
    font-weight: 700;
}

.site-header .main-navigation .main-header-menu > .menu-item > a {
    color: var(--ast-global-color-0);
    font-weight: 500;
}

.site-header .main-navigation .main-header-menu > .menu-item.current-menu-item > a,
.site-header .main-navigation .main-header-menu > .menu-item:hover > a {
    color: var(--ast-global-color-1);
}

.button,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.ast-button,
.ast-custom-button {
    background-color: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.ast-button:hover,
.ast-custom-button:hover {
    background-color: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
    color: var(--ast-global-color-0);
}

/* Custom header styles */
header.site-header {
    background-color: var(--ast-global-color-5);
}

.site-header .site-header-primary-section-left {
    justify-content: left;
}

.site-header .site-header-primary-section-right {
    justify-content: right;
}


/* Block 15 - Mobile/Tablet Only */
#block-17 {
    display: none;
    padding-top: 20px; /* Hide by default */
}

/* Block 16 - Desktop Only */
#block-16 {
    display: block; /* Show by default */
}

/* Block 11 - Remove bottom margin */
#block-11 p {
    margin-bottom: 0;
}

@media (max-width: 921px) {
    #block-15 {
        display: block; /* Show on tablet and mobile */
    }
    
    #block-16 {
        display: none; /* Hide on tablet and mobile */
    }

    #block-17 {
        display: initial;
    }

    #block-9 {
        padding-top: 20px;
    }

    #nav_menu-2 {
        padding-top: 20px;
}
}

/* About Us Partner Logo Responsive Styles */
@media (max-width: 767px) {
    .elementor .partner-associations img {
        max-width: 250px;
        margin: 0 auto;
    }

    .elementor .team img {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Footer Responsive Styles */
@media (max-width: 921px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .site-footer .ast-row {
        flex-direction: column;
        margin: 0;
    }

    .site-footer .ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-equal .ast-builder-grid-row {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
        justify-content: center;
        padding: 0 20px;
        align-items: center;
    }

    .site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-1"].footer-widget-area-inner {
        text-align: center;
        justify-content: center;
    }

    .site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"].footer-widget-area-inner {
        text-align: center;
        justify-content: center;
    }

    .site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"].footer-widget-area-inner {
        text-align: center;
        justify-content: center;
    }

    .site-footer .ast-col-md-4 {
        width: 100%;
        margin-bottom: 0; /* Removed bottom margin */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .site-footer .ast-col-md-4:last-child {
        margin-bottom: 0;
    }
    
    .site-footer .ast-row .widget {
        width: 100%;
        margin-bottom: 0;
    }
    
    .site-footer .widget-title,
    .site-footer .widget-title *,
    .site-footer .textwidget,
    .site-footer .textwidget *,
    .site-footer .widget_nav_menu ul,
    .site-footer .widget_nav_menu li {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .site-footer .widget_nav_menu ul {
        padding-left: 0;
        list-style: none;
    }
    
    .site-footer .widget_nav_menu li {
        display: block;
        margin: 0 0 10px 0;
    }
}

/* Membership Comparison Table Colors */

.elementor-button.comparison-grey {
    background-color: var(--ast-global-color-1);
    width: 100%;
    text-align: center;
}

.elementor-button.comparison-blue {
    background-color: #006FFF;
    width: 100%;
    text-align: center;
}

.elementor-button.comparison-green {
    background-color: #35B336;
    width: 100%;
    text-align: center;
}

.elementor-button.comparison-yellow {
    background-color: #FFB935;
    width: 100%;
    text-align: center;
}

#membership-chart .ha-comparison-table__head > div:nth-child(2){
    border-top: 10px solid var(--ast-global-color-1);
    justify-content: left;
 }

 #membership-chart .ha-comparison-table__head > div:nth-child(3){
    border-top: 10px solid #FFB935;
    justify-content: left;
 }

 #membership-chart .ha-comparison-table__head > div:nth-child(4){
    border-top: 10px solid #35B336;
    justify-content: left;
 }

 #membership-chart .ha-comparison-table__head > div:nth-child(5){
    border-top: 10px solid #006FFF;
    justify-content: left;
 }

/* Custom Form Styles */
.wpcf7 .newsletter-form {
    position: relative;
    margin-bottom: 0;
}

.wpcf7 .newsletter-form p {
    margin-bottom: 0;
    color: var(--ast-global-color-1);
}


.wpcf7 .newsletter-form label {
    color: var(--ast-global-color-1);
}

.wpcf7 .newsletter-form input[type="email"] {
    background-color: var(--ast-global-color-3);
    background-image: url('assets/email-form-icon.png');
    background-repeat: no-repeat;
    background-position-x: 15px;
    background-position-y: 18px;
    border: 0;
    border-radius: 0;
    color: var(--ast-global-color-1);
    height: 60px;
    display: inline-block;
    padding-left: 50px;
    padding-right: 130px;
}

.wpcf7 .newsletter-form input[type="submit"] {
    display: inline-block;
    position: absolute;
    top: 7px;
    right: 7px;
    border-radius: 0;
}

/* Footer styles */
.site-footer {
    background-color: var(--ast-global-color-5);
    padding: 0 20px;
}

/* Footer Widgets */
.site-footer .ast-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-footer .ast-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0 -15px;
    width: calc(100% + 30px);
}

.site-footer .ast-col-md-4 {
    flex: 0 0 calc(33.333% - 30px);
    padding: 0 15px;
    margin: 0;
    box-sizing: border-box;
}

/* Widget Styling */
.site-footer .widget {
    margin-bottom: 30px;
}

.site-footer .widget-title {
    color: var(--ast-global-color-0);
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer .widget_nav_menu li {
    display: inline-block;
    margin-right: 15px;
}
.site-footer a {
    color: var(--ast-global-color-0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--ast-global-color-1);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 921px) {
    .site-footer .ast-row {
        flex-wrap: wrap;
    }
    
    .site-footer .ast-col-md-4 {
        flex: 0 0 calc(50% - 30px);
    }
    
    .site-footer .ast-col-md-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 544px) {
    .site-footer .ast-row {
        flex-direction: column;
    }
    
    .site-footer .ast-col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .site-footer .ast-col-md-4:last-child {
        margin-bottom: 0;
    }
}
