* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #1c2b2a;
    background:
        radial-gradient(circle at 92% 78%, rgba(72, 124, 111, 0.14), transparent 24%),
        radial-gradient(circle at 8% 2%, rgba(212, 181, 121, 0.08), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfb 48%, #f7faf8 100%);
    font-family: 'Noto Kufi Arabic', Arial, sans-serif;
    font-weight: 500;
}

button,
input,
a {
    font: inherit;
}

.access-page,
.project-page,
.admin-page,
.programs-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.access-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 0;
}

.access-card {
    width: min(460px, 100%);
    padding: 32px;
    border: 1px solid rgba(28, 96, 86, 0.14);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(34, 55, 52, 0.14);
    text-align: center;
}

.brand-logo-frame,
.hero-logo-frame {
    display: inline-grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 239, 224, 0.86));
    border: 1px solid rgba(192, 159, 99, 0.26);
    box-shadow: 0 18px 38px rgba(34, 55, 52, 0.12);
}

.brand-logo-frame {
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    border-radius: 24px;
}

.brand-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 8px;
    color: #24786d;
    font-size: 13px;
    font-weight: 900;
}

.access-card h1 {
    margin: 0;
    color: #102b2a;
    font-size: 26px;
    line-height: 1.5;
}

.muted {
    margin: 14px 0 22px;
    color: #5d6d69;
    font-size: 14px;
    line-height: 1.9;
}

.form-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff0f0;
    color: #b42318;
    font-size: 13px;
}

.form-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #eaf8f4;
    color: #176b5f;
    font-size: 14px;
    font-weight: 800;
}

.access-form {
    display: grid;
    gap: 10px;
    text-align: right;
}

.access-form label {
    color: #243c3a;
    font-size: 13px;
    font-weight: 800;
}

.access-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #d7e1de;
    border-radius: 6px;
    padding: 0 14px;
    color: #102b2a;
    background: #fbfdfc;
}

.access-form button,
.watch-link,
.logout-form button,
.plain-link {
    border: 0;
    border-radius: 6px;
    background: #218575;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.access-form button {
    height: 48px;
    margin-top: 6px;
}

.plain-link,
.admin-actions a,
.admin-actions button,
.admin-save-bar button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 16px;
}

.project-page {
    padding: 28px 0 48px;
}

.hero {
    position: relative;
    min-height: 560px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72)),
        #ffffff;
    border: 1px solid rgba(192, 159, 99, 0.2);
}

.concept-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.9), transparent 21%),
        radial-gradient(circle at 80% 84%, rgba(31, 95, 83, 0.22), transparent 26%);
    pointer-events: none;
}

.cover-hero {
    min-height: 560px;
    background:
        var(--hero-cover-image) center / cover no-repeat,
        #ffffff;
}

.cover-hero::before {
    z-index: 1;
    background:
        linear-gradient(to left, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.5) 68%, rgba(255, 255, 255, 0.18) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.42));
}

.cover-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.25) 15%, rgba(255, 255, 255, 0.07) 48%, rgba(255, 255, 255, 0.38) 84%, rgba(255, 255, 255, 0.98) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.11) 18%, rgba(255, 255, 255, 0.07) 78%, rgba(255, 255, 255, 0.92) 100%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 56px 58px 44px;
    color: #103f3d;
}

.cover-hero .hero-content {
    margin-right: 0;
    margin-left: auto;
    padding: 62px 58px 44px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.hero-logo-frame {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    border-radius: 22px;
}

.hero-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.hero h1 {
    margin: 0;
    color: #0d4947;
    font-size: 54px;
    line-height: 1.22;
    letter-spacing: 0;
}

.hero-pill {
    width: min(380px, 100%);
    margin: 18px 0 22px;
    padding: 7px 22px;
    border: 1px solid #c59f60;
    border-radius: 999px;
    color: #b58a43;
    background: rgba(255, 253, 248, 0.74);
    text-align: center;
    font-weight: 900;
}

.hero-content > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0;
    color: #244c4b;
    font-size: 15px;
    line-height: 2;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(520px, 100%);
    margin-top: 30px;
}

.hero-highlights div {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 10px;
    border-left: 1px solid rgba(16, 63, 61, 0.16);
    text-align: center;
}

