html {
    scroll-behavior: smooth;
}

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

body {
    font-family: Georgia, serif;
    background: #f4efe6;
    margin: 0;
    padding: 40px 0;
}

.page-width {
    width: 100%;
    /* max-width: 1180px; */
    max-width:1400px !important;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px;
}

.card {
    background: white;
    padding: 34px;
    border-radius: 16px;
    border: 2px solid #d4a52c;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.06);

    transition: box-shadow 0.25s ease;
}

.section {
    margin: 42px 0;
}


/* =========================
   DIVIDER SECTION
========================= */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 40px 0 12px;
    opacity: 1.95;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    max-width: 270px;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(180,140,40,0.7),
            transparent
        );
}

.section-divider span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a6228;
    padding: 0 6px;
}

/* =========================
   LEARNING PHASE HEADERS
========================= */



.phase-label {
    display: inline-block;
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            rgba(205,170,80,0.18),
            rgba(180,140,40,0.12)
        );
    border: 1px solid rgba(180,140,40,0.35);
    color: #7a6228;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.05);
}


/* =========================
   STRUCTURE SECTION
========================= */


/* =========================
   CHAIN CONTAINER
========================= */

.chain-container {
    text-align: center;
    margin: 0px auto;
    max-width: 1060px;
    animation: fadeIn 0.25s ease;
    padding: 10px 20px;

    border-top: 6px solid #c9a227;
    border-radius: 18px;

}

.chain {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 10px;
}

