/* --- Variables & Reset --- */
:root {
    --color-text: #111111;
    --color-text-light: #444444;
    --color-bg: #ffffff;
    --color-bg-alt: #eeeeee;
    --color-primary: #333333;
    /* Dark Grey */
    --color-hero-bg: #333333;
    /* Dark Hero Background */
    --color-accent: #1e73be;
    /* Blue accent */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 17px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background-color: var(--color-bg);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding .logo {
    border-radius: 50%;
}

.brand-text .main-title {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
}

.brand-text .site-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

/* --- Navigation & Dropdown (Updated) --- */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation .menu-link,
.main-navigation a {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
    padding: 10px 0;
    position: relative;
}

/* Dropdown Container */
.has-dropdown {
    position: relative;
}

/* Dropdown Arrow */
.arrow-down {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Mobile Toggle Icon */
.mobile-toggle {
    display: none;
    font-size: 18px;
    font-weight: bold;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .arrow-down {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
    }

    .has-dropdown.active .mobile-toggle {
        transform: rotate(45deg);
    }
}


/* Sub-menu Styling (Hidden by default) */
.dropdown {
    position: absolute;
    top: 100%;
    left: -15px;
    /* Adjust alignment */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    display: block;
    /* We use opacity/visibility for transition */
    flex-direction: column;
    padding: 15px 0;
    z-index: 1000;

    /* Hide visual */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--color-primary);
    /* Optional top border like screenshot */
}

/* Show Sub-menu on Hover */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    display: block;
    width: 100%;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    /* Submenus usually sentence case */
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
}

.dropdown li a:hover {
    background-color: #f9f9f9;
    color: var(--color-accent);
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* Contact Button */
.btn-nav {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #000;
}

/* --- Mobile Menu Toggle --- */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* --- Hero Section (Updated Dark Theme) --- */
.hero-section {
    background-color: var(--color-hero-bg);
    color: #ffffff;
    padding: 80px 0;
    text-align: left;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-title .hero-name {
    color: #bbbbbb;
}

/* Highlight text in hero (White to match old design screenshot) */
.hero-section .highlight {
    color: #ffffff;
}

.hero-text {
    max-width: 800px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #dddddd;
}

.hero-section .meta-info {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
}

/* Hero Button Outline Style */
.btn-white-outline {
    display: inline-block;
    background-color: transparent;
    color: #ffffff !important;
    padding: 12px 30px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    /* Slightly squared like screenshot */
    font-weight: bold;
    text-transform: capitalize;
    font-size: 16px;
}

.btn-white-outline:hover {
    background-color: #ffffff;
    color: var(--color-primary) !important;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #000;
}

/* --- About Section --- */
.about-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 20px;
}

.about-image img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-content h2 {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
    /* Small vertical line accent */
}

.about-content p {
    margin-bottom: 20px;
}

/* --- Services Section --- */
.services-section {
    background-color: var(--color-bg-alt);
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    margin-bottom: 15px;
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    border-bottom: 2px solid transparent;
}

.link-arrow:hover {
    border-bottom-color: var(--color-accent);
}

.services-footer {
    text-align: center;
}

/* --- Tech Stack --- */
.tech-stack {
    padding: 80px 20px;
    text-align: center;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.logo-grid img {
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: 0.3s;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- CTA & Testimonials --- */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.testimonials {
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

blockquote {
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
}

cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}

/* --- Footer --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-heading {
    font-size: 1.17em;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-branding address {
    margin-top: 20px;
    font-style: normal;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-branding .footer-title {
    margin-bottom: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info p {
    font-size: 0.95rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--color-accent);
    width: 16px;
    text-align: center;
}

.contact-link:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #222;
    color: #fff !important;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.copyright {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* --- Scroll To Top Button --- */
#totop-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#totop-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#totop-btn:hover {
    background-color: #000;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 91px;
        /* Approximate header height */
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 91px);
        overflow-y: auto;
    }

    .main-navigation.active {
        display: block;
        animation: fadeInDown 0.3s ease;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        /* Reset gap for mobile stack */
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }


    /* Mobile Dropdown Behavior - Force hidden by default */
    .dropdown {
        position: static !important;
        min-width: auto !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        padding-left: 20px;
        background-color: #f9f9f9;
    }

    /* Show dropdown when parent has active class */
    .has-dropdown.active .dropdown {
        display: block !important;
    }

    /* Remove hover behavior on mobile */
    .has-dropdown:hover .dropdown {
        display: none !important;
    }

    .about-intro {
        flex-direction: column;
        text-align: center;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .about-content h2 {
        border-left: none;
        border-bottom: 3px solid var(--color-primary);
        padding-bottom: 10px;
        display: inline-block;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }
}

/* --- Services Page Specific Styles --- */

/* Breadcrumbs */
.page-header-section {
    padding-top: 40px;
    padding-bottom: 20px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
}

.hero-section .breadcrumbs a {
    color: #fff;
}

.hero-section .breadcrumbs .separator {
    color: #888;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    max-width: 800px;
}

.meta-info {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Two Column Intro */
.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
    }

    .intro-text,
    .intro-image {
        width: 100%;
    }
}

