/*
 * ACSP Academic Day - ESG Learning Ecosystem Theme V7
 * Compatible with legacy PHP applications and modern browsers.
 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #18362e;
    background: #f4f9f5;
    font-family: Tahoma, "Leelawadee UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.esg-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(144, 213, 160, 0.24) 0, rgba(144, 213, 160, 0) 28%),
        radial-gradient(circle at 94% 17%, rgba(49, 151, 119, 0.18) 0, rgba(49, 151, 119, 0) 25%),
        #f4f9f5;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dcebe1;
    box-shadow: 0 6px 22px rgba(20, 73, 54, 0.07);
}

.header-inner {
    width: calc(100% - 40px);
    max-width: 1180px;
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce8e0;
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(27, 92, 68, 0.12);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    display: block;
    color: #145a43;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.brand-subtitle {
    display: block;
    margin-top: 3px;
    color: #668078;
    font-size: 12px;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    color: #38574d;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: #126446;
    background: #e7f4eb;
    outline: none;
    transform: translateY(-1px);
}

.main-nav a.nav-highlight {
    color: #ffffff;
    background: #176b4d;
    box-shadow: 0 8px 18px rgba(23, 107, 77, 0.2);
}

.main-nav a.nav-highlight:hover,
.main-nav a.nav-highlight:focus {
    color: #ffffff;
    background: #0f5a3e;
}

.hero {
    position: relative;
    padding: 72px 20px 68px;
    color: #ffffff;
    background: linear-gradient(135deg, #0e4f3a 0%, #176b4d 54%, #2b8c62 100%);
    isolation: isolate;
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero:before {
    width: 420px;
    height: 420px;
    top: -225px;
    right: -100px;
    border: 70px solid rgba(255, 255, 255, 0.07);
}

.hero:after {
    width: 260px;
    height: 260px;
    left: -130px;
    bottom: -125px;
    background: rgba(139, 211, 156, 0.12);
}

.hero-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: 54px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 13px;
    color: #e7ffed;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #a9e86f;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(169, 232, 111, 0.14);
}

.hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero h1 span {
    display: block;
    margin-top: 9px;
    color: #b9efbd;
}

.hero-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: #e7f5ec;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 31px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-button:hover,
.hero-button:focus {
    transform: translateY(-2px);
    outline: none;
}

.hero-button.primary {
    color: #14583f;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(3, 42, 29, 0.2);
}

.hero-button.primary:hover,
.hero-button.primary:focus {
    background: #effbf1;
}

.hero-button.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.36);
}

.hero-button.secondary:hover,
.hero-button.secondary:focus {
    background: rgba(255, 255, 255, 0.16);
}

.esg-panel {
    position: relative;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    box-shadow: 0 25px 55px rgba(2, 42, 28, 0.21);
    backdrop-filter: blur(8px);
}

.esg-panel-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.esg-list {
    display: grid;
    gap: 11px;
}

.esg-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 13px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
}

.esg-letter {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14593f;
    background: #dff8da;
    border-radius: 13px;
    font-size: 20px;
    font-weight: 800;
}

.esg-item:nth-child(2) .esg-letter {
    background: #dff5ef;
}

.esg-item:nth-child(3) .esg-letter {
    background: #edf4d1;
}

.esg-item strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
}

.esg-item small {
    display: block;
    margin-top: 3px;
    color: #d9eee3;
    font-size: 12px;
    line-height: 1.4;
}

.main-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: -28px auto 0;
    padding-bottom: 72px;
}

.intro-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding: 22px 25px;
    background: #ffffff;
    border: 1px solid #dfece3;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(20, 73, 54, 0.1);
}

.intro-copy h2 {
    margin: 0;
    color: #174f3b;
    font-size: 24px;
    line-height: 1.35;
}

.intro-copy p {
    margin: 5px 0 0;
    color: #688078;
    font-size: 14px;
}

.intro-badge {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #176b4d;
    background: #eaf6ed;
    border: 1px solid #d5eadb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.competition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 23px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfece3;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(20, 73, 54, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.competition-card:before {
    content: "";
    position: absolute;
    width: 95px;
    height: 95px;
    top: -50px;
    right: -50px;
    background: #e5f4e8;
    border-radius: 50%;
}

.competition-card:hover {
    transform: translateY(-4px);
    border-color: #c2dfca;
    box-shadow: 0 18px 38px rgba(20, 73, 54, 0.12);
}

.competition-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.race-number {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #176b4d, #369b6a);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(23, 107, 77, 0.19);
    font-size: 16px;
    font-weight: 800;
}

.competition-title {
    margin: 1px 0 0;
    color: #183b30;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.competition-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 19px;
}

.meta-item {
    min-width: 0;
    padding: 11px 12px;
    background: #f5f9f6;
    border: 1px solid #e7f0e9;
    border-radius: 13px;
}

.meta-label {
    display: block;
    margin-bottom: 2px;
    color: #769087;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.meta-value {
    display: block;
    overflow-wrap: anywhere;
    color: #294d41;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.competition-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.action-button:hover,
.action-button:focus {
    transform: translateY(-1px);
    outline: none;
}

.action-button.primary {
    color: #ffffff;
    background: #176b4d;
    box-shadow: 0 7px 15px rgba(23, 107, 77, 0.17);
}

.action-button.primary:hover,
.action-button.primary:focus {
    background: #0e5b3f;
}

.action-button.secondary {
    color: #635212;
    background: #f5e9a8;
    border-color: #eadc90;
}

.action-button.secondary:hover,
.action-button.secondary:focus {
    background: #efdf8f;
}

.action-button.disabled {
    color: #8a9994;
    background: #edf1ef;
    border-color: #e1e7e4;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-state,
.error-state {
    grid-column: 1 / -1;
    padding: 50px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dfece3;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(20, 73, 54, 0.07);
}

.empty-state h3,
.error-state h3 {
    margin: 0;
    color: #1a5d44;
    font-size: 20px;
}

.empty-state p,
.error-state p {
    margin: 8px 0 0;
    color: #71877f;
}

.site-footer {
    padding: 38px 20px;
    color: #d9eee3;
    background: #103d2f;
}

.footer-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-title {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.footer-text {
    margin: 4px 0 0;
    color: #bad5c8;
    font-size: 13px;
}

.footer-contact {
    color: #e8f5ed;
    font-size: 13px;
    text-align: right;
}

.footer-contact strong {
    display: block;
    color: #9eddad;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .main-nav a {
        flex: 0 0 auto;
    }

    .hero {
        padding-top: 58px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-copy {
        max-width: 820px;
    }

    .esg-panel {
        max-width: 700px;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .main-content {
        width: calc(100% - 28px);
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .brand-logo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .hero {
        padding: 48px 14px 58px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .competition-grid {
        grid-template-columns: 1fr;
    }

    .intro-card,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro-badge {
        white-space: normal;
    }

    .footer-contact {
        text-align: left;
    }
}

@media (max-width: 500px) {
    .main-nav a {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-actions,
    .hero-button {
        width: 100%;
    }

    .esg-panel {
        padding: 17px;
        border-radius: 20px;
    }

    .main-content {
        margin-top: -20px;
    }

    .intro-card,
    .competition-card {
        padding: 18px;
        border-radius: 17px;
    }

    .intro-copy h2 {
        font-size: 21px;
    }

    .competition-meta {
        grid-template-columns: 1fr;
    }

    .action-button {
        width: 100%;
    }
}

/* Prominent official invitation */
.main-nav a.nav-invitation {
    position: relative;
    color: #6c5209;
    background: #fff4c9;
    border: 1px solid #eddc98;
    box-shadow: 0 5px 14px rgba(112, 85, 10, 0.10);
}

