/* =========================================
   Responsive Styles for Multiverz Theme
   ========================================= */

/* --- Tablet Breakpoint (max-width: 991px) --- */
@media (max-width: 991px) {

    /* CSS Variable Overrides for Tablet */
    :root {
        --section-padding-top: 60px;
        --section-padding-bottom: 60px;
        --section-padding-x: 20px;
        --space-5xl: 60px;
        --space-4xl: 50px;
        --space-3xl: 40px;
        --space-2xl: 30px;
        --space-lg: 24px;
        --space-md: 16px;
        --space-sm: 12px;
        --space-xs: 8px;
    }

    /* Typography Adjustments - Tablet */
    h1, .h1, .hero-section h1, .page-title {
        font-size: 40px !important;
        line-height: 1.2;
    }

    h2, .h2, .section-title {
        font-size: 32px !important;
        line-height: 1.3;
    }

    h3, .h3, .info-card h3 {
        font-size: 22px !important;
        line-height: 1.4;
    }

    h4, .h4 {
        font-size: 18px !important;
        line-height: 1.5;
    }

    p, li, .banner-des p {
        font-size: 15px !important;
        line-height: 1.7;
    }

    .quote-box p {
        font-size: 22px !important;
        line-height: 1.6;
    }


    .home-icon-item {
        margin-top: 0;
    }

    /* Header Layout */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        /* Allow wrapping for the push-down menu */
        padding-top: 15px;
        padding-bottom: 15px;
        position: relative;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        z-index: 1001;
        order: 1;
        /* First item */
        flex-grow: 1;
        /* Takes available space on left */
    }

    .logo img {
        height: 40px;
    }

    /* Menu Wrapper - This container will drop to the next line */
    .nav-wrapper {
        width: 100%;
        order: 3;
        /* Third item (after logo and toggle) */
    }

    /* Navigation Menu Styles */
    .main-navigation {
        position: static;
        /* Natural flow */
        width: 100%;
        background: #fff;
        margin: 0;
        box-shadow: none;
        padding: 0;
        display: block;

        /* Hidden state for animation */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-top: 1px solid transparent;
        /* Placeholder for border when open */
    }

    /* Active State (toggled by JS on body) */
    .menu-active .main-navigation {
        max-height: 1000px;
        /* Arbitrary large height to reveal content */
        border-top: 1px solid #f0f0f0;
        margin-top: 15px;
    }

    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .nav-menu a {
        color: #333 !important;
        /* Dark grey text */
        font-size: 16px;
        font-weight: 500;
        display: block;
        padding: 10px;
    }

    .nav-menu a:hover {
        background-color: #fafafa;
    }

    /* Active Menu Highlight */
    .nav-menu li.current_page_item>a,
    .nav-menu li.current-menu-item>a,
    .nav-menu li.home-icon-container.current_page_item>.home-icon-item>a {
        color: #24477f !important;
        background-color: rgba(36, 71, 127, 0.05);
        /* Slight bg tint for better visibility */
    }

    /* Fix Home Icon Item Overlap & Restore Desktop Look */
    .nav-menu li.home-icon-container {
        padding: 10px;
        /* Add some padding to the container */
    }

    .home-icon-item {
        position: relative;
        /* Keep relative to prevent overlap */
        width: 40px;
        /* Desktop width */
        height: 40px;
        /* Desktop height */
        background: #fecd0a;
        /* Desktop yellow background */
        border-radius: 10px;
        /* Desktop border radius */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        /* Reset margin */
        padding: 0;
    }

    /* Center the link/image inside the yellow box */
    .home-icon-item a,
    .home-icon-link {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        padding: 0;
        /* Remove padding I added for text links previously */
    }

    .home-icon-item img {
        height: 20px;
        width: auto;
        display: block;
    }

    /* Menu Toggle (Hamburger) */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 40px;
        background: transparent;
        border: 2px solid #888;
        /* The requested Box look */
        border-radius: 6px;
        cursor: pointer;
        padding: 0;
        z-index: 2001;
        order: 2;
        /* Second item */
        transition: all 0.2s;
        margin-left: 10px;
    }

    .hamburger-bar {
        width: 22px;
        height: 2px;
        background-color: #555;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Optional: Animate bars into X if desired, otherwise keep hamburger
       Since user asked for "toggle", standard X is usually expected, 
       but let's keep it simple first or replicate the X */
    .menu-active .menu-toggle .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-active .menu-toggle .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-active .menu-toggle .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay - Hide it! We are pushing content down now */
    .menu-overlay {
        display: none !important;
    }

    .sticky-header {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    /* Hero Section adjustments */
    .hero-section {
        padding: 40px 20px 0px;
    }

    .hero-section h1 {
        font-family: "Montserrat", sans-serif !important;
        font-size: 40px !important;
        font-weight: 700;
        line-height: 1.2;
    }

    .hero-section .banner {
        padding-top: 40px;
    }

    .hero-section img {
        width: 350px;
        height: auto;
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto;
        display: block;
    }

    .banner-des {
        max-width: 100%;
    }

    /* Cards Section */
    .info-card {
        margin-bottom: 30px;
    }

    /* Footer */
    .site-footer {
        margin-top: 40px;
        padding: 40px 20px;
    }

    /* Contact Form - Tablet */
    .homepage-layout .contact-section {
        padding: 40px 20px 50px;
    }

    .homepage-layout .contact-section h2 {
        font-size: 32px !important;
        margin-bottom: 40px;
    }

    .homepage-layout .contact-section .wpcf7-form {
        padding: 40px;
        border-radius: 15px;
    }

    .homepage-layout .contact-section .wpcf7-form-control:not(.wpcf7-submit) {
        font-size: 15px !important;
        padding: 10px 0 !important;
    }

    .homepage-layout .contact-section .wpcf7-submit {
        padding: 16px 28px !important;
        font-size: 13px !important;
    }

    .homepage-layout .contact-section .wpcf7-form p {
        margin-bottom: 32px;
    }
	
	.page-template-template-capital_financing .image-section {
        padding-bottom: 0px;
    }
}

/* --- Mobile Breakpoint (max-width: 767px) --- */
@media (max-width: 767px) {

    /* CSS Variable Overrides for Mobile */
    :root {
        --section-padding-top: 40px;
        --section-padding-bottom: 40px;
        --section-padding-x: 16px;
        --container-padding-desktop: 16px;
        --space-5xl: 40px;
        --space-4xl: 32px;
        --space-3xl: 24px;
        --space-2xl: 20px;
        --space-lg: 16px;
        --space-md: 12px;
        --space-sm: 8px;
        --space-xs: 4px;
    }

    /* --- Global --- */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Typography Adjustments - Mobile */
    h1, .h1, h1.page-title, .hero-section h1 {
        font-family: "Montserrat", sans-serif !important;
        font-size: 32px !important;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }

    h2, .h2, .section-title {
        font-family: "Montserrat", sans-serif !important;
        font-size: 28px !important;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
    }

    h3, .h3, .info-card h3 {
        font-family: "Montserrat", sans-serif !important;
        font-size: 20px !important;
        font-weight: 600;
        line-height: 1.4;
    }

    h4, .h4 {
        font-family: "Montserrat", sans-serif !important;
        font-size: 18px !important;
        font-weight: 600;
        line-height: 1.5;
    }

    p, li, .banner-des p, .info-card p {
        font-family: "Montserrat", sans-serif !important;
        font-size: 15px !important;
        font-weight: 400;
        line-height: 1.7;
    }

    .quote-box p {
        font-family: "Montserrat", sans-serif !important;
        font-size: 20px !important;
        line-height: 1.6;
    }

    .team-member-name {
        font-family: "Montserrat", sans-serif !important;
        font-size: 15px !important;
        font-weight: 600;
    }

    .team-member-role {
        font-family: "Montserrat", sans-serif !important;
        font-size: 13px !important;
        font-weight: 400;
    }

    button, .btn, .btn-submit, .btn-info_card {
        font-family: "Montserrat", sans-serif !important;
        font-size: 14px !important;
        font-weight: 600;
    }

    .nav-menu a {
        font-family: "Inter Tight", sans-serif !important;
        font-size: 16px !important;
        font-weight: 500;
    }

    .footer-heading {
        font-family: "Inter Tight", sans-serif !important;
        font-size: 13px !important;
        font-weight: 600;
    }

    .page-content {
        padding: 30px 15px 0px;
    }

    /* Mobile - Reduce Section Spacing */
    .hero-section {
        padding: 30px 15px 0px;
    }

    .banner-des {
        margin-bottom: 30px;
    }

    .quote-box {
        margin: 20px 0;
    }

    .winner-section .container {
        margin-top: 30px;
    }

    .site-footer {
        margin-top: 30px;
    }

    .partners-section {
        padding: 30px 15px;
    }

    .testimonials-section {
        padding: 30px 15px;
    }

    .team-section {
        padding: 30px 15px;
    }

    .cards-section {
        padding: 30px 15px 10px;
    }

    .multiverz-cards-section {
        padding: 30px 15px;
    }

    .team-section_kh {
        padding: 30px 15px;
    }

    /* --- Header --- */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        display: block;
    }

    .logo img {
        height: 35px;
    }

    .main-navigation {
        width: 260px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .footer-row {
        flex-direction: column;
        gap: 25px;
    }

    .footer-col {
        width: 100%;
        min-width: auto;
        text-align: center;
    }

    /* Logo Column */
    .footer-col-logo {
        justify-content: center;
    }

    /* Contact Column */
    .contact-sub-cols {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .contact-sub-col {
        width: 100%;
    }

    /* Copyright Column */
    .footer-col-copyright {
        justify-content: center;
    }

    .footer-col-copyright p {
        text-align: center;
    }

    .footer-social-media {
        justify-content: center;
    }

    /* --- Home Page --- */
    /* Hero */
    .hero-section {
        padding-top: 20px;
        text-align: center;
    }

    .hero-section .banner {
        padding-top: 0;
    }

    .hero-section img {
        width: 80%;
        max-width: 300px;
        margin: 30px auto;
        position: static;
    }

    .banner-des {
        margin: 0 auto;
    }

    .quote-box {
        margin-top: 10px;
    }

    .quote-box p {
        font-family: "Montserrat", sans-serif !important;
        font-size: 20px !important;
        font-weight: 400;
        line-height: 1.6;
    }

    /* Cards */
    .cards-section {
        padding: 30px 15px;
    }

    .info-card {
        text-align: center;
        padding: 10px 20px;
        margin-bottom: 20px;
        /* Add bg for card separation on mobile */
        border-radius: 10px;
    }

    .info-card .icon,
    .page-content .icon {
        margin: 0 auto 20px;
        display: table;
    }

    /* Winner Section */
    .winner-section h2 {
        text-align: center;
    }

    .winner-section p {
        text-align: center;
        margin: 0 auto 20px;
    }

    .winner-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    /* Partners */
    .partners-section .d-flex {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 15px;
    }

    .partner-logo {
        width: 140px;
        height: 120px;
        margin: 0 auto 15px;
    }

    /* --- Innovations / Process Page --- */
    .process-section {
        padding-top: 40px;
    }

    .process-section .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
        align-items: start;
    }

    .process-section .col-lg-3,
    .process-section .process-list-left,
    .process-section .process-list-right {
        display: contents;
    }

    /* Hide circle image / SVG on mobile */
    .process-svg-container {
        display: none !important;
    }

    .process-item {
        height: 85px;
        margin-bottom: 44px;
        position: relative;
        display: block;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    /* Column and Row Positioning (to interleave 1-10) */
    .process-item[data-step="1"],
    .process-item[data-step="2"] {
        grid-row: 1;
    }

    .process-item[data-step="3"],
    .process-item[data-step="4"] {
        grid-row: 2;
    }

    .process-item[data-step="5"],
    .process-item[data-step="6"] {
        grid-row: 3;
    }

    .process-item[data-step="7"],
    .process-item[data-step="8"] {
        grid-row: 4;
    }

    .process-item[data-step="9"],
    .process-item[data-step="10"] {
        grid-row: 5;
    }

    /* Left Column (Odds) */
    .process-item[data-step="1"],
    .process-item[data-step="3"],
    .process-item[data-step="5"],
    .process-item[data-step="7"],
    .process-item[data-step="9"] {
        grid-column: 1;
        text-align: right;
    }

    /* Right Column (Evens) */
    .process-item[data-step="2"],
    .process-item[data-step="4"],
    .process-item[data-step="6"],
    .process-item[data-step="8"],
    .process-item[data-step="10"] {
        grid-column: 2;
        text-align: left;
    }

    /* Maintain/Fix Connector Lines (hr nubs) */
    .process-hr,
    .process_hr {
        display: block !important;
    }

    /* Column 1 items: Nub should be on the right */
    .process-item[data-step="1"] .process_hr::after,
    .process-item[data-step="3"] .process_hr::after,
    .process-item[data-step="5"] .process_hr::after,
    .process-item[data-step="7"] .process_hr::after,
    .process-item[data-step="9"] .process_hr::after {
        content: "";
        position: absolute;
        bottom: 30px;
        right: 0;
        width: 30px;
        height: 3px;
        background-color: #000;
        display: block !important;
    }

    .process-item[data-step="1"] .process_hr::before,
    .process-item[data-step="3"] .process_hr::before,
    .process-item[data-step="5"] .process_hr::before,
    .process-item[data-step="7"] .process_hr::before,
    .process-item[data-step="9"] .process_hr::before {
        display: none !important;
    }

    /* Column 2 items: Nub should be on the left */
    .process-item[data-step="2"] .process_hr::before,
    .process-item[data-step="4"] .process_hr::before,
    .process-item[data-step="6"] .process_hr::before,
    .process-item[data-step="8"] .process_hr::before,
    .process-item[data-step="10"] .process_hr::before {
        content: "";
        position: absolute;
        bottom: 30px;
        left: 0;
        width: 30px;
        height: 3px;
        background-color: #000;
        display: block !important;
    }

    .process-item[data-step="2"] .process_hr::after,
    .process-item[data-step="4"] .process_hr::after,
    .process-item[data-step="6"] .process_hr::after,
    .process-item[data-step="8"] .process_hr::after,
    .process-item[data-step="10"] .process_hr::after {
        display: none !important;
    }

    /* Ensure original styling of numbers and text */
    .process-number {
        font-size: 28px;
        font-weight: 600;
        color: #000;
        margin-bottom: 0;
    }

    .process-item hr {
        display: block !important;
        margin: 10px 0px 22px 0px;
    }

    .process-item .banner-des {
        display: block !important;
        margin-bottom: 0px !important;
    }

    .process-item .banner-des p {
        font-size: 14px;
        font-weight: 500;
        text-align: inherit;
        /* Use the alignment from parent li */
    }

    /* --- Knowledge Hub --- */
    .team-section_kh .row>div {
        margin-bottom: 30px;
    }

    .team-section_img {
        height: 200px;
    }

    .btn-info_card {
        width: 100%;
        margin-top: 10px;
    }

    .cards-btn {
        margin-top: 20px;
    }

    /* --- Contact --- */
    .contact-section {
        padding-bottom: 40px;
    }

    /* Contact Form - Mobile */
    .homepage-layout .contact-section {
        padding: 30px 15px 40px 15px;
    }

    .homepage-layout .contact-section h2 {
        font-size: 28px !important;
        margin-bottom: 30px;
        padding-left: 0;
        text-align: left;
    }

    .homepage-layout .contact-section .wpcf7-form {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .homepage-layout .contact-section .form-label,
    .homepage-layout .contact-section label {
        font-size: 15px !important;
        margin-bottom: 6px;
    }

    .homepage-layout .contact-section .wpcf7-form-control:not(.wpcf7-submit) {
        font-size: 15px !important;
        padding: 10px 0 !important;
    }

    .homepage-layout .contact-section textarea.wpcf7-form-control {
        min-height: 100px;
    }

    .homepage-layout .contact-section .wpcf7-submit {
        padding: 16px 24px !important;
        font-size: 13px !important;
        width: 100%;
        margin-top: 16px;
    }

    .homepage-layout .contact-section .wpcf7-form p {
        margin-bottom: 28px;
    }

    .team-section .process-list-right .team-member-hr::after {
        content: "";
        position: absolute;
/*         bottom: 46px;
        right: 15px; */
        width: 30px;
        height: 3px;
        background-color: #000;
    }

    .process-list-left .process_hr::after {
        bottom: 73px;
        right: 15px;
    }

    .process-list-right .process_hr::before {
        left: 15px;
    }
	
	.footer-copyright-row{
		padding-top: 15px;
	}

	.wp-block-table {
        overflow-x: auto;
    }

    .wp-block-table table {
        min-width: 600px;
        width: 100%;
        border-collapse: collapse;
    }
	
	.wp-block-table .has-fixed-layout td, .wp-block-table .has-fixed-layout th{
		text-wrap: auto;
	}
}

/* =========================================
   Styles Moved from custom.css
   ========================================= */

/* --- Carousel & Testimonials --- */
@media (max-width: 992px) {
    .carousel-control-prev {
        left: -30px;
    }

    .carousel-control-next {
        right: -30px;
    }
}

@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: -20px;
    }

    .carousel-control-next {
        right: -20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-card::before,
    .testimonial-card::after {
        font-size: 20px;
    }
}

/* --- Team Section --- */
@media (max-width: 768px) {
    .team-section {
        padding: 30px 15px;
    }

    .team-section .section-title {
        font-family: "Montserrat", sans-serif !important;
        font-size: 28px !important;
        font-weight: 700;
        line-height: 1.3;
    }

    .team-member {
        gap: 15px;
    }

    .team-member-image {
        width: 60px;
        height: 60px;
    }

    .team-member-name {
        font-family: "Montserrat", sans-serif !important;
        font-size: 15px !important;
        font-weight: 600;
    }

    .team-member-role {
        font-family: "Montserrat", sans-serif !important;
        font-size: 13px !important;
        font-weight: 400;
    }
}

/* --- Blog & Pagination --- */
@media (max-width: 768px) {
    .featured-img-placeholder {
        height: 250px;
    }

    .blog-title {
        font-family: "Montserrat", sans-serif !important;
        font-size: 28px !important;
        font-weight: 700;
        line-height: 1.3;
    }

    .pagination {
        gap: 6px;
    }

    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .impact-content {
        padding: 40px 20px 20px;
    }

    /* Talent Template Responsive Overrides */
    .talent-tagline,
    .capital_quote-left-1,
    .capital_quote-left-2,
    .capital_quote-left-3,
    .capital_quote-1,
    .capital_quote-2,
    .capital_quote-3,
    .desc_info-left,
    .desc_info-right,
    .talent-desc-1,
    .talent-desc-2,
    .talent-desc-3 {
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        top: auto !important;
        text-align: center !important;
    }

    .video-container .left-straps-wrapper,
    .video-container .right-straps-wrapper {
        display: none;
    }

    /* Capital Template Responsive Overrides */
    .capital_section-img {
        height: auto !important;
    }

    .capital_section-img img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    .team-section_capital {
        padding-top: 0px;
        padding-bottom: 40px;
    }
}