/* ==================== Competition Rules Page v5 ==================== */

/* Nav overrides for rules page (white background by default) */
body.rules-layout .nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.rules-layout .nav-logo {
    color: #1a1a1a;
}

body.rules-layout .nav-links a {
    color: #1a1a1a;
}

body.rules-layout .nav-links a::after {
    background-color: #274B92;
}

body.rules-layout .nav-links a:hover {
    color: #274B92;
}

body.rules-layout .nav.scrolled .nav-logo {
    color: #1a1a1a;
}

body.rules-layout .nav-lang {
    color: #1a1a1a;
}

body.rules-layout .nav-lang:hover {
    color: #274B92;
}

body.rules-layout .nav-links::before {
    background: rgba(39, 75, 146, 0.15);
}

/* Override style.css white is-active on white nav */
body.rules-layout .nav-links a.is-active {
    color: #274B92;
}

body.rules-layout .nav-links a.is-active::after {
    width: 100%;
    background-color: #274B92;
}

body.rules-layout .nav.scrolled .nav-links a.is-active {
    color: #274B92;
}

body.rules-layout .nav.scrolled .nav-links a.is-active::after {
    background-color: #274B92;
}

/* Hero */
.rules-hero {
    position: relative;
    min-height: 560px;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    background: #fff;
    color: #1a1a1a;
    border-bottom: 1px solid #eaf0f8;
}

.rules-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.rules-hero-panel {
    position: relative;
    z-index: 1;
}

.rules-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fac10c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rules-hero-kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(250, 193, 12, 0.8);
}

.rules-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 18px;
}

.rules-hero-title span {
    color: #274B92;
}

.rules-hero-desc {
    max-width: 520px;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 28px;
}

.rules-hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.rules-hero-stat {
    display: flex;
    flex-direction: column;
}

.rules-hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #274B92;
    line-height: 1;
}

.rules-hero-stat-label {
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
}

.rules-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rules-hero-media {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.rules-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-highlight {
    background: #FAC10C;
    color: #16233C;
    border-color: #FAC10C;
    box-shadow: 0 4px 15px rgba(250, 193, 12, 0.25);
}

.btn-highlight:hover {
    background: #f1b700;
    border-color: #f1b700;
    color: #16233C;
    box-shadow: 0 6px 20px rgba(250, 193, 12, 0.4);
    transform: translateY(-2px);
}

/* Project stage */
.rules-project-stage {
    position: relative;
    overflow: hidden;
    background: #f4f7fc;
}

.rules-project-stage::before {
    content: '';
    position: absolute;
    top: 52px;
    right: -108px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(39, 75, 146, 0.08);
    transform: rotate(45deg);
    opacity: 0.5;
}

.rules-project-stage .container {
    position: relative;
    z-index: 1;
}

.rules-project-stage-head-magazine {
    display: grid;
    justify-items: center;
    margin-bottom: 32px;
}

.rules-project-stage-copy {
    display: grid;
    justify-items: center;
    width: 100%;
}

.rules-project-stage-head-magazine .section-title {
    margin-bottom: 16px;
    font-size: clamp(1.96rem, 3vw, 2.42rem);
    text-align: center;
}

.rules-project-magazine-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.rules-project-sidebar {
    display: grid;
    gap: 14px;
}

.rules-project-tabs {
    display: grid;
    gap: 12px;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

.rules-project-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 14px;
    font-size: 0.84rem;
    text-align: left;
    border: 1px solid #c6d7f0;
    background: #fff;
    color: #274b92;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rules-project-tab-label {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.rules-project-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid currentColor;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.rules-project-tab.active {
    background: #274B92;
    border-color: #274B92;
    color: #fff;
}

.rules-project-tab.active .rules-project-tab-count {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.rules-project-sidebar-links {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.rules-project-magazine-grid-side {
    display: grid;
    gap: 16px;
}

.rules-project-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rules-project-more-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.rules-project-more-button {
    appearance: none;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 18px 0 20px;
    border: 1px solid #c7d8ef;
    background: #fff;
    color: #274B92;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.rules-project-more-button:hover {
    transform: translateY(-2px);
    border-color: #abc1e1;
    box-shadow: 0 12px 24px rgba(18, 42, 77, 0.08);
    color: #274b92;
}

.rules-project-more-button-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rules-project-more-button-label::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rules-project-more-button:hover .rules-project-more-button-label::after {
    transform: translateX(2px) rotate(45deg);
}

.rules-project-more-button.is-expanded .rules-project-more-button-label::after {
    transform: rotate(-45deg);
}

.rules-project-more-button.is-expanded:hover .rules-project-more-button-label::after {
    transform: translateY(-2px) rotate(-45deg);
}

.rules-project-more-button-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(22, 51, 97, 0.14);
    background: #f4f8fd;
    color: #274b92;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.rules-project-event {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dce7f6;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 100%;
    background: #fff;
    border-color: #d9e2ef;
}

.rules-project-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #274b92;
    transform: scaleX(1);
    opacity: 0.42;
    transition: transform 0.25s ease;
}

.rules-project-event:hover {
    transform: translateY(-6px);
    border-color: #b5c8e4;
    box-shadow: 0 14px 34px rgba(17, 31, 57, 0.12);
}

.rules-project-event:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.rules-project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef3fb;
    border-bottom: 1px solid #e6edf7;
}

