/* ===================================
   Bangkok8 AI - Custom Styles
   =================================== */

/* Horizontal Overflow Fix - Prevents content from spilling off screen */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* CSS Variables for Theme Colors */
:root {
    /* Light Theme Colors */
    --primary-color: #FF8C00;
    --primary-dark: #E67E00;
    --secondary-color: #00A8A8;
    --secondary-dark: #008B8B;
    --accent-color: #FFB347;
    --dark-green: #2D5F5F;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F4F8;
    --bg-dark: #1A1A1A;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --text-light: #FFFFFF;

    /* Border & Shadow */
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #0F1419;
    --bg-secondary: #1A2332;
    --bg-tertiary: #243447;
    --bg-dark: #000000;

    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E0;
    --text-tertiary: #A0AEC0;

    --border-color: #2D3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Base Styles & Reset
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* ===================================
   Container & Layout
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===================================
   Theme Toggle Button
   =================================== */

.theme-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.4);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 999;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 20, 25, 0.95);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: opacity var(--transition-base);
}

.logo-image.logo-light {
    display: block;
}

.logo-image.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-image.logo-light {
    display: none;
}

[data-theme="dark"] .logo-image.logo-dark {
    display: block;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.nav-link.cta-button::after {
    display: none;
}

.nav-link.cta-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ===================================
   Circuit Background Pattern
   =================================== */

.circuit-bg,
.circuit-bg-bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(0deg,
            var(--primary-color) 0px,
            transparent 1px,
            transparent 40px),
        repeating-linear-gradient(90deg,
            var(--secondary-color) 0px,
            transparent 1px,
            transparent 40px);
    pointer-events: none;
    z-index: 0;
}

.circuit-bg::before,
.circuit-bg-bottom::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, var(--secondary-color) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, var(--accent-color) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 120px 120px;
    opacity: 0.3;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease 0.3s backwards;
}

.brand-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: opacity var(--transition-base);
}

.dark-brand {
    display: none;
}

[data-theme="dark"] .light-brand {
    display: none;
}

[data-theme="dark"] .dark-brand {
    display: block;
}

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 168, 168, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   About Section
   =================================== */

.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feature-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-positioning {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.positioning-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.positioning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.positioning-card {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 168, 168, 0.1));
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: transform var(--transition-fast);
}

.positioning-card:hover {
    transform: translateX(5px);
}

.positioning-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.positioning-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.positioning-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   Services Section
   =================================== */

.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(0, 168, 168, 0.05));
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.service-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.service-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* ===================================
   Why Us Section
   =================================== */

.why-us {
    background: var(--bg-secondary);
}

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

.reason-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.reason-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1;
}

.reason-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.reason-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.testimonial-section {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: auto;
}

.author-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.company-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.client-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

/* ===================================
   CTA Section
   =================================== */

.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta * {
    color: white;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta .contact-form-container {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}

.cta .contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    margin: 0 auto;
}

.cta .form-group label {
    color: white;
    font-weight: 600;
}

