/* # GeminiReviewRequired: Enhanced styles for TallySticks.uk informational site */

/* Import a clean, modern, and highly legible font like 'Inter' from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* TS Maze Animation Styles */
.maze-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    /* Ensure animation stays within header bounds */
    clip-path: inset(0);
}

.maze-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.maze-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.6) 20%, 
        rgba(255, 215, 0, 0.8) 50%, 
        rgba(255, 215, 0, 0.6) 80%, 
        transparent 100%);
    transform: translateY(-50%);
    animation: pathFlow 3.5s infinite ease-in-out;
}

@keyframes pathFlow {
    0% { opacity: 0.3; transform: translateY(-50%) scaleX(0.5); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1); }
    100% { opacity: 0.3; transform: translateY(-50%) scaleX(0.5); }
}

.service-checkpoint {
    position: absolute;
    background: rgba(13, 71, 161, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.65em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    z-index: 2; /* Keep below navigation but above background */
}

.service-checkpoint.active {
    opacity: 1;
    transform: scale(1);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.checkpoint-entry {
    top: 15%;
    left: 8%;
}

.checkpoint-healthcare {
    top: 25%;
    left: 22%;
}

.checkpoint-education {
    top: 35%;
    left: 38%;
}

.checkpoint-councils {
    top: 20%;
    left: 55%;
}

.checkpoint-infrastructure {
    top: 30%;
    left: 72%;
}

.checkpoint-exit {
    top: 40%;
    right: 8%;
    background: rgba(40, 167, 69, 0.9);
    font-weight: 700;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* A softer, modern off-white */
    color: #212529; /* A strong, dark grey for high contrast and readability */
}

.container {
    width: 90%;
    max-width: 1140px; /* A standard max-width for modern layouts */
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: #0d47a1; /* A deep, authoritative blue */
    color: #ffffff;
    padding: 25px 0;
    min-height: 120px; /* Increased height for animation space */
    border-bottom: 4px solid #1565c0; /* A slightly lighter blue for accent */
    text-align: center;
    position: relative; /* Enable positioning for maze animation */
}

header h1 {
    margin: 0;
    font-size: 2.6em;
    padding-bottom: 8px;
    font-weight: 700; /* Bolder for impact */
    letter-spacing: -1px;
}

header p {
    font-size: 1.15em;
    margin-top: 5px;
    opacity: 0.9;
}

.debt-clock {
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.debt-clock a {
    color: #bbdefb; /* Lighter blue for link in dark header */
    font-weight: 600;
}

nav {
    background: #ffffff; /* Make nav bar white for a clean, modern feel */
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
    position: absolute;
    right: 15px;
    z-index: 1001;
}

.hamburger span {
    width: 22px;
    height: 2.5px;
    background-color: #343a40;
    margin: 2.5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    display: inline;
    margin: 0 8px;
}

nav a {
    color: #343a40; /* Dark text on white background */
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

nav a:hover, nav a.active {
    background-color: #eef2f7; /* Light blue-grey for hover */
    color: #0d47a1; /* Primary blue on hover */
}

main {
    padding: 30px 0;
}

main section {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px; /* Softer radius */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

main h2 {
    color: #0d47a1;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 25px; /* More space after headings */
    font-size: 2em;
    font-weight: 700;
}

main h3 {
    color: #1565c0;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

main h4 {
    color: #1976d2;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 16px;
    line-height: 1.6;
}

li {
    margin-bottom: 8px;
}

a {
    color: #1565c0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px 4px;
    background-color: #1565c0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
}

.btn:hover {
    background-color: #0d47a1;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1565c0;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

/* Footer Styles */
footer {
    background: #343a40;
    color: #adb5bd; /* Softer text color for footer */
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content .debt-clock {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.footer-content .debt-clock a {
    color: #a7c7e7; /* Light blue for links */
}

.footer-content .company-info {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 15px;
    border-bottom: 1px solid #495057;
    padding-bottom: 15px;
}

.footer-content .company-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.footer-content .company-info a {
    color: #a7c7e7; /* Light blue for links */
    font-weight: 600;
}

.copyright {
    font-size: 0.85em;
    opacity: 0.8;
    margin: 0;
}

/* Resource Lists */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    background: #f8f9fa;
    margin-bottom: 12px;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #1565c0;
    transition: box-shadow 0.2s ease;
}

.resource-list li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.resource-list h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #0d47a1;
}

/* UI Examples */
.ui-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    overflow-x: auto;
}

.ui-example pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Speech Controls */
#speech-controls-container {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

#speech-controls button {
    background: #1565c0;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#speech-controls button:hover {
    background: #0d47a1;
}

#speech-controls button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Development Page Specific Styles */
.historic-milestone {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #f5f5f5; /* Slightly off-white for better readability */
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 3px solid #ffd700;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Dark text shadow for contrast */
}

.historic-milestone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: goldShimmer 3s infinite;
}

@keyframes goldShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.milestone-banner.historic {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a237e; /* Darker blue for better contrast on gold */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3); /* Subtle text shadow for readability */
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.historic {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9c4, #ffffff);
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Constitutional Principles Styling */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.principle-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1565c0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.principle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.principle-card.critical {
    border-left-color: #ffd700;
}

.principle-card.fundamental {
    border-left-color: #dc3545;
}

.principle-card.mandatory {
    border-left-color: #6f42c1;
}

.principle-card.phase1 {
    border-left-color: #fd7e14;
}

.principle-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 5px;
}

.principle-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.principle-weight {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

/* Achievement Grid */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.achievement-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.achievement-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-wrapper {
    display: inline-block;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 50%;
    margin-bottom: 15px;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: #1565c0;
}

/* Methodology Success Section */
.methodology-success {
    background: linear-gradient(135deg, #e8f5e8, #f4fdf4);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.methodology-success h3 {
    color: #28a745;
    margin-top: 0;
}

/* Next Phase Section */
.next-phase {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.next-phase h3 {
    color: #856404;
    margin-top: 0;
}

/* Desktop-only maze animation enhancements */
@media (min-width: 769px) {
    .maze-background {
        display: block; /* Ensure it's visible on desktop */
    }
    
    .service-checkpoint {
        display: block; /* Ensure checkpoints are visible on desktop */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    /* Hide maze animation on mobile to prevent overlay issues */
    .maze-background {
        display: none;
    }
    
    .service-checkpoint {
        display: none; /* Hide all checkpoints on mobile */
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        padding-bottom: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 85%;
        text-align: center;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 16px;
        margin: 2px 0;
        border-radius: 6px;
        font-size: 0.9em;
        border: none; /* Remove border on mobile */
        background: #f8f9fa; /* Light background for mobile nav items */
        font-weight: 500;
    }
    
    nav a:hover, nav a.active {
        background-color: #0d47a1;
        color: white;
        border-color: #0d47a1;
    }
    
    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    main section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .progress-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-content .company-info p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    nav ul {
        padding-top: 50px; /* Even less padding on very small screens */
    }
    
    nav a {
        font-size: 0.85em;
        padding: 6px 12px;
        margin: 1px 0;
    }
}

/* Breaking News Section for EAVEcore GitHub Launch */
.breaking-news {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 0;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.breaking-content {
    position: relative;
    z-index: 2;
}

.breaking-header h3 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.breaking-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.github-stats {
    margin: 25px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

.github-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.github-actions .btn {
    min-width: 160px;
    font-weight: 600;
}

.github-actions .btn-primary {
    background: #ffd700;
    color: #1e3c72;
    border: none;
}

.github-actions .btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.github-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.github-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive adjustments for breaking news */
@media (max-width: 768px) {
    .breaking-news {
        margin: 15px 0;
        padding: 20px 0;
    }
    
    .breaking-header h3 {
        font-size: 1.4em;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .github-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .github-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .breaking-header h3 {
        font-size: 1.2em;
    }
    
    .breaking-subtitle {
        font-size: 1em;
    }
}

/* --- Styles for Developer Portal --- */
.dev-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.dev-resource-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dev-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #0d47a1;
}

.dev-resource-card h3 {
    margin-top: 0;
    color: #0d47a1;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.dev-resource-card p {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.6;
}

.dev-resource-card a {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #0d47a1;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.dev-resource-card a:hover {
    border-bottom-color: #0d47a1;
}

.dev-resource-card .coming-soon {
    color: #6c757d;
    font-style: italic;
}

.dev-resource-card .coming-soon:hover {
    border-bottom-color: #6c757d;
}

.code-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.code-example code {
    color: #e83e8c;
    font-weight: 600;
}

/* Constitutional Principles Section */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.principle-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
}

.principle-group h4 {
    margin-top: 0;
    color: #0d47a1;
    border-bottom: 2px solid #0d47a1;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.principle-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.principle-group li {
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.principle-group li:last-child {
    border-bottom: none;
}

/* Integration Examples Section */
#integration-examples {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.example-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.example-tab {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.example-tab h4 {
    margin-top: 0;
    color: #0d47a1;
    margin-bottom: 15px;
}

.example-tab pre {
    background: #f1f3f4;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.4;
}

.example-tab code {
    color: #333;
    font-family: 'Courier New', monospace;
}

/* Mobile responsiveness for Developer Portal */
@media (max-width: 768px) {
    .dev-resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dev-resource-card {
        padding: 20px;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .example-tabs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #integration-examples {
        padding: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .dev-resource-card {
        padding: 15px;
    }
    
    .dev-resource-card h3 {
        font-size: 1.2em;
    }
    
    .code-example {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .example-tab pre {
        padding: 12px;
        font-size: 0.8em;
    }
}

/* --- Styles for EAVEcore Official Badge --- */
.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for dark theme */
    border: 1px solid #4A5568; /* Neutral border */
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 30px;
    backdrop-filter: blur(5px);
}

.official-badge-icon {
    flex-shrink: 0;
}

.official-badge-icon svg {
    width: 32px;
    height: 32px;
    fill: #5EEAD4; /* Accent Teal for eavecore.com */
}

.official-badge-text {
    text-align: left;
}

.official-badge-text .title {
    display: block;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
}

.official-badge-text .subtitle {
    display: block;
    font-size: 0.9em;
    color: #A0AEC0; /* Lighter grey for subtitle */
}

/* Styles for the badge on the light-themed tallysticks.uk site */
/* We will wrap the tallysticks.uk badge in a class to override colors */
.tallysticks-site-badge-wrapper .official-badge {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.tallysticks-site-badge-wrapper .official-badge-icon svg {
    fill: #0d47a1; /* Primary Blue for tallysticks.uk */
}

.tallysticks-site-badge-wrapper .official-badge-text .title {
    color: #212529; /* Dark text */
}

.tallysticks-site-badge-wrapper .official-badge-text .subtitle {
    color: #495057; /* Darker grey */
}

/* --- Styles for Official Tally Sticks UK Badge --- */
.official-badge-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #eef2f7; /* Light blue-grey background */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.official-badge-icon {
    flex-shrink: 0;
}

.official-badge-icon img {
    width: 40px; /* Adjust size as needed */
    height: 40px;
    display: block;
}

.official-badge-text {
    text-align: left;
}

.official-badge-text .title {
    display: block;
    font-weight: bold;
    color: #0d47a1; /* Primary Blue */
    font-size: 1.1em;
}

.official-badge-text .subtitle {
    display: block;
    font-size: 0.9em;
    color: #495057; /* Darker grey */
}
/* --- Styles for Official Tally Sticks UK Badge --- */
.official-badge-wrapper { margin-top: 30px; display: flex; justify-content: center; }
.official-badge-wrapper .official-badge { display: inline-flex; align-items: center; gap: 15px; background-color: #eef2f7; border: 1px solid #dee2e6; border-radius: 8px; padding: 12px 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.official-badge-wrapper .official-badge-icon { flex-shrink: 0; }
.official-badge-wrapper .official-badge-icon img { width: 40px; height: 40px; display: block; }
.official-badge-wrapper .official-badge-text { text-align: left; }
.official-badge-wrapper .official-badge-text .title { display: block; font-weight: bold; color: #0d47a1; font-size: 1.1em; }
.official-badge-wrapper .official-badge-text .subtitle { display: block; font-size: 0.9em; color: #495057; }

/* --- Styles for Dropdown Navigation --- */

/* Style for the dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Style for the main dropdown button/link */
.dropbtn::after {
    content: ' ▼'; /* Add a subtle down arrow */
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 4px;
}

/* The dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 0 0 6px 6px;
    border: 1px solid #dee2e6;
    border-top: none;
    text-align: left;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #343a40;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal; /* Make dropdown links normal weight */
    border-radius: 0; /* Remove radius from individual links */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #eef2f7;
    color: #0d47a1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #eef2f7;
    color: #0d47a1;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: rgba(240, 242, 245, 0.9);
        min-width: auto;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .dropdown.active .dropdown-content {
        display: block; /* Show on active state for mobile */
    }

    .dropdown-content a {
        padding: 10px 30px;
        font-size: 0.9em;
    }
}

/* --- Animated Banner Styles --- */

.animation-banner {
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.animation-banner svg {
    width: 100%;
    height: auto;
    max-height: 150px;
}

/* Animation keyframes for the banner */
@keyframes move-orb {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

@keyframes fade-in-out {
    0%, 25% { opacity: 0; }
    12.5% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fade-in-final {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive banner */
@media (max-width: 768px) {
    .animation-banner {
        margin: 15px 0;
        padding: 15px;
    }
    
    .animation-banner svg {
        max-height: 120px;
    }
}

/* Regulatory Page Styles */
.regulatory-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    padding: 40px 0;
    margin: -20px -20px 40px -20px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.regulatory-intro {
    max-width: 900px;
    margin: 0 auto;
}

.regulatory-intro .lead {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.regtech-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.regtech-highlight h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #ffd700;
}

.regulatory-section {
    margin: 50px 0;
    padding: 30px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #0d47a1;
}

.benefit-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    color: #0d47a1;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.benefit-example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #28a745;
    font-size: 0.95em;
}

.demo-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.demo-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.demo-card:hover {
    border-color: #0d47a1;
    transform: translateY(-3px);
}

.demo-icon {
    font-size: 2.2em;
    margin-bottom: 20px;
    display: block;
}

.demo-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #0d47a1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

.demo-link {
    display: inline-block;
    background: #0d47a1;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.demo-link:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.bsv-content {
    max-width: 1000px;
    margin: 0 auto;
}

.bsv-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.bsv-feature {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.bsv-feature:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ffc107;
}

.bsv-feature h3 {
    color: #0d47a1;
    margin: 0 0 15px 0;
}

.technical-detail {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9em;
    border-left: 3px solid #2196f3;
}

.treasury-content {
    max-width: 1000px;
    margin: 0 auto;
}

.treasury-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.treasury-feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.treasury-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #28a745;
}

.feature-icon {
    font-size: 2.2em;
    margin-bottom: 20px;
    display: block;
    color: #28a745;
}

.treasury-benefit {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #28a745;
    font-size: 0.95em;
}

.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.proposal-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.proposal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #0d47a1;
}

.proposal-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: block;
    color: #0d47a1;
}

.proposal-details ul {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.proposal-link {
    display: inline-block;
    background: #0d47a1;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.proposal-link:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #0d47a1;
}

.contact-icon {
    font-size: 2.2em;
    margin-bottom: 20px;
    display: block;
    color: #0d47a1;
}

.contact-link {
    display: inline-block;
    background: #0d47a1;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.engagement-cta {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Victory #29 Styles */
.milestone-banner.victory {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
}

.milestone-banner.victory .milestone-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    animation: victoryPulse 2s infinite ease-in-out;
}

@keyframes victoryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.victory-highlights {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
}

.stat-card.victory {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.stat-card.victory:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.dashboard-features {
    margin: 30px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card.system-integrity {
    border-left: 4px solid #dc3545;
}

.feature-card.contract-monitor {
    border-left: 4px solid #0d47a1;
}

.feature-card.trends-chart {
    border-left: 4px solid #28a745;
}

.feature-card.dashboard-page {
    border-left: 4px solid #ffc107;
}

.feature-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.feature-name {
    font-weight: 600;
    color: #212529;
    flex-grow: 1;
}

.feature-status {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    flex-shrink: 0;
}

.live-demo-access {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.demo-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.system-status {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #495057;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.next-steps {
    background: #fff3cd;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid #ffeaa7;
}

.next-steps h4 {
    color: #856404;
    margin: 0 0 15px 0;
}

.next-steps p {
    color: #856404;
    margin-bottom: 15px;
}

.next-steps ul {
    color: #856404;
}

/* Responsive Design for Regulatory and Victory Sections */
@media (max-width: 768px) {
    .regulatory-header {
        padding: 30px 20px;
        margin: -20px -10px 30px -10px;
    }
    
    .benefits-grid,
    .demo-grid,
    .bsv-features,
    .treasury-features,
    .proposals-grid,
    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .demo-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons,
    .demo-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .system-status {
        align-items: flex-start;
    }
    
    .status-indicator {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .regulatory-intro .lead {
        font-size: 1.1em;
    }
    
    .benefit-card,
    .demo-card,
    .treasury-feature,
    .proposal-card,
    .contact-card {
        padding: 20px;
    }
    
    .regtech-highlight {
        padding: 20px;
    }
    
    .engagement-cta,
    .live-demo-access {
        padding: 25px 20px;
    }
    
    .victory-highlights {
        padding: 20px;
    }
}