.rules-project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 23, 48, 0.02) 0%, rgba(10, 23, 48, 0.18) 100%);
}

.rules-project-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
    filter: grayscale(0.02) saturate(0.98) contrast(1.03) brightness(0.95);
}

.rules-project-event:hover .rules-project-image img {
    transform: scale(1.04);
    filter: grayscale(0) saturate(1.02) contrast(1.03) brightness(0.98);
}

.rules-project-title-overlay {
    display: none;
}

.rules-project-index {
    position: absolute;
    top: 14px;
    bottom: auto;
    left: 16px;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 51, 97, 0.12);
    color: #274B92;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: none;
}

.rules-project-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
}

.rules-project-name {
    order: 1;
    min-height: 0;
    color: #274B92;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: 0.01em;
    height: 2.68em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rules-project-groups {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rules-project-magazine-grid .rules-project-groups span {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #d9e2ef;
    background: #f8fafd;
    color: #556983;
    font-size: 0.68rem;
    font-weight: 700;
}

.rules-project-link {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    margin-top: auto;
    padding: 14px 0 0;
    border: none;
    border-top: 1px solid #e6edf7;
    background: transparent;
    color: #274B92;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.rules-project-link::after {
    content: '→';
    font-size: 1rem;
    line-height: 1;
}

.rules-project-link:hover {
    background: transparent;
    border-color: #cfdbed;
    color: #274b92;
}

.rules-project-info-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid #bcd1ef;
    background: #fff;
    color: #274b92;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.rules-project-info-bar-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rules-project-info-bar-link:hover {
    background: #274b92;
    border-color: #274b92;
    color: #fff;
}

.rules-project-info-bar-link:hover::after {
    transform: translateX(2px) rotate(45deg);
}

/* Showcase */
.rules-showcase {
    background: #fff;
}

.rules-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
}

.rules-showcase-feature {
    position: relative;
    display: block;
    min-height: 468px;
    overflow: hidden;
    border: 1px solid #d4e0f1;
    background: #dce6f5;
    color: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rules-showcase-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 42, 0.02) 0%, rgba(8, 20, 42, 0.06) 44%, rgba(8, 20, 42, 0.54) 68%, rgba(8, 20, 42, 0.86) 100%);
    pointer-events: none;
}

.rules-showcase-feature-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #dce6f5;
}

.rules-showcase-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.03) contrast(1.02) brightness(0.92);
    transition: transform 0.35s ease;
}

.rules-showcase-feature:hover img {
    transform: scale(1.03);
}

.rules-showcase-feature-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    min-height: 0;
    padding: 132px 30px 28px;
    background: linear-gradient(180deg, rgba(8, 20, 42, 0) 0%, rgba(8, 20, 42, 0.78) 42%, rgba(8, 20, 42, 0.96) 100%);
}

.rules-showcase-source {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fac10c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.rules-showcase-feature h3 {
    max-width: 100%;
    font-size: 1.56rem;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 8px 24px rgba(8, 20, 42, 0.26);
}

.rules-showcase-feature:hover {
    transform: translateY(-4px);
    border-color: #b7cce8;
    box-shadow: 0 14px 34px rgba(17, 31, 57, 0.12);
}

.rules-showcase-side {
    display: grid;
    gap: 16px;
}

.rules-showcase-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 164px;
    overflow: hidden;
    border: 1px solid #d4e0f1;
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rules-showcase-card:hover {
    transform: translateY(-4px);
    border-color: #b7cce8;
    box-shadow: 0 16px 28px rgba(18, 42, 77, 0.07);
}

.rules-showcase-card-media {
    position: relative;
    overflow: hidden;
    background: #dce6f5;
}

.rules-showcase-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.01) brightness(1.02);
    transition: transform 0.45s ease;
}

