/* ======== 1. GLOBAL & VARIABLES ======== */

:root {
    /* Color Palette */
    --bg-dark: #050811;
    --bg-light: #0a0f24;
    --bg-darker: #02040a; /* New: even darker for section contrast */
    --accent-cyan: #00bcd4;
    --accent-cyan-light: #02e1ff;
    --text-white: #e8e8e8;
    --text-gray: #9aa0b8; /* Main subtext color */
    --text-muted: #6b7280; /* Lighter gray for less prominent text */

    /* Typography */
    --font-family: 'Poppins', sans-serif;
    
    /* Layout */
    --container-width: 1200px; /* Slightly wider container */
    --border-radius: 12px;
    --card-shadow: 0 4px 15px rgba(0, 188, 212, 0.05);
    --hover-shadow: 0 8px 30px rgba(0, 188, 212, 0.1); /* Enhanced hover shadow */
    --transition-speed: 0.3s ease-out; /* Global transition speed */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-image: linear-gradient(180deg, var(--bg-light), var(--bg-dark));
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-cyan-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Utility Classes */
.section-spacing {
    padding: 6rem 0; /* Consistent spacing */
}
.bg-darker {
    background-color: var(--bg-darker); /* For alternate section backgrounds */
}
.text-center {
    text-align: center;
}
.mt-5 {
    margin-top: 3rem;
}
.subtext {
    color: var(--text-gray);
}


/* Section Headers */
.section-title {
    font-size: 2.8rem; /* Larger, bolder titles */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem; /* More space below description */
}

/* Call to Action Buttons */
.cta-button {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-decoration: none;
    line-height: 1; /* Keep text centered vertically */
}

.cta-button.primary-cta {
    color: #000;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
    box-shadow: 0 4px 20px rgba(2, 225, 255, 0.3);
}

.cta-button.primary-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(2, 225, 255, 0.45);
    color: #000; /* Ensure text remains black on hover */
}

.cta-button.secondary-cta {
    color: var(--accent-cyan-light);
    background: transparent;
    border: 2px solid var(--accent-cyan);
    padding: 0.8rem 2.2rem; /* Adjust padding for border */
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0); /* Subtle initial shadow for depth */
}

.cta-button.secondary-cta:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan-light);
    color: var(--accent-cyan-light);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.2); /* Soft blue glow */
}

.cta-button.larger-cta {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.cta-button.small-cta {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
}


/* Text Links with Icons */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    margin-top: 1rem;
}
.text-link i {
    transition: transform var(--transition-speed);
}
.text-link:hover i {
    transform: translateX(5px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--text-white), var(--accent-cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* ======== 2. HEADER / NAVIGATION ======== */
.navbar {
    padding: 1.2rem 0;
    background: rgba(10, 15, 36, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UPDATED LOGO STYLE */
.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex; /* Ensures image aligns */
    align-items: center;
}

.nav-logo img {
    max-height: 60px; /* Adjust this to fit your logo's size */
    width: auto;
}
/* END LOGO STYLE UPDATE */

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--text-white);
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-white);
}


/* ======== 3. HERO SECTION - NEW ======== */
.hero-new {
    position: relative;
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    background: radial-gradient(circle at top center, rgba(10, 15, 36, 0.8), rgba(5, 8, 17, 0.9) 70%, rgba(5, 8, 17, 1));
}

/* NEW PARTICLE CANVAS STYLE */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits on top of the overlay, but behind content */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239AA0B8" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zm0-30V0H4v4H0v2h4v4h2V6h4V4H6zm0 30V0H4v4H0v2h4v4h2V6h4V4H6zm0 30V0H4v4H0v2h4v4h2V6h4V4H6zm0 30V0H4v4H0v2h4v4h2V6h4V4H6zm0 30V0H4v4H0v2h4v4h2V6h4V4H6z" /%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
    z-index: 0; /* Sits at the very back */
}

.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Sits on top of the particles */
    padding-top: 5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ======== 4. WHAT YOU'LL LEARN SECTION - NEW ======== */
.learn-section-new .section-title {
    margin-bottom: 5rem;
}