.cta .form-group input,
.cta .form-group select,
.cta .form-group textarea {
    background: var(--bg-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.cta .form-group input:focus,
.cta .form-group select:focus,
.cta .form-group textarea:focus {
    background: var(--bg-primary);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
}

.cta .form-note {
    color: rgba(255, 255, 255, 0.9);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: 2px solid white;
}

.cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

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

/* ===================================
   Insights Page Styles
   =================================== */

.insights-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.insights-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.insights-title {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.featured-offers {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.offer-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    text-align: center;
}

.offer-card.featured {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(0, 168, 168, 0.05));
    border: 2px solid var(--primary-color);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.offer-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.offer-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.offer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.offer-value {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.offer-price {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-duration {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-status {
    background: var(--text-tertiary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-features {
    list-style: none;
    margin-bottom: 2rem;
}

.offer-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.offer-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.blog-posts {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.post-image {
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.post-content {
    padding: 2rem;
}

.post-category {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 168, 168, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.post-title {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-input-group button {
    padding: 1rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-input-group button:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.newsletter-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.blog-empty-state {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
}

.empty-state-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.empty-state-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.empty-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* ===================================
   Contact Form Section
   =================================== */

.contact-form-section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.contact-info {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.contact-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer * {
    color: var(--text-light);
}

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

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 35px;
    width: auto;
    max-width: 140px;
    transition: opacity var(--transition-base);
}

.footer-logo-image.footer-logo-light {
    display: block;
}

.footer-logo-image.footer-logo-dark {
    display: none;
}

[data-theme="dark"] .footer-logo-image.footer-logo-light {
    display: none;
}

[data-theme="dark"] .footer-logo-image.footer-logo-dark {
    display: block;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Fix Weekly News and Insights footer link colors and font weight */
.footer-column a[href*="weekly"],
.footer-column a[href*="insights"] {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: normal !important;
}

.footer-column a[href*="weekly"]:hover,
.footer-column a[href*="insights"]:hover {
    color: var(--primary-color) !important;
}

/* Fix Insights navigation link styling */
.nav-menu a[href="insights.php"] {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.nav-menu a[href="insights.php"]:hover {
    color: var(--primary-color) !important;
}

/* Fix Weekly AI News button text color in dark mode */
.btn-secondary,
.btn-secondary span {
    color: var(--text-primary) !important;
}

.btn-secondary:hover,
.btn-secondary:hover span {
    color: var(--primary-color) !important;
}

/* Specific fix for Weekly AI News button */
a[href*="weekly-news"].btn-secondary,
a[href*="weekly-news"].btn-secondary span {
    color: var(--text-primary) !important;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-positioning {
        position: relative;
        top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .cta-features {
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        top: 80px;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Promotions Page Styles */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.9;
    line-height: 1.6;
}

.promotions-content {
    padding: 4rem 0;
}

.featured-promotion {
    margin-bottom: 4rem;
}

.promotion-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.promotion-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 140, 0, 0.05) 100%);
}

.promotion-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.promotion-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.promotion-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.promotion-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.promotion-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.promotion-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.promotion-value {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: white;
}

.value-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.8;
}

.value-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.promotion-features {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.how-it-works {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.how-it-works h4 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.promotion-cta {
    text-align: center;
    margin-top: 3rem;
}

.promotion-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.promotion-benefits {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.promotion-benefits h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.coming-soon-promotions {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.coming-soon-promotions h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.newsletter-signup {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-signup h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-input {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-input button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }

    .promotion-card {
        padding: 2rem;
    }

    .promotion-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .steps-grid {
        gap: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-input {
        flex-direction: column;
    }

    .newsletter-input button {
        width: 100%;
    }
}

/* Insight
s Page Enhancements */
.content-navigation {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-content {
    display: none;
    padding: 4rem 0;
}

.tab-content.active {
    display: block;
}

.content-empty-state {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.weekly-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.weekly-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weekly-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.weekly-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.weekly-feature .feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.weekly-feature .feature-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .weekly-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .weekly-feature {
        padding: 1.25rem;
    }
}

/* 
Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-content {
    padding: 2rem;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

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

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date::before {
    content: "📅";
    font-size: 0.8rem;
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-time::before {
    content: "⏱️";
    font-size: 0.8rem;
}

/* Weekly News Styles */
.current-week-featured {
    margin-bottom: 3rem;
}

.weekly-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.weekly-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.weekly-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 140, 0, 0.05) 100%);
}

.weekly-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.weekly-card-content {
    padding: 2rem;
}

.weekly-title {
    margin-bottom: 0.5rem;
}

.weekly-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.weekly-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.weekly-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.weekly-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.highlight-item {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.weekly-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.weekly-read-time::before {
    content: "⏱️";
    margin-right: 0.3rem;
}

/* Previous Weeks Section */
.previous-weeks {
    margin-top: 3rem;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.weekly-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weekly-posts-grid .weekly-card .weekly-title a {
    font-size: 1.2rem;
}

.weekly-posts-grid .weekly-card-content {
    padding: 1.5rem;
}

/* Blog Post Page Styles */
.blog-post,
.weekly-news-post {
    padding: 2rem 0 4rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.5rem;
}

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

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Weekly News Post Specific Styles */
.weekly-news-post .weekly-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.week-summary {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li::before {
    content: "✨";
    margin-right: 0.5rem;
}

.news-section {
    margin-bottom: 3rem;
}

.news-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.news-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.news-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.editors-pick {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 168, 168, 0.1));
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .weekly-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-content,
    .weekly-card-content {
        padding: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .weekly-highlights {
        justify-content: center;
    }

    .highlight-item {
        font-size: 0.8rem;
    }
}

/* 
Content Modal Styles */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-color);
}

.modal-body {
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-body .post-header {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body .post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.modal-body .post-content {
    max-width: none;
    margin: 0;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Pro
motion Section Styles */
.promotion-section {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(0, 168, 168, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.promotion-content {
    text-align: center;
}

.promotion-cta {
    margin-top: 1.5rem;
}

.promotion-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Editor
's Choice and Promotion Sections */
.editors-choice-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.editors-choice {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.editors-choice strong {
    font-weight: 700;
    color: var(--primary-color);
}

.editors-choice-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.editors-choice-cta .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.editors-choice-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.editors-choice-cta .btn:active {
    transform: translateY(0);
}

/* Dark theme adjustments for editor's choice */
[data-theme="dark"] .editors-choice-section {
    background: var(--bg-tertiary);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .editors-choice strong {
    color: var(--accent-color);
}

/* Make wee
kly news titles clearly look like links */
.weekly-title a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.weekly-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog post titles as links */
.blog-title a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Back link at bottom of posts */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-to-insights {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-insights:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Fix 
contact form dropdown text visibility */
.contact-form select {
    color: var(--text-primary) !important;
}

.contact-form select option {
    color: #000 !important;
    background: #fff !important;
}

[data-theme="dark"] .contact-form select option {
    color: #fff !important;
    background: #2a2a2a !important;
}

/* E
ditor's Choice and Promotional Button Styles */
.editors-choice-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.editors-choice {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.editors-choice strong {
    color: var(--primary-color);
    font-weight: 600;
}

.editors-choice-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.editors-choice-cta .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.editors-choice-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Post Footer Styles */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-to-insights,
.back-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    transition: none;
    background: none;
}

.back-to-insights:hover,
.back-link:hover {
    color: var(--text-primary);
    background: none;
    transform: none;
}

/* Post Header Styles */
.post-header {
    margin-bottom: 2rem;
}

.post-header .back-link {
    margin-bottom: 1rem;
}

.weekly-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Main Content Styles */
.main-content,
.post-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.main-content h2,
.main-content h3,
.post-content h2,
.post-content h3 {
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.main-content p,
.post-content p {
    margin-bottom: 1.5rem;
}

.main-content ul,
.main-content ol,
.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.main-content li,
.post-content li {
    margin-bottom: 0.5rem;
}

/* Ed
itor's Choice and Promotional Button Styles */
.editors-choice-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.editors-choice {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.editors-choice strong {
    color: var(--primary-color);
    font-weight: 600;
}

.editors-choice-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.editors-choice-cta .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.editors-choice-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/ * Editor's Choice - Simple orange text */
 .editors-choice-section {
    margin: 3rem 0 0 0;
    padding: 0;
    background: none;
    border: none;
}

.editors-choice {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.editors-choice strong {
    color: var(--primary-color);
    font-weight: 700;
}

.editors-choice-cta {
    margin-top: 1rem;
    text-align: left;
}

.editors-choice-cta .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.editors-choice-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Back button - Simple black text */
.post-footer {
    margin-top: 3rem;
    padding: 0;
    border: none;
    text-align: left;
}

.back-to-insights,
.back-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    transition: none;
    background: none;
    font-size: 1rem;
}

.back-to-insights:hover,
.back-link:hover {
    color: var(--text-primary);
    background: none;
    transform: none;
}

/* OVER
RIDE: Editor's Choice - Remove all styling, just orange text */
.post-content .editors-choice-section {
    margin: 2rem 0 0 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.post-content .editors-choice {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.post-content .editors-choice strong {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* OVERRIDE: Back button - Remove all button styling, just black text */
.post-footer .back-to-insights {
    display: inline-block !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    font-size: 1rem !important;
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.post-footer .back-to-insights:hover {
    color: var(--text-primary) !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove arrow from back text */
.post-footer .back-to-insights::before {
    content: "" !important;
}

/* 
FORCE OVERRIDE: Remove all editor's choice styling */
.editors-choice-section,
.post-content .editors-choice-section,
article .editors-choice-section {
    margin: 2rem 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.editors-choice,
.post-content .editors-choice,
article .editors-choice {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #FF8C00 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* FORCE OVERRIDE: Remove all back button styling */
.back-to-insights,
.back-link,
.post-footer .back-to-insights,
.post-footer .back-link,
a.back-to-insights,
a.back-link {
    display: inline-block !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 1rem !important;
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
}

.back-to-insights:hover,
.back-link:hover,
.post-footer .back-to-insights:hover,
.post-footer .back-link:hover {
    color: #000000 !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Remove any button classes from back links */
.back-to-insights.btn,
.back-link.btn {
    all: unset !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}

/* N
UCLEAR OPTION: Override everything */
* .editors-choice-section,
* .editors-choice-section *,
*[class*="editor"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

* .editors-choice,
*[class*="editor"] strong {
    color: #FF8C00 !important;
    font-weight: 700 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* NUCLEAR OPTION: Override all back button styling */
*[class*="back"],
* a[href*="insights"],
* a[href*="weekly"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

*[class*="back"]:hover,
* a[href*="insights"]:hover,
* a[href*="weekly"]:hover {
    background: transparent !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Force remove all button styling */
.post-footer a,
.post-header a {
    all: unset !important;
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

/* ==
=================================
   Back Link Dark Mode Fix
   =================================== */
.back-link,
.back-link span,
.back-link i {
    color: var(--text-primary) !important;
}

.back-link:hover {
    color: var(--primary-color) !important;
}

/* ====
===============================
   Weekly Post Headings Dark Mode Fix
   =================================== */
.weekly-post h1,
.weekly-post h2,
.weekly-post h3,
.weekly-post h4,
.weekly-post h5,
.weekly-post h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-primary) !important;
}

/* =
==================================
   Override Inline Styles in Weekly Posts
   =================================== */
.weekly-post h1 span[style*="color"],
.weekly-post h2 span[style*="color"],
.weekly-post h3 span[style*="color"],
.weekly-post h4 span[style*="color"],
.weekly-post h5 span[style*="color"],
.weekly-post h6 span[style*="color"],
.post-content h1 span[style*="color"],
.post-content h2 span[style*="color"],
.post-content h3 span[style*="color"],
.post-content h4 span[style*="color"],
.post-content h5 span[style*="color"],
.post-content h6 span[style*="color"] {
    color: var(--text-primary) !important;
}

/* =========
==========================
   Back Link Dark Mode Fix - More Specific
   =================================== */
.post-back-link,
.post-back-link a,
.back-link,
.back-link a,
a[onclick*="history.back"],
button[onclick*="history.back"],
.post-container .back-link,
.post-container .back-link a {
    color: var(--text-primary) !important;
}

.post-back-link:hover,
.post-back-link a:hover,
.back-link:hover,
.back-link a:hover {
    color: var(--primary-color) !important;
}

/* ===
================================
   Fix Orange Button Fragment Issue
   =================================== */
.post-container {
    position: relative;
    z-index: 1;
}

/* Hide any floating elements that might appear above post content */
.post-container::before {
    content: '';
    display: block;
    height: 2rem;
    clear: both;
}

/* Ensure theme toggle doesn't interfere with post layout */
.theme-toggle {
    z-index: 1000;
}

/* Fix any CTA buttons that might be floating */
.promotional-cta {
    clear: both;
    position: relative;
}

/ *===================================Hide Back Link Fragment at Top of Posts===================================*/ .post-container .back-link:first-child,
.post-header .back-link,
.back-link:not(.post-back-link) {
    display: none !important;
}

/* Only show the back link at the bottom */
.post-back-link {
    display: inline-flex !important;
}

/* ===
================================
   Hide Top Back Link Fragment - Specific Fix
   =================================== */
.post-container>.back-link {
    display: none !important;
}

/* Ensure bottom back link is visible and properly styled */
.post-back-link a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary) !important;
}

/* ===================================
   Contact Form Mobile Responsiveness Fix
   =================================== */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }
}

/* ===================================
   Contact Form Modal
   =================================== */

.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    position: relative;
    background: white;
    margin: 10% auto;
    padding: 3rem 2rem;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
}

[data-theme="dark"] .contact-modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
}

.contact-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #FF8C00, #00A8A8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
}

.contact-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.contact-modal-icon.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.contact-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-modal-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-modal-btn {
    background: linear-gradient(135deg, #FF8C00, #00A8A8);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 20% 1rem;
        padding: 2rem 1.5rem;
    }

    .contact-modal-icon {
        width: 60px;
        height: 60px;
    }

    .contact-modal-icon i {
        font-size: 2rem;
    }

    .contact-modal-content h2 {
        font-size: 1.5rem;
    }

    .contact-modal-content p {
        font-size: 1rem;
    }
}

/* ===================================
   Tablet Breakpoint (768px - 1024px)
   =================================== */

@media (min-width: 769px) and (max-width: 1024px) {

    /* Navigation */
    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .btn {
        white-space: nowrap;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 6rem 2rem;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container Widths */
    .container {
        max-width: 900px;
        padding: 0 2rem;
    }

    /* Service Cards / Feature Cards */
    .services-grid,
    .features-grid,
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Contact Form */
    .contact-form-container {
        max-width: 700px;
    }

    .form-row {
        gap: 1.5rem;
    }

    /* Post Content (Blog/Weekly) */
    .post-container {
        max-width: 800px;
        padding: 2rem 1.5rem;
    }

    .post-title {
        font-size: 2.2rem;
    }

    /* Insights Grid */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Modal adjustments for tablets */
    .contact-modal-content {
        margin: 15% auto;
        max-width: 450px;
    }
}