/* Detailed Services List */
.services-collection {
    padding: 60px 0;
}

.service-detail-card {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 40px;
}

.service-detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature-list .icon {
    color: var(--color-primary);
    /* Dark grey checkmark */
    flex-shrink: 0;
    margin-top: 4px;
    /* Align with text */
}

.feature-list .text {
    font-size: 1rem;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 60px 0;
}

/* Service Page CTA */
.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- Blog Layout --- */
.blog-container {
    display: flex;
    gap: 40px;
    margin: 60px 0;
}

.blog-main {
    flex: 2;
    min-width: 0;
    max-width: 100%;
    /* Ensure strict width containment */
}

.blog-sidebar {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-main {
        width: 100%;
        max-width: 100%;
    }
}

/* Sidebar Widgets */
.widget {
    background: #fdfdfd;
    padding: 25px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
}

.widget li a {
    color: var(--color-text-light);
}

.widget li a:hover {
    color: var(--color-accent);
}

/* Blog Cards (Root Page) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.blog-card-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}

/* Single Article Styles */
.article-content {
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    /* Prevent long URLs from breaking layout */
    word-wrap: break-word;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    margin: 40px 0 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.toc-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 8px;
}

.toc-box strong {
    display: block;
    margin-bottom: 10px;
}

/* Article Sections Navigation (TOC) */
.article-sections-nav {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 8px;
    line-height: 1.8;
}

.article-sections-nav strong {
    display: inline;
    margin-right: 8px;
}

.article-sections-nav a {
    color: var(--color-accent);
    text-decoration: none;
}

.article-sections-nav a:hover {
    text-decoration: underline;
}

/* Heading Link Button */
.article-content h2,
.article-content h3 {
    position: relative;
    display: block;
    width: 100%;
}

.heading-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    vertical-align: middle;
    padding: 0;
}

/* Show button when hovering over the heading */
.article-content h2:hover .heading-link-btn,
.article-content h3:hover .heading-link-btn,
.heading-link-btn:hover {
    opacity: 1;
}

.heading-link-btn:hover {
    background-color: #f0f0f0;
    color: var(--color-accent);
    border-color: #ddd;
}

.heading-link-btn:active {
    transform: scale(0.95);
}

.heading-link-btn.copied {
    color: #28a745;
    background-color: #e8f5e9;
    border-color: #28a745;
    opacity: 1;
}

