/* XTT Ltd. Co. Brand Styling - Modern CSS */

/* --- Reset & Base Variables --- */
@layer reset, base, theme, components, utilities;

@layer reset {
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html {
        scroll-behavior: smooth;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        font-size: 16px;
        overflow-anchor: none; /* Disable scroll anchoring globally to prevent infinite scrolling loops */
    }
    
    body {
        min-block-size: 100dvb;
        background-color: var(--bg-color);
        color: var(--text-color);
        line-height: 1.6;
        transition: background-color 0.4s ease, color 0.4s ease;
        overflow-x: hidden;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
    
    img {
        max-inline-size: 100%;
        block-size: auto;
    }
}

@layer theme {
    :root, .dark-theme {
        /* Color Palettes */
        --bg-color: #0b0c10;
        --card-bg: rgba(22, 26, 35, 0.65);
        --card-border: rgba(212, 175, 55, 0.15);
        --text-color: #f3f4f6;
        --text-muted: #9ca3af;
        
        --brand-gold: #d4af37;
        --brand-gold-rgb: 212, 175, 55;
        --brand-teal: #00f2fe;
        --brand-dark: #1f2833;
        --brand-slate: #0b0c10;
        --brand-slate-rgb: 11, 12, 16;
        
        --glow-color: rgba(212, 175, 55, 0.15);
        --button-primary-bg: #d4af37;
        --button-primary-text: #0b0c10;
        --input-bg: #161a22;
        --input-border: #272f3e;
        
        --gradient-text: linear-gradient(135deg, #d4af37 0%, #00f2fe 100%);
        --gradient-card-hover: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 242, 254, 0.03) 100%);
    }
    
    .light-theme {
        --bg-color: #f7f9fa;
        --card-bg: rgba(255, 255, 255, 0.8);
        --card-border: rgba(11, 12, 16, 0.1);
        --text-color: #1f2833;
        --text-muted: #6b7280;
        
        --brand-gold: #c5a028;
        --brand-gold-rgb: 197, 160, 40;
        --brand-teal: #00bcd4;
        --brand-dark: #f0f3f6;
        --brand-slate: #ffffff;
        --brand-slate-rgb: 255, 255, 255;
        
        --glow-color: rgba(0, 188, 212, 0.08);
        --button-primary-bg: #c5a028;
        --button-primary-text: #ffffff;
        --input-bg: #ffffff;
        --input-border: #d1d5db;
        
        --gradient-text: linear-gradient(135deg, #c5a028 0%, #00bcd4 100%);
        --gradient-card-hover: linear-gradient(135deg, rgba(197, 160, 40, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
    }
}

/* --- Global Layouts & Utilities --- */
.container {
    inline-size: 100%;
    max-inline-size: 1440px;
    margin-inline: auto;
    padding-inline: 2.5rem;
}

.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    border-color: rgba(var(--brand-gold-rgb), 0.3);
    box-shadow: 0 12px 40px 0 rgba(var(--brand-gold-rgb), 0.1);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Components --- */

/* Navbar */
.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    background: rgba(var(--brand-slate-rgb), 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-block-end: 1px solid var(--card-border);
    transition: padding 0.3s ease;
    overflow-anchor: none; /* Prevent scroll-anchoring jumps on fixed header */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-inline-size: 1200px;
    margin-inline: auto;
    padding: 1rem 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    block-size: 52px; /* Increased height for high prominence */
    inline-size: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(var(--brand-gold-rgb), 0.15));
}

.logo-link:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(var(--brand-gold-rgb), 0.45));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

.logo-suffix {
    font-size: 0.65rem;
    font-weight: 500;
    vertical-align: super;
    margin-inline-start: 0.15rem;
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--brand-gold);
    border-radius: 4px;
    color: var(--brand-gold);
}

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--brand-gold);
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    outline: none;
}

.dropdown-trigger::after {
    content: '▾';
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-trigger {
    color: var(--brand-gold);
}

.nav-item-dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
    color: var(--brand-gold);
}

