/* ================================================================
   ENGELSİZ BİLİŞİM ÖDÜLLERİ
   Public site styles
   ================================================================ */

:root {
    --color-page: #ffffff;
    --color-surface: #ffffff;
    --color-surface-soft: #f5f6f8;
    --color-surface-warm: #faf8f3;

    --color-text: #20242d;
    --color-text-soft: #626875;
    --color-text-light: #aeb4c0;

    --color-primary: #e8433f;
    --color-primary-dark: #bd2e2b;
    --color-primary-soft: #fff0ef;

    --color-navy: #101722;
    --color-navy-light: #192333;
    --color-navy-soft: #263246;

    --color-gold: #d9a63b;
    --color-gold-light: #f7d980;

    --color-border: #e2e5ea;
    --color-border-dark: rgba(255, 255, 255, 0.14);

    --color-success: #18794e;

    --container-width: 1180px;
    --container-padding: 24px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;

    --shadow-small:
        0 8px 25px rgba(19, 27, 40, 0.07);

    --shadow-medium:
        0 18px 50px rgba(19, 27, 40, 0.12);

    --shadow-large:
        0 30px 80px rgba(9, 14, 23, 0.2);

    --transition:
        180ms ease;
}


/* ================================================================
   RESET
   ================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-page);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #ffffff;
    background: var(--color-primary);
}


/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 11px 16px;
    border-radius: var(--radius-small);
    color: #ffffff;
    background: #000000;
    font-weight: 750;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--color-gold-light);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ================================================================
   LAYOUT
   ================================================================ */

.site-container {
    width: min(
        var(--container-width),
        calc(100% - (var(--container-padding) * 2))
    );
    margin-inline: auto;
}





/* ================================================================
   SHARED BUTTONS
   ================================================================ */

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

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

.button-primary {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 10px 28px rgba(232, 67, 63, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: #ffffff;
    background: var(--color-primary-dark);
    box-shadow: 0 14px 34px rgba(232, 67, 63, 0.32);
}

.button-secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--color-navy);
    background: #ffffff;
    border-color: #ffffff;
}

.button-outline-dark {
    color: var(--color-navy);
    background: transparent;
    border-color: var(--color-navy);
}

.button-outline-dark:hover,
.button-outline-dark:focus-visible {
    color: #ffffff;
    background: var(--color-navy);
}

.button-light {
    color: var(--color-navy);
    background: #ffffff;
    border-color: #ffffff;
}

.button-light:hover,
.button-light:focus-visible {
    color: #ffffff;
    background: transparent;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 800;
    text-decoration: none;
    transition:
        color var(--transition),
        gap var(--transition);
}

.text-button span {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.text-button:hover,
.text-button:focus-visible {
    gap: 14px;
    color: var(--color-primary);
}


/* ================================================================
   SHARED TYPOGRAPHY
   ================================================================ */

.section-eyebrow,
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.section-eyebrow::before,
.home-eyebrow::before {
    width: 40px;
    height: 2px;
    flex: 0 0 40px;
    background: currentColor;
    content: "";
}


/* ================================================================
   HERO
   ================================================================ */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 28%,
            rgba(217, 166, 59, 0.17),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(232, 67, 63, 0.15),
            transparent 34%
        ),
        linear-gradient(
            122deg,
            #0d131d 0%,
            #151d29 54%,
            #0c1119 100%
        );
}

.home-hero::before {
    position: absolute;
    right: -20%;
    bottom: -68%;
    z-index: -1;
    width: 110%;
    height: 105%;
    border: 2px solid rgba(217, 166, 59, 0.35);
    border-radius: 50%;
    content: "";
    transform: rotate(-10deg);
}

.home-hero::after {
    position: absolute;
    top: -75%;
    right: -18%;
    z-index: -1;
    width: 95%;
    height: 115%;
    border: 1px solid rgba(247, 217, 128, 0.14);
    border-radius: 50%;
    content: "";
    transform: rotate(14deg);
}