.hero-highlights div:last-child {
    border-left: 0;
}

.mini-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(191, 153, 86, 0.62);
    border-radius: 50%;
    color: #0d4947;
    background: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 900;
}

.hero-highlights strong {
    color: #123f3d;
    font-size: 13px;
}

.hero-visual {
    position: absolute;
    inset: 0 46% 0 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 44px;
}

.desk-scene {
    position: relative;
    width: min(430px, 100%);
    min-height: 360px;
}

.desk-scene::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 16px;
    bottom: 24px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 49, 44, 0.16);
    filter: blur(12px);
}

.plant-sprig {
    position: absolute;
    top: 0;
    right: 120px;
    width: 88px;
    height: 138px;
    border-right: 3px solid rgba(72, 112, 91, 0.62);
    transform: rotate(-18deg);
}

.plant-sprig span {
    position: absolute;
    width: 34px;
    height: 18px;
    border-radius: 50%;
    background: #6d876f;
}

.plant-sprig span:nth-child(1) { top: 12px; right: 8px; transform: rotate(26deg); }
.plant-sprig span:nth-child(2) { top: 44px; right: -30px; transform: rotate(-24deg); }
.plant-sprig span:nth-child(3) { top: 72px; right: 8px; transform: rotate(24deg); }
.plant-sprig span:nth-child(4) { top: 104px; right: -28px; transform: rotate(-22deg); }

.notebook-card {
    position: absolute;
    right: 34px;
    bottom: 26px;
    width: 205px;
    min-height: 235px;
    padding: 72px 28px 24px;
    border-radius: 4px 4px 8px 8px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(76, 58, 33, 0.18);
    text-align: center;
}

.spiral {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 18px;
    background: repeating-linear-gradient(90deg, #4c3d31 0 4px, transparent 4px 18px);
    opacity: 0.7;
}

.notebook-card strong {
    display: block;
    color: #102b2a;
    font-size: 30px;
}

.notebook-card p {
    margin: 8px 0 0;
    color: #102b2a;
    font-size: 22px;
    font-weight: 900;
}

.check-mark {
    position: absolute;
    top: 92px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #91aa95;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.phone-mock {
    position: absolute;
    left: 30px;
    bottom: 34px;
    width: 136px;
    min-height: 260px;
    padding: 42px 16px 20px;
    border: 5px solid #1c2b2a;
    border-radius: 24px;
    background: #fdfbf7;
    box-shadow: 0 18px 30px rgba(20, 38, 34, 0.18);
    text-align: center;
}

.phone-bar {
    position: absolute;
    top: 12px;
    left: 38px;
    width: 58px;
    height: 8px;
    border-radius: 999px;
    background: #1c2b2a;
}

.phone-mock strong {
    color: #102b2a;
    font-size: 14px;
}

.play-box {
    display: grid;
    place-items: center;
    width: 92px;
    height: 74px;
    margin: 16px auto 14px;
    border-radius: 8px;
    background: #d9d5cd;
    color: #ffffff;
}

.phone-mock > span {
    display: block;
    height: 7px;
    margin: 7px 0;
    border-radius: 999px;
    background: #c7c3ba;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 26px;
}

.stat {
    padding: 18px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #ffffff;
}

.stat span {
    display: block;
    color: #667571;
    font-size: 13px;
}

.stat strong {
    display: block;
    margin-top: 8px;
    color: #102b2a;
    font-size: 24px;
}

.details {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid #dce7e2;
    border-bottom: 1px solid #dce7e2;
}

.idea-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
    padding: 34px 0 18px;
}

.idea-section h2 {
    margin: 0;
    color: #0d4947;
    font-size: 28px;
    line-height: 1.5;
}

.section-copy {
    margin: 12px 0 0;
    color: #284d4b;
    line-height: 2;
}

.project-video-card {
    margin-top: 20px;
}

