:root {
    --skye-blue: #5D9CEC;
    --skye-dark: #1E293B;
    --skye-light: #F0F4F8; /* Light blue-grey background */
    --white: #FFFFFF;
}

/* --- Custom Skye Scrollbar --- */

/* For Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--skye-light); /* Light background for the track */
}

::-webkit-scrollbar-thumb {
    background-color: #5D9CEC; /* Your requested Skye Blue */
    border-radius: 50px;       /* Pill shape */
    border: 2px solid var(--skye-light); /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4a8bd1; /* Slightly darker blue on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #5D9CEC var(--skye-light);
}

body, html { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    min-height: 100%; /* Ensure content length is recognized */
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto;   /* Forces vertical scrollbar capability */
}

body {
    background-color: var(--skye-light);
    color: var(--skye-dark);
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
}

#splash {
    position: fixed; inset: 0; background: var(--white);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 2000; transition: opacity 0.5s;
}
.pulse { animation: pulse 1.5s infinite; width: 80px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* --- Floating Pill Nav --- */
.nav-container {
    position: fixed; top: 15px; width: 100%; display: flex; 
    justify-content: center; z-index: 1500;
}
.nav-pill {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    padding: 8px 20px; border-radius: 50px; display: flex; gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.3);
}
.nav-link {
    text-decoration: none; color: var(--skye-dark);
    font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.nav-link:hover { color: var(--skye-blue); }
.nav-link i { color: var(--skye-blue); }

/* --- Brand Section --- */
.hero-identity {
    height: 100vh; display: flex; align-items: center; text-align: center;
}
.hero-identity h1 { font-size: 3.5rem; color: var(--skye-blue); margin: 0; }
.motto { font-weight: 600; font-size: 1.2rem; margin-top: -5px; }
.main-logo { width: 120px; border-radius: 15px; margin-bottom: 15px; }
.description { font-size: 1rem; line-height: 1.5; margin: 15px 0; }
/* --- Action Cards --- */
.hero-actions { padding: 100px 0; background: var(--white); }
.action-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
    width: 100%; max-width: 900px; margin: 20px auto;
}
.action-card {
    background: var(--white); padding: 20px; border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center;
}
.action-card:hover { transform: translateY(-10px); border-color: var(--skye-blue); }
.icon-main { font-size: 3rem; color: var(--skye-blue); margin-bottom: 20px; }

/* --- Card Styling Refinement --- */
.card-bio {
    font-size: 0.9rem;
    color: var(--skye-dark);
    opacity: 0.85;
    margin: 15px 0;
    line-height: 1.6;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-toggle {
    padding: 12px 30px;
    background: var(--skye-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-member {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--skye-blue);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-member:hover {
    border-color: var(--skye-blue);
    letter-spacing: 0.5px;
}

.btn-toggle:hover {
    background: #4a8bd1;
    transform: scale(1.05);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--skye-blue);
    border: 1px solid var(--skye-blue);
    margin-bottom: 20px;
}

.btn-small:hover {
    background: var(--skye-blue);
    color: white;
}

/* --- Layout Compactness --- */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--skye-blue);
    font-size: 2rem;
}

/* --- Buttons --- */
.btn-action {
    display: inline-block; margin-top: 20px;
    padding: 12px 30px; background: var(--skye-blue);
    color: white; border-radius: 50px; text-decoration: none;
    font-weight: bold; transition: 0.3s;
}
.btn-action:hover { background: #4a8bd1; box-shadow: 0 5px 15px rgba(93,156,236,0.4); }

.viewport-wrapper {
    position: relative; 
    width: 100%; 
    min-height: 100vh; /* Changed from height: 100vh */
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 80px 20px; /* Space for the floating nav */
}

.content-section {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%); /* Smoother transition start */
    width: 100%; 
    max-width: 1200px;
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.5s ease-in-out;
}

.content-section.active {
    opacity: 1; 
    pointer-events: all; 
    transform: translate(-50%, -50%);
}

