/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

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

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

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

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

/* ============================================
   Header & Navbar (matches main site style)
   ============================================ */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body > header > .container {
    max-width: 1200px;
    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;
}

.logo-img {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-billing { color: var(--primary-800); }
.logo-fast { color: var(--primary-600); }

.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(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.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: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

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

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

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

/* 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(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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;
}

/* Mobile CTA buttons inside nav-links */
.nav-links .mobile-cta {
    display: none;
}

.nav-links.active .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.nav-links.active .mobile-cta .btn {
    text-align: center;
}

/* ============================================
   Main Layout
   ============================================ */
.main {
    min-height: 100vh;
    background-color: var(--white);
    padding-top: 5rem;
}

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

/* ============================================
   Page Header
   ============================================ */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* ============================================
   Articles List
   ============================================ */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ============================================
   Article Card
   ============================================ */
.article-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.article-card:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .article-card {
        flex-direction: row;
    }
}

/* Article Image */
.article-image-link {
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .article-image-link {
        width: 220px;
    }
}

.article-image-wrapper {
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 4/3;
    background-color: var(--gray-100);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Article Content */
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-dot {
    color: var(--gray-300);
}

.article-read-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Article Title */
.article-title-link {
    display: block;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: var(--primary-600);
}

/* Article Excerpt */
.article-excerpt {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
}

.read-more:hover {
    color: var(--primary-700);
}

.read-more svg {
    transition: transform 0.2s ease;
}

.article-card:hover .read-more svg {
    transform: translateX(4px);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background-color: var(--gray-50);
}

.pagination-btn.disabled {
    color: var(--gray-400);
    background-color: var(--gray-100);
    border-color: var(--gray-200);
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-number:hover:not(.active) {
    background-color: var(--gray-50);
}

.page-number.active {
    background-color: var(--primary-600);
    color: var(--white);
    border-color: var(--primary-600);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--gray-100);
    margin-top: 2rem;
    background-color: var(--gray-50);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 1.5rem;
    width: 1.5rem;
}

.footer-logo-text {
    font-weight: 600;
    color: var(--gray-800);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--gray-700);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary-600);
    color: var(--white);
    transform: scale(1.1);
    text-decoration: none;
}

.social-link i {
    font-size: 1.25rem;
}

/* ============================================
   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: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: 640px) {
    .page-title {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}
