/*
 Theme Name:   Greengate Software Solutions Child Theme
 Theme URI:    https://greengatesoftware.com
 Description:  A crisp, high-contrast, fully responsive minimalist framework.
 Author:       Chidi Henry Emeribe
 Template:     twentyseventeen
 Version:      3.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #FAFAFC;
    --bg-card: #FFFFFF;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --accent-green: #059669; /* Crisp, readable emerald green */
    --border-light: #E5E7EB;
    --font-stack: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* Structural Engine Resets */
body, #page, .site-content-contain, .site-main {
    background-color: var(--bg-main) !important;
    color: var(--text-muted) !important;
    font-family: var(--font-stack) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Neutralize Twenty Seventeen layout constraints */
.wrap, #secondary, .panel-content, .entry-header, .custom-header, .navigation-top {
    display: none !important;
}

/* HIGH-CONTRAST RESPONSIVE NAVIGATION BAR */
.greengate-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 5%;
    z-index: 999999 !important;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-logo a {
    color: var(--text-dark) !important;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-logo span { 
    color: var(--accent-green); 
}

/* Navigation List Container Layout */
.nav-links-container {
    display: flex;
    align-items: center;
}

.greengate-dynamic-menu {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.greengate-dynamic-menu li a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.greengate-dynamic-menu li a:hover {
    color: var(--text-dark) !important;
}

/* Action Call Target Item Styling */
.greengate-dynamic-menu li:last-child a {
    background: var(--accent-green) !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    transition: background 0.2s ease;
}

.greengate-dynamic-menu li:last-child a:hover {
    background: var(--text-dark) !important;
}

/* GRID CONTENT LAYOUT CORE */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.greengate-landing-wrapper {
    padding-top: 100px; /* Gives the locked navbar safe canvas spacing */
}

/* HERO BOX STYLING */
.hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
}

.badge-text {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

h1 {
    color: var(--text-dark) !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
    margin: 0 auto 20px auto !important;
    max-width: 800px;
}

.gradient-text {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 36px auto;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-greengate-primary-hero {
    background: var(--accent-green);
    color: #FFFFFF;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-greengate-primary-hero:hover { background: var(--text-dark); }

.btn-greengate-secondary-hero {
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    color: var(--text-dark);
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-greengate-secondary-hero:hover { background: var(--bg-main); }

/* GRID APPS & SERVICES LAYOUT */
.services-section { padding: 80px 0; }
.section-title { color: var(--text-dark) !important; text-align: center; font-size: 2.2rem !important; font-weight: 800 !important; margin: 0 0 10px 0 !important; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; font-size: 1.05rem; margin-bottom: 50px; color: var(--text-muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.service-card h3 { color: var(--text-dark) !important; font-size: 1.3rem !important; margin: 16px 0 10px 0 !important; font-weight: 700 !important; }
.card-icon { font-size: 1.75rem; }
.card-price { display: block; margin-top: 20px; color: var(--text-dark); font-weight: 700; font-size: 1.1rem; }

.featured-card {
    border: 2px solid var(--accent-green);
}

/* ========================================================== */
/* RESPONSIVE MEDIA QUERIES LAYER (MOBILE REPAIR ENGINE)     */
/* ========================================================== */

@media (max-width: 900px) {
    h1 { font-size: 2.4rem !important; }
    .greengate-navbar { padding: 14px 4%; }
    .greengate-dynamic-menu { gap: 16px !important; }
}

@media (max-width: 768px) {
    /* Safe stacking modifications for mobile displays */
    .greengate-navbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 20px;
    }
    .greengate-landing-wrapper {
        padding-top: 140px; /* Adds space so the stacked navbar doesn't cover top layout text */
    }
    .hero-section { padding: 60px 0 40px 0; }
    h1 { font-size: 2rem !important; }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }
    .btn-greengate-primary-hero, .btn-greengate-secondary-hero {
        display: block;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Completely single column stack engine on phones */
    }
    .service-card { padding: 24px; }
}


/* ========================================================== */
/* INNER PAGES LAYOUT ENGINE (`page.php` STYLING)             */
/* ========================================================== */

.greengate-inner-page-wrapper {
    padding-top: 120px; /* Gives the locked floating navbar safe room */
    padding-bottom: 80px;
    background-color: var(--bg-main);
}

.inner-container {
    width: 90%;
    max-width: 800px; /* Narrower width for optimal reading line-length */
    margin: 0 auto;
    box-sizing: border-box;
}

.inner-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Inner Page Headings */
.inner-page-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

h1.inner-page-title {
    color: var(--text-dark) !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Content Body Typography & Spacing */
.inner-page-content-body {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.inner-page-content-body p {
    margin-bottom: 24px !important;
}

.inner-page-content-body h2 {
    color: var(--text-dark) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
}

.inner-page-content-body h3 {
    color: var(--text-dark) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-top: 32px !important;
    margin-bottom: 12px !important;
}

/* Bullet Points & Lists Style Fixes */
.inner-page-content-body ul, 
.inner-page-content-body ol {
    margin-bottom: 24px !important;
    padding-left: 24px !important;
}

.inner-page-content-body li {
    margin-bottom: 8px !important;
}

/* ========================================================== */
/* INNER PAGE MOBILE RESPONSIVENESS                          */
/* ========================================================== */

@media (max-width: 768px) {
    .greengate-inner-page-wrapper {
        padding-top: 160px; /* Extra room on mobile for the stacked menu header */
    }
    
    .inner-content-card {
        padding: 24px; /* Tightens margins so it fits nicely on phone viewports */
        border-radius: 8px;
    }
    
    h1.inner-page-title {
        font-size: 1.8rem !important;
    }
    
    .inner-page-content-body {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* ========================================================== */
/* VIEWPORT BREAKOUT & MARGIN ALIGNMENT CORRECTION           */
/* ========================================================== */

/* Enforce rigid containment across every active layer */
*, *:before, *:after {
    box-sizing: border-box !important;
}

html, body, #page, .site-content-contain, .site-main, .greengate-landing-wrapper, .greengate-inner-page-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Forces the browser to slice off accidental side-scrolling whitespace */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
}

/* Neutralize Twenty Seventeen template wrappers that throw horizontal alignment out of whack */
.site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Clean structural container constraint enforcement */
.container, .inner-container {
    width: 100% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    float: none !important; /* Destroys old legacy float breakaways */
}

/* Tighter reading lane for regular inner sub-pages */
.inner-container {
    max-width: 840px !important;
}

/* Stop text, long links, or unformatted code strings from breaking columns */
p, h1, h2, h3, h4, h5, h6, li, span, a {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word;
}

/* Ensure images, layouts, or tables shrink to fit their parents cleanly */
img, video, iframe, table, canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* ========================================================== */
/* MOBILE CONTAINER ALIGNMENT PATCH                          */
/* ========================================================== */
@media (max-width: 768px) {
    .container, .inner-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .inner-content-card {
        width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
        border-radius: 6px !important;
    }
}

/* ========================================================== */
/* SYSTEM ARCHITECTURE CASE STUDY MODULAR STYLING            */
/* ========================================================== */

.case-study-section {
    padding: 100px 0;
    background-color: #FFFFFF !important; /* Forces premium, stark white panel block separation */
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Structural Grid Alignment Mapping */
.case-study-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr; /* Asymmetrical layouts scream agency level work */
    gap: 50px;
    margin-top: 48px;
    align-items: start;
}

/* Left Column: Milestones Stream */
.case-technical-breakdown {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.milestone-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.milestone-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(5, 150, 105, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    line-height: 1;
}

.milestone-body h3 {
    color: var(--text-dark) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.3px;
}

.milestone-body p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* Right Column: High-Impact Performance Metrics Container Box */
.case-visual-metrics-card {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.metrics-card-title {
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 32px 0 !important;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 24px 0;
}

.architecture-badge {
    margin-top: 36px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

/* Alignment Helper Classes */
@media (min-width: 769px) {
    .text-left-desktop {
        text-align: left !important;
        margin-left: 0 !important;
    }
}

/* ========================================================== */
/* CASE STUDY MOBILE ADAPTATION SYSTEM                       */
/* ========================================================== */

@media (max-width: 960px) {
    .case-study-grid {
        grid-template-columns: 1fr; /* Switch to clean vertical single file on small tablets */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .case-study-section {
        padding: 60px 0;
    }
    .milestone-block {
        flex-direction: column;
        gap: 12px;
    }
    .case-visual-metrics-card {
        padding: 24px;
    }
    .metric-value {
        font-size: 1.8rem;
    }
}

/* ========================================================== */
/* OVERHAULED OPERATIONAL CASE STUDY STYLING                  */
/* ========================================================== */

.case-study-section {
    padding: 100px 0;
    background-color: #FAFAFC !important; /* Soft white background to create distinct page sections */
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

/* Header Group Alignment */
.case-header-block {
    text-align: left;
    max-width: 800px;
    margin-bottom: 50px;
}

.case-badge {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

h2.case-main-title {
    color: #111827 !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
}

.case-main-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

/* Main Split Grid Layout */
.case-study-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Left Column: Architecture Cards */
.architecture-steps-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.architecture-step-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.step-icon-badge {
    background: #111827;
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon-badge span {
    font-size: 1rem;
    font-weight: 700;
}

.step-card-content h3 {
    color: #111827 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}

.step-card-content p {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Right Column: Dashboard Layout */
.architecture-dashboard-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.dashboard-header h4 {
    color: #4B5563 !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.dashboard-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #111827;
    font-weight: 600;
}

/* Status Dot Pulse Animation */
.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #059669;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px #059669; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Metrics Internal Boxes */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-metric-box {
    background: #FAFAFC;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.db-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.db-label {
    font-size: 0.85rem;
    color: #4B5563;
    font-weight: 500;
}

/* Dashboard Bottom Rows */
.dashboard-full-row-stat {
    background: #FAFAFC;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.db-small-header {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #4B5563;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.db-stat-text {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Technology Pills Container */
.dashboard-tech-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ========================================================== */
/* LAYOUT RESPONSIVENESS SYSTEM ENGINE                        */
/* ========================================================== */

@media (max-width: 992px) {
    .case-study-split-layout {
        grid-template-columns: 1fr; /* Stack into a clean, unified vertical feed on medium screens */
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .case-study-section {
        padding: 60px 0;
    }
    
    h2.case-main-title {
        font-size: 1.8rem !important;
    }
    
    .architecture-step-card {
        flex-direction: column; /* Stack the step number above text on phone viewports */
        gap: 16px;
        padding: 24px;
    }
    
    .dashboard-metrics-grid {
        grid-template-columns: 1fr; /* Single column stats layout on mobile */
    }
}

/* ========================================================== */
/* DEDICATED PORTFOLIO SHOWCASE PAGE STYLING                  */
/* ========================================================== */

.greengate-portfolio-wrapper {
    padding-top: 140px;
    padding-bottom: 100px;
    background-color: var(--bg-main);
}

.portfolio-page-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.portfolio-badge {
    background: rgba(17, 24, 39, 0.05);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

h1.portfolio-title {
    color: var(--text-dark) !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    line-height: 1.2 !important;
    margin: 0 0 16px 0 !important;
}

.portfolio-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Portfolio Cards Structural Grid Layout */
.portfolio-flex-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.portfolio-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Left Content Side */
.project-content-side {
    padding: 50px;
}

.project-location-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.project-content-side h2 {
    color: var(--text-dark) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -0.5px;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.project-bullet-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.p-bullet {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding-left: 14px;
    border-left: 2px solid var(--border-light);
}

.p-bullet strong {
    color: var(--text-dark);
}

/* Technical Skill Tags */
.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech-tags span {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Live Link Buttons */
.project-action-row {
    margin-top: 32px;
}

.btn-portfolio-live {
    display: inline-block;
    background: var(--text-dark);
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-portfolio-live:hover {
    background: var(--accent-green);
}

/* Right Metrics Accent Sidebar */
.project-stats-side {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.uk-theme-accent {
    background-color: #F8FAFC; /* Soft corporate blue/gray tint */
    border-left: 1px solid var(--border-light);
}

.ng-theme-accent {
    background-color: #F0FDF4; /* Very soft emerald green tint to match Green FuudNParcel */
    border-left: 1px solid rgba(5, 150, 105, 0.1);
}

.p-stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.p-stat-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================================== */
/* SHOWCASE RESPONSIVE MEDIA QUERIES TERMINAL LAYER           */
/* ========================================================== */

@media (max-width: 992px) {
    .portfolio-showcase-card {
        grid-template-columns: 1fr; /* Drop sidebars cleanly into uniform blocks on tablets */
    }
    .uk-theme-accent, .ng-theme-accent {
        border-left: none;
        border-top: 1px solid var(--border-light);
        flex-direction: row;
        gap: 24px;
        padding: 30px 50px;
    }
    .p-stat-box {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .greengate-portfolio-wrapper {
        padding-top: 160px;
    }
    h1.portfolio-title {
        font-size: 2rem !important;
    }
    .project-content-side {
        padding: 24px;
    }
    .uk-theme-accent, .ng-theme-accent {
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }
    .p-stat-num {
        font-size: 2rem;
    }
}

/* Accent variations for your expanded portfolio suites */
.corporate-theme-accent {
    background-color: #F8FAFC; 
    border-left: 1px solid var(--border-light);
}

.hotel-theme-accent {
    background-color: #FFFBEB; /* Soft amber/gold palette accent box for hotel marketplace theme */
    border-left: 1px solid #FDE68A;
}

.eco-theme-accent {
    background-color: #F0FDF4; /* Crisp forest/eco-mint green hue */
    border-left: 1px solid #BBF7D0;
}

.ngo-theme-accent {
    background-color: #EFF6FF; /* Deep sky blue hue representing protection and foundation work */
    border-left: 1px solid #BFDBFE;
}

/* ========================================================== */
/* EXPLICIT MODULAR STACKING LAYOUT FOR INTERNAL PAGES         */
/* ========================================================== */

.greengate-inner-page-wrapper {
    padding-top: 140px; 
    padding-bottom: 100px;
    background-color: #FAFAFC !important; /* Soft backdrop layout to make cards pop */
}

.inner-card-badge {
    background: rgba(5, 150, 105, 0.08) !important; /* Matches the green front-page badge exactly */
    color: #059669 !important; /* Vibrant emerald green */
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}

.inner-container {
    width: 90%;
    max-width: 780px; 
    margin: 0 auto;
    box-sizing: border-box;
}

/* 1. MAIN INTRO/TITLE CARD */
.inner-content-card-shell {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 32px 40px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 24px !important; /* Forces a distinct modular space below the header card */
}

.inner-page-card-header {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Reduced, Professional Title Scaling */
h1.inner-page-card-title {
    color: #111827 !important; /* High contrast charcoal black font */
    font-size: 1.65rem !important; /* Clean, refined title layout sizing */
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* 2. DYNAMIC CONTENT INNER ELEMENTS CARDS (FORCES SEPARATION) */
.inner-page-card-body-content {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Precise gap metrics between every modular component card */
    width: 100% !important;
    box-sizing: border-box;
}

/* Enforce reduced sizes on internal sub-headings */
.inner-page-card-body-content h2 {
    color: #111827 !important;
    font-size: 1.4rem !important; /* Scaled down perfectly */
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    margin: 20px 0 4px 0 !important;
    display: flex;
    align-items: center;
}

/* Vibrant Emerald Green Indicator Line next to titles */
.inner-page-card-body-content h2:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #059669 !important; /* Green Accent colored font style placeholder */
    margin-right: 10px;
    border-radius: 2px;
}

.inner-page-card-body-content h3 {
    color: #111827 !important;
    font-size: 1.2rem !important; /* Scaled down sub-heading */
    font-weight: 700 !important;
    margin: 16px 0 4px 0 !important;
}

/* FORCES EVERY PARAGRAPH INTO ITS OWN UNIQUE CARD CONTAINER */
.inner-page-card-body-content p {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 24px 32px !important; /* Clean inner cell breathing room */
    margin: 0 !important;
    color: #4B5563 !important; /* High contrast reading slate gray font */
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

/* FORCES EVERY BULLETED/NUMBERED LIST INTO ITS OWN CARD PANEL */
.inner-page-card-body-content ul,
.inner-page-card-body-content ol {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 24px 32px 24px 48px !important; /* Safe padding for markers layout */
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

/* Bullet Items High Contrast Alignment */
.inner-page-card-body-content ul {
    list-style: none !important; /* Clear standard messy circles */
    padding-left: 32px !important;
}

.inner-page-card-body-content ul li {
    position: relative !important;
    margin-bottom: 12px !important;
    color: #4B5563 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

/* Last bullet protection gap */
.inner-page-card-body-content ul li:last-child {
    margin-bottom: 0 !important;
}

/* Injecting custom green checkmarks/dots for all bullet lists */
.inner-page-card-body-content ul li:before {
    content: "✓" !important;
    position: absolute !important;
    left: -24px !important;
    top: 0 !important;
    color: #059669 !important; /* Sharp emerald green color pop */
    font-weight: 800 !important;
}

/* Standard Numbered Lists Text High Contrast */
.inner-page-card-body-content ol li {
    color: #4B5563 !important;
    font-size: 1.05rem !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}

/* Ensure strong/bold fonts show up in high-contrast charcoal */
.inner-page-card-body-content strong {
    color: #111827 !important;
    font-weight: 700 !important;
}

/* Blockquotes/Italics Modularity Integration */
.inner-page-card-body-content blockquote {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-left: 4px solid #059669 !important; /* Custom left accent wall */
    border-radius: 4px 12px 12px 4px !important;
    padding: 24px 32px !important;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

.inner-page-card-body-content blockquote p {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-style: italic !important;
    color: #111827 !important; /* Darker font focus for quotes */
}

/* ========================================================== */
/* VIEWPORT MOBILE ADAPTATION SYSTEM LAYER                    */
/* ========================================================== */

@media (max-width: 768px) {
    .greengate-inner-page-wrapper {
        padding-top: 160px;
    }
    
    .inner-content-card-shell,
    .inner-page-card-body-content p,
    .inner-page-card-body-content ul,
    .inner-page-card-body-content ol,
    .inner-page-card-body-content blockquote {
        padding: 20px 24px !important; /* Perfectly balances margins on compact mobile phone viewports */
    }
    
    h1.inner-page-card-title {
        font-size: 1.55rem !important;
    }
    
    .inner-page-card-body-content h2 {
        font-size: 1.2rem !important;
    }
}