.project-video-card a,
.video-placeholder {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: min(430px, 100%);
    padding: 14px;
    border: 1px solid rgba(192, 159, 99, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: #123f3d;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(34, 55, 52, 0.08);
}

.project-video-card a:hover {
    border-color: rgba(33, 133, 117, 0.45);
    background: #ffffff;
}

.video-play {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #218575;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 12px 22px rgba(33, 133, 117, 0.22);
}

.video-placeholder .video-play {
    background: #9aa9a1;
}

.project-video-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.project-video-card small {
    display: block;
    color: #62716d;
    font-size: 12px;
    line-height: 1.8;
}

.idea-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.idea-section li {
    position: relative;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: #435451;
    line-height: 1.9;
    border: 1px solid rgba(222, 216, 203, 0.72);
}

.idea-section li::before {
    content: "";
    position: absolute;
    top: 22px;
    right: -1px;
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: #d7a83f;
}

.visual-values {
    margin-top: 24px;
}

.details h2,
.section-title h2 {
    margin: 0;
    color: #102b2a;
    font-size: 26px;
    line-height: 1.5;
}

.details ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.details li {
    position: relative;
    padding: 14px 18px;
    border-radius: 8px;
    background: #ffffff;
    color: #435451;
    line-height: 1.9;
}

.details li::before {
    content: "";
    position: absolute;
    top: 22px;
    right: -1px;
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: #d7a83f;
}

.episodes {
    margin-top: 30px;
}

.section-title {
    margin-bottom: 16px;
}

.centered {
    text-align: center;
}

.feature-section,
.journey-section {
    margin-top: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid article {
    min-height: 152px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    padding: 22px 16px;
    border: 1px solid rgba(222, 216, 203, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    text-align: center;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: #0d4947;
    font-size: 25px;
    font-weight: 900;
}

.feature-grid h3,
.journey-steps h3 {
    margin: 0;
    color: #173f3d;
    font-size: 15px;
    line-height: 1.8;
}

.journey-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
}

.journey-steps article {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.journey-steps article:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: -20px;
    width: 32px;
    height: 1px;
    background: rgba(36, 76, 75, 0.22);
}

.journey-steps span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(36, 76, 75, 0.22);
    border-radius: 50%;
    color: #0d4947;
    background: rgba(255, 255, 255, 0.58);
    font-weight: 900;
}

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

.episode-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #ffffff;
}

.episode-thumb {
    position: relative;
    min-height: 124px;
    border-radius: 8px;
    overflow: hidden;
    background: #edf7f5;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    min-height: 124px;
    object-fit: cover;
    display: block;
}

.episode-thumb-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 124px;
    background:
        radial-gradient(circle at 82% 18%, rgba(215, 168, 63, 0.28), transparent 30%),
        linear-gradient(135deg, #eef7f4, #ffffff);
    color: #0d4947;
    text-align: center;
}

.episode-thumb-placeholder span {
    font-size: 13px;
    font-weight: 900;
}

.episode-thumb-placeholder strong {
    font-size: 32px;
    line-height: 1;
}