.rules-showcase-card:hover .rules-showcase-card-media img {
    transform: scale(1.04);
}

.rules-showcase-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 18px;
    min-width: 0;
}

.rules-showcase-card-body h3 {
    color: #274B92;
    font-size: 1.02rem;
    line-height: 1.4;
    font-weight: 700;
}

.rules-showcase-card-copy {
    display: grid;
    gap: 10px;
}

.rules-showcase-card .rules-showcase-source {
    color: #274b92;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
}

.rules-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2eaf5;
}

.rules-showcase-date {
    color: #6b7f98;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.rules-showcase-feature .rules-showcase-footer {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.rules-showcase-feature .rules-showcase-date {
    color: rgba(255, 255, 255, 0.82);
}

.rules-showcase-feature .rules-showcase-link {
    color: #fff;
}

.rules-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #274b92;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.rules-showcase-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rules-showcase-feature:hover .rules-showcase-link::after,
.rules-showcase-card:hover .rules-showcase-link::after {
    transform: translateX(2px) rotate(45deg);
}

/* Process stage */
.rules-process-stage {
    position: relative;
    overflow: hidden;
    background: #f4f7fc;
}

.rules-process-header {
    margin-bottom: 36px;
    text-align: center;
}

.rules-process-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: flex-start;
}

.rules-process-visual {
    margin: 0;
    display: block;
    min-width: 0;
}

.rules-process-visual-media {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    background: #dce6f5;
    overflow: hidden;
    box-shadow: 0 18px 52px rgba(15, 33, 69, 0.14);
}

.rules-process-visual-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 42, 0.06) 0%, rgba(8, 20, 42, 0.04) 52%, rgba(8, 20, 42, 0.22) 100%);
    pointer-events: none;
}

.rules-process-visual-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.06) brightness(1.06);
    transition: transform 0.45s ease;
}

.rules-process-visual:hover .rules-process-visual-media img {
    transform: scale(1.02);
}

.rules-process-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #274b92;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rules-process-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fac10c;
}

.rules-process-panel {
    display: grid;
    border: none;
    background: transparent;
    overflow: visible;
    align-content: start;
    min-width: 0;
}

.rules-process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.rules-process-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: background-color 0.18s ease;
}

.rules-process-step:first-child {
    padding-top: 0;
}

.rules-process-step-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 75, 146, 0.12);
    color: #274b92;
}

.rules-process-step-icon svg {
    width: 22px;
    height: 22px;
}

.rules-process-step-icon.is-signup {
    background: rgba(250, 193, 12, 0.18);
    color: #5a4500;
}

.rules-process-step-icon.is-docs {
    background: rgba(39, 75, 146, 0.12);
    color: #274b92;
}

.rules-process-step-icon.is-prepare {
    background: rgba(39, 75, 146, 0.08);
    color: #274B92;
}

.rules-process-step-icon.is-compete {
    background: rgba(250, 193, 12, 0.14);
    color: #274b92;
}

.rules-process-step:hover .rules-process-step-icon {
    background: rgba(39, 75, 146, 0.16);
}

.rules-process-step:hover .rules-process-step-icon.is-signup,
.rules-process-step:hover .rules-process-step-icon.is-compete {
    background: rgba(250, 193, 12, 0.22);
}

.rules-process-step-body {
    display: grid;
    gap: 8px;
    padding-top: 0;
}