.main-nav a.nav-invitation:before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    background: #d8a91b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(216, 169, 27, 0.13);
}

.main-nav a.nav-invitation:hover,
.main-nav a.nav-invitation:focus {
    color: #5e4605;
    background: #ffedaa;
}

.hero-button.invitation {
    color: #4f3b05;
    background: linear-gradient(135deg, #fff7d2 0%, #efd87e 100%);
    border-color: rgba(255, 240, 172, 0.85);
    box-shadow: 0 12px 25px rgba(48, 34, 0, 0.20);
}

.hero-button.invitation:hover,
.hero-button.invitation:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f4dd83 100%);
}

.invitation-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px 25px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(118deg, #123f31 0%, #176b4d 58%, #31845f 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 73, 52, 0.20);
}

.invitation-spotlight:before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -115px;
    top: -140px;
    border: 50px solid rgba(255, 229, 138, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.invitation-spotlight:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, #d9ad29 0%, #ffe59a 48%, #9edb8f 100%);
}

.invitation-visual {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 21px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.invitation-document {
    position: relative;
    width: 43px;
    height: 52px;
    display: block;
    padding-top: 18px;
    background: #fff8db;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 31, 20, 0.22);
}

.invitation-document:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: linear-gradient(225deg, rgba(23, 107, 77, 0.25) 0 49%, #efd77d 50% 100%);
    border-radius: 0 5px 0 4px;
}

.invitation-document span {
    width: 25px;
    height: 3px;
    display: block;
    margin: 0 auto 6px;
    background: #8dad96;
    border-radius: 999px;
}

.invitation-document span:nth-child(2) {
    width: 20px;
}

.invitation-document span:nth-child(3) {
    width: 24px;
}

.invitation-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.invitation-kicker {
    display: inline-block;
    margin-bottom: 4px;
    color: #ffeaa6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.invitation-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.35;
}

.invitation-copy p {
    max-width: 690px;
    margin: 6px 0 0;
    color: #dcefe5;
    font-size: 14px;
    line-height: 1.65;
}

.invitation-action {
    position: relative;
    z-index: 1;
}

.invitation-action a {
    min-width: 190px;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    color: #4e3a04;
    background: linear-gradient(135deg, #fff9dd 0%, #efd779 100%);
    border: 1px solid rgba(255, 248, 210, 0.85);
    border-radius: 15px;
    box-shadow: 0 11px 24px rgba(0, 37, 24, 0.24);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invitation-action a:hover,
.invitation-action a:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 29px rgba(0, 37, 24, 0.30);
    outline: none;
}

.invitation-action small {
    display: block;
    margin-top: 3px;
    color: #76601e;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .invitation-spotlight {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 17px;
        padding: 20px;
    }

    .invitation-visual {
        width: 66px;
        height: 66px;
        border-radius: 17px;
    }

    .invitation-document {
        width: 35px;
        height: 43px;
        padding-top: 14px;
    }

    .invitation-document span {
        width: 21px;
        height: 2px;
        margin-bottom: 5px;
    }

    .invitation-copy h2 {
        font-size: 21px;
    }

    .invitation-action {
        grid-column: 1 / -1;
    }

    .invitation-action a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 500px) {
    .invitation-spotlight {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .invitation-visual {
        margin: 0 auto;
    }

    .invitation-copy p {
        font-size: 13px;
    }
}



/* =========================================================
   ACSP SCHOOL IDENTITY — WHITE & RED
   The school plaque is intentionally prominent inside the
   green ESG hero, while preserving the sustainability theme.
   ========================================================= */

.site-header {
    border-bottom: 0;
}

.site-header:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 6px;
    background: linear-gradient(to bottom, #a70f2d 0%, #d31f3f 34%, #ffffff 34%, #ffffff 66%, #d31f3f 66%, #a70f2d 100%);
    box-shadow: 0 2px 8px rgba(117, 7, 30, 0.16);
}

.hero-copy {
    position: relative;
}

.hero-school-mark {
    position: relative;
    width: 100%;
    max-width: 690px;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 21px;
    padding: 16px 24px 17px 20px;
    overflow: hidden;
    color: #18362e;
    background: linear-gradient(105deg, #ffffff 0%, #ffffff 73%, #fff7f8 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 9px solid #b51634;
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(4, 46, 32, 0.28), inset 0 0 0 1px rgba(164, 16, 45, 0.08);
}

.hero-school-mark:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 115px;
    height: 100%;
    opacity: 0.95;
    background:
        linear-gradient(135deg, transparent 0 34%, rgba(181, 22, 52, 0.08) 34% 49%, transparent 49% 100%),
        linear-gradient(135deg, transparent 0 56%, rgba(181, 22, 52, 0.12) 56% 68%, transparent 68% 100%);
    pointer-events: none;
}

.hero-school-mark:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, #9d0e2a 0%, #d42142 36%, #ffffff 36%, #ffffff 51%, #d42142 51%, #9d0e2a 100%);
}

.hero-school-logo-wrap {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #ead1d7;
    border-radius: 50%;
    box-shadow: 0 9px 22px rgba(104, 14, 36, 0.16);
}

.hero-school-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.hero-school-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-school-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 6px;
    padding: 4px 10px;
    color: #ffffff;
    background: #b51634;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    box-shadow: 0 5px 12px rgba(181, 22, 52, 0.18);
}

