/* Reset and base styles */
:root {
    --bg-color: #1d1f23;
    --card-bg: #2a2c31;
    --border-color: #3a3c42;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #4a90e2;
    --header-bg: #16181c;
    --navbar-bg: rgba(22, 24, 28, 0.9);
    --heading-primary: #3a80d2;    /* Bright blue from logo */
    --heading-secondary: #1e4066;   /* Darker blue from logo */
    --heading-accent: #5499ef;      /* Lighter blue accent */
    --heading-gradient-start: #ffffff;    /* Pure white */
    --heading-gradient-mid: #c0c0c0;      /* Silver */
    --heading-gradient-end: #808080;      /* Medium grey */
}

/* DESKTOP-ONLY MODE: Force desktop layout on all devices */
/* This overrides any responsive behavior */
.menu-toggle {
    display: none !important; /* Never show mobile menu button */
}

.nav-links {
    display: flex !important; /* Always show desktop navigation */
    position: static !important;
    flex-direction: row !important;
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
}

/* SMALL SCREEN NAVIGATION OPTIMIZATION */
/* Optimize navigation for small screens within desktop-only mode */
@media (max-width: 480px) {
    .nav-content {
        padding: 0 0.5rem; /* Reduce padding on very small screens */
    }
    
    .nav-links {
        gap: 0.25rem !important; /* Reduce gap between nav items */
        flex-wrap: wrap !important; /* Allow wrapping if necessary */
        justify-content: center !important; /* Center items on small screens */
    }
    
    .nav-links a {
        padding: 0.3rem 0.5rem !important; /* Smaller padding for nav links */
        font-size: 0.8rem !important; /* Slightly smaller font */
        min-width: auto !important; /* Allow natural sizing */
        white-space: nowrap !important; /* Keep text on one line */
    }
    
    /* Logo adjustments for small screens */
    #navbar .logo {
        height: 35px !important; /* Slightly smaller logo */
    }
    
    /* Make navbar slightly shorter on small screens */
    .nav-content {
        min-height: 70px !important; /* Reduce from 80px */
        height: auto !important; /* Allow height adjustment */
        align-items: center !important;
    }
}

/* EXTRA SMALL SCREEN OPTIMIZATION */
@media (max-width: 360px) {
    .nav-links a {
        padding: 0.25rem 0.4rem !important; /* Even smaller padding */
        font-size: 0.75rem !important; /* Smaller font for very small screens */
    }
    
    .nav-links {
        gap: 0.1rem !important; /* Minimal gap */
    }
    
    #navbar .logo {
        height: 30px !important; /* Smaller logo for tiny screens */
    }
    
    .nav-content {
        min-height: 60px !important; /* Further reduce height */
    }
}

/* SMALL SCREEN NAVIGATION ENHANCEMENTS */
.small-screen-nav {
    /* Smooth scrolling behavior for touch devices */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.small-screen-nav a {
    /* Ensure touch targets are adequate */
    min-height: 44px !important; /* iOS recommended touch target size */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Navigation scroll fade effect for small screens */
@media (max-width: 480px) {
    .nav-content {
        position: relative;
        overflow: hidden;
    }
    
    .nav-content::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 15px;
        height: 100%;
        background: linear-gradient(to left, var(--navbar-bg) 0%, transparent 100%);
        pointer-events: none;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-content.has-overflow::after {
        opacity: 1;
    }
}

/* Improve touch scrolling performance */
.nav-links {
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: scroll-position;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust this value to match your navbar height */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    scroll-snap-type: y proximity;
}

/* Overlay for initial blur */
#overlay.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* Navbar styles */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 1rem;
}

#navbar.hide { 
    transform: translateY(-100%); 
}

#navbar .logo {
    display: flex;
    align-items: center;
    height: 40px;  /* Adjust based on your needs */
}

#navbar .logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar but keep functionality */
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.nav-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* MOBILE MEDIA QUERIES DISABLED FOR DESKTOP-ONLY MODE */
/*
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        width: 100%;
        background: var(--navbar-bg);
        padding: 1rem;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}
*/

/* Main content styles */
#mainContent {
    max-width: 1200px;
    margin: 5px auto 2rem; /* Reduced from 80px to 60px */
    padding: 1rem;         /* Reduced from 2rem to 1rem */
}

#mainContent.blurred {
    filter: blur(10px);
}

/* Remove the content-wrapper background and shadow */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20vh 0; /* Add vertical padding to create space for fade effect */
    background: none;
    border: none;
    box-shadow: none;
}