.episode-thumb-play {
    position: absolute;
    inset: auto 12px 12px auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(16, 67, 64, 0.86);
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(16, 43, 42, 0.2);
    backdrop-filter: blur(6px);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

a.episode-thumb-play:hover {
    transform: translateY(-2px) scale(1.04);
    background: #218575;
    box-shadow: 0 16px 28px rgba(33, 133, 117, 0.28);
}

.episode-thumb-play.disabled {
    background: rgba(82, 99, 95, 0.86);
    opacity: 0.82;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.episode-state,
.episode-date {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1.4;
}

.episode-state {
    padding: 6px 11px;
    background: #edf7f5;
    color: #218575;
    font-size: 11px;
}

.episode-card.progress .episode-state {
    background: #f7f3e8;
    color: #9a6a08;
}

.episode-date {
    gap: 7px;
    max-width: 100%;
    padding: 5px 11px;
    border: 1px solid rgba(192, 159, 99, 0.32);
    background: rgba(255, 251, 244, 0.82);
    color: #123f3d;
}

.episode-date small {
    color: #8d7240;
    font-size: 10px;
    white-space: nowrap;
}

.episode-date strong {
    color: #123f3d;
    font-size: 11px;
    white-space: nowrap;
}

.episode-card h3 {
    margin: 0 0 8px;
    color: #102b2a;
    font-size: 18px;
}

.episode-card p {
    margin: 0 0 14px;
    color: #5c6a67;
    font-size: 13px;
    line-height: 1.8;
}

.watch-link,
.waiting {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
}

.waiting {
    border-radius: 6px;
    background: #f2f4f3;
    color: #667571;
    font-weight: 900;
}

.logout-form {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.logout-form button {
    padding: 11px 18px;
    background: #52635f;
}

.programs-page {
    padding: 34px 0 52px;
}

.programs-hero {
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid rgba(192, 159, 99, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.programs-hero h1 {
    margin: 0;
    color: #0d4947;
    font-size: 36px;
    line-height: 1.45;
}

.programs-hero p:last-child {
    width: min(640px, 100%);
    margin: 12px auto 0;
    color: #5c6a67;
    line-height: 1.9;
}

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

.programs-guidance {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(16, 63, 61, 0.12);
}

.programs-guidance .feature-grid article {
    min-height: 126px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: none;
}

.program-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(34, 55, 52, 0.08);
}

.program-card-cover {
    min-height: 190px;
    border-radius: 8px;
    overflow: hidden;
    background: #edf7f5;
}

.program-card-cover img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
}

.program-card-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    height: 100%;
    min-height: 190px;
    padding: 16px;
    background:
        radial-gradient(circle at 82% 18%, rgba(215, 168, 63, 0.28), transparent 30%),
        linear-gradient(135deg, #eef7f4, #ffffff);
    color: #0d4947;
    text-align: center;
}

.program-card-placeholder span,
.program-card-stats span {
    font-size: 12px;
    font-weight: 900;
}

.program-card-placeholder strong {
    font-size: 18px;
    line-height: 1.6;
}

.program-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0;
}

.program-card-copy h2 {
    margin: 0;
    color: #102b2a;
    font-size: 22px;
    line-height: 1.5;
}

.program-card-copy > p:not(.eyebrow) {
    margin: 10px 0 14px;
    color: #5c6a67;
    line-height: 1.8;
}

.program-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.program-card-stats span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf7f5;
    color: #218575;
}

.program-card-copy a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 6px;
    background: #218575;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.empty-programs {
    padding: 30px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.empty-programs h2 {
    margin: 0;
    color: #102b2a;
}

.empty-programs p {
    color: #5c6a67;
}

.admin-page {
    padding: 24px 0 44px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dce7e2;
}

.admin-header h1 {
    margin: 0;
    color: #102b2a;
    font-size: 28px;
    line-height: 1.5;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions form {
    margin: 0;
}

.admin-actions a,
.admin-actions button {
    border: 0;
    border-radius: 6px;
    background: #52635f;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.admin-actions a {
    background: #218575;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.compact-admin-form {
    gap: 0;
}

.admin-panel {
    padding: 22px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #ffffff;
}

.create-project-panel {
    margin-bottom: 18px;
}

.create-project-panel summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    background: #218575;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.create-project-panel summary::-webkit-details-marker {
    display: none;
}

.create-project-panel[open] summary {
    margin-bottom: 18px;
    background: #52635f;
}

.admin-panel h2 {
    margin: 0 0 18px;
    color: #102b2a;
    font-size: 22px;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-panel-heading h2 {
    margin-bottom: 4px;
}

.admin-panel-heading p {
    margin: 0;
    color: #667571;
    font-size: 13px;
}

.secondary-admin-button,
.danger-admin-button {
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.secondary-admin-button {
    min-height: 42px;
    padding: 8px 14px;
    background: #218575;
}

.danger-admin-button {
    min-height: 38px;
    padding: 7px 12px;
    background: #b54708;
}

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

.admin-subsection {
    margin: 4px 0 18px;
    padding: 16px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #fbfdfc;
}

.admin-subsection h3 {
    margin: 0 0 4px;
    color: #102b2a;
    font-size: 17px;
}

.admin-subsection p {
    margin: 0 0 14px;
    color: #667571;
    font-size: 12px;
}

.admin-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-mini-fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid #d7e1de;
    border-radius: 8px;
}

.admin-mini-fieldset legend {
    padding: 0 8px;
    color: #218575;
    font-size: 12px;
    font-weight: 900;
}

.admin-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: #314642;
    font-size: 13px;
    font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid #d7e1de;
    border-radius: 6px;
    padding: 11px 12px;
    color: #102b2a;
    background: #fbfdfc;
    font: inherit;
    font-weight: 500;
}

.admin-form input[type="file"] {
    padding: 9px 10px;
    background: #ffffff;
    cursor: pointer;
}

.field-hint {
    color: #667571;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
}

.admin-form textarea {
    min-height: 86px;
    resize: vertical;
    line-height: 1.8;
}

.admin-episodes {
    display: grid;
    gap: 14px;
}

.admin-episode {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #f8fbfa;
}

.admin-episode legend {
    padding: 0 8px;
    color: #218575;
    font-size: 14px;
    font-weight: 900;
}

.remove-episode-button {
    margin-top: 4px;
}

.admin-save-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    padding: 14px 0;
    background: linear-gradient(180deg, rgba(244, 247, 245, 0), #f4f7f5 36%);
}

.admin-save-bar button {
    border: 0;
    border-radius: 6px;
    background: #218575;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.inline-save-bar {
    position: static;
    padding-bottom: 0;
    background: transparent;
}

.admin-project-list {
    display: grid;
    gap: 14px;
}

.admin-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #f8fbfa;
}