.rules-process-step-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rules-process-step-no {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    background: rgba(39, 75, 146, 0.08);
    color: rgba(39, 75, 146, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.rules-process-step-body h4 {
    color: #274B92;
    font-size: 1.08rem;
    line-height: 1.4;
    font-weight: 700;
}

.rules-process-step-body p {
    color: #536480;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 540px;
}

/* Attention */
.rules-attention-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: flex-start;
}

.rules-attention-visual {
    position: relative;
    margin: 0;
    min-height: 480px;
}

.rules-attention-visual-media {
    position: absolute;
    inset: 0;
    background: #f0f4f8;
    overflow: hidden;
}

.rules-attention-visual-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rules-attention-visual:hover .rules-attention-visual-media img {
    transform: scale(1.05);
}

.rules-attention-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rules-attention-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.rules-attention-item {
    padding: 16px 16px 20px 0;
    border-bottom: 1px solid #edf2f8;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    background: transparent;
}

.rules-attention-item:first-child {
    padding-top: 0;
}

.rules-attention-item:last-child {
    border-bottom: none;
}

.rules-attention-item > * {
    transition: transform 0.3s ease;
}

.rules-attention-item:hover {
    background: linear-gradient(90deg, rgba(39, 75, 146, 0.03) 0%, rgba(39, 75, 146, 0) 100%);
    border-bottom-color: #d8e2f0;
}

.rules-attention-item:hover > * {
    transform: translateX(4px);
}

.rules-attention-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #274B92;
    line-height: 1;
    font-family: 'Noto Sans SC', sans-serif;
    transition: color 0.3s ease;
    min-width: 48px;
    margin-top: 2px;
}

.rules-attention-item:hover .rules-attention-num {
    color: #274B92;
}

.rules-attention-item p {
    color: #1A1A1A;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

.rules-attention-item:hover p {
    color: #274B92;
}

/* Safety */
.rules-safety-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: flex-start;
}

.rules-safety-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rules-safety-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rules-safety-item {
    display: flex;
    gap: 24px;
    padding: 20px 16px 20px 0;
    border-bottom: 1px solid #edf2f8;
    transition: all 0.3s ease;
    background: transparent;
}

.rules-safety-item:first-child {
    padding-top: 0;
}

.rules-safety-item:last-child {
    border-bottom: none;
}

.rules-safety-item > * {
    transition: transform 0.3s ease;
}

.rules-safety-item:hover {
    background: linear-gradient(90deg, rgba(39, 75, 146, 0.03) 0%, rgba(39, 75, 146, 0) 100%);
    border-bottom-color: #d8e2f0;
}

.rules-safety-item:hover > * {
    transform: translateX(12px);
}

.rules-safety-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: rgba(39, 75, 146, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.rules-safety-icon svg {
    width: 28px;
    height: 28px;
}

.rules-safety-item:hover .rules-safety-icon {
    color: #274B92;
}

.rules-safety-content {
    flex: 1;
}

.rules-safety-content h3 {
    font-size: 1.1rem;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.rules-safety-item:hover .rules-safety-content h3 {
    color: #274B92;
}

.rules-safety-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-safety-content ul li {
    position: relative;
    padding-left: 14px;
    font-size: 0.95rem;
    color: #4F5D78;
    line-height: 1.6;
}

.rules-safety-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 4px;
    height: 4px;
    background: #274B92;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.rules-safety-item:hover .rules-safety-content ul li::before {
    opacity: 1;
}

.rules-safety-visual {
    margin: 0;
    position: relative;
    min-height: 480px;
}

.rules-safety-visual-media {
    position: absolute;
    inset: 0;
    background: #f0f4f8;
    overflow: hidden;
}

.rules-safety-visual-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rules-safety-visual:hover .rules-safety-visual-media img {
    transform: scale(1.05);
}

/* Safety section background override */
#rule-safety.section-gray {
    background: #f4f7fc;
}

/* CTA override for rules page */
body.rules-layout .cta {
    padding: 88px 0;
    background: #274b92;
    color: #fff;
}

body.rules-layout .cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

body.rules-layout .cta-subtitle {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.9;
}

body.rules-layout .cta .btn-primary {
    background: #FAC10C;
    border-color: #FAC10C;
    color: #1A1A1A;
}

body.rules-layout .cta .btn-primary:hover {
    background: #e0ab00;
    border-color: #e0ab00;
    color: #1A1A1A;
}

body.rules-layout .detail-footer .btn-outline-primary {
    border: 1.5px solid #274B92;
    color: #274B92;
    background: transparent;
    border-radius: 0;
}

body.rules-layout .detail-footer .btn-outline-primary:hover {
    background: #274B92;
    color: #fff;
}

/* Responsive */
@media (min-width: 1025px) {
    .rules-process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }
}

