/* === Final, Complete and Corrected style.css for firstack-distributor-site === */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00A3E0;
    --dark-color: #232931;
    --light-color: #FFFFFF;
    --grey-bg-color: #f4f7f9;
    --text-color: #333333;
    --heading-font: 'Arial', sans-serif;
    --body-font: 'Arial', sans-serif;
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; }
.section-bg { background-color: var(--grey-bg-color); }
section { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}
.cta-button:hover { background-color: var(--secondary-color); transform: translateY(-2px); }
.cta-button.secondary { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color) !important; }
.cta-button.secondary:hover { background-color: var(--primary-color); color: var(--light-color) !important; }

/* --- Header & Navigation --- */
.main-header { background: var(--light-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-img { height: 40px; }
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li { margin-left: 30px; }
.nav-links a { font-weight: 600; font-size: 1rem; color: var(--dark-color); position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 8px 18px !important; font-size: 0.85rem; }
.nav-cta:hover { color: var(--light-color) !important; }
.nav-cta::after { display: none; }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* --- Page Headers (Hero & Internal) --- */
.hero-banner, .page-header, .article-header { color: var(--light-color); text-align: center; background-size: cover; background-position: center; position: relative; background-repeat: no-repeat; /* THIS FIXES THE BANNER REPEAT ISSUE */ }
.hero-banner::before, .page-header::before, .article-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 90, 156, 0.85); }
.hero-banner .container, .page-header .container, .article-header .container { position: relative; z-index: 2; }
.hero-banner { padding: 120px 0; }
.hero-banner h1 { font-size: 3rem; color: var(--light-color); max-width: 800px; margin: 0 auto 20px auto; }
.hero-banner p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px auto; opacity: 0.9; }
.hero-cta .cta-button { margin: 0 10px; }
.hero-cta .cta-button.secondary { border-color: var(--light-color); color: var(--light-color) !important; }
.hero-cta .cta-button.secondary:hover { background-color: var(--light-color); color: var(--primary-color) !important; }
.page-header { padding: 60px 0; }
.page-header h1 { color: var(--light-color); font-size: 2.8rem; margin-bottom: 10px; }
.page-header p { color: var(--light-color); opacity: 0.9; font-size: 1.1rem; margin-bottom: 20px; }
.breadcrumb { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; background-color: transparent; }
.breadcrumb-item { font-size: 0.9rem; }
.breadcrumb-item a { color: var(--light-color); opacity: 0.8; }
.breadcrumb-item.active { color: var(--light-color); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { content: '>'; display: inline-block; padding: 0 10px; color: var(--light-color); opacity: 0.6; }

/* --- Homepage Sections --- */
.core-advantages { padding: 80px 0; }
.core-advantages .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.advantage-item img { height: 60px; margin-bottom: 15px; }
.advantage-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-areas .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-link { text-decoration: none; }
.card { background: var(--light-color); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.card-icon { height: 70px; margin-bottom: 20px; }
.card h4 { font-size: 1.4rem; margin-bottom: 10px; }
.application-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 40px; }
.app-item { display: flex; align-items: center; background: var(--grey-bg-color); padding: 10px 20px; border-radius: 50px; font-weight: 600; }
.app-item img { height: 30px; margin-right: 10px; }
.text-center { text-align:center; }
.latest-news .news-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-item { background: var(--light-color); padding: 20px; border-radius: var(--border-radius); border-left: 4px solid var(--secondary-color); }
.news-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; }
.news-meta span { font-weight: 700; color: var(--primary-color); }
.news-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.news-item h4 a { color: var(--dark-color); }
.final-cta { background-color: var(--primary-color); color: var(--light-color); text-align: center; padding: 80px 0; }
.final-cta h2 { font-size: 2.2rem; color: var(--light-color); }