.home-hero-grid {
    min-height: 590px;
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(420px, 1.05fr);
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    padding-block: 78px;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-eyebrow {
    color: #ff6b65;
}

.home-hero-title {
    max-width: 690px;
    margin: 25px 0 30px;
    font-size: clamp(3.3rem, 6.5vw, 6.2rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.home-hero-title span {
    display: block;
    margin-top: 18px;
    color: var(--color-gold-light);
    line-height: 1;
}

.home-hero-description {
    max-width: 630px;
    margin: 0;
    color: #d0d4dd;
    font-size: clamp(1rem, 1.65vw, 1.17rem);
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.home-period-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.home-period-info-item {
    min-width: 145px;
    display: grid;
    gap: 4px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.home-period-info-item:first-child {
    padding-left: 0;
}

.home-period-info-item:last-child {
    border-right: 0;
}

.home-period-info-item span {
    color: #939aa7;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-period-info-item strong {
    color: #ffffff;
    font-size: 0.96rem;
}

.home-hero-media {
    position: relative;
    z-index: 2;
}

.home-hero-media-link,
.home-hero-media-static,
.home-hero-logo-panel,
.home-hero-placeholder {
    position: relative;
    min-height: 405px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-large);
}

.home-hero-media-link {
    color: #ffffff;
    text-decoration: none;
}

.home-hero-media-link::after,
.home-hero-media-static::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(8, 13, 21, 0.55),
            transparent 55%
        );
    content: "";
    pointer-events: none;
}

.home-hero-media-link img,
.home-hero-media-static img {
    width: 100%;
    height: 100%;
    min-height: 405px;
    object-fit: cover;
    transition: transform 320ms ease;
}

.home-hero-media-link:hover img {
    transform: scale(1.025);
}

.home-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-size: 1.45rem;
    transform: translate(-50%, -50%);
    transition:
        transform var(--transition),
        background var(--transition);
}

.home-hero-media-link:hover .home-video-button,
.home-hero-media-link:focus-visible .home-video-button {
    background: var(--color-primary-dark);
    transform:
        translate(-50%, -50%)
        scale(1.08);
}

.home-hero-logo-panel {
    padding: 55px;
}

.home-hero-logo-panel img {
    width: min(360px, 90%);
    max-height: 230px;
    object-fit: contain;
}

.home-hero-placeholder {
    color: #ffffff;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217, 166, 59, 0.28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--color-navy-light),
            #080d14
        );
    text-align: center;
}

.home-hero-placeholder span {
    color: var(--color-gold-light);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-hero-placeholder strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
}


/* ================================================================
   STATISTICS
   ================================================================ */

.home-statistics {
    padding-block: 67px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.home-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-statistic {
    min-height: 135px;
    display: grid;
    place-content: center;
    padding: 18px 30px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

.home-statistic:last-child {
    border-right: 0;
}

.home-statistic strong {
    display: block;
    color: var(--color-primary);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.home-statistic span {
    display: block;
    margin-top: 13px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}


/* ================================================================
   SHARED HOME SECTIONS
   ================================================================ */

.home-section {
    padding-block: 105px;
}

.home-section-heading {
    max-width: 720px;
    margin-bottom: 54px;
}

.home-section-heading-centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-section-heading-centered .section-eyebrow {
    justify-content: center;
}

.home-section-heading-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
}

.home-section-heading h2,
.home-about-heading h2,
.home-period-media-content h2,
.home-featured-content h2,
.home-closing h2 {
    margin: 18px 0 0;
    color: var(--color-text);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.home-section-heading > p {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--color-text-soft);
    font-size: 1.07rem;
    line-height: 1.8;
}


/* ================================================================
   ABOUT
   ================================================================ */

.home-about {
    background: var(--color-surface-warm);
}

.home-about-grid {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.8fr)
        minmax(0, 1.2fr);
    gap: clamp(55px, 9vw, 130px);
}

.home-about-heading h2 {
    max-width: 520px;
}

.home-about-content {
    padding-top: 7px;
}

.home-about-content p {
    max-width: 720px;
    color: var(--color-text-soft);
    font-size: 1.02rem;
    line-height: 1.9;
}

.home-about-content .home-about-lead {
    margin-top: 0;
    color: var(--color-text);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 650;
    line-height: 1.7;
}

.home-about-content .text-button {
    margin-top: 20px;
}


/* ================================================================
   PERIOD MEDIA
   ================================================================ */

.home-period-media {
    background: #ffffff;
}

.home-period-media-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(420px, 1.15fr);
    align-items: center;
    gap: clamp(55px, 8vw, 110px);
}

.home-period-media-content h2 {
    margin-bottom: 24px;
}

.home-period-media-content > p {
    max-width: 560px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-period-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-period-media-visual {
    min-height: 390px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-medium);
}

.home-period-media-visual > img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.home-period-logo,
.home-period-placeholder {
    width: 100%;
    min-height: 390px;
    display: grid;
    place-items: center;
    padding: 45px;
}

.home-period-logo img {
    width: min(360px, 85%);
    max-height: 230px;
    object-fit: contain;
}

.home-period-placeholder {
    color: #ffffff;
    background: var(--color-navy);
    text-align: center;
}

.home-period-placeholder strong {
    max-width: 500px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
}


/* ================================================================
   PROCESS
   ================================================================ */

