@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070b19;
    --bg-surface: rgba(15, 23, 42, 0.6);
    --bg-card: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-gradient: linear-gradient(135deg, #06b6d4, #a855f7);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -15px rgba(6, 182, 212, 0.3);
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.site-header {
    background: rgba(7, 11, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Agency Landing Hero Section */
.hero-section {
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(7, 11, 25, 0.88), rgba(7, 11, 25, 0.96)), url('images/agency_hero.jpg') no-repeat center center;
    background-size: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

/* Custom Agency Services / Categories Grid */
.services-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--bg-surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-white);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-premium);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Category Filter Tabs (On Archive pages) */
.cat-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.cat-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.cat-btn:hover, .cat-btn.active {
    color: var(--text-white);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

/* Articles Grid */
.articles-section {
    padding: 3rem 0 6rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 30px -10px rgba(168, 85, 247, 0.2);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-gradient);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.article-card:hover .card-title {
    color: var(--accent-cyan);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Individual Article Page Elements */
.article-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    padding: 4rem 0;
}

.article-main {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-category {
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-cover-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 3rem auto;
    display: block;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.2rem 0;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.article-body strong {
    color: var(--text-white);
}

.article-body ul, .article-body ol {
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.article-body li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Premium Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 0.8rem;
}

.widget-list {
    list-style: none;
}

.widget-item {
    margin-bottom: 1rem;
}

.widget-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: block;
}

.widget-link:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

/* Key Takeaway Summary Box */
.summary-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.summary-box h3 {
    color: var(--accent-cyan);
    margin-top: 0 !important;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Callout / Quotes */
blockquote {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--accent-purple);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

blockquote p {
    margin: 0 !important;
    font-style: italic;
    color: var(--text-white) !important;
}

/* Alert blocks */
.alert-block {
    border-radius: 8px;
    padding: 1.2rem 1.8rem;
    margin: 2rem 0;
    border-left-width: 4px;
    border-left-style: solid;
}

.alert-block-note { background: rgba(6, 182, 212, 0.05); border-left-color: var(--accent-cyan); }
.alert-block-important { background: rgba(168, 85, 247, 0.05); border-left-color: var(--accent-purple); }
.alert-block-warning { background: rgba(245, 158, 11, 0.05); border-left-color: #f59e0b; }

.alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    color: var(--text-white);
}

/* Comparison Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: var(--text-white);
}

.comparison-table td {
    color: var(--text-muted);
}

/* Table of Contents Box */
.toc-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.toc-item {
    margin-bottom: 0.6rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.toc-link:hover {
    color: var(--accent-cyan);
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 101;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
}

/* FAQ Section Accordion */
.faq-section {
    margin-top: 4rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text-white);
    outline: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 1.8rem 1.5rem 1.8rem;
    color: var(--text-muted);
}

/* Footer Section */
.site-footer {
    background: #04060d;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    color: var(--text-muted);
}

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

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.footer-heading {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #070b19;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    .site-nav.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .article-main {
        padding: 1.5rem;
    }
    .article-title {
        font-size: 2rem;
    }
}

/* Partner Widgets & Footer Lists */
.partner-widgets-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
}
.partner-widgets-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-white);
}
.partner-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.partner-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    text-decoration: none;
    color: var(--text-white) !important;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-premium);
}
.partner-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    display: inline-block;
}
.partner-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-white);
}
.partner-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}
.partner-btn {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 0.8rem;
}
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links-list a:hover {
    color: var(--accent-cyan);
}

/* Redesigned Agency Horizontal Footer Styling */
.partner-row-section {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.partner-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.partner-row-label {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 0.95rem;
}
.partner-row-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.partner-row-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.partner-row-link:hover {
    color: var(--text-white);
}
.footer-top-row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}
.footer-brand-col {
    max-width: 400px;
}
.footer-brand-col p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-links-col {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}
.footer-links-group {
    max-width: 500px;
    text-align: right;
}
.footer-group-title {
    display: block;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem 1.5rem;
}
.footer-links-inline a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links-inline a:hover {
    color: var(--accent-cyan);
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-friends-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.friends-label {
    font-weight: 600;
    font-size: 0.85rem;
}
.footer-friends-row a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-friends-row a:hover {
    color: var(--accent-purple);
}
.footer-copy p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .footer-top-row {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-links-col, .footer-links-group {
        text-align: left;
        justify-content: flex-start;
    }
    .footer-links-inline {
        justify-content: flex-start;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