.admin-project-card h3 {
    margin: 0;
    color: #102b2a;
    font-size: 20px;
}

.admin-project-card p:not(.eyebrow) {
    margin: 8px 0;
    color: #5c6a67;
    line-height: 1.8;
}

.admin-project-card span {
    display: inline-flex;
    color: #24786d;
    font-size: 13px;
    font-weight: 900;
    direction: ltr;
}

.admin-project-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-project-card-actions form {
    margin: 0;
}

.admin-project-card-actions a,
.admin-project-card-actions button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: #218575;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.admin-project-card-actions a:last-child {
    background: #52635f;
}

.admin-project-card-actions .delete-project-button {
    background: #b54708;
}

.admin-project-card-actions .copy-project-link-button {
    background: #c59f60;
}

@media (max-width: 760px) {
    .access-page,
    .project-page,
    .admin-page,
    .programs-page {
        width: min(100% - 20px, 1120px);
    }

    .access-card {
        padding: 24px 18px;
    }

    .hero {
        min-height: auto;
    }

    .cover-hero {
        min-height: 640px;
        background-position: center bottom;
    }

    .cover-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(255, 255, 255, 0.34) 100%),
            linear-gradient(to left, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.22));
    }

    .hero-content {
        width: 100%;
        padding: 28px 20px 24px;
    }

    .cover-hero .hero-content {
        width: 100%;
        margin: 0;
        padding: 28px 20px 24px;
    }

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

    .hero-pill {
        width: 100%;
        font-size: 13px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlights div {
        grid-template-columns: 54px 1fr;
        justify-items: start;
        align-items: center;
        border-left: 0;
        border-bottom: 1px solid rgba(16, 63, 61, 0.12);
        padding: 0 0 12px;
        text-align: right;
    }

    .hero-highlights div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .hero-visual {
        position: relative;
        inset: auto;
        padding: 4px 18px 28px;
    }

    .desk-scene {
        min-height: 320px;
        transform: scale(0.88);
        transform-origin: center top;
    }

    .stats,
    .details,
    .idea-section,
    .episode-grid,
    .admin-grid,
    .admin-highlight-grid,
    .feature-grid,
    .journey-steps,
    .program-card-grid,
    .program-card {
        grid-template-columns: 1fr;
    }

    .programs-hero {
        padding: 24px 18px;
    }

    .programs-hero h1 {
        font-size: 28px;
    }

    .feature-grid article {
        min-height: 118px;
    }

    .journey-steps article:not(:last-child)::after {
        top: auto;
        left: auto;
        bottom: -10px;
        width: 1px;
        height: 18px;
    }

    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .admin-actions a,
    .admin-actions button {
        justify-content: center;
        width: 100%;
    }

    .admin-project-card {
        grid-template-columns: 1fr;
    }

    .admin-project-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .episode-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .episode-thumb,
    .episode-thumb img,
    .episode-thumb-placeholder {
        min-height: 180px;
    }
}