.home-process {
    color: #ffffff;
    background: var(--color-navy);
}

.home-process .section-eyebrow {
    color: #ff6b65;
}

.home-process .home-section-heading h2 {
    color: #ffffff;
}

.home-process .home-section-heading > p {
    color: #b4bac5;
}

.home-process-grid {
    border-top: 1px solid var(--color-border-dark);
}

.home-process-item {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 25px;
    padding: 34px 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.home-process-item > span {
    color: var(--color-gold-light);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.home-process-item div {
    display: grid;
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 0.62fr);
    align-items: start;
    gap: 35px;
}

.home-process-item h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.22rem;
}

.home-process-item p {
    max-width: 650px;
    margin: 0;
    color: #aeb5c1;
    line-height: 1.75;
}


/* ================================================================
   CATEGORIES
   ================================================================ */

.home-categories {
    background: var(--color-surface-warm);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-category-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: var(--shadow-small);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.home-category-card:hover {
    border-color: rgba(232, 67, 63, 0.35);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.home-category-card > span {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.home-category-card h3 {
    margin: 65px 0 14px;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1.3;
}

.home-category-card p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.7;
}


/* ================================================================
   FEATURED POST
   ================================================================ */

.home-featured-post {
    background: #ffffff;
}

.home-featured-grid {
    display: grid;
    grid-template-columns:
        minmax(440px, 1.1fr)
        minmax(340px, 0.9fr);
    align-items: center;
    gap: clamp(55px, 8vw, 110px);
}

.home-featured-media {
    min-height: 450px;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--color-navy);
    box-shadow: var(--shadow-medium);
}

.home-featured-media img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 280ms ease;
}

.home-featured-media:hover img {
    transform: scale(1.025);
}

.home-featured-placeholder {
    width: 100%;
    height: 450px;
    display: grid;
    place-items: center;
    color: var(--color-gold-light);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217, 166, 59, 0.24),
            transparent 32%
        ),
        var(--color-navy);
    font-size: 3rem;
    font-weight: 900;
}

.home-post-category {
    margin: 31px 0 11px;
    color: var(--color-primary);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-featured-content h2 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
}

.home-featured-content h2 a {
    text-decoration: none;
}

.home-featured-content h2 a:hover,
.home-featured-content h2 a:focus-visible {
    color: var(--color-primary);
}

.home-featured-content > p:not(.home-post-category) {
    max-width: 580px;
    margin: 0 0 26px;
    color: var(--color-text-soft);
    font-size: 1.04rem;
    line-height: 1.8;
}


/* ================================================================
   LATEST POSTS
   ================================================================ */

.home-latest-posts {
    background: var(--color-surface-soft);
}

.home-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-post-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: #ffffff;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.home-post-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.home-post-card-media {
    height: 225px;
    display: block;
    overflow: hidden;
    color: var(--color-gold-light);
    background: var(--color-navy);
    text-decoration: none;
}

.home-post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.home-post-card:hover .home-post-card-media img {
    transform: scale(1.035);
}

.home-post-card-media > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2.3rem;
    font-weight: 900;
}

.home-post-card-body {
    padding: 24px;
}

.home-post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--color-text-soft);
    font-size: 0.75rem;
}

.home-post-card-meta > span {
    color: var(--color-primary);
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.home-post-card h3 {
    margin: 15px 0 11px;
    color: var(--color-text);
    font-size: 1.24rem;
    line-height: 1.4;
}

.home-post-card h3 a {
    text-decoration: none;
}

.home-post-card h3 a:hover,
.home-post-card h3 a:focus-visible {
    color: var(--color-primary);
}

.home-post-card p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.7;
}


/* ================================================================
   PAST PERIODS
   ================================================================ */

.home-past-periods {
    background: #ffffff;
}

.home-past-period-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-past-period-card {
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    border-radius: var(--radius-medium);
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(232, 67, 63, 0.12),
            transparent
        ),
        var(--color-navy);
}

.home-past-period-card > span {
    max-width: 250px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-past-period-card a {
    flex: 0 0 auto;
    color: var(--color-gold-light);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.home-past-period-card a:hover,
.home-past-period-card a:focus-visible {
    color: #ffffff;
}


/* ================================================================
   CLOSING
   ================================================================ */

.home-closing {
    padding-block: 75px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #d93734,
            var(--color-primary)
        );
}

.home-closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
}

.home-closing .section-eyebrow {
    color: #ffe4c1;
}

.home-closing h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2rem, 4.7vw, 3.8rem);
}




/* ================================================================
   RICH CONTENT
   ================================================================ */

.rich-content {
    color: var(--color-text);
    font-size: 1.04rem;
    line-height: 1.8;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.65em;
    color: var(--color-text);
    line-height: 1.25;
}

