/* HKUST Digital Display - poster form branding (matches index.html) */

:root {
    --brand-navy: #003366;
    --brand-blue: #05A5E1;
    --brand-muted: #777777;
}

body {
    font-family: 'Muli', 'Microsoft JhengHei', sans-serif;
    color: #161616;
    background-color: #f5f6f8;
    padding-top: 0;
}

/* Top dark header bar */
.dd-header {
    background: var(--brand-navy);
    width: 100%;
}

.dd-header-inner {
    max-width: 1460px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
}

.dd-header a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.dd-header a:hover {
    text-decoration: underline;
}

/* Navbar with logos */
.dd-navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 120px;
}

.dd-navbar-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 10px 2%;
    gap: 10px;
}

.dd-brand {
    display: flex;
    align-items: center;
}

.dd-brand img {
    height: 50px;
}

.dd-brand .divider {
    border-left: 1px solid var(--brand-navy);
    height: 40px;
    margin: 0 1rem;
}

.dd-brand .title {
    color: var(--brand-navy);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dd-navbar-inner .dd-logo-right img {
    height: 44px;
}

/* Page content */
.dd-main {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 15px 3rem;
}

.dd-main h1 {
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 1.5rem;
}

.dd-main h2,
.dd-main .card-title {
    color: var(--brand-navy);
    font-weight: 700;
}

.dd-main legend {
    color: var(--brand-navy);
    font-weight: 700;
}

.dd-main .card {
    border: 1px solid #e3e6ea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dd-intro {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-top: 4px solid var(--brand-navy);
    padding: 2rem 2.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dd-intro-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.dd-intro h1 {
    margin-bottom: 1rem;
}

.dd-intro p {
    color: #333;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.dd-intro-lead {
    margin-bottom: 1.5rem !important;
}

.dd-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 0.75rem 1.5rem;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.25rem;
}

.dd-link-button:hover,
.dd-link-button:focus {
    background: #002347;
    color: #fff;
    text-decoration: none;
}

.dd-notice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dd-notice-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e3e6ea;
    border-left: 3px solid var(--brand-blue);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dd-notice-card h2 {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.dd-notice-card p,
.dd-notice-card li {
    color: #333;
    line-height: 1.6;
}

.dd-notice-card p {
    margin-bottom: 0.75rem;
}

.dd-notice-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.dd-notice-card ul li {
    margin-bottom: 0.4rem;
}

@media (max-width: 767px) {
    .dd-notice {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-weight: 600;
    color: #333;
}

/* Student poster contest consent */
.rules-window {
    border: 1px solid #cfd8e5;
    border-radius: 0.5rem;
    height: 320px;
    margin-top: 0.5rem;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    scroll-behavior: smooth;
}

.rules-window h3 {
    color: var(--brand-navy);
    font-weight: 800;
    margin-bottom: 1rem;
}

.rules-window li {
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.rules-status {
    color: #6b7787;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 22px;
}

.agreement-box {
    align-items: center;
    background: #eef7fb;
    border: 1px solid #c5e2ee;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1.1rem;
}

.agreement-box p {
    color: #284457;
}

@media (max-width: 575px) {
    .agreement-box {
        align-items: stretch;
        flex-direction: column;
    }

    .agreement-box .btn {
        width: 100%;
    }
}

/* Buttons */
.dd-main .btn-primary {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    font-weight: 600;
}

.dd-main .btn-primary:hover,
.dd-main .btn-primary:focus {
    background-color: #002347;
    border-color: #002347;
}

.dd-main .btn-outline-secondary {
    color: var(--brand-navy);
    border-color: var(--brand-navy);
    font-weight: 600;
}

.dd-main .btn-outline-secondary:hover {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}

a {
    color: var(--brand-blue);
}

/* Footer */
.dd-footer {
    background: var(--brand-navy);
    color: #fff;
    padding: 24px 2%;
    margin-top: 3rem;
}

.dd-footer-inner {
    max-width: 1460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.dd-footer img {
    height: 40px;
}

.dd-footer a {
    color: #fff;
    text-decoration: underline;
}

.dd-footer a:hover {
    text-decoration: none;
}

.dd-footer .copyright {
    font-size: 13px;
}

@media (max-width: 767px) {
    .dd-navbar {
        height: 67px;
    }

    .dd-navbar-inner {
        justify-content: center;
        padding: 10px 12px;
    }

    .dd-brand {
        flex: 1 1 100%;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dd-brand .divider {
        display: none;
    }

    .dd-brand .title {
        font-size: 0.95rem;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
    }

    .dd-site-title {
        display: none !important;
    }

    .dd-navbar-inner .dd-logo-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .dd-navbar {
        height: 89px;
    }
}

@media (max-width: 575px) {
    .dd-intro {
        padding: 1.5rem;
    }

    .dd-brand .title {
        font-size: 1rem;
    }

    .dd-brand img {
        height: 40px;
    }

    .dd-navbar-inner .dd-logo-right img {
        height: 34px;
    }
}