.brand-box {
    max-width: 600px; margin: auto; text-align: center; padding: 20px;
}

/* --- Footer --- */
.footer { text-align: center; padding: 40px; opacity: 0.6; font-size: 0.8rem; }

/* --- Articles Section --- */
.articles-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding-bottom: 80px;
}

.article-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--skye-light);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--skye-dark);
}

.article-brief {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Article Action Buttons --- */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btn-read {
    color: var(--skye-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-forum-spawn {
    background: var(--skye-light);
    color: var(--skye-blue);
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-forum-spawn:hover {
    background: var(--skye-blue);
    color: white;
}

/* --- Main Footer --- */
.main-footer {
    background: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo { height: 40px; margin-bottom: 15px; border-radius: 5px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; max-width: 300px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 20px; color: var(--skye-blue); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: var(--skye-dark); opacity: 0.8; transition: 0.3s; }
.footer-links a:hover { color: var(--skye-blue); opacity: 1; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Back to Top Button --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--skye-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(93, 156, 236, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#backToTop:hover {
    transform: scale(1.1);
    background: #4a8bd1;
}

/* --- TOOLS PAGE --- */
/* --- Tools Dashboard --- */
.tools-header { padding: 120px 0 40px; text-align: center; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 50px; }

.tool-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(93, 156, 236, 0.1);
}
.tool-card:hover { transform: translateY(-10px); border-color: var(--skye-blue); }
.tool-card i { font-size: 3rem; color: var(--skye-blue); margin-bottom: 20px; }

/* --- SDG Section --- */
.sdg-banner {
    background: var(--skye-dark);
    color: white;
    padding: 50px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sdg-box {
    width: 60px; height: 60px; display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.5rem; border-radius: 8px; margin-left: 10px;
}
/* UN Colors */
.color-7 { background: #FDB713; } /* Affordable & Clean Energy */
.color-9 { background: #F36D25; } /* Industry, Innovation & Infrastructure */
.color-12 { background: #BF8B2E; } /* Responsible Consumption */
.color-13 { background: #3F7E44; } /* Climate Action */

/* --- Full Screen SDG Explorer Overlay --- */
.sdg-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 40px 20px;
}

.sdg-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sdg-grid-container {
    max-width: 1100px;
    margin: 0 auto;
}

.depth-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Ensures all cards match height */
}

.sdg-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sdg-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.skye-brief {
    font-size: 0.9rem;
    padding: 15px;
    background: var(--skye-light);
    border-radius: 15px;
    border-left: 4px solid var(--skye-blue);
    margin-bottom: 20px;
}

.skye-brief-box {
    font-size: 0.85rem;
    padding: 15px;
    background: #f8fbff;
    border-radius: 12px;
    border-left: 4px solid var(--skye-blue);
    margin-bottom: 20px;
    line-height: 1.5;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag-pill {
    background: rgba(0, 0, 0, 0.04);
    color: var(--skye-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.tag-pill:hover {
    background: var(--skye-blue);
    color: white;
}

.btn-sdg-live {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--skye-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.header-pill {
    background: var(--skye-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--skye-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-overlay {
    background: var(--skye-dark);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.consumer-action-box {
    font-size: 0.88rem;
    padding: 18px;
    background: #fffdf5; /* Subtle warm highlight */
    border-radius: 16px;
    border: 1px dashed #e3ca8d; /* "Actionable" feel */
    margin-bottom: 20px;
    line-height: 1.5;
    color: #5a4b2a;
    display: flex;
    gap: 12px;
}

.consumer-action-box i {
    color: #d4a017;
    font-size: 1.1rem;
    margin-top: 3px;
}

.tools-header-compact h1 { font-size: 2rem; margin-bottom: 5px; }
.tools-header-compact p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 40px; }

/* --- Compact Pill Cards --- */
.tools-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.tool-pill-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tool-pill-card:hover {
    transform: translateY(-5px);
    border-color: var(--skye-blue);
    box-shadow: 0 10px 25px rgba(93, 156, 236, 0.1);
}

.tool-icon-sm {
    width: 45px; height: 45px;
    background: var(--skye-light);
    color: var(--skye-blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.tool-info h3 { font-size: 1rem; margin: 0; color: var(--skye-dark); }
.tool-info p { font-size: 0.8rem; margin: 0; opacity: 0.6; }
.arrow-link { margin-left: auto; color: var(--skye-blue); opacity: 0.5; }

/* --- Mini SDG Box --- */
.sdg-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.sdg-card-refined {
    background: var(--white);
    border-radius: 25px;
    padding: 25px;
    border: 1px solid #f0f0f0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sdg-card-refined:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.sdg-card-refined h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--skye-dark); }
.sdg-card-refined p { font-size: 0.85rem; line-height: 1.5; opacity: 0.8; margin-bottom: 15px; }
 
.btn-sdg-live {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--skye-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.sdg-badge {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; border-radius: 10px;
    margin-bottom: 15px;
}

.sdg-mini-box {
    background: var(--skye-dark);
    color: white;
    padding: 20px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.sdg-mini-box:hover { background: #2a3b52; }

.sdg-mini-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sdg-text h4 { font-size: 0.95rem; margin: 0; }
.sdg-text p { font-size: 0.75rem; opacity: 0.7; margin: 5px 0 0; }

.sdg-mini-grid { display: flex; gap: 8px; }
.sdg-dot {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 0.8rem; font-weight: bold;
}

/* --- ABOUT PAGE --- */
.about-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, var(--skye-light));
}
.about-viewport {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Keeps everything in view */
    padding-top: 80px;
    text-align: center;
}
.about-logo-sm { width: 70px; border-radius: 12px; margin-bottom: 10px; }
.about-hero-compact h1 { font-size: 2rem; margin: 0; }
.about-hero-compact .slogan { font-size: 0.9rem; margin-bottom: 20px; }

.about-split-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    gap: 40px;
    align-items: flex-start;
}

.identity-panel {
    flex: 1;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
}

.logo-side { width: 80px; border-radius: 15px; }
.identity-panel h1 { font-size: 2.5rem; color: var(--skye-blue); margin: 0; }
.slogan-side { font-style: italic; font-weight: 600; color: var(--skye-dark); opacity: 0.8; }

.slogan { color: var(--skye-blue); font-weight: 700; font-style: italic; margin-bottom: 10px; }

/* --- Mission/Vision Grid --- */
.mv-container { padding: 40px 0; }
.mv-container-compact { width: 100%; max-width: 900px; margin-bottom: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(93, 156, 236, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.info-box:hover {
    transform: translateY(-10px);
    border-color: var(--skye-blue);
    box-shadow: 0 15px 35px rgba(93, 156, 236, 0.1);
}

.info-box-sm {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(93, 156, 236, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.info-box-sm p { font-size: 0.85rem; margin-top: 10px; line-height: 1.4; }

.icon-circle {
    width: 60px; height: 60px; background: var(--skye-light);
    color: var(--skye-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.5rem;
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--skye-light);
    color: var(--skye-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}


/* --- Founder Card --- */
.founder-card {
    background: var(--white);
    border-radius: 25px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 60px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.founder-image img {
    width: 150px; height: 150px; border-radius: 20px;
    object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.founder-info h4 { font-size: 1.5rem; color: var(--skye-blue); margin-bottom: 10px; }
.founder-pill {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    gap: 20px;
}
.founder-img-sm { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.founder-text-sm { text-align: left; }
.founder-text-sm h4 { margin: 0; font-size: 1rem; color: var(--skye-blue); }
.founder-text-sm p { margin: 0; font-size: 0.75rem; opacity: 0.7; }

.founder-actions-sm { display: flex; gap: 15px; margin-top: 5px; }
.founder-actions-sm a { color: var(--skye-blue); font-size: 0.9rem; transition: 0.3s; }
.founder-actions-sm a:hover { transform: scale(1.2); }
.founder-pill-vertical {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.founder-img-side { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.founder-info-side h4 { font-size: 1rem; margin: 0; color: var(--skye-blue); }
.founder-info-side p { font-size: 0.8rem; margin: 0; opacity: 0.7; }
.founder-socials { display: flex; gap: 12px; margin-top: 5px; }
.founder-socials a { color: var(--skye-blue); font-size: 0.9rem; }

.goals-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-card {
    background: var(--white);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(93, 156, 236, 0.1);
    transition: 0.3s;
}
.goal-card:hover { transform: translateX(5px); border-color: var(--skye-blue); }

.goal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--skye-blue);
}
.goal-header i { font-size: 1.4rem; }
.goal-header h3 { font-size: 1.3rem; margin: 0; }
.goal-card p { font-size: 0.95rem; line-height: 1.6; opacity: 0.85; }

.bio { font-size: 0.95rem; opacity: 0.8; margin-bottom: 20px; }

.btn-pill-sm {
    display: inline-block;
    padding: 8px 18px;
    background: var(--skye-light);
    color: var(--skye-blue);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-pill-sm:hover { background: var(--skye-blue); color: white; }

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
    /* --- INDEX PAGE --- */
    /* 1. Navbar: Shrink the pill to fit small screens */
    .nav-pill {
        padding: 6px 15px;
        gap: 12px;
    }
    .nav-link span { display: none; } /* Icons only for compactness */
    .nav-link i { font-size: 1.2rem; }

    /* 2. Hero Section: Adjust font sizes so they don't wrap awkwardly */
    .hero-identity h1, .brand-box h1 { 
        font-size: 2.2rem !important; 
        line-height: 1.1;
    }
    .description { font-size: 0.95rem; }

    /* 3. The Switcher: Release absolute positioning for vertical flow */
    .viewport-wrapper {
        display: block; /* Standard flow instead of flex centering */
        padding-top: 100px;
    }

    .content-section {
        position: relative; /* Release from absolute center */
        top: 0; left: 0;
        transform: none;
        width: 100%;
        margin-bottom: 50px;
    }

    .content-section:not(.active) {
        display: none; /* Hide non-active sections entirely to save space */
    }

    .content-section.active {
        transform: none;
    }

    /* 4. Action Grid: Full width cards */
    .action-grid {
        grid-template-columns: 1fr; /* Stacked cards */
        gap: 20px;
        padding: 0;
    }

    .action-card {
        padding: 30px 20px;
    }

    /* --- ARTICLES PAGE --- */
    .article-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    #backToTop { bottom: 20px; right: 20px; width: 40px; height: 40px; }

    /* --- TOOLS PAGE --- */
    .tools-grid-compact {
        grid-template-columns: 1fr; /* Vertical stacking */
    }
    
    .sdg-mini-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-container { padding-top: 100px; }
    .sdg-grid-elegant { grid-template-columns: 1fr; }

    /* --- ABOUT PAGE --- */
    .grid-2 { grid-template-columns: 1fr; }
    .founder-card { flex-direction: column; text-align: center; margin: 0 15px 60px; }
    .founder-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .about-viewport { height: auto; padding: 100px 15px 40px; }
    .grid-2 { grid-template-columns: 1fr; gap: 15px; }
    .founder-pill {
        flex-direction: column;
        border-radius: 25px;
        text-align: center;
        padding: 20px;
    }
    .founder-text-sm { text-align: center; }
    .founder-actions-sm { justify-content: center; }
}

@media (max-width: 850px) {
    .about-split-container {
        flex-direction: column;
        padding-top: 100px;
    }
    .identity-panel {
        position: static;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    .goals-panel { width: 100%; }
    .goal-card { padding: 25px; }
}