/* Update card styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;  /* Reduced from 2rem */
    margin: 1rem auto;
    box-shadow: var(--card-shadow);
    max-width: 1000px;
}

/* Add this to handle the first card specifically */
.card:first-child {
    margin-top: 0;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.card-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.card-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-with-image {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;  /* Reduced from 1.5rem */
}

.card-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-content strong {
    color: var(--text-primary);
}

/* Add a subtle hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Card inner styles for Obsidian callouts */
.card-inner {
    background: linear-gradient(
        145deg,
        var(--card-bg) 0%,
        var(--heading-secondary) 100%
    );
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.12),
        0 2px 2px rgba(0,0,0,0.12),
        0 4px 4px rgba(0,0,0,0.12),
        0 8px 8px rgba(0,0,0,0.12);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 2px 2px rgba(0,0,0,0.15),
        0 4px 4px rgba(0,0,0,0.15),
        0 8px 8px rgba(0,0,0,0.15),
        0 16px 16px rgba(0,0,0,0.15);
}

/* Icon styles for cards */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

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

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #2d6bb3 100%);
    padding: 8px;
    border-radius: 8px;
}

.feature-text h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Data table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

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

.data-table th {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 1rem;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Popup Form styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    display: none; /* Hide popup by default to prevent initial flash */
}

.popup-content {
    position: relative;
    background: var(--popup-bg);
    padding: 1.5rem;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#popupImage {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.form-group {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

/* Autofill detection and override styles */
@keyframes autofillStart {
    from {}
    to {}
}

@keyframes autofillCancel {
    from {}
    to {}
}

input:-webkit-autofill {
    animation-name: autofillStart;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--card-bg) inset !important;
    background-color: var(--card-bg) !important;
}

input:not(:-webkit-autofill) {
    animation-name: autofillCancel;
}

/* This is added to override browser's autofill styles to match our theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--card-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    background-color: var(--card-bg) !important;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkbox label {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    line-height: 1.3;
    color: var(--text-secondary);
}

.checkbox label[for="newsletter"] {
    font-size: 0.8rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.75rem;
}

.submit-btn:hover {
    background: #3a80d2;
}

/* Contact Form Specific Styles */
.contact-popup {
    max-width: 600px;
}

.contact-content {
    max-width: 100%;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-header img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-primary);
}

.contact-content h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-content p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-submit {
    background: var(--accent-color);
}

.contact-submit:hover {
    background: #3a80d2;
}

/* CONTACT FORM MOBILE STYLES DISABLED FOR DESKTOP-ONLY MODE */
/*
@media (max-width: 768px) {
    .contact-popup {
        width: 95%;
        max-width: 95%;
    }
    
    .contact-header img {
        max-width: 300px;
    }
    
    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
}
*/

/* Loading spinner */
#contentLoading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Data visualization styles */
.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Highlight styles for important numbers */
.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Section divider styles */
.divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-color) 15%, 
        var(--border-color) 85%, 
        transparent 100%
    );
    margin: 3rem 0;
}