.chain-word {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.chain-word .hebrew {
    font-size: 36px;
    margin-bottom: 6px;
}

/* Role colors */
.chain-word.construct { background: #ffeaea; border: 3px solid #d33; }
.chain-word.absolute  { background: #eaffea; border: 3px solid #2a8a2a; }
.chain-word.adjective { background: #eaf2ff; border: 2px solid #3a66cc; }
.chain-word.suffix    { border: 3px solid #2F5DAA; }

.chain-word.head-noun {border: 6px solid #000; }



/* =========================
   WORD LABELS (MASK/REVEAL)
========================= */


.chain-word.construct .word-label { color: #cc0000; }
.chain-word.absolute  .word-label { color: #008000; }
.chain-word.adjective .word-label { color: #3a66cc; }
.chain-word.suffix    .word-label { color: #3a66cc; }


/* =========================
   PREFIX BOX
========================= */

.prefix-box {
    display: inline-block;
    margin-left: -3px;
    margin-right: 2px;
    font-size: 26px;
    font-weight: 500;
    color: #8B5E00;
    background: #f5e6c8;
    border: 1px solid #c8a96a;
    border-radius: 4px;
    opacity: 0.9;
    transform: translateY(-2px);
}

.hebrew {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* =========================
   EXPLANATION SYSTEM
========================= */

.structure-explanation {
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.explanation-block {
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInBlock 0.4s ease forwards;
}

.explanation-block:nth-child(1) { animation-delay: 0.1s; }
.explanation-block:nth-child(2) { animation-delay: 0.4s; }
.explanation-block:nth-child(3) { animation-delay: 0.7s; }

.explanation-block h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    color: #3e3420;
    text-transform: uppercase;
}

.explanation-block ul {
    padding-left: 22px;
    margin-top: 6px;
}

.explanation-block li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.65;
    color: #3f3a30;
}


/* =========================
   SUFFIX BUILD
========================= */

.suffix-build {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.suffix-line {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    font-size: 16px;
    font-weight: bold;
}

.suffix-label { color: #555; font-weight: bold; }
.suffix-hebrew { font-size: 24px !important; line-height: 1; }
.arrow { font-size: 36px; color: #777; line-height: 1; }



/* =========================
   MEANING SECTION
========================= */

.best-translation-box {
    border: 2px solid #d4af37;
    background:
        linear-gradient(
            to bottom,
            #f8f1df,
            #efe4c9
        ) !important;
    padding: 42px 34px;
    margin: 18px 0;
    margin-top: 12px;
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.10);
}

.best-translation {
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 18px;
    letter-spacing: 0.2px;
    color: #2d2418;
}

.best-explanation {
    margin-top: 20px;
    line-height: 1.65;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.best-explanation ul {
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
}

.strong_larger{
    font-size: 20px;
}

.other-translations {
    margin-top: 56px;
    opacity: 0.92;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.other-translations ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    margin-top: 14px;

    line-height: 1.8
}

.best-explanation li {
    /* margin-bottom: 14px; */
    line-height: 1.55;
    font-size: 18px;
    color: #3f3a32;
}



.other-translations li {
    /* margin-bottom: 14px; */
    line-height: 1.85;
    color: #4a4438;
    font-size: 18px;
}

.semantic-meaning {
    margin-top: 56px;
    margin-bottom: 20px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #2b2b2b;
}

.semantic-function {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #2b2b2b;
}

.meaning-format {
    margin: 18px 0;
    line-height: 1.8;
}

/* =========================
   STICKY NAVBAR
========================= */
.step-controls2{
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    /* background-color: rgba(255, 0, 0, 0.2) !important; */
    background-color: rgba(255, 0, 0, 0.15) !important;
    
    /* background-color: rgba(255, 223, 120, 0.50);
    border: 2px solid #c79a2c;
    color: #1b3d2f;
     */
}

.step-controls {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 26px;

    background:
        linear-gradient(
            to bottom,
            #072651 0%,
            #041c3d 55%,
            #02142d 100%
        );

    padding: 14px 22px;

    border: 2px solid gold;
    border-radius: 16px;

    width: 100%;
    max-width: 1400px;

    overflow: hidden;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.28),
        0 2px 6px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.step-controls::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 50%;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0)
        );

    pointer-events: none;
}

.examples {  
    background-color: #E9DFC1;
    padding: 32px 32px;
    border: 1px solid #d8d1c5;
    border-top: 6px solid #c9a227;
    border-radius: 18px;
}

#examples-section,
#step-1,
#step-2,
#step-3 {
    scroll-margin-top: 90px;
}

#examples-section {
    margin-top: 38px;
}


/* =========================
   NAV LOGO
========================= */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-right: auto;
    /* padding-left: 12px; */
}

.nav-logo span {
    color: #ffd54a;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-shadow:
        0 1px 2px rgba(0,0,0,0.45);
}

.nav-logo img {
    height: 64px;
    width: auto;

    display: block;

    position: relative;
    top: -2px; 
}


/* =========================
   PHRASE VISUAL SYSTEM
========================= */

.phrase-container {
    text-align: center;
    margin-top: 25px;
}

.hebrew-phrase {
    font-size: 42px;
    unicode-bidi: bidi-override;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}


/* =========================
   HEBREW WORD BOXES
========================= */

.hebrew-word {
    position: relative;
    font-size: 34px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: bold;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;

    box-shadow:
        0 2px 4px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

.hebrew-word:hover {
    transform: translateY(-2px) scale(1.04);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.14),
        0 2px 6px rgba(0,0,0,0.08);

    z-index: 2;
}

.hebrew-word::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hebrew-word:hover::after { opacity: 0.9; }

.hebrew-word.construct {
    background: linear-gradient(to bottom, #fff1f1, #ffe3e3);
    border: 2px solid #c62828;
    color: #6d1b1b;
}

.hebrew-word.absolute {
    background: linear-gradient(to bottom, #f1fff1, #e2f7e2);
    border: 2px solid #2e7d32;
    color: #1f4d25;
}

.hebrew-word.adjective {
    background: linear-gradient(to bottom, #f2f7ff, #e4eeff);
    border: 2px solid #3f6ecf;
    color: #1d3975;
}

.hebrew-word.suffix {
    background: rgba(47,93,170,0.08);
    border: 5px solid #2F5DAA;
    color: #222;
}

.hebrew-word.apposition {
    border: 4px solid #7b1fa2 !important;
    background: #f3e5f5 !important;
    color: #4a148c !important;
    box-shadow: 0 0 18px rgba(123, 31, 162, 0.35);
}

.hebrew-word.apposition.head {
    border: 4px solid #4a148c !important;
    background: #ede7f6 !important;
}

.hebrew-word.apposition.phrase {
    border: 4px solid #7b1fa2 !important;
    background: #f3e5f5 !important;
}

.apposition-display {
    margin-top: 25px;
    text-align: center;
}

.apposition-line {
    color: #7b1fa2;
    font-size: 22px;
    font-weight: bold;
}

.apposition-title {
    margin-top: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #7b1fa2;
}

.apposition-description {
    margin-top: 6px;
    font-size: 16px;
    color: #4a148c;
}

.apposition-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 10px;
}

.connector-line {
    width: 90px;
    height: 3px;
    background: #7b1fa2;
    border-radius: 3px;
}

.connector-symbol {
    margin: 0 14px;
    font-size: 28px;
    font-weight: bold;
    color: #7b1fa2;
}

/* =========================
   RELATIONSHIP BRACKETS
========================= */

.bracket-line {
    border-bottom: 3px solid #333;
    width: fit-content;
    min-width: 180px;
    margin: 0 auto;
}

.bracket-label {
    margin-top: 6px;
    font-size: 14px;
    color: #444;
}

.relationship-label {
    margin-top: 14px;
    font-size: 15px;
    color: #a00000;
    font-weight: 600;
    text-align: center;
}

.connector-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.connector {
    width: 60px;
    height: 18px;
    border-bottom: 3px solid #a00000;
    border-left: 3px solid #a00000;
    border-radius: 0 0 0 10px;
    position: relative;
}

.connector::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: -6px;
    border-right: 8px solid #a00000;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}


/* =========================
   TEACHING + UI
========================= */

.teaching-prompt {
    background: #f8f1e4;
    border-left: 4px solid #b38b2d;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 16px;
    color: #5a3e1b;
}

.feedback-box {
    margin-top: 10px;
    font-weight: bold;
    min-height: 20px;
}

.meaning-list {
    max-width: 500px;
    margin: 10px auto;
    text-align: left;
    padding: 10px 18px;
    background: #f9f6ef;
    border-radius: 6px;
    border: 1px solid #e0d8c8;
}


/* =========================
   PROGRESS BAR
========================= */

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 10px;
    margin: 10px auto 20px auto;
    background: #e9e2d6;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c49a6c, #d8b98a, #c49a6c);
    transition: width 0.4s ease;
}


/* =========================
   FORM / INPUT
========================= */

.form-center { margin-top: 30px; }

.input-panel {
    background: #f9f6ef;
    border: 1px solid #d6c7a1;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.input-text {
    font-size: 30px;
    font-weight: bold;
    text-align: right;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.input-row input {
    flex: 1;
    max-width: 420px;
    padding: 10px;
    border: 1px solid #c8b68a;
    border-radius: 6px;
}

.analyze-btn {
    padding: 8px 16px;
    background: #d6b36a;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.analyze-btn:hover { background: #c5a052; }

/* =========================
   MEANING - SEMANTICS
========================= */
.semantic-stage {
    /* max-width: 1080px; */
    max-width: 1400px;


    /* margin: 30px auto 25px; */
    /* padding: 32px 32px; */
    background: #ffffff;
    border: 1px solid #d8d1c5;
    /* border-top: 6px solid #c9a227; */
    border-radius: 18px;
    text-align: center;
    line-height: 1.65;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* =========================
   SEMANTIC BADGES
========================= */

.semantic-badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 16px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 34px;
    letter-spacing: 0.3px;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.06);
}

.semantic-badge h2 {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
}

.semantic-badge.relationship {
    background: linear-gradient(to bottom, #f8e6e6, #f2d7d7);
    color: #a94442;
    border: 1px solid #d8aaaa;
}

.semantic-badge.description {
    background: linear-gradient(to bottom, #e6f4ea, #d9eee0);
    color: #2e7d32;
    border: 1px solid #a9d1b0;
}

.semantic-badge.function {
    background: linear-gradient(to bottom, #fff8e1, #f6edc7);
    color: #8d6e00;
    border: 1px solid #dcc67a;
}

.meaning-explanation {
    margin-top: 26px;
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.75;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.meaning-explanation h4 {
    margin: 14px 0;
    font-size: 24px;
    line-height: 1.7;
    font-weight: 700;
    color: #2f2f2f;
}

.semantic-structure {
    margin-top: 18px;
    line-height: 1.9;
    font-size: 18px;
    color: #3f3a32;
}

.structure-pattern {
    margin-bottom: 1px;
}


/* =========================
   STEP CONTROLS
========================= */

.top-panel {
    width: 600px;
    max-width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
}

.progression {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* =========================
   LEARNING TRANSITIONS
========================= */
.learning-transition {
    max-width: 760px;
    margin: 0px auto;
    text-align: center;
    opacity: 0.92;
    font-weight: bold;
}

.transition-line {
    width: 140px;
    height: 2px;
    margin: 0 auto 30px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            transparent,
            #c9a227,
            transparent
        );
    opacity: 0.75;
}

.learning-transition p {
    font-size: 21px;
    line-height: 1.95;
    color: #5a5245;
    font-style: italic;
    max-width: 720px;
    margin: 0 auto;
    letter-spacing: 0.2px;
}

/* =========================
   LEARNING SYNTHESIS
========================= */

.learning-synthesis {
    background:
        linear-gradient(
            to bottom,
            #f8f4ea,
            #f3ede0
        );

    background: lightblue;

    border: 1px solid #dcc48a;
    border-radius: 20px;
    padding: 58px 54px;

    /* margin-top: 50px; */
    margin-bottom: 30px;

    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    text-align: center;
    box-shadow:
        0 6px 18px rgba(0,0,0,0.05);
}

/* =========================
   SYNTHESIS TITLE
========================= */

.learning-synthesis h2 {
    font-size: 42px;
    margin-bottom: 32px;
    color: #3a342c;
    letter-spacing: 0.6px;
    font-weight: 700;
}

/* =========================
   SYNTHESIS PARAGRAPHS
========================= */

.learning-synthesis p {
    font-size: 22px;
    line-height: 2;
    color: #544d43;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -20px;
}

/* =========================
   SYNTHESIS LIST
========================= */

.learning-synthesis ul {
    margin-top: 34px;
    margin-bottom: 38px;
    padding-left: 0;
    list-style: none;
}

.learning-synthesis li {
    font-size: 24px;
    line-height: 2;
    color: #2f2f2f;
    /* margin-bottom: 14px; */
    letter-spacing: 0.2px;
}

.synthesis {
    font-weight: 600;
    /* font-style: italic; */
    margin-bottom: 10px;
}

/* =========================
   SYNTHESIS DIVIDER
========================= */

.learning-synthesis .transition-line {
    width: 160px;
    height: 2px;
    margin: 0 auto 42px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            transparent,
            #c9a227,
            transparent
        );
    opacity: 0.82;
}

/* =========================
   TRANSLATION CONFIDENCE
========================= */

.translation-confidence {
    margin-top: 14px;

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.3px;

    padding: 10px 14px;

    border-radius: 10px;

    display: inline-block;
}

/* =========================
   HIGH CONFIDENCE
========================= */

.confidence-high {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

/* =========================
   MEDIUM CONFIDENCE
========================= */

.confidence-medium {
    background: rgba(255, 152, 0, 0.12);
    color: #d17b00;
    border: 1px solid rgba(255, 152, 0, 0.25);
}

/* =========================
   LOW CONFIDENCE
========================= */

.confidence-low {
    background: rgba(198, 40, 40, 0.12);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

.phrase-type {
    margin-top: 14px;
    margin-bottom: 26px;

    text-align: center;

    font-size: 20px;
    font-weight: 700;

    color: #444;

    letter-spacing: 0.5px;
}

.phrase-type-wrapper {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 28px;
}

.phrase-type-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}

.phrase-type-badge {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 16px;

    background: #f5e6c8;
    border: 1px solid #c8a96a;

    font-size: 17px;
    font-weight: 700;

    color: #2b2b2b;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.06);
}

div .phrase-value {
    color: #8b1e3f !important;
}


/* =========================
   MORPHOLOGY CHART
========================= */

.morphology-chart-box {
    margin: 28px auto 34px auto;
    text-align: center;
    max-width: 850px;
}

.morphology-doughnut-chart {
    width: 60%;
    max-width: 720px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.my-paragraph-morphology {
    margin-bottom: 120px;
    font-size: 18px;
    line-height: 1.7;
}



/* =========================
   CONSTRUCT FREQUENCY
========================= */

.frequency-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eee;
    color: #333;
}

.frequency-paragraph {
    margin-top: 30px;
    margin-bottom:  0px;
}

.my-paragraph2 {
    margin-top: 0px !important;
    margin-bottom:  0px !important;
}


/* =========================
    TRANSLATION NOTE
========================= */
.translation-note {
    margin: 18px auto 20px;
    padding: 14px 18px;
    max-width: 620px;

    background: #fff8dc;
    border: 1px solid #d4a017;
    border-left: 6px solid #b8860b;
    border-radius: 10px;

    color: #3b2a12;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.translation-note strong {
    color: #8a6500;
    font-weight: 700;
}

/* ==================================================
   LANDING PAGE
================================================== */


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

.hero {
    max-width: 1050px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 18px;
    color: white;
    background: #d4af37;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.hero h1 {
    margin-bottom: 15px;
    color: #1f3c88;
}

.hero h2 {
    margin-top: 5px;
    margin-bottom: 30px;
    color: #666;
    font-weight: 400;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 20px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 40px;
}

.hero .button {
    display: inline-block;
    padding: 15px 35px;
    color: white;
    background: #1f3c88;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.hero .button:hover {
    background: #16306b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}


/* ==================================================
   SHARED SECTION HEADINGS
================================================== */

.section-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #a87900;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 15px;
    color: #0b2c5f;
    font-size: 40px;
}

.section-heading p {
    margin: 0;
    color: #555;
    font-size: 20px;
    line-height: 1.8;
}


/* ==================================================
   EDUCATIONAL FEATURES
================================================== */

.features-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 20px;
}

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

.feature-card {
    padding: 45px 32px;
    background: white;
    border: 1px solid #e2c25b;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.feature-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 20px;
    margin-bottom: 18px;
    color: white;
    background: #0b2c5f;
    border-radius: 50%;
    font-weight: bold;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: #0b2c5f;
    font-size: 24px;
}

.feature-card p {
    margin: 0;
    color: #555;
    font-size: 17px;
    line-height: 1.7;
}


/* ==================================================
   DEMO PREVIEW
================================================== */

.demo-section {
    max-width: 1250px;
    margin: 0 auto 80px;
    padding: 20px;
}

.demo-preview {
    overflow: hidden;
    max-width: 1250px;
    margin: 0 auto;
    background: white;
    border: 1px solid #d3aa22;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    background: linear-gradient(180deg, #123968, #021d41);
    border-bottom: 3px solid #d4af37;
}

.demo-logo {
    color: #f0c94c;
    font-size: 22px;
    font-weight: bold;
}

.demo-toolbar-buttons {
    display: flex;
    gap: 12px;
}

.demo-toolbar-buttons span {
    padding: 8px 15px;
    color: #222;
    background: #f8f4e9;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
}

.demo-content {
    padding: 45px 35px;
    text-align: center;
}

.demo-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    color: #795700;
    background: #f5e5ad;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-hebrew {
    margin-bottom: 12px;
    color: #102f61;
    font-size: 56px;
    font-weight: bold;
}

.demo-translation {
    margin-bottom: 35px;
    color: #33291d;
    font-size: 32px;
    font-weight: bold;
}

.demo-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.demo-stage {
    padding: 22px 16px;
    background: #f7f8fb;
    border: 1px solid #d9c16c;
    border-radius: 10px;
}

.demo-stage strong {
    display: block;
    margin-bottom: 8px;
    color: #0b2c5f;
    font-size: 17px;
}

.demo-stage span {
    color: #555;
    font-size: 15px;
}

.demo-button {
    display: inline-block;
    padding: 14px 32px;
    color: white;
    background: #173f91;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.demo-button:hover {
    background: #0d2d70;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}


/* ==================================================
   LEARNING JOURNEY
================================================== */

/* #journey {
    scroll-margin-top: 120px;
} */

.journey-section {
    max-width: 1400px;
    /* margin: 0 auto 80px; */
    margin: 80px auto;
    padding: 20px;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
}

.journey-card {
    overflow: hidden;
    background: white;
    border: 1px solid #d9bd5e;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.journey-card-content {
    padding: 24px;
    text-align: center;
}

.journey-step {
    display: inline-block;
    margin-bottom: 10px;
    color: #a87900;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.journey-card h3 {
    margin: 0 0 12px;
    color: #0b2c5f;
    font-size: 23px;
}

.journey-card p {
    max-width: 90%;
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

.journey-card img {
    display: block;
    width: 100%;
    height: auto;
    border-top: 1px solid #e5d7a4;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.journey-card:hover img {
    transform: scale(1.02);
    filter: brightness(1.04);
}


/* ==================================================
   BENEFITS
================================================== */

.benefits-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
}

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

.benefit-card {
    padding: 35px 25px;
    text-align: center;
    background: white;
    border: 1px solid #d9bd5e;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    margin-bottom: 18px;
    font-size: 42px;
}

.benefit-card h3 {
    margin: 0 0 15px;
    color: #0b2c5f;
}

.benefit-card p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}


/* ==================================================
   POPULAR EXAMPLES
================================================== */

.examples-showcase-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 20px;
}

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

.example-showcase-card {
    padding: 28px 20px;
    text-align: center;
    background: white;
    border: 1px solid #d9bd5e;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.example-hebrew {
    margin-bottom: 14px;
    color: #0b2c5f;
    font-size: 30px;
    font-weight: bold;
}

.example-translation {
    color: #555;
    font-size: 17px;
    line-height: 1.5;
}

.examples-showcase-action {
    margin-top: 35px;
    text-align: center;
}


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

.about-section {
    max-width: 1150px;
    margin: 80px auto;
    padding: 20px;
}

.about-card {
    padding: 45px;
    background: white;
    border: 1px solid #d9bd5e;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.about-card p {
    margin: 0 0 22px;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
}

.about-card p:last-of-type {
    margin-bottom: 0;
}

.about-buttons {
    margin-top: 35px;
    text-align: center;
}

/* ==================================================
   REVEAL
================================================== */

.reveal-section {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   FOOTER
================================================== */

.landing-footer {
    width: 100%;
    margin-top: 50px;
    padding: 45px 20px;
    box-sizing: border-box;
    text-align: center;
    color: white;
    background: #0b2c5f;
    border-top: 2px solid #d4af37;
}

.landing-footer h3 {
    margin: 0 0 12px;
    color: #f0c94c;
    font-size: 28px;
}

.landing-footer p {
    margin: 8px 0;
    color: white;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 22px 0;
}

.footer-links a {
    color: #f0c94c;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 14px;
}

/* =========================
   ETSY PURCHASE BUTTON
========================= */

.etsy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 12px;
    padding: 12px 24px;

    background: linear-gradient(
        to bottom,
        #17365f,
        #071d3d
    );

    color: white;
    text-decoration: none;
    font-weight: 600;

    border: 2px solid #d4af37;
    border-radius: 12px;

    box-shadow: 0 5px 12px rgba(0,0,0,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.etsy-button:hover {
    color: white;
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.etsy-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================
   FREE DEMONSTRATION
========================= */

.usage-message {

    max-width: 700px;
    margin: 32px auto;
    padding: 10px 18px;

    background: #f4fff4;
    border: 1px solid #5aa469;
    border-radius: 8px;

    text-align: center;

    font-size: 22px;
    color: #2f5d34;
}

.usage-message strong {
    color: #1f4723;
}

/* =========================
   DAILY LIMIT REACHED
========================= */

.limit-message {

    max-width: 700px;
    margin: 20px auto;
    padding: 22px 24px;

    background: #fff5f5;
    border: 2px solid #d9534f;
    border-radius: 8px;

    text-align: center;
}

.limit-message h2 {

    margin-top: 0;
    margin-bottom: 12px;

    color: #b22222;
    font-size: 32px;
}

.limit-message p {

    margin: 0;

    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

/* =========================
   ADMINISTRATOR DASHBOARD
========================= */

.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

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

.dashboard-label {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b1e1e;
}

.dashboard-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
}

.dashboard-header p {
    margin: 0;
    font-size: 18px;
    color: #555;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.dashboard-card {
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.dashboard-card strong {
    display: block;
    font-size: 36px;
    color: #8b1e1e;
}

.dashboard-section {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dashboard-section-heading {
    padding: 20px 24px;
    border-bottom: 1px solid #ddd;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.dashboard-table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    background: #f7f7f7;
    font-weight: 700;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 30px;
    }
}


/* =========================
   OLD GENERIC BUTTON RULE
========================= */

.step-btn,
.step-controls button {
    padding: 8px 14px;
    border: 1px solid #c8b68a;
    background: #f4efe4;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.step-btn:hover,
.step-controls button:hover,
.step-controls a:hover {
    text-decoration: none;
    background: #e8dcc0;
}



/* =========================
   NAVBAR BUTTON OVERRIDE
========================= */

.step-controls button,
.step-controls a {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background:
        linear-gradient(
            to bottom,
            #fdfbf5,
            #ece4d2
        );
    color: #111;
    font-weight: 700;
    letter-spacing: 0.2px;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 2px 6px rgba(0,0,0,0.22);
}


.step-controls button:hover,
.step-controls a:hover {

    background:
        linear-gradient(
            to bottom,
            #fff3bf 0%,
            #ffd95e 35%,
            #efba2e 72%,
            #cf8f10 100%
        ) !important;

    color: #111;

    text-decoration: none;

    transform:
        translateY(-2px);

    box-shadow:
        0 0 14px rgba(255,215,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

.step-controls button.active-nav,
.step-controls a.active-nav {

    background:
        linear-gradient(
            to bottom,
            #e3b93f 0%,
            #c68a12 42%,
            #9a6405 78%,
            #6f4300 100%
        ) !important;

    color: #2b1700 !important;
    font-size: medium;

    border:
        1px solid #f2cf67 !important;

    transform:
        translateY(1px);

    text-shadow:
    0 1px 0 rgba(255,235,170,0.42),
    0 -1px 0 rgba(70,35,0,0.45);

    box-shadow:
        inset 0 3px 8px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 1px 3px rgba(0,0,0,0.18) !important;
}

#nav-dashboard {
    background: #B8860B !important;
}

/* =========================
   DASHBOARD LOGOUT
========================= */

.dashboard-logout {
    width: fit-content;
    margin: 20px auto;
    padding: 12px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: linear-gradient(
        to bottom,
        #17365f,
        #071d3d
    );

    border: 2px solid #d4af37;
    border-radius: 12px;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.dashboard-logout .dashing {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(
        to bottom,
        #fdfbf5,
        #ece4d2
    );
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-logout .dashing:hover {
    background: #b8860b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =========================
   ACCOUNT ACTIONS
========================= */

.account-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.account-action-button,
.account-logout {
    width: 180px;
    min-height: 48px;
    padding: 12px 20px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        to bottom,
        #17365f,
        #071d3d
    );

    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;

    border: 2px solid #d4af37;
    border-radius: 12px;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account-action-button:hover,
.account-logout:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.account-logout-form {
    margin: 0;
}

.account-logout:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.active-nav {
    background: linear-gradient(
        to bottom,
        #d4af37,
        #a67c00
    );

    color: #071d3d;
}


/* =========================
   PATTERN DIVIDER
========================= */

.pattern-divider{
    max-width:900px;
    margin:50px auto;
    padding:20px 28px;
    background:#f9fbff;
    border-left:6px solid #c79a2f;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    text-align:center;
}

.pattern-divider h3{
    margin:0 0 10px;
    color:#0b2c63;
    font-size:1.4rem;
}

.pattern-divider p{
    margin:0;
    color:#444;
    font-size:1rem;
    line-height:1.7;
}

.pattern-divider strong{
    color:#0b2c63;
}

.bullets-construct-apposition {
    padding-left: 0;
    list-style-position: inside;
}


/* =========================
   HOW IT WORKS
========================= */

.how-it-works-image {
    text-align: center;
    margin: 35px 0;
}

.how-it-works-image img {
    width: 90%;
    max-width: 800px;
    height: auto;

    border-radius: 10px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);
}

.my-paragraph-chain {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* =========================
   QUICK USER GUIDE
========================= */

.guide-preview{
    max-width:900px;
    margin:40px auto;
}

.guide-card{
    background:#ffffff;
    border-left:5px solid #c79a2f;
    border-radius:8px;
    padding:18px 22px;
    margin-bottom:20px;

    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.25s;
}

.guide-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.guide-card h3{
    margin:0 0 10px;
    color:#0b2c63;
    font-size:1.35rem;
}

.guide-card p{
    margin:0;
    line-height:1.7;
}

.guide-card ul{
    margin:10px 0 0 20px;
    padding:0;
}

.guide-card li{
    margin-bottom:8px;
    line-height:1.6;
}

.guide-card strong{
    color:#0b2c63;
}

.disclaimer{
    background:#fff8e9;
    border-left-color:#b88400;
}

.disclaimer h3{
    color:#9a6a00;
}

.demo-button{
    display:inline-block;
    margin-top:18px;
}

/* =========================
   TRANSLATION EXPLANATIONS
========================= */

.explanation-box {
    background: #f0f7ff;
    border-left: 4px solid #4a90e2;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 6px;
}

.explanation-box ul { margin: 5px 0 0 15px; }
.explanation-box li { margin-bottom: 4px; }

.comparison-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.best-option  { color: #2e7d32; font-weight: bold; margin-bottom: 6px; }
.other-option { color: #555; margin-bottom: 4px; }
.reason       { font-size: 12px; color: #888; margin-left: 5px; }


/* =========================
   MEANING FLOW SYSTEM
========================= */

.meaning-steps {
    text-align: center;
    margin: 10px 0 6px;
    font-size: 16px;
}

.step       { margin: 0 4px; }

.step-arrow {
    margin: 0 6px;
    color: #777;
}

/* =========================
   MEANING BUILD
========================= */

.meaning-build {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}

.build-step {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.4s ease;
    margin: 5px 0;
}

.build-step.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   ACTIVE WORD STATES
========================= */

.active-word {
    background-color: #ffe082;
    border-radius: 4px;
    padding: 2px 4px;
}

.active-construct {
    box-shadow: 0 0 0 3px #cc0000, 0 0 12px rgba(204,0,0,0.6);
    transform: scale(1.05);
    margin-bottom: 5px;
}

.active-absolute {
    box-shadow: 0 0 0 3px #008000, 0 0 12px rgba(0,128,0,0.6);
    transform: scale(1.05);
    margin-bottom: 5px;
}


/* =========================
   FORM SECTION
========================= */

.form-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 52px;
    margin-top: 26px;
    margin-bottom: 12px;
}

.word {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-align: center;
}

.meaning-choice { font-weight: bold; }

.cue-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #8a6d2f;
    margin-bottom: 10px;
    animation: fadeInCue 0.5s ease;
}

/* =========================
   GOLD BADGES
========================= */

.form-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    font-size: medium;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 999px;
    cursor: pointer;
    color: #3a2a00;
    background: linear-gradient(145deg, #f7d774, #d4a93a);
    border: 1px solid #c89b2d;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}

.form-badge:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(145deg, #ffdf80, #e0b84f);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.form-badge:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-badge.no_change,
.form-badge.no_visible_change { background: linear-gradient(145deg, #e6d37a, #caa72c); }

.form-badge.vowel_reduction {
    background: linear-gradient(145deg, #d4e4f7, #7faedb);
    color: #0d2a4d;
}

.form-badge.ending_change {
    background: linear-gradient(145deg, #f7c27a, #d48a2c);
}

.form-badge.feminine_change {
    background: linear-gradient(145deg, #f7d7f0, #c76db5);
    color: #4d0d43;
}

.form-badge.irregular_stem_change,
.form-badge.irregular_change {
    background: linear-gradient(145deg, #f7a6a6, #c94a4a);
    color: #4a0000;
}


/* =========================
   FORM CHANGE (FINAL)
========================= */

.form-change {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    direction: ltr;

    font-size: 18px;
    line-height: 1.5;
}

.hebrew-inline {
    font-size: 26px;
    direction: rtl;
    font-weight: 700;
}

.absolute-line,
.construct-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.absolute-label  { color: #2e7d32; font-weight: 600; }
.construct-label { color: #c62828; font-weight: 600; }


/* =========================
   EXAMPLE SECTION — 3‑COLUMN GRID
========================= */
.section-title {
    font-size: 20px;
    min-width: 450px;
}

.example-section.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 32px;
    margin-bottom: 35px;
}

.example-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
}

.example-buttons button,
.active-example {
    font-size: 18px !important;      /* increase Hebrew size */
    font-weight: 600;     /* optional: make it bolder */
    letter-spacing: 1px;  /* optional: improve readability */
}


/* =========================
   EXAMPLE BUTTONS
========================= */

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.example-buttons button {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #f9f7f2;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.15s ease;
}

.example-buttons button:hover {
    background: #e8e2d6;
    border-color: #a88c5a;
}

.active-example {
    background: #333 !important;
    color: white !important;
    border-color: #333 !important;
}


/* =========================
   CLICKABLE LABELS
========================= */

.clickable-label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-label:hover {
    text-decoration: underline;
}

.clickable-label.active-label {
    background: #8b6f3d;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
}

/* =========================
   WORD LABEL MASK / REVEAL (RESTORED)
========================= */

/* Start masked */
.word-label {
    opacity: 1;

    color: transparent;

    text-shadow:
        0 0 5px rgba(0,0,0,0.75);

    background:
        rgba(25,25,25,0.18);

    padding: 2px 6px;

    border-radius: 6px;

    letter-spacing: 0.5px;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.22s ease;

    cursor: pointer;
}

/* =========================
   MAIN ERRORS
========================= */
.main-error {
    color: red;
    font-size: 32px !important;
    font-weight: bold;
    margin-bottom: 36px;
    font-family: 'Courier New', Courier, monospace;
}

/* =========================
   UNFOUND WORD ERROR
========================= */

.unknown-word {
    border: 4px dashed white !important;
    border-radius: 0px !important;
    background: #9e2f2f !important;
    box-shadow: 0 0 10px rgba(192,57,43,0.25);
    color: white;
    overflow: visible !important;
}

.unknown-word .word-label {
    /* background: #8b0000 !important; */
    color: white;
    box-shadow: none !important;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Revealed when clicked */
.word-label.active-label {
    color: inherit;

    opacity: 1;

    text-shadow: none;

    background:
        rgba(255,255,255,0.08);

    box-shadow: none;

    transform: none;
}

/* =========================
   TYPOGRAPHY
========================= */
.group-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
    color: #222;
}

.examples-title {
    font-size: 22px;
    font-weight: 600;
    padding-bottom: 6px;
    margin-bottom: 14px;
    color: #1f1f1f;
    text-align: center;
    border-bottom: 1px solid #d8d2c5;
}

.section-sub {
    font-size: 18px;
    color: #6b6252;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 0;
    grid-column: 1 / -1;
}

.examples-subtitle {
    font-size: 14px;
    color: #6b6252;
    margin-top: -8px;
    margin-bottom: 14px;
    text-align: center;
}

.translation-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: #9b7b12;
    margin-top: 4px;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.translation-sub {
    font-size: 20px;
    letter-spacing: 0.5px;
    font-weight: 800;
    color: #666;
}

.trophy {
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1;
}

.learning-panel {
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(180,160,120,0.22);
    border-left: 4px solid #c9a54d;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04);
    backdrop-filter: blur(2px);
}

/* =========================
   INTERACTIVE STATES
========================= */
.reveal-li {
    display: none;
    opacity: 0.4;
}

.reveal-li.show {
    display: list-item;
    opacity: 1;
    font-weight: bold;
}

.form-explanation.hidden {
    display: none;
}

.form-explanation.open {
    max-height: 120px;
    overflow: visible;
}

.stage {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
}

/* visible state */
.stage.show {
    opacity: 1 !important;
    transform: translateY(0);
}

/* 🔥 SAFETY: if animation fails, still show content */
.step-meaning .stage {
    opacity: 1;
}

/* =========================
   UTILITIES
========================= */
.headers-centered {
    text-align: center;
}

.correct { color: green; }
.wrong   { color: red; }

.new-word {
    color: #b8964f;
    font-weight: 700;
    background: rgba(184,150,79,0.2);
    padding: 2px 6px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInBlock {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInCue {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.error-card {
    max-width: 650px;
    width: 100%;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.error-code {
    font-size: 5rem;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 15px;
}

.error-card h1 {
    margin-bottom: 15px;
}

.error-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.error-home-button {
    display: inline-block;
    background: #8B0000;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.error-home-button:hover {
    background: #6f0000;
}


/* /* =========================
   LANDING LOGO
========================= */

/* .landing-logo{
    display:flex;
    justify-content:center;
    margin:10px 0 15px;
}

.landing-logo img{
    width:90px;
    height:auto;
} */

.landing-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 20px;
    border: 2px solid #d4af37;
}

.landing-logo img{
    width: 375px;
    height: auto;
    /* padding: 15px; */
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.35));
    transition: transform 0.3s ease;
}

.landing-logo img:hover{
    transform: scale(1.05);
} */

/* =========================
   LANDING LOGO
========================= */

.landing-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:18px 0 18px;
}

.landing-logo img{
    width:300px;
    max-width:80%;
    height:auto;

    padding:18px 24px;

    background:#fff;

    border:1px solid rgba(212,175,55,.35);
    border-radius:20px;

    box-shadow:
        0 12px 28px rgba(0,0,0,.08),
        0 0 18px rgba(212,175,55,.15);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.landing-logo img:hover{
    transform:translateY(-2px);

    box-shadow:
        0 16px 32px rgba(0,0,0,.10),
        0 0 22px rgba(212,175,55,.22);
}

@media (max-width: 600px){
    .landing-logo{
        margin: 15px 0;
    }

    .landing-logo img{
        width: 240px;
        padding: 14px 18px;
    }
}

/* =========================
   REGISTER-LOGIN PAGE
========================= */

.account-page {
    min-height: calc(100vh - 180px);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.account-card {
    width: 100%;
    max-width: 620px;
    padding: 42px 46px;
    background: #ffffff;
    border: 2px solid #d7ae2b;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.account-card h1 {
    margin: 0 0 14px;
    text-align: center;
    color: #173b7a;
    font-size: 2.25rem;
}

.account-intro {
    margin: 0 0 30px;
    text-align: center;
    color: #514b43;
    font-size: 1.1rem;
    line-height: 1.6;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #172f5f;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #a8a8a8;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #23489a;
    box-shadow: 0 0 0 3px rgba(35, 72, 154, 0.15);
}

.help-text {
    color: #645f57;
    font-size: 0.9rem;
    line-height: 1.45;
}

.help-text ul {
    margin: 6px 0 0;
    padding-left: 22px;
}

.field-error,
.form-errors {
    padding: 10px 12px;
    border: 1px solid #c94b4b;
    border-radius: 7px;
    background: #fff0f0;
    color: #9f2424;
    font-size: 0.95rem;
}

.field-error {
    margin-top: 2px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.account-button {
    width: 100%;
    margin-top: 6px;
    padding: 13px 20px;
    border: none;
    border-radius: 9px;
    background: #23489a;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.account-button:hover {
    background: #173b7a;
}

.account-link {
    margin: 24px 0 0;
    text-align: center;
    color: #514b43;
}

.account-link a {
    color: #23489a;
    font-weight: 700;
    text-decoration: none;
}

.account-link a:hover {
    text-decoration: underline;
}

.account-link-larger {
    font-size: 19px;
}

.success-message {
    padding: 10px 12px;
    border: 1px solid #2e8b57;
    border-radius: 7px;
    background: #eefaf2;
    color: #1f6f43;
    /* font-size: 0.95rem; */
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* =========================
   MY ACCOUNT PAGE
========================= */

.my-account-page {
    min-height: calc(100vh - 180px);
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media (max-width: 650px) {
    .account-page {
        padding: 35px 14px;
    }

    .account-card {
        padding: 30px 22px;
    }

    .account-card h1 {
        font-size: 1.8rem;
    }
}

/* =========================
   EXAMPLES (OLD SYSTEM)
========================= */

.examples h3 { margin-bottom: 10px; }



.example-group strong {
    display: block;
    margin-bottom: 5px;
}

/* =========================
   CHAIN CONTAINER (OLD)
========================= */

.chain > * { flex-shrink: 0; }

.arrow,
.arrow-forward,
.arrow-back {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.arrow-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 4px 10px;

    min-width: 120px;
}

.arrow-forward {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
    letter-spacing: 0.5px;
}

.arrow-back {
    font-size: 18px;
    color: #7a7467;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* =========================
   RESPONSIVE SYSTEM
========================= */

@media (max-width: 900px) {
    .page-width {
        padding: 14px;
    }

    .chain-container {
        max-width: 100%;
    }

    .semantic-stage {
        padding: 38px 28px;
    }

    .best-translation-box {
        padding: 34px 28px;
    }
}

@media (max-width: 700px) {
    .phase-header h1 {
        font-size: 42px;
    }

    .semantic-function,
    .semantic-meaning {
        font-size: 28px;
    }

    .semantic-badge {
        font-size: 28px;
        padding: 10px 18px;
    }

    .best-translation {
        font-size: 38px;
    }

    .semantic-stage {
        padding: 34px 24px;
    }

    .best-translation-box {
        padding: 30px 24px;
    }
}

@media (max-width: 500px) {
    .phase-header h1 {
        font-size: 34px;
    }

    .semantic-function,
    .semantic-meaning {
        font-size: 24px;
    }

    .semantic-badge {
        font-size: 24px;
        padding: 8px 16px;
    }

    .best-translation {
        font-size: 30px;
    }

    .semantic-stage {
        padding: 28px 18px;
    }

    .best-translation-box {
        padding: 24px 18px;
    }

    .chain-container {
        padding: 8px;
    }

    .navbar {
    padding: 12px 14px;
    }

    .logo {
        font-size: 34px;
    }

    .step-controls {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .step-controls button,
    .step-controls a {
        padding: 8px 10px;
        text-decoration: none;
        font-size: 13px;
    }
}

.hebrew-word.apposition.head {
    border: 5px solid #4a148c !important;
    background: #ede7f6 !important;
    color: #4a148c !important;
}

.hebrew-word.apposition.phrase {
    border: 5px solid #9c27b0 !important;
    background: #f8eafa !important;
    color: #4a148c !important;
}

.apposition-phrases {
    display: flex;
    flex-direction: row-reverse;   /* Right-to-left layout */
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px auto 12px;
    flex-wrap: wrap;
}

.phrase-box {
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.head-phrase {
    border: 4px solid #4a148c;
    background: #ede7f6;
    color: #4a148c;
}

.apposition-phrase {
    border: 4px solid #9c27b0;
    background: #f8eafa;
    color: #4a148c;
}

.phrase-equals {
    font-size: 32px;
    font-weight: bold;
    color: #7b1fa2;
}

.phrase-hebrew {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2b1b4d;
    direction: rtl;
}

.phrase-english {
    font-size: 18px;
    color: #555;
    margin-top: 4px;
}

    .usage-message {
        font-size: 16px;
        padding: 14px;
    }

    .limit-message {
        padding: 18px 16px;
    }

    .limit-message h2 {
        font-size: 22px;
    }

    .limit-message p {
        font-size: 15px;
    }

    .etsy-button {
        width: 100%;
        font-size: 16px;
        padding: 12px 14px;
        gap: 8px;
    }

    .etsy-icon {
        width: 18px;
        height: 18px;
    }

/* ==================================================
   RESPONSIVE LANDING PAGE
================================================== */

@media (max-width: 1200px) {

    .step-controls {
        max-width: 95%;
        gap: 14px;
    }

}


@media (max-width: 1000px) {
    .examples {
    padding-top: 160px;
}

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

}


@media (max-width: 850px) {

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

}


@media (max-width: 751px) {

    /* =========================
       NAVBAR
    ========================= */

    .step-controls {
        position: static;
        /* position: fixed !important;
        top: 0 !important; */
        
        transform: none;
        flex-wrap: wrap;
        width: auto;
        max-width: none;
        margin: 0 15px 30px;
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .step-controls button,
    .step-controls a {
        flex: 1 1 120px;
        text-align: center;
    }

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

    .journey-grid,
    .demo-stages {
        grid-template-columns: 1fr;
    }

    .demo-toolbar {
        flex-direction: column;
    }

    .demo-hebrew {
        font-size: 38px;
    }

    .demo-translation {
        font-size: 24px;
    }

}

@media (max-width: 600px) {
        .step-controls {
        position: static;
        transform: none;
        flex-wrap: wrap;
        width: auto;
        max-width: none;
        margin: 0 15px 30px;
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .step-controls button,
    .step-controls a {
        flex: 1 1 120px;
        text-align: center;
    }

    .hero {
        margin: 45px 15px;
        padding: 35px 22px;
    }

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

    .hero h2 {
        font-size: 20px;
    }

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

    .section-heading h2 {
        font-size: 30px;
    }

    .feature-grid,
    .benefits-grid,
    .examples-showcase-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 30px 24px;
    }

    .footer-links a {
        display: block;
        margin: 12px 0;
    }

}

/* ==================================================
   RESPONSIVE NAVBARS
================================================== */

@media screen and (max-width: 1000px) {

    /* =========================
       LANDING PAGE NAVBAR
    ========================= */

    .hero {
        padding-top: 160px;
    }

    .step-controls.landing-nav {
        position: fixed !important;
        top: -60px !important;
        left: 15px !important;
        right: 15px !important;
        transform: none !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;

        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px !important;

        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .step-controls.landing-nav .nav-logo {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-right: 0 !important;
        justify-content: center !important;
    }

    .step-controls.landing-nav button,
    .step-controls.landing-nav a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .step-controls.landing-nav .landing-nav-button {
        grid-column: 1 / -1 !important;
    }

    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* =========================
    ANALYZER NAVBAR
    ========================= */

    .step-controls:not(.landing-nav) {
        position: fixed !important;
        top: 0 !important;
        left: 15px !important;
        right: auto !important;
        transform: none !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;

        width: calc(100vw - 30px) !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px !important;

        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .step-controls:not(.landing-nav) .nav-logo {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-right: 0 !important;
        justify-content: center !important;
    }

    .step-controls:not(.landing-nav) .nav-logo span {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        font-size: 1.25rem;
        line-height: 1.1;
        text-align: center;
    }

    .step-controls:not(.landing-nav) .nav-logo {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0;
        margin-right: 0 !important;
        justify-content: center !important;
    }

    .step-controls:not(.landing-nav) .nav-logo img {
        height: 42px;
    }

    .step-controls:not(.landing-nav) button,
    .step-controls:not(.landing-nav) a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .step-controls:not(.landing-nav) #nav-meaning {
        grid-column: 1 / -1 !important;
    }

}

/* ==================================================
   RESPONSIVE ANALYZER EXAMPLES
================================================== */

@media screen and (max-width: 800px) {

    .examples {
        padding: 140px 18px 24px;
    }

    .example-section.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 22px;
    }

    .example-section .full-width,
    .example-section .section-sub {
        grid-column: 1 !important;
    }

    .example-group {
        width: 100%;
        min-width: 0;
    }

    .example-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .example-buttons button {
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    .my-account-page {
        padding: 60px 18px;
        width: 100%;
        box-sizing: border-box;
    }

        .usage-message,
    .limit-message {
        width: calc(100% - 32px);
        margin: 16px auto;
        padding: 16px;
        box-sizing: border-box;
    }

    .usage-message {
        font-size: 18px;
    }

    .limit-message h2 {
        font-size: 26px;
    }

    .limit-message p {
        font-size: 16px;
    }

    .etsy-button {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 18px;
    }

    .etsy-icon {
        width: 20px;
        height: 20px;
    }

}

