/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Ahmad Nisar
 * Template: blocksy
 * Text Domain: blocksy
 */


:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}


/*-------------Typography styles-----------*/

body {
    font-family: var(--font-body) !important;
    font-weight: 400;
    /* background-color: #0e0e0e !important; */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
}


p,
li,
input,
button,
textarea,
a {
    font-family: var(--font-body) !important;
}
/*-------------Typography styles end-----------*/


/* Custom Header Styles */
.custom-header {
    border-top: 10px solid #8bc34a;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0;
    position: relative;
    z-index: 100;
}
.custom-header-inner {
    position: relative;
    max-width: 1270px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
}
.custom-header-logo img.logo-image {
    width: 120px;
    display: block;
}
.custom-header-logo .logo-text {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.6em;
    font-weight: bold;
    color: #8bc34a;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}
.custom-header-nav ul{
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}
.custom-menu ul{
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.custom-menu li {
    display: flex;
    align-items: center;
}
.custom-menu li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.custom-menu li.current-menu-item a,
.custom-menu li.current_page_item a {
    color: #8bc34a;
    border-bottom: 2px solid #8bc34a;
}
.custom-menu li a:hover {
    color: #689f38;
    border-bottom: 2px solid #689f38;
}
.custom-header-contact {
    margin-left: 32px;
}
.contact-btn {
    background: #8bc34a;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}
.contact-btn:hover {
    background: #689f38;
}
@media (max-width: 900px) {
    .custom-header-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        height: 70px;
        padding: 0 16px;
    }
    .custom-header-nav {
        justify-content: flex-start;
        margin: 10px 0;
    }
    .custom-header-contact {
        margin-left: 0;
        margin-top: 10px;
        text-align: right;
    }
    .custom-header-logo img.logo-image {
        width: 100px;
        display: block;
    }
}
@media (max-width: 600px) {
    .custom-header-inner {
        padding: 0 8px;
    }
    .custom-menu {
        gap: 16px;
    }
    .contact-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .custom-header{
        padding: 10px 0;
    }
    .custom-header-logo .logo-text{
        font-size: 20px;
    }
}

/* Mobile Sidebar Menu Styles */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    bottom:15px;
    right: 10px;
    z-index: 1201;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #8bc34a;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-sidebar-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.mobile-sidebar-menu.open {
    right: 0;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #8bc34a;
    position: absolute;
    top: 18px;
    right: 24px;
    cursor: pointer;
    z-index: 1202;
}
.mobile-menu-nav {
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
.mobile-menu li a {
    color: #222;
    font-size: 1.5em;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}
.mobile-menu li.current-menu-item a,
.mobile-menu li.current_page_item a {
    color: #8bc34a;
}
.mobile-menu li a:hover {
    color: #689f38;
}
@media (max-width: 1024px) {
    .custom-header-nav,
    .custom-header-contact {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .mobile-menu-toggle,
    .mobile-sidebar-menu {
        display: none !important;
    }
}

/* Custom Footer Styles */
.custom-footer {
    background: #111;
    color: #fff;
    padding: 0;
    font-family: var(--font-body), monospace;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 32px 32px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}
.footer-col {
    flex: 1 1 180px;
    margin: 0 16px;
    min-width: 160px;
}
.logo-col {
    flex: 1 1 220px;
}
.footer-logo-link img{
    width: 120px;
    margin-top: -25px;
    height: auto;
    display: block;
}

.footer-col h4 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 18px;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: underline;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #8bc34a;
}
.footer-socials {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}
.footer-icon {
    font-size: 1.3em;
    color: #fff;
    transition: color 0.2s;
}
.footer-socials a:hover .footer-icon {
    color: #8bc34a;
}
.footer-bottom {
    text-align: center;
    padding: 18px 0 12px 0;
    font-size: 0.95em;
    color: #fff;
    background: #111;
}
@media (max-width: 900px) {
    .footer-top {
        flex-wrap: wrap;
        padding: 32px 12px 18px 12px;
    }
    .footer-col {
        margin: 0 8px 24px 8px;
        min-width: 140px;
    }
}
@media (max-width: 600px) {
    .footer-logo-link img{
        margin-top:0;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 8px 12px 8px;
    }
    .footer-col {
        width: 100%;
        margin: 0 0 18px 0;
    }
    .footer-socials {
        gap: 12px;
    }
    .footer-col {
        flex: 1 1 180px;
    }
    .logo-col {
        flex: 1 1 60px;
    }
    .mobile-menu-toggle {
        right: 5px;
    }
}

/* Generic Button Styles */
.primary-btn {
    background: #8bc34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    max-width: 185px;
    text-align: center;
}
.primary-btn:hover {
    background: #689f38;
    color: #fff;
}
.secondary-btn {
    background: #fff;
    color: #8bc34a;
    border: 2px solid #8bc34a;
    border-radius: 20px;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: inline-block;
}
.secondary-btn:hover {
    background: #8bc34a;
    color: #fff;
    border-color: #689f38;
}

/* Generic container and gap utilities */
.full-width-section {
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}
.full-section-padding{
    padding: 70px 0;
}
.max-width-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.gap-40 {
    gap: 40px !important;
}


/* Newsletter Section Styles (shared across all pages) */

.newsletter-section {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background:#727171;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    padding: 18px 16px;
    font-size: 1em;
    outline: none;
    background: transparent;
    color: #fff!important;
    text-transform: capitalize;
}

.newsletter-form button {
    border: none;
    padding: 18px 32px;
    font-size: 1em;
    background: #8bc34a;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #689f38;
}

.newsletter-section h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.newsletter-section p {
    color: #444;
    font-size: 18px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 30px;
}

@media (max-width: 1024px) {
    .container {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 10px;
    }
    .newsletter-form button,
    .newsletter-form input[type="email"] {
        padding: 12px 8px;
        font-size: 0.95em;
    }
    .newsletter-section h2 {
        font-size: 20px;
    }
    .newsletter-section p {
        color: #444;
        font-size: 16px;
        max-width: 600px;
        width: 100%;
        margin: 0 auto 30px;
    }
}

.mobile-menu-icon {
    color: #8bc34a;
    font-size: 2em;
}

/* Dropdown Submenu Styles */
.custom-menu .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 48%);
    z-index: 1000;
    padding: 0;
}
.custom-menu li {
    position: relative;
}
.custom-menu li:hover > .sub-menu {
    display: block;
}
.custom-menu .sub-menu li {
    display: block;
    width: 100%;
    padding: 8px 0;
}
.custom-menu .sub-menu li a {
    padding: 10px 20px;
    border-bottom: none;
    color: #222;
    font-size: 15px;
    background: none;
    transition: background 0.2s, color 0.2s;
}
.custom-menu .sub-menu li a:hover {
    /* background: #f6f6f6; */
    color: #8bc34a;
}

.mobile-contact-section {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.mobile-contact-btn {
    background: #8bc34a;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}

.mobile-contact-btn:hover {
    background: #689f38;
    color: #fff;
}

/* Mobile submenu styles */
.mobile-menu .menu-item-has-children > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-arrow {
    font-size: 12px;
    color: #8bc34a;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-menu .sub-menu {
    display: none;
    background: transparent;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu .sub-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-menu .sub-menu li a {
    padding: 12px 30px;
    font-size: 14px;
    color: #666;
    background: transparent;
    border-bottom: none;
}

.mobile-menu .sub-menu li a:hover {
    background: #f0f0f0;
    color: #8bc34a;
}

