﻿:root {
    --blue-main: #2a4896;
    --blue-stripe1: #273684;
    --blue-stripe2: #2a75b5;
    --blue-stripe3: #273684;
    --gray-bg: #f4f5f7;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--gray-bg);
}

.top-message-bar {
    height: 40px;
    background-color: #b2e5bf; /* pastel green */
    color: black;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-bg);
    max-width: 800px; /* Add this */
    margin: 0 auto; /* Add this to center it */
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 100vh;
    background: white;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr; /* Change to single column */
    min-height: 200px;
    background: white;
}

.left-panel {
    display: none; /* Hide the left panel completely */
}

.responsive-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: none;
}

.desktop-image {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
}

    .desktop-image img {
        width: 100%;
        height: 100vh;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: left center;
        display: block;
    }

.mobile-image {
    display: none;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--blue-main);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.blue-stripes {
    position: absolute;
    right: 0;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    width: 90px;
    height: 400px; /* Set fixed height */
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
}

    .blue-stripes > div {
        flex-shrink: 0;
    }

.stripe1 {
    width: 20px;
    background: var(--blue-stripe1);
}

.stripe2 {
    width: 40px;
    background: var(--blue-stripe2);
}

.stripe3 {
    width: 30px;
    background: var(--blue-stripe3);
}

.right-content {
    position: relative;
    z-index: 2;
    margin-right: 8vw;
    text-align: right;
}

.ucb-logo {
    font-size: 2.6rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.15em;
    letter-spacing: 0.01em;
    line-height: 1;
}

.title {
    font-size: 2.3rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.1;
}

.bottom-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e2e2e2;
    padding: 0.7em 2vw;
    height: 66px;
}

    .bottom-bar img {
        height: 40px;
        margin-right: 1.2em;
        max-width: 100%;
    }

.ucb-blue-btn {
    background: linear-gradient(to bottom, #3550a0 0%, #142d7b 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.35rem;
    padding: 0.4em 1.2em;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(20, 45, 123, 0.35), 0 1.5px 0 #fff inset;
    cursor: pointer;
    margin-top: 2rem;
    transition: filter 0.18s, box-shadow 0.18s;
    text-shadow: 0 1px 2px #123067;
}

    .ucb-blue-btn:hover {
        filter: brightness(1.09);
        box-shadow: 0 4px 16px rgba(20, 45, 123, 0.30);
    }


.ucb-pdf-btn {
    background: linear-gradient(to bottom, #3550a0 0%, #142d7b 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.35rem;
    padding: 0.4em 1.2em;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(20, 45, 123, 0.35), 0 1.5px 0 #fff inset;
    cursor: pointer;
    margin-top: 1rem;
    margin-left: 1rem;
    transition: filter 0.18s, box-shadow 0.18s;
    text-shadow: 0 1px 2px #721c24;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

    .ucb-pdf-btn:hover {
        filter: brightness(1.09);
        box-shadow: 0 4px 16px rgba(20, 45, 123, 0.30);
    }

    .ucb-pdf-btn i {
        font-size: 1.2em;
    }


.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 95%;
        padding: 0.75rem;
        border: 2px solid #e2e2e2;
        border-radius: 6px;
        font-size: 1rem;
        font-family: inherit;
        transition: border-color 0.2s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--blue-main);
        }

    .form-group textarea {
        min-height: 98px;
        resize: vertical;
    }

.submit-btn {
    background: linear-gradient(to bottom, #3550a0 0%, #142d7b 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: filter 0.18s, box-shadow 0.18s;
    text-shadow: 0 1px 2px #123067;
}

    .submit-btn:hover {
        filter: brightness(1.09);
    }


.article-section .ucb-pdf-btn {
    position: absolute;
    top: 1rem;
    right: 2vw;
    margin: 0;
    z-index: 2;
}

.article-section {
    background: white;
    padding: 3rem 4vw;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    flex: 0 0 auto;
    position: relative; /* Make sure this is here */
    z-index: 1; /* Add this to create a new stacking context */
}

.article-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--blue-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    margin-top: 4rem; /* Add this to push title down */
}

.article-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-main);
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.references {
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

    .references h4 {
        color: var(--blue-main);
        margin-bottom: 1rem;
    }

    .references ol {
        padding-left: 1.5rem;
    }

    .references li {
        margin-bottom: 0.5rem;
    }

    .references a {
        color: var(--blue-main);
        text-decoration: none;
    }

        .references a:hover {
            text-decoration: underline;
        }



.scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(3px);
    }
}


