/* Layout Styles */

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800; /* Bold weight as requested */
    color: var(--color-primary);
    line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
h3 { font-size: clamp(24px, 3vw, 28px); font-weight: 700; }

p {
    line-height: 1.8;
}

body.menu-open {
    overflow: hidden;
}

section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.pxl-container, .container {
    max-width: 1254px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #0000000F;
    padding: 10px 0;
    font-size: 14px;
    color: #5f6973;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pxl-link-list {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pxl-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #194341;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.pxl-link-list a i {
    color: var(--color-primary);
    font-size: 16px;
}

.pxl-icon-social a {
    color: #194341;
    font-size: 18px;
    transition: color 0.3s;
}

.pxl-link-list a:hover,
.pxl-icon-social a:hover {
    color: var(--color-primary);
}

/* Header */
/* Header */
.site-header {
    background-color: var(--color-white);
    height: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Smart Sticky Header States */
.site-header.nav-up {
    top: -90px; /* Hide header (height of header) */
}

.site-header.nav-down {
    top: 0; /* Show header */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.4); /* Primary Blue with opacity */
    pointer-events: none; /* Ignore mouse events */
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out; /* Smooth follow handled by JS, but this adds base smoothness */
    filter: blur(4px);
    will-change: transform;
    margin-left: -10px; /* Center circle on cursor */
    margin-top: -10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.site-logo svg {
    height: 40px;
    width: auto;
}

.main-navigation {
    margin-left: auto;
    margin-right: 60px;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 600;
    color: #194341;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.mobile-nav-branding {
    display: none;
}

/* Header Contact Button */
.btn-header-contact {
    background-color: #1f5dae;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header-contact:hover {
    background-color: #194341;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 93, 174, 0.15);
}

.btn-header-contact .pxl--btn-text {
    display: block;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 10002;
    outline: none;
    transition: all 0.3s;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: #194341;
    position: absolute;
    transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 4px;
}

.hamburger-inner::before {
    content: "";
    top: -9px;
    left: 0;
}

.hamburger-inner::after {
    content: "";
    top: 9px;
    left: 0;
}

/* Toggled State - Smooth "X" */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
    background-color: transparent !important;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    transform: translateY(9px) rotate(45deg);
    background-color: #194341;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #194341;
}

/* End Hamburger Menu */


/* Hero Slider */
/* Hero Slider */
.wp-block-group.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #020c1b;
    overflow: hidden;
    padding: 0 !important; /* Override standard WP group padding */
}

/* Full Width Utility - Force 100vw */
.force-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw !important;
}

/* Base Container - Max Width Center */
.pxl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Individual Slide (Cover Block) */
.wp-block-cover.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
    min-height: 100vh; /* Ensure full height */
    padding: 0;
    display: flex;
    align-items: center;
}

.wp-block-cover.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slide Image */
.wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Slide Content Container */
.wp-block-cover__inner-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px; /* Standard container width */
    margin: 0 auto;
    padding-left: 5%; 
    padding-right: 15%; /* Room for dots */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography & Buttons */
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    max-width: 800px;
}

.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
}

.wp-block-buttons {
    display: flex;
    gap: 16px;
}

/* Vertical Dots Navigation */
.slider-dots-vertical {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 6px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #007bff; /* Active blue color */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
    transform: scale(1.3);
}

/* Responsive Handling */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .slider-dots-vertical {
        right: 10px;
        padding: 8px 4px;
    }
    
    .wp-block-cover__inner-container {
        padding-right: 40px; /* Less padding on mobile */
        padding-left: 20px;
    }
}

/* Section Specifics */
.partner-section {
    padding: 60px 0; /* Increased padding */
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.bg-light {
    background-color: var(--color-light-bg);
}

/* Ensure consistent spacing for sections */
.section {
    padding: 100px 0; /* Updated to match components.css */
    position: relative; /* Needed for background positioning */
}

/* Why Choose Us Section */
.section-why-us {
    background-image: url('../images/bg-wcs.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 50px;
    padding-bottom: 100px;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 24px;
}

.cta-desc {
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

/* Footer */
/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: auto; /* Sticky Footer Logic */
}

/* Ensure body allows sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 14px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.contact-info .value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Company Links */
.company-list {
    list-style: none;
    padding: 0;
}

.company-list li {
    margin-bottom: 12px;
}

.company-list a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: all 0.3s;
}

.company-list a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: left;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Scroll To Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 999;
    transition: all 0.8s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}

.scroll-to-top.btn-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top.btn-show:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* --- Responsive Overhaul (Matching 5Pay Logic) --- */
@media (max-width: 1200px) {
    .pxl-container, .container {
        max-width: 1024px;
    }
}

