/* ============================================
   CSS Variables (matching article.css)
   ============================================ */
:root {
    --primary: #4461F2;
    --primary-light: #5A75F3;
    --primary-dark: #3350D9;
    --secondary: #12B76A;
    --text-dark: #1D2939;
    --text-medium: #475467;
    --text-light: #667085;
    --gray-light: #F2F4F7;
    --gray-medium: #E4E7EC;
    --white: #FFFFFF;
    --radius: 8px;
    --shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Header & Navbar
   ============================================ */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

body > header > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-logo-image {
    height: 50px;
    width: auto;
}

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.cta-buttons {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .cta-buttons {
        display: flex;
    }
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 1rem;
}

.nav-links.active li a {
    display: block;
    padding: 0.5rem 0;
}

/* ============================================
   Hero Banner Section (Blue theme)
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    text-align: center;
    margin-top: 70px;
}

.hero-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-banner p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 2rem 0;
    }

    .hero-banner h1 {
        font-size: 1.75rem;
    }

    .hero-banner p {
        font-size: 1rem;
    }
}

/* ============================================
   Main Content
   ============================================ */
.main {
    min-height: 100vh;
    background-color: var(--gray-light);
}

.main > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .main > .container {
        padding: 3rem 2rem;
    }
}

/* ============================================
   Blog Grid - Masonry Style
   ============================================ */
.blog-grid {
    column-count: 2;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .blog-grid {
        column-count: 2;
        column-gap: 1.25rem;
    }
}

@media (min-width: 900px) {
    .blog-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        column-count: 4;
        column-gap: 1.5rem;
    }
}

/* ============================================
   Blog Card (Blue theme - matching BillingFast)
   ============================================ */
.blog-card {
    display: inline-block;
    width: 100%;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    break-inside: avoid;
}

@media (min-width: 640px) {
    .blog-card {
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Image Container - Light Blue Background */
.card-image-container {
    position: relative;
    background: linear-gradient(135deg, rgba(68, 97, 242, 0.1) 0%, rgba(90, 117, 243, 0.15) 100%);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Image */
.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

.blog-card:hover .card-image {
    transform: scale(1.03);
}

/* Brand Badge */
.brand-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.brand-badge img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Card Content */
.card-content {
    padding: 1rem;
}

/* Card Title Box */
.card-title-box {
    background: var(--white);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-title-box h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

@media (min-width: 768px) {
    .card-title-box h3 {
        font-size: 0.875rem;
    }
}

/* Card Category Label */
.card-category-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: #1D2939;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 50px;
}

.store-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.download-button img {
    height: 40px;
    width: auto;
}

.download-button p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-sticky i {
    font-size: 1.75rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .blog-grid {
        column-count: 1;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .main > .container {
        padding: 1.5rem 0.75rem;
    }
}