.rich-content h2 {
    font-size: 2rem;
}

.rich-content h3 {
    font-size: 1.55rem;
}

.rich-content h4 {
    font-size: 1.2rem;
}

.rich-content p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

.rich-content a {
    color: var(--color-primary);
    font-weight: 700;
}

.rich-content blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--color-primary);
    color: var(--color-text-soft);
    background: var(--color-primary-soft);
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.4em;
}

.rich-content li {
    margin-bottom: 0.5em;
}

.rich-content table {
    width: 100%;
    margin: 1.8em 0;
    border-collapse: collapse;
}

.rich-content th,
.rich-content td {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.rich-content th {
    background: var(--color-surface-soft);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-small);
}


/* ================================================================
   RESPONSIVE — LARGE TABLET
   ================================================================ */

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(350px, 0.85fr);
        gap: 50px;
    }

    .home-hero-title {
        font-size: clamp(3.2rem, 7vw, 5rem);
    }

    .home-category-grid,
    .home-post-grid,
    .home-past-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */

@media (max-width: 900px) {
   
    .main-navigation {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
    }

    .main-navigation a {
        padding: 8px 0 12px;
    }

    .main-navigation a::after {
        bottom: 6px;
    }

    .home-hero-grid,
    .home-about-grid,
    .home-period-media-grid,
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        min-height: auto;
        gap: 55px;
        padding-block: 70px;
    }

    .home-hero-media {
        max-width: 720px;
    }

    .home-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-statistic:nth-child(2) {
        border-right: 0;
    }

    .home-statistic:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }

    .home-process-item div {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-section-heading-row,
    .home-closing-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */

@media (max-width: 650px) {
    :root {
        --container-padding: 17px;
    }

    .site-logo {
        max-width: 220px;
        height: 48px;
    }

    .main-navigation {
        gap: 14px;
    }

    .main-navigation a {
        font-size: 0.82rem;
    }

    .home-hero-grid {
        padding-block: 58px;
    }

    .home-hero-title {
        margin-top: 20px;
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .home-hero-description {
        font-size: 1rem;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .home-period-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }

    .home-period-info-item {
        min-width: 0;
        padding: 0 15px;
    }

    .home-period-info-item:nth-child(odd) {
        padding-left: 0;
    }

    .home-period-info-item:nth-child(even) {
        border-right: 0;
    }

    .home-hero-media-link,
    .home-hero-media-static,
    .home-hero-logo-panel,
    .home-hero-placeholder,
    .home-hero-media-link img,
    .home-hero-media-static img {
        min-height: 285px;
    }

    .home-video-button {
        width: 64px;
        height: 64px;
        font-size: 1.2rem;
    }

    .home-statistics {
        padding-block: 40px;
    }

    .home-statistic {
        min-height: 115px;
        padding: 16px 10px;
    }

    .home-statistic strong {
        font-size: clamp(2.2rem, 13vw, 3.3rem);
    }

    .home-statistic span {
        font-size: 0.72rem;
    }

    .home-section {
        padding-block: 72px;
    }

    .home-section-heading {
        margin-bottom: 38px;
    }

    .home-section-heading h2,
    .home-about-heading h2,
    .home-period-media-content h2,
    .home-featured-content h2,
    .home-closing h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .home-process-item {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 13px;
        padding-block: 27px;
    }

    .home-category-grid,
    .home-post-grid,
    .home-past-period-grid,


    .home-category-card {
        min-height: 220px;
    }

    .home-category-card h3 {
        margin-top: 45px;
    }

    .home-featured-media,
    .home-featured-media img,
    .home-featured-placeholder {
        min-height: 300px;
        height: 300px;
    }

    .home-post-card-media {
        height: 205px;
    }

    .home-past-period-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-closing {
        padding-block: 60px;
    }

    .home-closing .button {
        width: 100%;
    }


}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ================================================================
   404 / ERROR PAGE
   ================================================================ */

.error-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
}

.error-page .container {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
}

.error-page__code {
    margin: 0 0 1rem;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    opacity: 0.18;
}

.error-page h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.error-page__description {
    max-width: 620px;
    margin: 1.25rem auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.error-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 2rem;
    padding: 0.8rem 1.4rem;
    border: 2px solid currentColor;
    border-radius: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.error-page .button:hover {
    transform: translateY(-2px);
}

.error-page .button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .error-page {
        min-height: 58vh;
        padding-block: 3rem;
    }

    .error-page__description {
        font-size: 1rem;
    }

    .error-page .button {
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-page .button {
        transition: none;
    }

    .error-page .button:hover {
        transform: none;
    }
}