/*
Theme Name: FLASHBUY Trade - Zdan Style
Theme URI: https://flashbuytrade.com
Author: FLASHBUY Team
Author URI: https://flashbuytrade.com
Description: A professional business theme inspired by zdan.com.cn style. Fully customizable through WordPress Customizer - no coding required. Perfect for trading companies.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flashbuy-zdan
*/

/* ============================================
   ZDAN STYLE THEME - CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-blue: #1a3a6e;
    --secondary-blue: #2d5a9e;
    --accent-color: #e74c3c;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --font-chinese: 'Noto Sans SC', sans-serif;
    --font-english: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-chinese), var(--font-english), sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER - Zdan Style Navigation
   ============================================ */
.site-header {
    background: var(--primary-blue);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo-text {
    color: var(--text-white);
    font-family: var(--font-english);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav li a {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav li a:hover {
    opacity: 0.8;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.3s;
}

.main-nav li a:hover::after {
    width: 100%;
}

.lang-switch {
    margin-left: 40px;
    color: var(--text-white);
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-white);
    margin: 6px 0;
}

/* ============================================
   HERO BANNER - Full Width Image
   ============================================ */
.hero-banner {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,58,110,0.7) 0%, rgba(45,90,158,0.5) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
}

/* ============================================
   COMPANY PROFILE SECTION
   ============================================ */
.company-section {
    padding: 80px 40px;
    background: var(--bg-white);
}

.company-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-image {
    position: relative;
}

.company-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.company-content h2 {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.company-content p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 20px;
}

.read-more-btn:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

/* ============================================
   BUSINESS CATEGORIES - Card Grid
   ============================================ */
.business-section {
    padding: 80px 40px;
    background: var(--bg-light);
}

.business-container {
    max-width: 1400px;
    margin: 0 auto;
}

.business-title {
    text-align: center;
    margin-bottom: 60px;
}

.business-title h2 {
    color: var(--primary-blue);
    font-size: 36px;
    font-weight: 700;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.business-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-link {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
}

.card-link:hover {
    color: var(--primary-blue);
}

/* ============================================
   GLOBAL PRESENCE SECTION
   ============================================ */
.global-section {
    padding: 100px 40px;
    background: var(--primary-blue);
    position: relative;
}

.global-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.global-title {
    color: var(--text-white);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.global-map {
    margin-bottom: 60px;
}

.global-map img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

/* ============================================
   FOOTER - Contact Info
   ============================================ */
.site-footer {
    background: #0d1f3c;
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-block {
    color: var(--text-white);
}

.footer-block h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-block p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 2;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--accent-color);
    font-size: 20px;
}

.footer-contact-item span {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ============================================
   PAGE HERO (For About, Services, Contact)
   ============================================ */
.page-hero {
    height: 300px;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.page-hero-title {
    color: var(--text-white);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1024px) {
    .company-container {
        grid-template-columns: 1fr;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        padding: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .company-section,
    .business-section,
    .global-section {
        padding: 40px 20px;
    }
}

/* WordPress Utility Classes */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--text-gray); }

/* ============================================
   HERO CAROUSEL - Dynamic Banner Slider
   ============================================ */
.hero-carousel {
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    height: 100%;
    position: relative;
}

.carousel-slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,58,110,0.7) 0%, rgba(45,90,158,0.5) 100%);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.carousel-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.carousel-subtitle {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.carousel-prev,
.carousel-next {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--text-white);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.4);
    border-color: var(--text-white);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

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

.indicator.active {
    background: var(--text-white);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.7);
}

/* Carousel Responsive */
@media screen and (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 28px;
    }
    
    .carousel-subtitle {
        font-size: 16px;
    }
    
    .carousel-nav {
        padding: 0 15px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* ===== Services Page - Why Choose Us ===== */
.page-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    padding: 80px 20px;
    text-align: center;
}

.page-hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin: 0;
}

.why-choose-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.advantage-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #1a365d 0%, #c53030 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
}

.advantage-card h2 {
    color: #1a365d;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.advantage-card p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 60px 20px;
    background: #1a365d;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #1a365d;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.cta-section p {
    color: #4a5568;
    font-size: 18px;
    margin: 0 0 30px 0;
}

.cta-button {
    display: inline-block;
    background: #c53030;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #9b2c2c;
    transform: translateY(-2px);
}

/* Responsive for Services Page */
@media (max-width: 768px) {
    .page-hero {
        padding: 50px 15px;
    }
    
    .page-hero-title {
        font-size: 32px;
    }
    
    .page-hero-subtitle {
        font-size: 16px;
    }
    
    .why-choose-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
    
    .advantage-card h2 {
        font-size: 22px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}

/* ============================================
   CATEGORY DETAIL PAGE STYLES
   ============================================ */

.category-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 110, 0.85) 0%, rgba(26, 58, 110, 0.6) 100%);
}

.category-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    width: 80%;
}

.category-hero-content h1 {
    font-family: var(--font-english);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.category-hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.category-details {
    padding: 60px 40px;
    background: var(--bg-light);
}

.category-details .container {
    max-width: 1000px;
    margin: 0 auto;
}

.category-details h2 {
    font-family: var(--font-english);
    font-size: 32px;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.category-intro {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.category-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-features .feature-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.category-features .feature-item h3 {
    font-family: var(--font-english);
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.category-features .feature-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.category-specs {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-specs h3 {
    font-family: var(--font-english);
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.category-specs table {
    width: 100%;
    border-collapse: collapse;
}

.category-specs tr {
    border-bottom: 1px solid var(--border-color);
}

.category-specs tr:last-child {
    border-bottom: none;
}

.category-specs th {
    padding: 15px 20px;
    background: var(--primary-blue);
    color: var(--text-white);
    font-weight: 600;
    width: 40%;
}

.category-specs td {
    padding: 15px 20px;
    color: var(--text-dark);
}

.category-cta {
    background: var(--primary-blue);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-white);
}

.category-cta h3 {
    font-family: var(--font-english);
    font-size: 24px;
    margin-bottom: 10px;
}

.category-cta p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-white);
    padding: 15px 40px;
    border-radius: 8px;
    font-family: var(--font-english);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

@media (max-width: 768px) {
    .category-hero {
        height: 300px;
    }
    
    .category-hero-content h1 {
        font-size: 32px;
    }
    
    .category-features {
        grid-template-columns: 1fr;
    }
    
    .category-details {
        padding: 40px 20px;
    }
}