/* --- 1. Global Styles & Reset --- */
:root {
    --color-primary: #007bff; /* Bright Blue/Aqua for highlights */
    --color-secondary: #00ffc8; /* Teal/Green for accents */
    --color-background: #11111a; /* Dark background */
    --color-card: #1a1a2e; /* Slightly lighter card background */
    --color-text: #e0e0f0; /* Light, readable text */
    --color-heading: #ffffff;
    --color-border: #333355;

    --font-main: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

h1, h2, h3 {
    color: var(--color-heading);
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.6em; }

.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

/* Emphasize text with bolding (SEO benefit and readability) */
strong {
    color: var(--color-secondary);
    font-weight: 600;
}

.lead-text {
    font-size: 1.2em;
    color: #aaaaaa;
    margin-bottom: 40px;
}

/* --- 2. Header & Navigation --- */
.header {
    background: rgba(17, 17, 26, 0.95); /* Semi-transparent dark background */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.nav a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--color-text);
}

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

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--color-text);
    cursor: pointer;
}

/* --- 3. Hero Section --- */
.hero {
    position: relative;
    padding: 150px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.background-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Subtly visible */
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #c0c0e0;
}

/* CTA Button Style */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-heading);
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Secondary CTA for Token Section */
.secondary-button {
    background-color: var(--color-secondary);
    color: var(--color-background);
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.4);
}
.secondary-button:hover {
    background-color: #00a17e;
    color: var(--color-heading);
}

/* --- 4. About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.grid-item {
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.grid-item h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

/* --- 5. Projects Section --- */
.projects-section {
    text-align: center;
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    flex: 1 1 300px; /* Flexible width */
    max-width: 350px;
    text-align: left;
    border-top: 5px solid var(--color-border);
    transition: border-color var(--transition-speed);
    display: block; /* Make the whole card clickable */
}

.project-card:hover {
    border-top-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Highlight for the main project (HowSwap) */
.primary-card {
    border-top-color: var(--color-secondary);
}
.primary-card:hover {
    border-top-color: var(--color-primary);
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--color-heading);
}

.card-link {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

/* --- 6. Token Section --- */
.token-section {
    background-color: #0a0a14; /* Extra dark to differentiate */
    text-align: center;
}

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

.token-content h2 {
    color: var(--color-secondary);
    font-size: 3em;
}

.token-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* --- 7. Footer (MINIMALIST UPGRADE) --- */
.footer {
    padding: 50px 0 20px;
    background-color: #0d0d15;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo .logo {
    font-size: 2em;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.footer-logo p {
    color: #888;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Navigation Links Style */
.footer-nav-links {
    margin-bottom: 30px;
}

.footer-nav-links a {
    color: var(--color-text);
    margin: 0 15px;
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

/* Social Links Style */
.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    font-size: 1.8em;
    margin: 0 15px;
    color: var(--color-secondary);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-social a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Bottom Section */
.footer-bottom {
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
}

.separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin: 20px auto;
}

.copyright {
    color: #666;
    font-size: 0.8em;
}

/* --- 8. Responsive Design (Mobile Optimization) --- */

@media (max-width: 992px) {
    
    /* Hero Title size adjustment for Tablet */
    .hero-content h1 {
        font-size: 3em; 
    }
}

@media (max-width: 768px) {
    
    /* 1. Hero Title size adjustment (CRITICAL FIX for mobile) */
    .hero-content h1 { 
        font-size: 2.2em; /* Smaller on mobile to prevent overflow */
        line-height: 1.2;
    }

    /* 2. Navigation Adjustments for Mobile */
    .nav {
        display: none; /* Hide on smaller screens */
        flex-direction: column;
        position: absolute;
        top: 65px; /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--color-card);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        padding-bottom: 10px;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 10px 20px;
        padding: 5px 0;
        border-bottom: 1px solid #282845;
    }

    .nav-toggle {
        display: block;
    }

    /* General Typography */
    h2 { font-size: 2em; }
    h3 { font-size: 1.4em; }

    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    /* Project Cards */
    .project-cards {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        max-width: 90%;
    }

    /* 3. Mobile specific footer adjustments */
    .footer-nav-links a {
        display: block; /* Stack links vertically on small screens */
        margin: 10px 0;
        padding: 5px 0;
    }
    
    .footer-social a {
        font-size: 1.6em;
        margin: 0 10px;
    }
}

/* --- 9. Howinu Token Page Specific Styles (for howinu.html) --- */

.token-header-content {
    padding: 40px 0;
    text-align: center;
}

.token-header-content h1 {
    font-size: 3.5em;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.token-header-content .lead-text {
    font-size: 1.4em;
    max-width: 900px;
    margin: 20px auto;
}

/* Mission Section */
.mission-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.mission-grid {
    display: flex;
    gap: 30px;
}

.mission-statement, .mission-goal {
    flex: 1;
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary);
}

/* Utility Section */
.utility-section {
    background-color: #0d0d15;
}
.utility-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.utility-card {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--color-background);
    text-align: center;
}
.utility-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}
.burn-card {
    border: 2px solid #ff4500; /* Special color for Burn feature */
}
.burn-detail {
    margin-top: 15px;
    font-size: 0.9em;
    color: #ff9900;
}

