* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.site-header {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
}

.logo,
.flag {
    max-height: 100px;
    display: block;
    border-radius: 5px;
}

.logo-hero {
    height: 400px;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: "Share Tech Mono", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.party-name-kh {
    font-size: 2.5rem;
    font-family: "Orbitron", sans-serif;
    margin: 0 0 5px 0;
    letter-spacing: 2.5px;
    text-align: center;
    font-weight: bold;
}
.party-name-en {
    font-family: "Share Tech Mono", sans-serif;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ddd;
}

.about-section {
    width: 100%;
    max-width: 90%;
    height: 100vh;
    box-sizing: border-box;
    font-family: "Atkinson Hyperlegible", sans-serif;
    display: flex;
    flex-direction: column;
    margin: 8em auto;
}

.about-title,
.about-box,
.constitution-box {
    filter: blur(20px);
    opacity: 0.6;
    transition:
        filter 1.2s ease,
        opacity 1.2s ease;
}

.about-title.visible,
.about-box.visible,
.constitution-box.visible {
    filter: blur(0);
    opacity: 1;
}

.about-title {
    font-size: 8rem;
    margin: 0;
    padding-bottom: 1.5em;
    align-self: flex-start;
    max-width: 80%;
    color: #eee;
    text-align: left;
}

.about-title span {
    display: table !important;
    width: 100%;
}

.about-box {
    align-self: flex-end;
    max-width: 60%;
    margin-top: 15px;
    text-align: justify;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #eee;
}

.about-box h2,
.about-box h3 {
    color: #eee;
    font-weight: 700;
}

@media (max-width: 768px) {
    .about-section {
        height: 100vh;
        margin: 0 auto;
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .about-title {
        font-size: 3rem;
        max-width: 100%;
        align-self: center;
        text-align: center;
        padding-bottom: 20px;
    }
    .about-box {
        max-width: 90%;
        align-self: center;
        text-align: center;
        margin-top: 0;
        font-size: 1.2rem;
        text-align: justify;
    }
}

.constitution-section {
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
    font-family: "Atkinson Hyperlegible", sans-serif;
    display: flex;
    flex-direction: column;
    margin: 8em auto;
}
.constitution-box {
    font-family: "EB Garamond", Times, serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    color: #ddd;
    border-bottom: 1px solid #444;
}

.constitution-box summary {
    list-style: none;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.constitution-box summary::-webkit-details-marker {
    display: none;
}

.constitution-box h2 {
    text-align: center;
    font-size: 1.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.constitution-box summary::after {
    content: "►";
    font-size: 0.8em;
    color: #888;
    transition: transform 0.2s ease;
}

.constitution-box[open] summary::after {
    transform: rotate(90deg);
}

.constitution-box[open] summary {
    margin-bottom: 25px;
}

.clause {
    display: grid;
    grid-template-columns: 2em 1fr;
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.clause-num {
    font-weight: bold;
}

.sub-clause-list {
    list-style-type: none;
    padding-left: 2em;
    margin: 10px 0 15px 0;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.sub-clause-list li {
    display: grid;
    grid-template-columns: 1.5em 1fr;
    text-align: justify;
    margin-bottom: 8px;
}
.sub-num {
    font-weight: bold;
}
.case-studies-section {
    width: 100%;
    max-width: 800px;
    margin: 40px 0;
    padding: 0 15px;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}
.carousel-container {
    width: 100%;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}
.case-card {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.case-card:not(.active) .details-box {
    display: none;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}
.info-group {
    border-bottom: 1px solid #1c2541;
    padding-bottom: 5px;
}
.label {
    font-size: 0.8rem;
    color: #48cae4;
    margin-right: 5px;
}
.value {
    font-size: 0.95rem;
}
.details-box {
    margin-top: 15px;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    font-family: "Atkinson Hyperlegible", sans-serif;
}

.details-box h2,
.details-box h3 {
    color: #fff;
    font-weight: 700;
}
.details-box hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}
.details-box ul {
    padding-left: 20px;
    margin-bottom: 25px;
}
.details-box li {
    margin-bottom: 10px;
}
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #3a506b;
}
.carousel-counter {
    color: #48cae4;
    font-size: 1rem;
}
.carousel-btn {
    background: none;
    border: none;
    color: #48cae4;
    font-size: 1rem;
    cursor: pointer;
}
mark,
mark.blue-highlight,
mark.black-highlight,
mark.yellow-highlight {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    color: #ffffff;
    display: inline-block;
    background-color: #0b132b;
    background-size: 0% 100%;
    background-repeat: no-repeat;
}
mark {
    background-image: linear-gradient(#d60000, #d60000);
}
mark.blue-highlight {
    background-image: linear-gradient(#0a3161, #0a3161);
}
mark.republican-red-highlight {
    background-image: linear-gradient(#e81b23, #e81b23);
}
mark.black-highlight {
    background-image: linear-gradient(#111111, #111111);
    box-shadow: inset 0 0 0 1px #333333;
}
mark.white-highlight {
    background-image: linear-gradient(#fff, #fff);
}
mark.yellow-highlight {
    background-image: linear-gradient(#ffb703, #ffb703);
}
mark.is-visible {
    animation: markerSwipe 0.7s linear forwards;
}
mark.white-highlight.is-visible,
mark.yellow-highlight.is-visible {
    animation:
        markerSwipe 0.7s linear forwards,
        textDarken 0.7s linear forwards;
}
@keyframes markerSwipe {
    from {
        background-size: 0% 100%;
    }
    to {
        background-size: 100% 100%;
    }
}
@keyframes textDarken {
    from {
        color: #ffffff;
    }
    to {
        color: #000000;
    }
}
.mobile-break {
    display: none;
}
@media (max-width: 768px) {
    .logo-hero {
        height: 200px;
    }
    .mobile-break {
        display: inline;
    }
}
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    font-family: sans-serif;
    border-top: 1px solid #e9ecef;
    text-align: center;
}
.copyright {
    margin: 0;
    color: #eee;
    font-size: 14px;
}
.social-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.social-links a {
    color: #eee;
    text-decoration: none;
    font-size: 28px;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    color: #0d6efd;
    transform: scale(1.15);
}
ol li {
    list-style-type: decimal;
    margin-bottom: 1em;
}