.learn-features {
    display: flex;
    flex-direction: column;
    gap: 6rem; /* More vertical space between features */
}

.learn-feature-item {
    display: flex;
    align-items: center;
    gap: 4rem; /* Spacing between image and text */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.learn-feature-item.reverse {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.feature-text {
    flex: 1;
    min-width: 300px; /* Ensure text doesn't get too narrow */
}

.feature-image-placeholder {
    flex: 1;
    min-width: 400px; /* Ensure image doesn't get too narrow */
    background-color: rgba(255, 255, 255, 0.03); /* Subtle background for image areas */
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensure image fits */
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.learn-feature-item:hover .feature-image-placeholder img {
    transform: scale(1.03); /* Subtle zoom on hover */
}


.feature-icon {
    font-size: 3.5rem; /* Larger icons */
    color: var(--accent-cyan-light);
    margin-bottom: 1rem;
    display: inline-block; /* For potential background/shadow effects */
    /* Add a subtle glowing effect around icons */
    text-shadow: 0 0 15px rgba(2, 225, 255, 0.3);
}

.feature-text h3 {
    font-size: 2rem; /* Larger headings */
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

/* ======== 5. FREE TOOLS SECTION - INNOVATED ======== */
.tools-highlight-section .section-description {
    margin-bottom: 3rem;
}

.tools-grid-innovated {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.tool-card-innovated {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all var(--transition-speed);
}
.tool-card-innovated:hover {
    transform: translateY(-8px); /* Lift higher */
    box-shadow: var(--hover-shadow);
    background: rgba(255, 255, 255, 0.05);
}

.tool-card-innovated .tool-icon {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.tool-card-innovated h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.tool-card-innovated p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.tool-link-innovated {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform var(--transition-speed);
}
.tool-link-innovated:hover {
    transform: translateX(5px);
}


/* ======== 6. FEATURED ARTICLES SECTION - DYNAMIC ======== */
.articles-highlight-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.articles-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem; /* More spacing */
}

.article-card-dynamic {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.article-card-dynamic:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    background: rgba(255, 255, 255, 0.04);
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}
.article-image-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-light);
    transition: transform 0.5s ease;
}
.article-card-dynamic:hover .article-image-dynamic {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(0, 188, 212, 0.8);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 5;
}

.article-content-dynamic {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content-dynamic h4 {
    font-size: 1.35rem; /* Slightly larger */
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.article-content-dynamic p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes 'Read More' to bottom */
}

.read-more-link {
    font-weight: 600;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform var(--transition-speed);
}
.read-more-link:hover {
    transform: translateX(5px);
    color: var(--accent-cyan-light);
}


/* ======== 7. AFFILIATE CTA SECTION - NEW ======== */
.affiliate-cta-section {
    padding: 8rem 0; /* More vertical padding */
}

.cta-flex-container {
    display: flex;
    align-items: center;
    gap: 4rem; /* Spacing between text and image */
    background: rgba(0, 188, 212, 0.08); /* Lighter cyan background */
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem 4rem; /* Generous padding */
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
    flex-wrap: wrap;
}

.cta-text-content {
    flex: 2; /* Takes more space */
    min-width: 300px;
}

.cta-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-image-placeholder {
    flex: 1; /* Takes less space */
    min-width: 200px;
    text-align: center;
}
.cta-image-placeholder img {
    border-radius: var(--border-radius);
    opacity: 0.8; /* Slightly subdued image */
    transition: opacity var(--transition-speed);
}
.cta-flex-container:hover .cta-image-placeholder img {
    opacity: 1; /* Full opacity on hover */
}


/* ======== 8. FOOTER - NEW ======== */
.footer {
    background: var(--bg-darker); /* Darker footer */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem; /* More spacing */
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
}
.footer-col h4::after { /* Underline effect for footer headings */
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--accent-cyan);
}


.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
}
.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.brand-col p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.social-links a {
    font-size: 1.7rem;
    color: var(--text-gray);
    transition: color var(--transition-speed), transform var(--transition-speed);
}
.social-links a:hover {
    color: var(--accent-cyan-light);
    transform: translateY(-3px);
}

.newsletter-col p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-family: var(--font-family);
    min-width: 180px; /* Ensure input is not too small */
}
.newsletter-form input::placeholder {
    color: var(--text-gray);
}
.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed);
}
.newsletter-form button:hover {
    background: var(--accent-cyan-light);
}