.hero-school-name-th {
    display: block;
    color: #143e31;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.24;
}


.hero-school-event-prefix {
    color: #b51634;
    font-weight: 900;
}

.hero-school-name-en {
    display: block;
    margin-top: 4px;
    color: #a71330;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.085em;
}

@media (max-width: 760px) {
    .hero-school-mark {
        max-width: none;
        min-height: 0;
        gap: 14px;
        padding: 14px 17px 16px 14px;
        border-left-width: 7px;
        border-radius: 17px;
    }

    .hero-school-logo-wrap {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .hero-school-name-th {
        font-size: 20px;
    }

    .hero-school-name-en {
        font-size: 10px;
    }
}

@media (max-width: 500px) {
    .hero-school-mark {
        align-items: flex-start;
    }

    .hero-school-logo-wrap {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .hero-school-badge {
        min-height: 23px;
        padding: 4px 8px;
        font-size: 9px;
        letter-spacing: 0.07em;
    }

    .hero-school-name-th {
        font-size: 17px;
    }

    .hero-school-name-en {
        font-size: 9px;
        letter-spacing: 0.045em;
    }
}


/* Build marker: ACSP-ESG-CSS-V5-20260721 */

/* =========================================================
   Registration / pre-event page additions - Theme V7
   ========================================================= */

.registration-intro {
    margin-bottom: 16px;
}

.phase-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.phase-badge span {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
}

.phase-badge.open {
    color: #0f6847;
    background: #e5f7ea;
    border: 1px solid #c7e9d0;
}

.phase-badge.open span {
    background: #27a361;
    box-shadow: 0 0 0 5px rgba(39, 163, 97, 0.12);
}

.phase-badge.closed {
    color: #8d2435;
    background: #fff0f2;
    border: 1px solid #f2ccd2;
}

.phase-badge.closed span {
    background: #c91f3b;
    box-shadow: 0 0 0 5px rgba(201, 31, 59, 0.1);
}

.notice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    color: #38564c;
    background: #fffdf5;
    border: 1px solid #eee2b8;
    border-left: 5px solid #c91f3b;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(74, 67, 24, 0.07);
}

.notice-card strong {
    color: #8f2636;
    font-size: 14px;
    white-space: nowrap;
}

.notice-card span {
    color: #65746f;
    font-size: 14px;
}

.registration-card .competition-meta {
    margin-bottom: 15px;
}

.meta-item.meta-wide {
    grid-column: 1 / -1;
}

.capacity-box {
    margin-top: auto;
    margin-bottom: 16px;
    padding: 14px 15px;
    color: #31564a;
    background: #edf7f0;
    border: 1px solid #d4eadb;
    border-radius: 15px;
}

.capacity-box.full {
    color: #86293a;
    background: #fff1f3;
    border-color: #efcdd3;
}

.capacity-box.unlimited {
    color: #31546a;
    background: #eef6fa;
    border-color: #d4e5ee;
}

.capacity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
    font-size: 13px;
}

