/* ==========================================================================
   Data Nerd Diary - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --code-font: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Bootstrap Overrides
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-subtle {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 2rem 0;
}

.hero-section h1 {
    letter-spacing: -1px;
}

.hero-icon {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   Blog Hero Banner
   -------------------------------------------------------------------------- */
.blog-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.blog-hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Portfolio Hero Banner
   -------------------------------------------------------------------------- */
.portfolio-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
}

.portfolio-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.portfolio-hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-hero p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Preview Banner
   -------------------------------------------------------------------------- */
.preview-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.card-title a {
    color: var(--dark-color);
}

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

/* --------------------------------------------------------------------------
   Blog Post Content
   -------------------------------------------------------------------------- */
.post-content {
    font-family: var(--body-font);
    font-size: 1.2rem;
    line-height: 1.8;
}

.post-content h1 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.9;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--light-color);
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Code Blocks
   -------------------------------------------------------------------------- */
/* Inline code */
.post-content code {
    font-family: var(--code-font);
    font-size: 1em;
    background-color: rgba(99, 102, 241, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--primary-dark);
}

/* Code blocks without syntax highlighting */
.post-content pre {
    background-color: #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Pygments syntax highlighted code blocks - let code-highlight.css handle colors */
.post-content .highlight {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content .highlight pre {
    margin: 0;
    padding: 0;
    background: transparent;
}

.post-content .highlight code,
.post-content .highlight pre {
    background: transparent;
    color: inherit;
}

/* Ensure syntax highlighting spans get their colors */
.post-content .highlight span {
    background: transparent;
}

/* --------------------------------------------------------------------------
   Tables in Content
   -------------------------------------------------------------------------- */
.post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.post-content table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.post-content table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--dark-color);
}

.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary-light) !important;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* --------------------------------------------------------------------------
   Tags Cloud
   -------------------------------------------------------------------------- */
.tags-cloud .badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.tags-cloud .badge:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comment {
    position: relative;
}

.comment::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination .page-link {
    border: none;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .post-content p,
    .post-content li {
        font-size: 1.15rem;
        line-height: 1.8;
    }

    .post-content h1 {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.65rem;
    }

    .post-content h3 {
        font-size: 1.4rem;
    }

    .post-content h4 {
        font-size: 1.2rem;
    }

    .post-content pre code,
    .highlight code {
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   Anchor Links
   -------------------------------------------------------------------------- */
.anchor-link {
    opacity: 0;
    margin-left: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link {
    opacity: 1;
}

.anchor-link:hover {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.rounded-40 {
    border-radius: 40px;
}

.min-h-400 {
    min-height: 400px;
}

.h-200 {
    height: 200px;
}

/* Card Hover Effects */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-hover-lift-lg {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift-lg:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Legend dots for charts */
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero Section Enhancements
   -------------------------------------------------------------------------- */
.hero-icon:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Dashboard Showcase Section
   -------------------------------------------------------------------------- */
.dashboard-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-showcase .badge {
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.dashboard-showcase .features-list {
    max-width: 600px;
}

.dashboard-showcase .features-list i {
    flex-shrink: 0;
}

.dashboard-preview {
    position: relative;
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: translateY(-5px);
}

.browser-mockup {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.browser-bar {
    border-bottom: 1px solid #dee2e6;
}

.dashboard-screenshot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.metric-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.chart-card {
    transition: transform 0.2s ease;
}

.chart-placeholder-complex {
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.chart-legend {
    font-size: 0.75rem;
}

/* Animated chart lines */
.chart-line-occupancy,
.chart-line-revenue,
.chart-line-expenses {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawComplexLine 2.5s ease forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-revenue {
    animation-delay: 0.2s;
}

.chart-line-expenses {
    animation-delay: 0.4s;
}

/* Animated area fills */
.chart-line-occupancy-area,
.chart-line-revenue-area {
    opacity: 0;
    animation: fadeInArea 1s ease forwards;
}

.chart-line-revenue-area {
    animation-delay: 0.3s;
}

.chart-line-occupancy-area {
    animation-delay: 0.5s;
}

@keyframes drawComplexLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArea {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Dashboard Solutions CTA
   -------------------------------------------------------------------------- */
.dashboard-solutions {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" x="0" y="0" fill="white" opacity="0.05"/></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
}

.dashboard-solutions .container {
    position: relative;
    z-index: 1;
}

.dashboard-solutions h3 {
    font-size: 1.75rem;
}

.dashboard-solutions .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Skill Cards
   -------------------------------------------------------------------------- */
.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background: white;
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.skill-card .iconify {
    display: inline-block;
    width: 48px;
    height: 48px;
}

#skills h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-title h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
}

.section-title .line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 40px;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Section Styling
   -------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section.portfolio {
    background-color: #f9f9f9;
}

.section.blog {
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Portfolio Cards
   -------------------------------------------------------------------------- */
.portfolio-card {
    height: 430px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.portfolio-card .portfolio-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.portfolio-card .portfolio-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.portfolio-info h5 {
    color: var(--dark-color);
    font-weight: 700;
}

.portfolio-info p {
    color: #555;
}

.portfolio-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Blog Section & Cards
   -------------------------------------------------------------------------- */
.blog-section {
    font-family: var(--body-font);
}

.blog-section .card-text,
.blog-section p {
    font-family: var(--body-font);
}

.blog-card {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-card .blog-img {
    height: 180px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card .blog-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-card .blog-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.blog-card .blog-info h5 {
    color: var(--dark-color);
    font-weight: 700;
}

.blog-card .blog-info p {
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Project Cards
   -------------------------------------------------------------------------- */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments for Dashboard
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .dashboard-showcase .col-lg-6 {
        text-align: center;
    }

    .dashboard-showcase .features-list {
        text-align: left;
        margin: 0 auto;
    }

    .dashboard-solutions .col-lg-8,
    .dashboard-solutions .col-lg-4 {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .dashboard-showcase h2 {
        font-size: 2rem;
    }

    .dashboard-preview {
        padding: 1.5rem !important;
    }

    .dashboard-screenshot {
        min-height: 300px !important;
    }

    .metric-card {
        padding: 0.5rem !important;
    }

    .metric-card h3 {
        font-size: 1.25rem;
    }

    .metric-card small {
        font-size: 0.7rem;
    }

    .chart-legend {
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.25rem !important;
        align-items: flex-end;
    }

    .skill-card {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   Newsletter Popup
   ========================================================================== */

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.newsletter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.newsletter-popup-content {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.newsletter-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.newsletter-popup-close:hover {
    color: #334155;
}

.newsletter-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.newsletter-popup-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.newsletter-popup-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.newsletter-popup-content > p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-popup-form .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-popup-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-popup-form .btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.newsletter-popup-privacy {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.newsletter-popup-success {
    padding: 1.5rem 0;
}

.newsletter-popup-success i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.newsletter-popup-success p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* ==========================================================================
   Consultation CTA
   ========================================================================== */

.consultation-cta {
    margin: 3rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.consultation-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.consultation-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    font-size: 2rem;
    color: #fff;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.cta-action {
    flex-shrink: 0;
}

.btn-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    white-space: nowrap;
}

.btn-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .consultation-cta {
        padding: 2rem;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .cta-icon i {
        font-size: 1.5rem;
    }

    .cta-text h3 {
        font-size: 1.25rem;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .newsletter-popup-content {
        padding: 2rem 1.5rem;
    }
}