.footer-bottom {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 4rem;
}
.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}


/* ======== 9. ANIMATIONS (CSS Keyframes) ======== */
/* General Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific Fade In Left/Right for learn features */
@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In for tool cards */
@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Animation classes for JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Default for fade-in-up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(20px);
}
.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}
.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}
.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

/* Animation delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }
.delay-800 { transition-delay: 0.8s; }


.animate-on-scroll.animated,
.hero-new [class*="animate-fade-in-up"] { /* For initial load animations */
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero specific load animations */
.hero-new .animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0; /* Start hidden */
}
.hero-new .animate-fade-in-up.delay-200 { animation-delay: 0.2s; }
.hero-new .animate-fade-in-up.delay-400 { animation-delay: 0.4s; }
.hero-new .animate-fade-in-up.delay-600 { animation-delay: 0.6s; }
.hero-new .animate-fade-in-up.delay-800 { animation-delay: 0.8s; }


/* ======== 10. RESPONSIVE DESIGN (Media Queries) ======== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .learn-feature-item,
    .learn-feature-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    .learn-feature-item.reverse .feature-text {
        order: 1; /* Text above image on mobile */
    }
    .learn-feature-item.reverse .feature-image-placeholder {
        order: 2;
    }
    .feature-text, .feature-image-placeholder {
        min-width: unset;
        width: 100%;
    }
    .cta-flex-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .cta-image-placeholder {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 2rem;
    }
    .affiliate-cta-section .cta-button {
        width: 100%; /* Full width button on mobile */
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none; /* Hide desktop menu */
    }
    .hamburger {
        display: block; /* Show hamburger icon */
    }
    .hero-new {
        padding: 8rem 0 4rem;
        min-height: 70vh;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-button {
        width: 100%; /* Make CTA buttons full width */
    }
    .section-title {
        font-size: 2rem;
    }
    .section-description {
        font-size: 0.95rem;
    }
    .section-spacing {
        padding: 4rem 0;
    }
    .learn-features, .tools-grid-innovated, .articles-grid-dynamic {
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after { /* Center underline for footer headings on mobile */
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button.larger-cta {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* ======== 11. TOOLS PAGE STYLES ======== */

.tool-page-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px; /* Offset for fixed navbar */
    background: radial-gradient(circle at 50% 0%, var(--bg-light) 0%, var(--bg-dark) 90%);
}

.tool-page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.tool-wrapper-section {
    padding: 5rem 0;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2.5rem 3rem;
    box-shadow: var(--card-shadow);
}

.tool-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.tool-main-icon {
    font-size: 4rem;
    color: var(--accent-cyan-light);
    text-shadow: 0 0 15px rgba(2, 225, 255, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.tool-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-button-container {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-results {
    padding: 1rem 0;
    min-height: 50px; /* Space for spinner */
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* IP Results */
.result-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-cyan);
    font-size: 1.1rem;
}
.result-item strong {
    color: var(--text-white);
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.result-item span {
    color: var(--text-gray);
    word-break: break-word; /* For long strings */
}
.result-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Browser Privacy Results */
.privacy-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 1rem;
}
.status-item strong {
    color: var(--text-white);
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.status-item span {
    color: var(--text-gray);
}
.status-item .user-agent-string {
    font-size: 0.9rem;
    color: var(--text-muted);
    word-break: break-all;
}

.status-pass { border-color: #00d47e; } /* Green */
.status-fail { border-color: #d4003d; } /* Red */
.status-info { border-color: #00bcd4; } /* Cyan */

/* Download Card */
.download-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.08), rgba(2, 225, 255, 0.05));
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.15);
}
.download-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.download-card p {
    margin-bottom: 2rem;
}
.status-item .fingerprint-hash {
    color: var(--text-muted); /* Make the hash a different color */
    font-family: monospace; /* Use a monospaced font for clarity */
    font-size: 0.9rem;
    word-break: break-all; /* THIS IS THE IMPORTANT PART */
    display: block;
    margin-top: 5px;
}

/* ======== 11. TOOLS PAGE STYLES (Additions) ======== */

/* ... (Keep all your existing tool styles above this) ... */

.checklist-wrapper {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checklist-item i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-top: 5px; /* Align icon nicely */
}

.checklist-text strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    display: block;
    margin-bottom: 0.25rem;
}

.checklist-text p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Remove the old download card styles */
.download-card {
    display: none; 
}

/* ======== 12. ARTICLES LISTING PAGE STYLES ======== */

.articles-listing-section {
    padding-top: 4rem; /* Less padding than other sections */
    padding-bottom: 6rem;
}

/* We can re-use .articles-grid-dynamic, it's already styled! */


/* ======== 13. SINGLE ARTICLE POST STYLES ======== */

.article-header-section {
    padding: 8rem 0 3rem;
    margin-top: 70px; /* Navbar offset */
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--bg-light) 0%, var(--bg-dark) 90%);
}

.article-header-category {
    background-color: var(--accent-cyan);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-header-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    max-width: 900px;
    margin: 1rem auto 0;
    line-height: 1.2;
}

.article-header-meta {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

.article-header-meta strong {
    color: var(--text-white);
    font-weight: 500;
}

.article-image-section {
    padding: 2rem 0;
    background-color: var(--bg-dark);
}

.article-featured-image {
    width: 100%;
    max-height: 500px; /* Set a max-height */
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content-section {
    padding: 4rem 0;
}


.article-content {
    max-width: 750px; /* Optimal reading width */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: var(--text-white);
}

.article-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-white);
    padding-left: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-cyan);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}

/* Re-usable CTA card for the bottom of articles */
.article-cta-card {
    max-width: 750px;
    margin: 4rem auto 0;
    background: rgba(0, 188, 212, 0.08);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}
.article-cta-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
}
.article-cta-card p {
    color: var(--text-gray);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
/* ======== 12. SINGLE ARTICLE POST STYLES ======== */

.article-header-section {
    padding: 8rem 0 3rem;
    margin-top: 70px; /* Navbar offset */
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--bg-light) 0%, var(--bg-dark) 90%);
}