.article-image {
    float: left;
    width: 45%; /* Increase from 35% to 45% */
    height: auto;
    object-fit: contain; /* Add this to prevent distortion */
    margin: 0 1rem 1rem -4vw; /* Use -4vw to touch container edge */
    display: block;
}


@media (max-width: 768px) {
    .article-section {
        padding: 2rem 4vw;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }
}


/* Tablet font size adjustments ONLY */
@media (max-width: 900px) {
    .ucb-logo {
        font-size: 2rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .right-content {
        margin-right: 4vw;
    }
}



/* Mobile: stack layout and show banner */
@media (max-width: 500px) {
    body, html {
        height: auto;
        min-height: 100%;
    }

    .hero-section {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0;
    }

    .article-section {
        padding: 2rem 4vw;
        margin: 0;
    }

    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: var(--gray-bg);
        gap: 0; /* Remove any gaps between flex items */
    }

    .main-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 auto;
        min-height: 0;
        min-width: 0;
        background: white;
        overflow: hidden;
        gap: 0;
    }

    .left-panel {
        width: 100vw;
        padding: 0 !important;
        min-height: 0;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: stretch;
        flex: 0 0 auto;
    }

    .responsive-image-wrapper {
        width: 100vw;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        height: auto;
        max-height: none;
        min-height: 0;
        justify-content: center;
    }

    .desktop-image {
        display: none !important;
    }

    .mobile-image {
        display: flex !important;
        width: 100vw;
        min-height: 120px;
        height: auto;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 0;
        margin: 0;
    }

        .mobile-image img {
            width: 100vw;
            max-width: 100vw;
            height: auto;
            max-height: 220px;
            object-fit: cover;
            object-position: center;
            display: block;
        }

    .right-panel {
        min-width: 0;
        width: 100vw;
        padding: 2rem 0;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        background: var(--blue-main);
        min-height: 100px;
    }

    .right-content {
        margin: 0 4vw;
        text-align: center;
        width: 100%;
    }

    .title {
        font-size: 1.1rem;
    }

    .ucb-logo {
        font-size: 1.1rem;
    }

    .bottom-bar {
        flex-direction: column;
        height: auto;
        padding: 1em 2vw;
        text-align: center;
        z-index: 2;
        background: #fff;
        position: relative;
    }

        .bottom-bar img {
            margin: 0 0 0.7em 0;
        }

    .blue-stripes {
        position: absolute;
        right: 0;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Center vertically */
        width: 90px;
        height: 400px; /* Set fixed height */
        pointer-events: none;
        z-index: 1;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-end;
    }

    .ucb-blue-btn,
    .ucb-pdf-btn {
        font-size: 1rem;
        padding: 0.5em 1em;
        margin-top: 1rem;
    }

    .ucb-pdf-btn {
        margin-left: 0;
    }

    .scroll-hint {
        display: none;
    }

    .article-section .ucb-pdf-btn {
        position: static; /* Make it normal flow on mobile */
        margin: 0 0 2rem 0; /* Add bottom margin */
        display: block;
        width: fit-content;
    }

    .article-title {
        margin-top: 0; /* Reset on mobile */
        padding-right: 0; /* Reset on mobile */
    }

    .article-image {
        float: left;
        height: auto;
        margin: 0 0.8rem 0.8rem -4vw; /* Same negative margin for mobile */
        display: block;
    }
}