/* Form notice styles */
.form-notice {
    margin: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Heading styles with gradient effects */
h1, .table-h1,
h2, .table-h2,
h3, .table-h3,
h4, h5, h6 {
    margin: 0;
    padding: 0;
    background: linear-gradient(
        90deg,
        var(--heading-gradient-start) 0%,
        var(--heading-gradient-mid) 60%,
        var(--heading-gradient-end) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

/* Existing heading styles */
h1, .table-h1 { font-size: 3.2rem; }
h2, .table-h2 { font-size: 2.4rem; }
h3, .table-h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

/* HEADING MOBILE STYLES DISABLED FOR DESKTOP-ONLY MODE */
/*
@media screen and (max-width: 768px) {
    h1, .table-h1 { font-size: 2.4rem; }
    h2, .table-h2 { font-size: 2rem; }
    h3, .table-h3 { font-size: 1.6rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media screen and (max-width: 480px) {
    h1, .table-h1 { font-size: 2rem; }
    h2, .table-h2 { font-size: 1.8rem; }
    h3, .table-h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}
*/

/* Hover effects for all heading levels */
h1:hover, .table-h1:hover,
h2:hover, .table-h2:hover,
h3:hover, .table-h3:hover,
h4:hover, h5:hover, h6:hover {
    background: linear-gradient(
        90deg,
        var(--heading-primary) 0%,
        var(--heading-secondary) 50%,
        var(--heading-accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Strong/bold text gradient effects */
strong, b {
    background: linear-gradient(
        90deg,
        var(--heading-gradient-start) 0%,
        var(--heading-gradient-mid) 70%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

strong:hover, b:hover {
    background: linear-gradient(
        90deg,
        var(--heading-primary) 0%,
        var(--heading-accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Image styles */
.resize-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.resize-image[width] {
    width: attr(width px); /* Honor explicit width settings */
    max-width: 100%;      /* But stay responsive */
}

.resize-image:hover {
    transform: scale(1.02);
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    cursor: pointer;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Add general link styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: var(--heading-accent);
    text-decoration: underline;
}

/* Update checkbox link styles to match */
.checkbox label a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.checkbox label a:hover {
    color: var(--heading-accent);
    text-decoration: underline;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

.form-status.success {
    color: #4CAF50;
}

.form-status.error {
    color: #f44336;
}

.button-loader {
    display: none;
}

.submit-btn.loading .button-text {
    display: none;
}

.submit-btn.loading .button-loader {
    display: inline;
}

/* Add header icon styles */
.header-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.5em;
    background-image: url('../images/ECM_Sq_TransWhite.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Update heading styles to accommodate icon */
h1::before, 
h2::before, 
h3::before, 
h4::before, 
h5::before, 
h6::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.5em;
    background-image: url('../images/ECM_Sq_TransWhite.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Adjust heading padding to account for icon */
h1, h2, h3, h4, h5, h6 {
    display: flex;
    align-items: center;
    padding: 0.25em 0;
}

/* HEADING ICON MOBILE STYLES DISABLED FOR DESKTOP-ONLY MODE */
/*
@media screen and (max-width: 480px) {
    h1::before, 
    h2::before, 
    h3::before, 
    h4::before, 
    h5::before, 
    h6::before {
        width: 0.8em;
        height: 0.8em;
        margin-right: 0.3em;
    }
}
*/

/* Add name fields container */
.name-fields {
    display: flex;
    gap: 0.75rem; /* Reduced gap between name fields */
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.name-fields .form-group {
    flex: 1 1 200px;
    margin-bottom: 0; /* Remove margin since parent has gap */
}

/* Update popup content for better mobile display */
.popup-content {
    position: relative;
    background: var(--popup-bg);
    padding: 1.5rem;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Adjust form group margins */
.form-group {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

/* Make certification text smaller */
.checkbox label {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    line-height: 1.3;
    color: var(--text-secondary);
}

/* Keep newsletter text slightly larger than certification */
.checkbox label[for="newsletter"] {
    font-size: 0.8rem;
}

/* Reduce size of form instruction text */
.popup-content > p:nth-child(3) {  /* Targets "If so, please..." */
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Add styles for bulleted lists */
ul {
    margin-left: 2rem;     /* Standard left margin */
    margin-bottom: 1rem;   /* Space below list */
    list-style-position: outside;
}

/* Exclude navigation links from this styling */
.nav-links {
    margin-left: 0;
}

/* Blockquote styles */
blockquote {
    background: linear-gradient(
        90deg,
        var(--heading-secondary) 0%,
        var(--card-bg) 100%
    );
    border-left: 4px solid var(--heading-primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}

blockquote p {
    margin: 0;
    line-height: 1.6;
}

blockquote strong {
    color: var(--heading-accent);
}

/* Add hover effect */
blockquote:hover {
    background: linear-gradient(
        90deg,
        var(--heading-secondary) 0%,
        var(--heading-primary) 100%
    );
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Adjust spacing between headings and blockquotes */
h1 + blockquote,
h2 + blockquote,
h3 + blockquote,
h4 + blockquote,
h5 + blockquote,
h6 + blockquote {
    margin-top: 0;  /* Remove top margin completely */
}

/* Adjust blockquote spacing */
blockquote {
    margin: 0.25rem 0;    /* Further reduced top/bottom margins */
    padding: 0.75rem 1.25rem;  /* Reduced padding */
    line-height: 1.3;     /* Slightly tighter line height */
}

/* Keep consistent spacing after blockquotes */
blockquote + h1,
blockquote + h2,
blockquote + h3,
blockquote + h4,
blockquote + h5,
blockquote + h6 {
    margin-top: 0;  /* Space between blockquote and next heading */
}

/* Adjust heading bottom margin */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;  /* Remove bottom margin from headings */
}