@media (max-width: 1024px) {
    .main-navigation {
        margin-right: 30px;
    }
    .main-navigation ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar { display: none; }
    
    .header-actions { display: none; }

    .menu-toggle {
        display: block;
        order: 2;
        margin-right: -10px; /* Offset padding for right alignment */
    }

    .site-logo {
        order: 1;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.toggled {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 10001;
        padding: 60px 40px;
        animation: fadeInScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
    }

    .mobile-nav-branding {
        display: block;
        margin-bottom: 1em;
        text-align: center;
    }

    .mobile-nav-branding img {
        height: 40px;
        width: auto;
    }

    @keyframes fadeInScale {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 40px;
        align-items: center;
        text-align: center;
        margin: 0;
    }

    .main-navigation.toggled ul li {
        width: auto;
        border: none;
    }

    .main-navigation.toggled ul li a {
        display: block;
        padding: 10px 0;
        font-size: 24px; /* Larger, more dashboard-like */
        font-weight: 800;
        color: #194341;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.3s ease;
        position: relative;
    }

    .main-navigation.toggled ul li a::after {
        content: "";
        position: absolute;
        bottom: 0px;
        left: 50%;
        width: 0;
        height: 3px;
        background: #1f5dae;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .main-navigation.toggled ul li a:hover::after,
    .main-navigation.toggled ul li.current-menu-item a::after {
        width: 30px;
    }

    .main-navigation.toggled ul li a:hover,
    .main-navigation.toggled ul li.current-menu-item a,
    .main-navigation.toggled ul li.active a {
        color: #1f5dae;
        transform: translateY(-2px);
    }

    /* Floating Close Button in Toggled State */
    .menu-toggle[aria-expanded="true"] {
        top: 25px;
        right: 25px;
        z-index: 10003;
        background: rgba(25, 67, 65, 0.05); /* Subtle background for visibility */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle[aria-expanded="true"] .hamburger-box {
        width: 24px;
        height: 24px;
    }

    /* Column Stacking & Padding */
    .wp-block-columns {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .about-content-cols {
        gap: 20px !important;
    }

    .section {
        padding: 50px 0 !important;
    }

    .about-us-slant {
        padding-top: 50px !important;
        padding-bottom: 80px !important;
    }

    .section-mission {
        padding: 50px 20px !important;
    }

    .section-cta-bottom {
        min-height: 350px !important;
        padding: 40px 0 !important;
    }

    .section-cta-bottom h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    /* Partners Section */
    .partner-strip {
        gap: 20px;
    }
    .partner-logo {
        width: calc(50% - 10px);
        text-align: center;
    }
    .partner-logo img {
        max-height: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 30px 0;
    }
}
/* Partners Section */
.partner-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.partner-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Solutions - Service Cards */
.services-grid-section {
    padding: 20px 0;
}

.service-cards {
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-list {
    margin-top: 20px;
    list-style: none !important;
    padding-left: 0 !important;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text-light);
}

.service-list li:before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Why Us Section */
.why-us-container {
    gap: 60px;
}

.feature-grid {
    gap: 30px;
}

.feature-item {
    background: rgba(255,255,255,0.5); /* Glassy feel */
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Supported Banks Section */
.fpay-bank-header {
    background: #fff; /* Fallback */
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    text-align: center;
}

.fpay-bank-header.yellow {
    background-color: #FFD700;
    color: #000;
}

.fpay-bank-header.blue {
    background-color: #0056b3;
}

.fpay-bank-header.red {
    background-color: #dc3545;
}

.fpay-bank-header.navy {
    background-color: #001f3f;
}

.fpay-bank-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.fpay-bank-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
}

.fpay-bank-list li:last-child {
    border-bottom: none;
}

.fpay-bank-icon {
    margin-right: 10px;
    font-size: 18px;
    line-height: 1;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.faq-answer {
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.6;
}

/* About & Mission Pattern Styles */
.about-us-slant {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    padding-bottom: 50px; /* Space for the slant */
    margin-bottom: 0 !important;
}

.about-content-cols {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
}

.section-mission {
    background-color: #fff;
    color: var(--color-text-main);
    max-width: 800px;
    margin: 0 auto;
}

.section-cta-bottom {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjustments for responsive slant */
@media (max-width: 768px) {
    .about-us-slant {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
    
    .about-content-cols {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Cấu trúc Footer Grid trên Mobile */
    .site-footer .footer-grid {
        display: grid !important;
        /* Brand chiếm full hàng đầu, Contact và Company chia đôi hàng sau */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 20px !important;
        text-align: left !important; /* Căn trái nhìn sẽ chuyên nghiệp hơn */
    }

    /* Cho phần Logo và Mô tả chiếm hết 2 cột hàng đầu */
    .footer-brand {
        grid-column: span 2 !important;
        text-align: center !important; /* Riêng logo căn giữa cho cân đối */
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }

    .footer-brand .footer-desc {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Tinh chỉnh cột Contact và Company */
    .footer-col h3 {
        font-size: 13px !important;
        margin-bottom: 15px !important;
        position: relative;
    }

    /* List Contact tinh gọn lại */
    .contact-list li {
        margin-bottom: 15px !important;
        gap: 10px;
    }

    .contact-icon {
        width: 30px !important;
        height: 30px !important;
        margin-right: 8px !important;
    }

    .contact-icon svg {
        width: 14px;
        height: 14px;
    }

    .contact-info .label {
        font-size: 11px !important;
    }

    .contact-info .value {
        font-size: 13px !important;
    }

    /* List Company Link */
    .company-list li {
        margin-bottom: 8px !important;
    }

    .company-list a {
        font-size: 13px !important;
    }

    /* Footer Bottom */
    .footer-bottom {
        text-align: center !important;
        padding: 20px 0 !important;
        font-size: 11px !important;
    }
}
