/* ===================================================================
   CLEAN CONTENT SECTION - SIMPLE & RELIABLE IMPLEMENTATION
   ================================================================= */

/* Content Section Main Container */
.content-section-wrapper {
    max-width: 1320px; /* 872px + 424px + 24px gap */
    margin: 0 auto;
}

/* Main Content Area */
.content-main {
    min-height: 400px;
}

.content-text-area {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-text-area p {
    margin: 0;
}

.content-text-area h3 {
    margin: 0;
    color: #83ff65;
}

/* Image Container */
.content-image-container {
    background-color: #28282e;
}

.content-image-container img {
    transition: opacity 0.3s ease;
}

.content-image-container:hover img {
    opacity: 0.9;
}

/* Progress Bar Styling */
.content-progress-bar {
    background-color: #28282e;
}

.content-progress-bar .bg-neutral-700 {
    background-color: #28282e !important;
}

.content-progress-bar .bg-brand-green {
    background-color: #83ff65 !important;
}

/* Sidebar Styling */
.content-sidebar {
    min-height: 300px;
}

.content-sidebar h2 {
    margin: 0;
    color: #83ff65;
    font-size: 32px;
    line-height: 40px;
}

.content-sidebar p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

/* Sidebar Highlight Item */
.sidebar-highlight-item {
    position: relative;
}

.sidebar-highlight-item .bg-gradient-to-r {
    background: linear-gradient(90deg, #83ff65 0%, #49ca00 100%);
}

.sidebar-highlight-item p {
    color: #051f00 !important;
    z-index: 1;
    position: relative;
}

/* ===================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    .content-section-wrapper {
        flex-direction: column;
        gap: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-main {
        width: 100% !important;
        flex-direction: column;
        gap: 16px;
    }

    .content-text-area {
        gap: 16px;
    }

    .content-image-container {
        width: 100% !important;
        height: 200px !important;
    }

    .content-progress-bar {
        display: none !important;
    }

    .content-sidebar {
        width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
        gap: 20px;
    }

    .content-sidebar h2 {
        font-size: 24px;
        line-height: 32px;
        text-align: center !important;
    }

    .sidebar-highlight-item {
        width: 100% !important;
    }

    .sidebar-highlight-item .bg-gradient-to-r {
        width: 100% !important;
    }

    .sidebar-highlight-item p {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
}

/* Tablet Styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-section-wrapper {
        flex-direction: column;
        gap: 24px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .content-main {
        width: 100% !important;
    }

    .content-sidebar {
        width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }

    .content-image-container {
        width: 100% !important;
        height: 320px !important;
    }

    .content-progress-bar {
        min-height: auto !important;
        height: 400px !important;
    }

    .sidebar-highlight-item .bg-gradient-to-r {
        width: 100% !important;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .content-section-wrapper {
        flex-direction: row;
        gap: 24px;
        padding: 32px 0;
    }

    .content-main {
        width: 872px;
        flex-direction: row;
        gap: 8px;
        align-items: flex-start;
    }

    .content-text-area {
        flex: 1;
        gap: 16px;
    }

    .content-image-container {
        width: 760px !important;
        height: 428px !important;
    }

    .content-progress-bar {
        width: 8px !important;
        min-height: 1108px;
    }

    .content-sidebar {
        width: 424px;
        height: 1156px;
        margin-top: 0;
        gap: 25px;
    }

    .content-sidebar h2 {
        text-align: right;
    }

    .sidebar-highlight-item .bg-gradient-to-r {
        width: 369px;
    }

    .sidebar-highlight-item p {
        right: 24px;
        transform: none;
        left: auto;
    }
}

/* ===================================================================
   TEXT IMPROVEMENTS
   ================================================================= */

/* Ensure proper text rendering */
.content-text-area p,
.content-sidebar p {
    word-break: break-word;
    line-height: 1.5;
}

/* Font weight consistency */
.font-roboto {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-bold {
    font-weight: 700;
}

/* Color consistency */
.text-brand-green {
    color: #83ff65 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-black {
    color: #000000 !important;
}

/* Background consistency */
.bg-neutral-900 {
    background-color: #171717 !important;
}

.bg-neutral-700 {
    background-color: #404040 !important;
}

.bg-brand-green {
    background-color: #83ff65 !important;
}

.from-brand-green {
    --tw-gradient-from: #83ff65;
}

.to-brand-green-dark {
    --tw-gradient-to: #49ca00;
}

/* ===================================================================
   ACCESSIBILITY & PERFORMANCE
   ================================================================= */

/* Focus states */
.content-image-container:focus-within,
.sidebar-highlight-item:focus-within {
    outline: 2px solid #83ff65;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .content-image-container img {
        transition: none !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .content-main,
    .content-sidebar {
        border: 1px solid #83ff65;
    }
}