.service-promo-box {
    background-color: var(--color-bg-alt);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.service-promo-box p {
    margin-bottom: 15px;
    font-weight: 500;
}

/* --- Code Blocks --- */
.code-block-container {
    background: #2d2d2d;
    color: #f8f8f2;
    /* CRITICAL: Default light text color for readability if hljs fails */
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    max-width: 100%;
    /* Ensure container doesn't exceed parent */
}

/* Specificity boost to override highlight.js */
.code-block-container pre,
pre {
    margin: 0;
    padding: 0;
    overflow-x: auto !important;
    /* Force scrollbar */
    max-width: 100%;
    white-space: pre;
    /* Default behavior, ensures lines stay long so scroll triggers */
}

/* Ensure code element doesn't break layout */
.code-block-container code.hljs,
code.hljs {
    padding: 20px;
    display: block;
    font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
    /* Fallback */
    max-width: 100%;
}

/* --- Latest Entries Widget --- */
.latest-entries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-entry-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.latest-entry-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-entry-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-entry-item:hover .latest-entry-thumbnail img {
    transform: scale(1.05);
}

.latest-entry-content {
    flex: 1;
    min-width: 0;
}

.latest-entry-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--color-text);
}

.latest-entry-title a {
    color: var(--color-text);
}

.latest-entry-title a:hover {
    color: var(--color-accent);
}

.latest-entry-date {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* --- Social Share Buttons --- */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    margin-right: 5px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-button.facebook:hover {
    background-color: #1877f2;
}

.share-button.twitter:hover {
    background-color: #000000;
}

.share-button.linkedin:hover {
    background-color: #0a66c2;
}

.share-button.reddit:hover {
    background-color: #ff4500;
}

.share-button.email:hover {
    background-color: #666666;
}

/* --- Article Images --- */
.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.image-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

/* --- Blog Hero Section --- */
.blog-hero-section {
    background-color: var(--color-hero-bg);
    color: #ffffff;
    padding: 60px 0;
    text-align: left;
}

.blog-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.blog-hero-description {
    max-width: 700px;
    font-size: 1rem;
    color: #dddddd;
    line-height: 1.6;
}

/* --- Category Header Section --- */
.category-header-section {
    background-color: var(--color-hero-bg);
    color: #ffffff;
    padding: 60px 0;
    text-align: left;
}

.category-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.category-description {
    max-width: 700px;
    font-size: 1rem;
    color: #dddddd;
    line-height: 1.6;
}

/* --- Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title a {
    color: var(--color-text);
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Active link styling */
.widget li a.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* --- Author Byline Box --- */
.author-byline {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-primary);
    padding: 30px;
    margin: 60px 0 40px 0;
    border-radius: 8px;
}

.author-byline-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.author-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.author-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.author-info .author-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.author-info .author-link:hover {
    border-bottom-color: var(--color-accent);
}

@media (max-width: 600px) {
    .author-byline-content {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar img {
        width: 100px;
        height: 100px;
    }
}

/* --- Author Profile Page --- */
.author-header-section {
    background-color: var(--color-hero-bg);
    color: #ffffff;
    padding: 60px 0 40px 0;
}

.author-profile-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.author-profile-image {
    flex-shrink: 0;
}

.author-profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.author-profile-info h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.author-profile-info .author-title {
    font-size: 1.2rem;
    color: #bbbbbb;
    margin-bottom: 20px;
    font-weight: 500;
}

.author-profile-info .author-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #dddddd;
    max-width: 700px;
}

@media (max-width: 768px) {
    .author-profile-content {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-info h1 {
        font-size: 2rem;
    }

    .author-profile-image img {
        width: 120px;
        height: 120px;
    }
}

/* --- AI Summarize Section --- */
.ai-summarize {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-summarize-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-tools-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ai-tool-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ai-tool-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.ai-tool-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ai-tool-link:hover .ai-tool-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .ai-summarize {
        flex-direction: column;
        gap: 15px;
    }

    .ai-tools-grid {
        gap: 12px;
        justify-content: center;
    }

    .ai-tool-icon {
        width: 36px;
        height: 36px;
    }
}
/* --- WhatsApp Contact Button --- */
#whatsapp-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#whatsapp-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #whatsapp-btn {
        left: 20px;
        bottom: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #whatsapp-btn {
        left: 15px;
        bottom: 15px;
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* --- Hero Section with Image Layout --- */
.hero-inner-content-with-image {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text-content {
    flex: 1;
    min-width: 0;
}

.hero-image {
    flex: 0 0 400px;
    margin: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .hero-inner-content-with-image {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-image {
        flex: 0 0 auto;
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
    }
}