/* Listings Section */
.listings-section h2, .listings-section h3 {
    text-align: center;
    margin-bottom: 30px;
}
.listings-section h3 {
    margin-top: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

/* Key Info Boxes (Contract, Audit) */
.key-info-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.info-box {
    flex: 1 1 220px;
    background-color: var(--color-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-speed);
}
.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.info-box h4 {
    color: var(--color-secondary);
    font-size: 1em;
    margin-bottom: 5px;
}
.info-box p {
    font-size: 0.9em;
    word-break: break-all; /* Allows long contract address to wrap */
}
.bsc-scan { border-bottom: 3px solid #f0b90b; }
.audit-link { border-bottom: 3px solid var(--color-primary); }

/* Listing Grid (Exchanges) */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.listing-item {
    background-color: var(--color-card);
    padding: 15px 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
    transition: background-color var(--transition-speed);
    border: 1px solid var(--color-border);
}

.listing-item:hover {
    background-color: var(--color-primary);
    color: var(--color-heading);
    border-color: var(--color-primary);
}


/* --- Mobile Adjustments for Token Page --- */

@media (max-width: 768px) {
    .token-header-content h1 {
        font-size: 2.5em;
    }
    
    .mission-grid {
        flex-direction: column;
    }

    .key-info-flex {
        flex-direction: column;
    }
    .info-box {
        flex: 1 1 100%;
    }
    
    .listing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* --- 10. HowSwap Page Specific Styles (for howswap.html) --- */

.dex-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

/* HowSwap Icon Style */
.howswap-icon {
    width: 80px; /* Set icon size */
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-secondary);
}

.dex-header-content h1 {
    font-size: 3.5em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.dex-header-content .lead-text {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Features Section */
.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

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

.feature-card {
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--color-secondary);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.core-links-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}

.secondary-link {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
    margin: 0 10px;
}

.secondary-link:hover {
    background-color: var(--color-primary);
    color: var(--color-heading);
    transform: translateY(-2px);
}


/* HCAT Section */
.hcat-section {
    background-color: #0a0a14;
    padding: 60px 0;
}
.hcat-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

.hcat-info-box {
    max-width: 900px;
    margin: 0 auto 40px;
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
}

.token-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    text-align: center;
}

.detail-item h4 {
    color: var(--color-text);
    font-size: 1em;
    margin-bottom: 5px;
}
.detail-item p {
    color: #aaa;
    font-size: 0.9em;
}

.masterchef-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #11111a;
    border-radius: 5px;
    border: 1px dashed #444;
    font-size: 0.95em;
}

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

.link-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-heading);
    margin: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}
.link-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
}