.article-header-category {
    background-color: var(--accent-cyan);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-header-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    max-width: 900px;
    margin: 1rem auto 0;
    line-height: 1.2;
}

.article-header-meta {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

.article-header-meta strong {
    color: var(--text-white);
    font-weight: 500;
}

.article-image-section {
    padding: 2rem 0;
    background-color: var(--bg-dark);
}

.article-featured-image {
    width: 100%;
    max-height: 500px; /* Set a max-height */
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content-section {
    padding: 4rem 0;
}

.article-content {
    max-width: 750px; /* Optimal reading width */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: var(--text-white);
}

.article-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-white);
    padding-left: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-cyan);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}

/* Article Table Styles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  text-align: left;
  border-radius: var(--border-radius);
  overflow: hidden; /* For rounded corners */
}

.article-content th,
.article-content td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem;
  line-height: 1.5;
  color: var(--text-gray);
}

.article-content th {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
}

.article-content tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Re-usable CTA card for articles */
.article-cta-card {
    max-width: 750px;
    margin: 4rem auto 0;
    background: rgba(0, 188, 212, 0.08);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}
.article-cta-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
}
.article-cta-card p {
    color: var(--text-gray);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}


/* ======== 14. ABOUT PAGE STYLES ======== */

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-mission-image {
  width: 100%;
}

.about-mission-image img {
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--hover-shadow);
  width: 100%;
  height: auto;
}

.about-mission-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* We re-use the .tools-grid-innovated for the philosophy section */
.philosophy-section .tool-card-innovated {
  background: var(--bg-dark); /* Make cards a bit darker */
}

/* Responsive fixes for About page */
@media (max-width: 992px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
  
  .about-mission-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-mission-content {
    text-align: center;
  }

  .about-mission-content h2 {
    text-align: center;
  }
}