.dropdown-menu {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 50%;
    translate: -50% 0.5rem;
    min-inline-size: 240px;
    background: rgba(var(--brand-slate-rgb), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item-dropdown.active .dropdown-trigger {
    color: var(--brand-gold);
}

.nav-item-dropdown.active .dropdown-trigger::after {
    transform: rotate(180deg);
    color: var(--brand-gold);
}

.dropdown-item {
    padding: 0.65rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-align: start;
}

.dropdown-item:hover {
    color: var(--brand-gold);
    background-color: rgba(var(--brand-gold-rgb), 0.06);
}

.contact-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(var(--brand-gold-rgb), 0.1);
    border: 1px solid var(--brand-gold);
    border-radius: 8px;
    color: var(--brand-gold) !important;
}

.contact-btn:hover {
    background: var(--brand-gold) !important;
    color: var(--button-primary-text) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    display: grid;
    place-content: center;
    inline-size: 40px;
    block-size: 40px;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: rgba(var(--brand-gold-rgb), 0.1);
}

.sun-icon {
    display: none;
    inline-size: 20px;
    block-size: 20px;
}

.moon-icon {
    display: block;
    inline-size: 20px;
    block-size: 20px;
}

.light-theme .sun-icon {
    display: block;
}

.light-theme .moon-icon {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding-block: 8rem 4rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    inset-block-start: 10%;
    inset-inline-start: 50%;
    translate: -50% 0;
    inline-size: 60vw;
    block-size: 60vw;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-inline-size: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(var(--brand-gold-rgb), 0.1);
    border: 1px solid var(--brand-gold);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-inline-size: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-block-start: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(var(--brand-gold-rgb), 0.05);
    border-color: var(--brand-gold);
}

.btn-block {
    display: flex;
    inline-size: 100%;
}

/* Floating Card visual in Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-card {
    padding: 2rem;
    inline-size: 100%;
    max-inline-size: 380px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.floating-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-node {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-indicator {
    display: inline-block;
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    margin-inline-end: 0.5rem;
}

.status-indicator.online {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-block-start: 1.5rem;
}

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

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-gold);
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

hr {
    border: 0;
    border-block-start: 1px solid var(--card-border);
    margin-block: 1.5rem;
}

/* Services Grid */
.services {
    padding-block: 4rem;
}

.section-header {
    text-align: center;
    margin-block-end: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-inline-size: 600px;
}

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

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    background: var(--gradient-card-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-block-end: 0.5rem;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Network Map Section */
.network {
    padding-block: 4rem;
}

.network-map-interactive {
    padding: 2rem;
    min-block-size: 400px;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-block-end: 2rem;
    flex-wrap: wrap;
}

.map-tab {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.map-tab.active, .map-tab:hover {
    background: rgba(var(--brand-gold-rgb), 0.1);
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.map-visual-container {
    display: grid;
    place-content: center;
    min-block-size: 300px;
}

.topology-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.topo-node {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-inline-size: 180px;
}

.topo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--brand-teal);
    font-weight: bold;
}

.topo-arrow {
    display: block;
    inline-size: 100px;
    block-size: 4px;
    background: linear-gradient(90deg, var(--brand-teal) 0%, transparent 100%);
    animation: flow-line 2s infinite linear;
}

@keyframes flow-line {
    0% { background-position: -100px 0; }
    100% { background-position: 100px 0; }
}

/* Calculator Section */
.calculator-section {
    padding-block: 4rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calc-card {
    padding: 2.5rem;
}

.inputs-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-bg-accent {
    position: absolute;
    inset-block-start: -20%;
    inset-inline-end: -20%;
    inline-size: 60%;
    block-size: 60%;
    background: radial-gradient(circle, rgba(var(--brand-gold-rgb), 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.custom-select, .number-input, .range-slider {
    inline-size: 100%;
}

.custom-select, .number-input {
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
}

.custom-select:focus, .number-input:focus {
    outline: none;
    border-color: var(--brand-gold);
}

/* Range Slider Custom Styling */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    inline-size: 100%;
    block-size: 6px;
    border-radius: 3px;
    background: var(--input-border);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    inline-size: 20px;
    block-size: 20px;
    border-radius: 50%;
    background: var(--brand-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--brand-gold-rgb), 0.5);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input {
    accent-color: var(--brand-gold);
    inline-size: 1.2rem;
    block-size: 1.2rem;
}

.hidden {
    display: none !important;
}

/* Financial Summary Display */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.summary-row .value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.backend-metric span {
    font-size: 0.9rem;
}

.highlight-revenue {
    color: var(--brand-teal) !important;
}

.highlight-cost {
    color: #ef4444 !important;
}

.highlight-profit {
    color: #10b981 !important;
    font-size: 1.35rem !important;
}

.total-profit {
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.05);
}

.margin-row {
    font-size: 0.85rem;
}

/* Contact form validation styles */
.contact-section {
    padding-block: 4rem;
}

.contact-card {
    max-inline-size: 800px;
    margin-inline: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-block-start: 2rem;
}

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

.contact-form input, .contact-form textarea {
    padding: 0.85rem 1.1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    inline-size: 100%;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
}

/* Modern standard CSS user-valid validation classes */
.contact-form input:focus:invalid, .contact-form textarea:focus:invalid {
    border-color: #ef4444;
}

.contact-form input:user-valid, .contact-form textarea:user-valid {
    border-color: #10b981;
}

.form-success {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    text-align: center;
    font-weight: 600;
}

/* Footer styling */
.footer {
    padding-block: 3rem;
    border-block-start: 1px solid var(--card-border);
    background: rgba(var(--brand-slate-rgb), 0.9);
    overflow-anchor: none; /* Prevent scroll anchoring loop around footer */
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-logo img {
    block-size: 28px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-links h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-block-end: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-gold);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Vendor Logo Carousel Rules --- */
.vendors-section {
    padding: 4rem 0;
    background: rgba(var(--brand-slate-rgb), 0.01);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.vendors-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.logo-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
}

.logo-ticker-container::before,
.logo-ticker-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-ticker-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.logo-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.logo-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 6rem;
    animation: ticker-slide 28s linear infinite;
    width: max-content;
}

.vendor-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 180px;
}

.vendor-logo {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 0.55;
}

.vendor-logo:hover {
    opacity: 1;
}

/* Show/hide logo variants based on theme */
.black-logo {
    display: none;
}
.white-logo {
    display: none;
}

.light-theme .black-logo {
    display: block;
}

.dark-theme .white-logo {
    display: block;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- News and Blog System Styling --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.news-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue);
}

.news-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--brand-blue);
}

.news-card-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.news-read-more {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.news-read-more:hover {
    transform: translateX(5px);
}

/* --- Single Blog Post Article Content Styling --- */
.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-post-content h1 {
    font-size: 2.25rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

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

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

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

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

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

.blog-post-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.blog-post-content code {
    background: rgba(var(--brand-slate-rgb), 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.95rem;
}

.blog-post-content pre {
    background: rgba(var(--brand-slate-rgb), 0.03);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
}

/* Subpage Hero Header spacing to account for fixed navbar */
.subpage-hero {
    padding-top: 9.5rem;
    padding-bottom: 3.5rem;
    background: rgba(var(--brand-slate-rgb), 0.01);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