/* Audit and Partnership Section */
.info-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.info-card {
    flex: 1 1 45%;
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    transition: box-shadow var(--transition-speed);
    display: block;
}
.info-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.audit-card { border-left: 5px solid var(--color-primary); }
.partnership-card { border-left: 5px solid #ff9900; }

.partnership-quote {
    font-style: italic;
    border-left: 3px solid var(--color-secondary);
    padding-left: 15px;
    margin: 15px 0;
}
.partnership-quote footer {
    margin-top: 5px;
    font-style: normal;
    color: #999;
    font-size: 0.85em;
}

/* Future Vision Section */
.vision-section {
    padding-top: 40px;
    border-bottom: none;
}
.vision-section h2 {
    color: var(--color-heading);
    text-align: center;
}
.vision-text {
    margin: 15px 0;
    font-size: 1.1em;
}
.vision-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 20px;
}
.vision-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.vision-section ul li::before {
    content: "🚀"; /* Unicode rocket icon */
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* --- Mobile Adjustments for HowSwap Page --- */
@media (max-width: 768px) {
    .dex-header-content h1 {
        font-size: 2.5em;
    }
    .token-details-grid {
        grid-template-columns: 1fr;
    }
    .info-card-container {
        flex-direction: column;
    }
    .info-card {
        flex: 1 1 100%;
    }
    .hcat-links {
        display: flex;
        flex-direction: column;
    }
    .core-links-section {
        display: flex;
        flex-direction: column;
    }
    .secondary-link {
        margin: 10px 0;
    }
}

/* --- 11. Education Page Specific Styles (for edu.html) --- */

.edu-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.edu-header-content h1 {
    font-size: 3.5em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.edu-header-content .lead-text {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Core Concepts Section */
.concepts-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.concept-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.concept-card {
    background-color: var(--color-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.concept-card h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.concept-definition {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--color-text);
}

.concept-note {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 20px;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
}

.cta-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
}
.cta-link:hover {
    color: var(--color-secondary);
}

/* Sinhala Resources Section */
.sinhala-section {
    background-color: #0d0d15;
    text-align: center;
}

.sinhala-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    background-color: var(--color-card);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

.sinhala-description {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.sinhala-en-translation {
    font-style: italic;
    color: #999;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.sinhala-links {
    margin-top: 20px;
}

.link-btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-heading);
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: var(--color-secondary);
    color: var(--color-background);
}
.secondary-btn:hover {
    background-color: #00a17e;
}


/* --- Mobile Adjustments for Education Page --- */
@media (max-width: 768px) {
    .edu-header-content h1 {
        font-size: 2.5em;
    }
    .concept-cards-grid {
        grid-template-columns: 1fr;
    }
    .sinhala-box {
        padding: 25px;
    }
    .sinhala-description {
        font-size: 1.2em;
    }
    .sinhala-links .link-btn {
        display: block;
        margin: 10px 0;
    }
}

/* --- 12. Wallets Page Specific Styles (for wallets.html) --- */

.wallet-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.wallet-header-content h1 {
    font-size: 3.5em;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.wallet-header-content .lead-text {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Wallet Definition Blockquote */
.definition-section {
    padding: 30px 0;
    text-align: center;
}
.wallet-definition {
    font-size: 1.1em;
    font-style: italic;
    padding: 20px;
    margin: 0 auto;
    max-width: 900px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-card);
    color: #ccc;
    line-height: 1.8;
}

.section-description {
    font-size: 1.1em;
    color: #aaa;
    margin-bottom: 30px;
    text-align: center;
}

/* Hardware Wallet Section */
.hardware-section h2 {
    color: var(--color-primary);
    text-align: center;
}
.hardware-section {
    background-color: #0d0d15;
}

.wallet-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Software Wallet Section */
.software-section h2 {
    color: var(--color-secondary);
    text-align: center;
}

.wallet-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Common Card Styles */
.wallet-card {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--color-card);
    transition: transform 0.3s ease;
}

.wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.wallet-card h3 {
    margin-bottom: 10px;
}

.wallet-card .price-range {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Card Specific Colors */
.primary-card {
    border-top: 5px solid var(--color-primary); /* Hardware Wallets */
}
.secondary-card {
    border-top: 5px solid var(--color-secondary); /* Software Wallets */
}

/* CTA Links */
.cta-link {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.purchase-link {
    background-color: var(--color-primary);
    color: var(--color-heading);
}
.purchase-link:hover {
    background-color: #0056b3;
}

.software-link {
    background-color: var(--color-secondary);
    color: var(--color-background);
}
.software-link:hover {
    background-color: #00a17e;
}

.final-note {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: #888;
}

/* --- Mobile Adjustments for Wallets Page --- */
@media (max-width: 768px) {
    .wallet-header-content h1 {
        font-size: 2.5em;
    }
    .wallet-comparison-grid, .wallet-list-grid {
        grid-template-columns: 1fr;
    }
    .wallet-definition {
        font-size: 1em;
    }
}

/* --- 13. Exchanges Page Specific Styles (for exchanges.html) --- */

.exchange-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.exchange-header-content h1 {
    font-size: 3.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.exchange-header-content .lead-text {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Exchange Definition Blockquote */
.definition-section {
    padding: 30px 0;
    text-align: center;
    background-color: #0d0d15;
}
.exchange-definition {
    font-size: 1.1em;
    font-style: italic;
    padding: 20px;
    margin: 0 auto;
    max-width: 900px;
    border-left: 5px solid var(--color-secondary);
    background-color: var(--color-card);
    color: #ccc;
    line-height: 1.8;
}

/* Exchanges List Section */
.exchange-list-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

.exchange-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.exchange-card {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--color-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--color-primary);
}

.exchange-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-top-color: var(--color-secondary);
}

.exchange-card h3 {
    margin-bottom: 10px;
    color: var(--color-heading);
}

.exchange-card .summary {
    font-size: 1.05em;
    margin-bottom: 15px;
}

.exchange-card .detail {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

/* CTA Links */
.cta-link {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.exchange-link {
    background-color: var(--color-primary);
    color: var(--color-heading);
}
.exchange-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
}


/* --- Mobile Adjustments for Exchanges Page --- */
@media (max-width: 768px) {
    .exchange-header-content h1 {
        font-size: 2.5em;
    }
    .exchange-cards-grid {
        grid-template-columns: 1fr;
    }
    .exchange-definition {
        font-size: 1em;
    }
}

/* --- 14. Research Page Specific Styles (for research.html) --- */

.research-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.research-header-content h1 {
    font-size: 3.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.research-header-content .lead-text {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Research Cards Section */
.research-cards-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

.research-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-card {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--color-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--color-border);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-top-color: var(--color-primary);
}

.research-card h3 {
    margin-bottom: 10px;
    color: var(--color-heading);
}

.research-card .summary {
    font-size: 1.05em;
    margin-bottom: 15px;
}

.research-card .feature-tag {
    font-size: 0.85em;
    color: var(--color-secondary);
    font-weight: 600;
    padding: 5px 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: 15px;
}

/* CTA Links */
.cta-link {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.research-link {
    background-color: var(--color-primary);
    color: var(--color-heading);
}
.research-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
}


/* --- Mobile Adjustments for Research Page --- */
@media (max-width: 768px) {
    .research-header-content h1 {
        font-size: 2.5em;
    }
    .research-cards-grid {
        grid-template-columns: 1fr;
    }
}