.capacity-head span {
    color: #71837c;
    font-weight: 700;
}

.capacity-head strong {
    color: inherit;
    font-size: 14px;
}

.capacity-track {
    height: 8px;
    overflow: hidden;
    background: rgba(23, 107, 77, 0.12);
    border-radius: 999px;
}

.capacity-track span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #2a9568, #7bc77f);
    border-radius: inherit;
}

.capacity-box.full .capacity-track {
    background: rgba(201, 31, 59, 0.12);
}

.capacity-box.full .capacity-track span {
    background: linear-gradient(90deg, #b71935, #e35c70);
}

.capacity-detail {
    margin-top: 8px;
    color: #71817b;
    font-size: 12px;
}

.registration-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-button.criteria {
    color: #5f4b05;
    background: #f8e9a9;
    border-color: #ead47a;
}

.action-button.criteria:hover,
.action-button.criteria:focus {
    color: #503e00;
    background: #f2dc82;
}

.action-button.register {
    color: #ffffff;
    background: #c91f3b;
    border-color: #c91f3b;
    box-shadow: 0 9px 18px rgba(201, 31, 59, 0.16);
}

.action-button.register:hover,
.action-button.register:focus {
    color: #ffffff;
    background: #aa142e;
    border-color: #aa142e;
}

.action-button.summary {
    color: #17566d;
    background: #e8f4f8;
    border-color: #cfe5ee;
}

.action-button.summary:hover,
.action-button.summary:focus {
    color: #0d465a;
    background: #d8ecf3;
}

.action-button.full {
    color: #ffffff;
    background: #b91d38;
    border-color: #b91d38;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .notice-card {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .notice-card strong {
        white-space: normal;
    }

    .registration-actions {
        grid-template-columns: 1fr;
    }
}