@media (max-width: 1280px) {
    .nav-logo { gap: 12px; }
    .nav-logo img { height: 40px; }
    .nav-links { gap: 28px; }
    .nav-links::before { margin: 0 16px; }
    .nav-actions { gap: 12px; margin-left: 12px; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .nav-actions { display: none; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        padding: 12px 18px 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        list-style: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }
    .nav.is-open .nav-links {
        display: flex;
    }
    .nav-links::before {
        display: none;
    }
    .nav-links a {
        padding: 8px 0;
        color: #1a1a1a;
    }
    body.rules-layout .nav-links a {
        color: #1a1a1a;
    }
    .rules-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .rules-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .rules-hero-media {
        aspect-ratio: 16 / 10;
        order: -1;
    }
    .rules-showcase-grid { grid-template-columns: 1fr; }
    .rules-showcase-feature { min-height: 420px; }
    .rules-showcase-feature-body { padding-top: 112px; }
    .rules-showcase-feature h3 { font-size: 1.32rem; }
    .rules-showcase-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .rules-showcase-card-media {
        aspect-ratio: 16 / 10;
    }
    .rules-showcase-footer {
        align-items: flex-end;
    }
    .rules-project-magazine-body { grid-template-columns: 1fr; }
    .rules-project-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-project-sidebar-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-project-magazine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-process-layout {
        grid-template-columns: 1fr;
    }
    .rules-process-visual-media { height: auto; aspect-ratio: 16 / 10; }
    .rules-attention-stage {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .rules-attention-visual { height: auto; order: -1; }
    .rules-attention-visual-media {
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .rules-attention-panel {
        padding-top: 0;
        height: auto;
    }
    .rules-safety-stage {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .rules-safety-visual {
        height: auto;
    }
    .rules-safety-visual-media {
        height: auto;
        aspect-ratio: 21 / 9;
    }
}

@media (max-width: 768px) {
    .rules-hero-title { font-size: 2rem; }
    .rules-hero-stats { gap: 32px; }
    .rules-hero-actions,
    .cta-buttons { flex-direction: column; }
    .rules-project-stage::before {
        display: none;
    }
    .rules-showcase-feature-body {
        padding: 96px 18px 20px;
    }
    .rules-project-stage-head-magazine {
        margin-bottom: 20px;
    }
    .rules-project-stage-head-magazine .section-title { font-size: 1.72rem; }
    .rules-project-magazine-grid { grid-template-columns: 1fr; }
    .rules-project-tabs { grid-template-columns: 1fr; }
    .rules-project-tab {
        padding: 0 14px;
        min-height: 52px;
    }
    .rules-project-sidebar-links { grid-template-columns: 1fr; }
    .rules-project-image {
        width: 100%;
        aspect-ratio: 16 / 10;
        border-right: none;
        border-bottom: 1px solid #e3ebf8;
    }
    .rules-process-layout { gap: 22px; }
    .rules-process-step {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 14px;
    }
    .rules-process-step-icon { width: 40px; height: 40px; }
    .rules-process-step-title { gap: 8px; }
    .rules-process-step-no { padding: 0 7px; font-size: 0.78rem; }
    .rules-attention-stage { gap: 24px; }
    .rules-attention-item {
        padding: 16px 0;
        gap: 16px;
    }
    .rules-attention-num {
        font-size: 1.5rem;
        min-width: 40px;
    }
    .rules-attention-item:hover {
        background: transparent;
    }
    .rules-attention-item:hover > * {
        transform: none;
    }
    .rules-attention-item p {
        font-size: 0.95rem;
        line-height: 1.68;
        max-width: 100%;
    }
    .rules-safety-stage {
        gap: 20px;
    }
    .rules-safety-item {
        padding: 16px 0;
        gap: 16px;
    }
    .rules-safety-item:hover {
        background: transparent;
    }
    .rules-safety-item:hover > * {
        transform: none;
    }
    .rules-safety-visual-media {
        aspect-ratio: 16 / 9;
    }
    body.rules-layout .cta {
        padding: 64px 0;
    }
    body.rules-layout .cta-title {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rules-showcase-feature,
    .rules-showcase-card,
    .rules-showcase-card-media img,
    .rules-project-event,
    .rules-project-image img,
    .rules-attention-item > *,
    .rules-safety-item > *,
    .rules-process-visual-media img,
    .rules-attention-visual-media img,
    .rules-safety-visual-media img,
    .rules-project-more-button,
    .nav-logo img {
        transition: none !important;
        transform: none !important;
    }
}