/* --- Products Page --- */
.product-category { padding: 80px 0; }
.category-header { display: flex; align-items: center; gap: 25px; max-width: 800px; margin: 0 auto 30px auto; text-align: left; }
.category-header .category-icon img { height: 80px; flex-shrink: 0; }
.category-title-desc h2 { font-size: 2.2rem; margin: 0 0 5px 0; }
.category-title-desc p { font-size: 1.1rem; color: #555; margin: 0; }
.category-description { max-width: 800px; margin: 0 auto 50px auto; text-align: center; font-size: 1.05rem; line-height: 1.7; color: #444; }
.text-link { font-weight: 700; display: inline-block; margin-top: 10px; }
.product-table { width: 100%; border-collapse: collapse; box-shadow: var(--box-shadow); background: var(--light-color); border-radius: var(--border-radius); overflow: hidden; }
.product-table th, .product-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #dee2e6; }
.product-table thead th { background-color: var(--grey-bg-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.product-table tbody tr:last-child td { border-bottom: none; }
.product-table tbody tr:hover { background-color: #f8f9fa; }
.product-table td strong { font-weight: 700; color: var(--primary-color); }
.product-table img { height: 60px; width: auto; border-radius: var(--border-radius); }
.cta-button.small { padding: 6px 15px; font-size: 0.8rem; }

/* --- Product Detail Page --- */
.product-detail-section { padding: 80px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.product-image-gallery img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.product-info h2 { font-size: 2.5rem; margin-bottom: 15px; }
.product-short-desc { font-size: 1.15rem; line-height: 1.7; margin-bottom: 30px; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 15px; }
.tab-nav { display: flex; border-bottom: 2px solid #dee2e6; margin-bottom: 30px; }
.tab-link { padding: 15px 25px; cursor: pointer; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: #666; position: relative; transition: color 0.3s ease; }
.tab-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transition: transform 0.3s ease; }
.tab-link.active { color: var(--primary-color); }
.tab-link.active::after { transform: scaleX(1); }
.tab-content { display: none; line-height: 1.7; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 20px; }
.tab-content ul { padding-left: 20px; }
.tab-content ul li { margin-bottom: 10px; }
.specs-table { width: 100%; max-width: 700px; }
.specs-table td { padding: 12px; border-bottom: 1px solid #eee; }
.specs-table tr td:first-child { font-weight: 600; color: var(--dark-color); width: 40%; }
.faq-item { margin-bottom: 25px; }
.faq-item h4 { font-size: 1.2rem; margin-bottom: 8px; }

/* --- Content List Pages (Solutions, Support, News) --- */
.content-list-section { padding: 80px 0; }
.list-container { display: grid; gap: 30px; }
.list-item-card { display: flex; background: var(--light-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; transition: box-shadow 0.3s ease; }
.list-item-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.list-item-content { padding: 30px; }
.list-item-title a { color: var(--dark-color); text-decoration: none; }
.list-item-title a:hover { color: var(--primary-color); }
.list-item-summary { color: #555; margin: 15px 0; }
.list-item-category { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); background-color: #e3f2fd; padding: 5px 10px; border-radius: 50px; display: inline-block; }

/* --- Article & Solution Detail Pages --- */
.article-header { padding: 80px 0; }
.article-header h1 { font-size: 3rem; max-width: 900px; margin: 0 auto 15px auto; }
.article-meta span { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 5px 15px; border-radius: 50px; font-weight: 700; margin-bottom: 15px; }
.article-summary { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.article-content-section { padding: 80px 0; }
.article-container { display: grid; grid-template-columns: 3fr 1fr; gap: 60px; }
.article-body { line-height: 1.8; font-size: 1.1rem; }
.article-body h2 { font-size: 2rem; margin-top: 40px; margin-bottom: 20px; color: var(--primary-color); }
.article-body h3 { font-size: 1.6rem; margin-top: 30px; margin-bottom: 15px; }
.article-body ul { padding-left: 25px; }
.article-body ul li { margin-bottom: 12px; }
.article-body a { font-weight: 600; text-decoration: underline; }
.diagram-container { text-align: center; margin: 40px 0; }
.diagram-container img { max-width: 100%; border: 1px solid #ddd; padding: 10px; border-radius: var(--border-radius); background: #fdfdfd; }
.diagram-caption { font-size: 0.9rem; color: #777; font-style: italic; margin-top: 10px; }
.bom-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.bom-table th, .bom-table td { padding: 12px 15px; border: 1px solid #ddd; text-align: left; }
.bom-table thead { background-color: var(--grey-bg-color); }
.article-sidebar .sidebar-widget { background: var(--grey-bg-color); padding: 25px; border-radius: var(--border-radius); margin-bottom: 30px; }
.sidebar-widget h4 { font-size: 1.3rem; margin: 0 0 15px 0; color: var(--dark-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; }
.sidebar-widget p { margin: 0 0 15px 0; }
.cta-button.full-width { width: 100%; text-align: center; }
.related-product-link { display: block; font-weight: 600; margin-bottom: 10px; }
.author-box { background: var(--grey-bg-color); padding: 20px; border-radius: var(--border-radius); text-align: center; margin-bottom: 30px; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; border: 3px solid var(--light-color); box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.author-box h4 { font-size: 1.2rem; margin: 0; }
.author-box span { font-size: 0.9rem; color: #777; margin-bottom: 10px; display: block; }
.author-box p { font-size: 0.95rem; line-height: 1.5; margin: 0; }
    
/* --- Other Pages (About, Contact) --- */
.about-us-content, .contact-section { padding: 80px 0; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
.about-text ul { list-style: none; padding-left: 0; }
.about-text ul li { padding-left: 30px; position: relative; margin-bottom: 15px; }
.about-text ul li::before { content: '✓'; color: var(--secondary-color); font-weight: 900; position: absolute; left: 0; top: 0; }
.about-image img { border-radius: var(--border-radius); }
.contact-grid { grid-template-columns: 1.5fr 1fr; }
.contact-form-container h3, .contact-details h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--primary-color); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: var(--border-radius); font-size: 1rem; font-family: var(--body-font); }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-info-list img { height: 30px; margin-right: 20px; margin-top: 5px; }
.contact-info-list div { display: flex; flex-direction: column; }
.contact-info-list strong { font-size: 1.1rem; margin-bottom: 2px; }

/* --- Modern Hero Contact Section --- */
.quick-contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.quick-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.quick-contact-wrapper {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quick-contact-wrapper h2 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quick-contact-wrapper p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

.quick-contact-buttons {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-color);
    min-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.quick-contact-card:hover::before {
    left: 100%;
}

.quick-contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    color: var(--text-color);
}

.quick-contact-card.whatsapp:hover {
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
    border-color: #25D366;
}

.quick-contact-card.wechat:hover {
    box-shadow: 0 20px 40px rgba(7, 193, 96, 0.3);
    border-color: #07C160;
}

.quick-contact-card img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quick-contact-card:hover img {
    transform: scale(1.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.platform {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

.number {
    font-size: 1rem;
    color: #6c757d;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Floating Sidebar Contact Buttons --- */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.floating-contact-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-width: 60px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.floating-contact-btn:hover::before {
    left: 100%;
}

.floating-contact-btn img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.floating-contact-btn .contact-text {
    margin-left: 12px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-contact-btn:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    padding: 12px 20px;
}

.floating-contact-btn:hover .contact-text {
    opacity: 1;
    width: auto;
}

.floating-contact-btn:hover img {
    transform: scale(1.1);
}

.floating-contact-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-color: #25D366;
}

.floating-contact-btn.wechat:hover {
    background: linear-gradient(135deg, #07C160 0%, #00A862 100%);
    color: white;
    border-color: #07C160;
}

.floating-contact-btn.whatsapp:hover img,
.floating-contact-btn.wechat:hover img {
    filter: brightness(0) invert(1);
}

.contact-text .platform {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.contact-text .number {
    font-size: 0.8rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

/* --- Modern Modular Contact Section --- */
.contact-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 90, 156, 0.2), transparent);
}

.contact-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.contact-intro h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
}

.contact-intro h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.contact-intro p {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.contact-region {
    margin-bottom: 80px;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-region::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.contact-region h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.02em;
}

.contact-region h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 1.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 163, 224, 0.2);
}

.contact-card h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
    letter-spacing: -0.01em;
}

.contact-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 163, 224, 0.3), transparent);
}

.contact-details {
    position: relative;
}

.contact-details p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-details strong {
    color: var(--dark-color);
    font-weight: 700;
    min-width: 80px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.contact-details a:hover {
    color: var(--secondary-color);
    transform: translateX(2px);
}

.contact-details a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-details a:hover::after {
    width: 100%;
}

/* --- Footer --- */
.main-footer { background-color: var(--dark-color); color: #ccc; padding: 50px 0 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: var(--light-color); font-size: 1.1rem; margin-bottom: 20px; }
.footer-col p, .footer-col ul li { font-size: 0.95rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: #ccc; }
.footer-bottom { border-top: 1px solid #444; text-align: center; padding: 20px 0; font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: var(--light-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 20px 0; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 20px; text-align: center; }
    .mobile-nav-toggle { display: block; z-index: 1001; }
    .hamburger { display: block; width: 25px; height: 3px; background: var(--dark-color); position: relative; transition: all 0.3s ease; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background: var(--dark-color); transition: all 0.3s ease; }
    .hamburger::before { transform: translateY(-8px); }
    .hamburger::after { transform: translateY(8px); }
    .mobile-nav-toggle.is-active .hamburger { background: transparent; }
    .mobile-nav-toggle.is-active .hamburger::before { transform: rotate(45deg); }
    .mobile-nav-toggle.is-active .hamburger::after { transform: rotate(-45deg); }
    .article-container, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .article-sidebar { margin-top: 50px; order: -1; }
    .about-image { order: -1; margin-bottom: 30px; }
    .quick-contact-buttons { flex-direction: column; align-items: center; gap: 24px; }
    .quick-contact-card { min-width: 300px; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-intro h2 { font-size: 2.2rem; }
    .contact-region h3 { font-size: 1.8rem; }
    .quick-contact-wrapper h2 { font-size: 2.8rem; }
    .contact-section { padding: 80px 0; }
    .contact-region { padding: 40px 30px; margin-bottom: 60px; }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1, .hero-banner h1, .page-header h1, .article-header h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .hero-banner { padding: 80px 0; }
    
    .quick-contact-section { padding: 60px 0; }
    .quick-contact-wrapper h2 { font-size: 2.2rem; }
    .quick-contact-wrapper p { font-size: 1.1rem; }
    .quick-contact-card { 
        min-width: 280px; 
        padding: 24px 32px;
        gap: 16px;
    }
    .quick-contact-card img { width: 28px; height: 28px; }
    .platform { font-size: 1.1rem; }
    .number { font-size: 0.95rem; }
    
    .contact-section { padding: 70px 0; }
    .contact-intro h2 { font-size: 2.2rem; }
    .contact-region { 
        padding: 40px 25px; 
        margin-bottom: 60px;
        border-radius: 16px;
    }
    .contact-region h3 { font-size: 1.8rem; }
    .contact-card { 
        padding: 30px; 
        border-radius: 12px;
    }
    .contact-card h4 { font-size: 1.3rem; }
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 24px; 
        padding: 0;
    }
    .contact-details p { font-size: 0.95rem; }
    .contact-details strong { font-size: 0.85rem; min-width: 70px; }
    
    /* Floating contact adjustments for tablet */
    .floating-contact {
        right: 15px;
        gap: 12px;
    }
    .floating-contact-btn:hover {
        min-width: 160px;
    }
}

/* --- Additional Mobile Styles --- */
@media (max-width: 480px) {
    .quick-contact-wrapper h2 { font-size: 1.9rem; }
    .quick-contact-card { 
        min-width: 260px; 
        padding: 20px 28px;
    }
    .contact-intro h2 { font-size: 1.9rem; }
    .contact-region { 
        padding: 30px 20px; 
        margin: 0 15px 50px;
    }
    .contact-region h3 { font-size: 1.6rem; }
    .contact-card { padding: 25px; }
    .contact-details strong { min-width: 60px; font-size: 0.8rem; }
    
    /* Floating contact mobile styles */
    .floating-contact {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }
    .floating-contact-btn {
        min-width: 50px;
        padding: 10px 12px;
    }
    .floating-contact-btn img {
        width: 24px;
        height: 24px;
    }
    .floating-contact-btn:hover {
        transform: translateY(-4px) scale(1.05);
        min-width: 50px;
        padding: 10px 12px;
    }
    .floating-contact-btn .contact-text {
        display: none; /* Hide text on mobile */
    }
}