/* ─── design tokens ───────────────────────────────────────────────
   One place for colour and type. The site's identity was already
   green, so the accent is a refined version of it rather than a new
   hue: bare `green` (#008000) fought the header photography.
   ------------------------------------------------------------------ */
:root{
    /* ground and ink */
    --paper:      #F5F4EF;   /* warm neutral page ground */
    --card:       #FFFFFF;   /* raised surfaces */
    --edge:       #E2E0D6;   /* hairline borders */
    --ink:        #1E211C;   /* near-black, faint green-brown bias */
    --ink-soft:   #5A5F55;   /* secondary text */
    --ink-faint:  #6A6E64;   /* captions, counts — 4.7:1 on paper, AA at any size */

    /* accent */
    --accent:      #2F6B41;  /* steppe green */
    --accent-deep: #1F4A2C;  /* hover / pressed */
    --accent-wash: #E8F0E8;  /* tinted fills */

    /* the three languages, muted into one family */
    --uz: #2E7D4F;
    --tr: #A8452F;
    --ru: #3D5A8A;

    /* links inside content. Deliberately NOT --ru: blue is a language
       marker on this site, so using it for links would read as "Russian". */
    --link: #24573A;
    --tg:   #2C7EB8;   /* Telegram brand, for the share button only */

    /* type */
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                  Georgia, "Times New Roman", serif;
    --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

    /* elevation */
    --shadow-sm: 0 1px 2px rgba(30,33,28,.06), 0 2px 8px rgba(30,33,28,.05);
    --shadow-md: 0 2px 6px rgba(30,33,28,.08), 0 8px 24px rgba(30,33,28,.08);
}

*{
    margin: 0;
    padding: 0;
}

/* ─── base typography ─────────────────────────────────────────────
   The site previously set no font-family at all, so everything fell
   back to the browser default. Proverbs are the content, so they get
   a serif; interface chrome gets the sans.
   ------------------------------------------------------------------ */
body{
    font-family: var(--font-serif);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* style.css is linked before Bootstrap on every page, so Bootstrap's
   `body { font-family }` would otherwise win at equal specificity and
   drop our serif. `html body` (0,0,2) beats its `body` (0,0,1)
   regardless of link order. */
html body{ font-family: var(--font-serif); }

/* The menu now inherits the serif so it matches the rest of the site;
   only the small functional controls stay in the sans. */
.search-langs, .search-count, .search-lang, .pagination,
.konk-filters, .lex-gloss, .lex-count, .qiyos-pn, .qiyos-note,
.quiz-mode-desc, .quiz-progress, .footer h4, .footer p{
    font-family: var(--font-sans);
}

a{ color: var(--accent); }
a:hover{ color: var(--accent-deep); }

/* visible keyboard focus everywhere (there was none) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, .accordion-button:focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce){
    *{ transition: none !important; animation: none !important; }
    html{ scroll-behavior: auto !important; }
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)), url(images/banner2.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
.nav-links{
    flex: 1;
    text-align: left;
}
.nav-links > ul > li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: white;
    text-decoration: none;
    /* the menu shares the site's serif so it reads as one voice with the
       headings and proverbs, not a separate system-sans interface */
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.nav-links > ul > li::after{
    content: '';
    width: 0%;
    height: 3px;
    /* warm gold reads clearly on both the dark header photos and the green
       article gradient, and stands apart from the white nav text — the
       plain white underline blended into the text and was easy to miss */
    background: #E8B84B;
    border-radius: 2px;
    display: block;
    margin-top: 3px;
    transition: 0.4s;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.nav-links > ul > li:hover::after{
    width: 100%;
}

/* grouped dropdowns */
.nav-links ul{ list-style: none; }
.has-sub > a::after{
    content: " \25BE";        /* small down caret */
    font-size: 11px;
    opacity: 0.8;
}
.submenu{
    position: absolute;
    top: 100%;
    left: 0;              /* menu sits on the left, so dropdowns hang from the left edge */
    min-width: 190px;
    background: rgba(20, 40, 25, 0.97);
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 5;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li{ display: block; padding: 0; }
.submenu li a{
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.submenu li a:hover{ background: rgba(255,255,255,0.12); }
.text-box{
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1{
    font-size: 50px;
}
.text-box p{
    margin: 10px;
    font-size: 16px;
    color: white;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
}
.hero-btn:hover{
    border: 1px;
    background: var(--accent);
    transition: 0.8s;
}
nav .bi{
    display: none;

}

@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
    }
    .nav-links > ul > li{
        display: block;
    }
    .nav-links{
        position: absolute;
        background: var(--accent);
        height: 100vh;
        width: 230px;
        top: 0;
        left: -230px;
        text-align: left;
        z-index: 2;
        transition: 0.65s;
        overflow-y: auto;
    }
    /* in the drawer, sub-items sit open and indented, no hover needed */
    .submenu{
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 2px 0 6px;
        min-width: 0;
    }
    .submenu li a{ padding: 6px 0 6px 16px; }
    .has-sub > a::after{ content: ""; }
    nav .bi{
        display: block;
        color: white;
        margin: 10px;
        font-size: 18px;
        cursor: pointer;
       
        

    }
    .nav-links ul{
        padding: 15px;
    }
    .row{
        flex-direction: column;
    }
    .cta h1{
        font: 24px;
    }
    .articles{
       left: 10%;
       padding: 5%;
    }
}

/* section2 */
.section2{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
h1{
    font-size: clamp(28px, 4.2vw, 38px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
    padding-bottom: 10px;
}
h2{ font-size: 24px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
h3{ font-size: 19px; }

p{
    color: var(--ink-soft);
    font-size: 15.5px;
    font-weight: 400;      /* 300 rendered thin and washed in a serif */
    line-height: 1.65;     /* unitless, so it scales with font-size */
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: var(--accent-wash);
    border-radius: 10px;
    margin-bottom: 5%;
    padding:20px 12px;
    box-sizing:border-box;
    transition: 0.3s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

/* section3 */

.section3{
    width: 80%;
    margin: auto;
    text-align: center;
}
.section3-col{
    flex-basis: 31%;  
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;  
    transition: 0.3s;
}   

.section3-col img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.section3-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);  
}

.articles{
    overflow-y: hidden;
    overflow-x: scroll;

}
.articles .card-img-top{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}




/* section4 */

.section4{
    width: 80%;
    margin: auto;
    text-align: center;
}
.section4 p{
    text-align: left;
}
.section4 .carousel{
    max-width: 680px;
    margin: 0 auto;
}
.carousel-item img{
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

.card{
    text-align: right;
    background: none;
    padding-right: 10px;
}

.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-image: linear-gradient(rgba(54, 92, 218, 0.5), rgba(56, 193, 149, 0.5), rgba(41, 149, 84, 0.5));
    flex-basis: auto;
}

.footer h4{
    margin-bottom: 25px;
    margin-top: 25px;
    font-weight: 600;
    color: white;
}

.icons {
    color: white;
    font-size: x-large;
}
.facebook{
    color: white;
    transition: 0.4s;
    text-decoration: none;
    padding: 1px;

}
.facebook:hover{
    font-size: large;
}.scholar{
    color: white;
    transition: 0.4s;
    text-decoration: none;
    padding: 1px;

}
.scholar:hover{
    font-size: large;
}
.researchgate{
    color: white;
    transition: 0.4s;
    text-decoration: none;
    padding: 1px;

}
.researchgate:hover{
    font-size: large;
}
.telegram{
    color: white;
    transition: 0.4s;
    text-decoration: none;
    padding: 1px;

}
.telegram:hover{
    font-size: large;
}


.footer p{
    color: white;
    
    
}

/* uzbekProverbs */
.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.6), rgba(4,9,30,0.6)), url(images/uzbekProverbs.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header h1{
    margin-top: 100px;
}

.maqollar{
    width: 80%;
    margin: auto;
    text-align: center;
}
.maqollar p{
    text-align: left;
}

/* turkishProverbs */
.turksub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.5), rgba(4,9,30,0.5)), url(images/turkishHeader.jpg
    );
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}
.maqollar h1{
    margin-top: 30px;
}
.accordion-body{
    text-align: left;
    color: var(--ink-soft);
}

.maqollar{
    margin-bottom: 8%;
}
.pagination{
    justify-content: center;
}
.russub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.5), rgba(4,9,30,0.5)), url(images/russianDaily.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.articleHeader{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(44, 74, 207, 0.5), rgba(51, 183, 141, 0.5));
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}
.article2Header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(44, 74, 207, 0.5), rgba(51, 183, 141, 0.5));
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.dropdown button{ 
    background-color: rgb(80, 135, 238);   
}
.dropdown{
   padding-bottom: 5%;  
}

.izohsiz{
    text-align: left;

}

/* parallels */
.parallels-section{
    width: 80%;
    max-width: 900px;
    margin: auto;
    padding: 40px 0 60px;
}
.parallels-intro{
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}
.parallel-card{
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
    transition: 0.3s;
}
.parallel-card:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.15);
}
.parallel-row{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.parallel-item{
    flex: 1 1 220px;
    background: white;
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 12px 14px;
}
.parallel-item p{
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0 0;
    margin: 0;
}
.parallel-note{
    font-size: 13px;
    color: var(--ink-soft);
    padding: 10px 0 0;
    margin: 0;
}
.parallels-outro{
    text-align: center;
    margin-top: 24px;
}
.parallels-outro a{
    color: var(--accent);
}

/* quiz */
.quiz-section{
    width: 80%;
    max-width: 760px;
    margin: auto;
    text-align: center;
    padding: 50px 0 60px;
    min-height: 45vh;
}
.quiz-modes{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.quiz-mode-btn{
    flex: 1 1 260px;
    max-width: 340px;
    background: var(--accent-wash);
    border: none;
    border-radius: 12px;
    padding: 24px 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.quiz-mode-btn:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}
.quiz-mode-btn .bi{
    font-size: 30px;
    color: var(--accent);
}
.quiz-mode-name{
    font-size: 18px;
    font-weight: 600;
}
.quiz-mode-desc{
    font-size: 13px;
    color: var(--ink-soft);
}
.quiz-progress{
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 8px;
}
.quiz-instruction{
    font-size: 14px;
}
.quiz-question{
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 12px;
    padding: 22px 18px;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
}
.quiz-options{
    display: grid;
    gap: 10px;
}
.quiz-option{
    background: white;
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}
.quiz-option:hover:enabled{
    border-color: var(--accent);
    background: var(--card);
}
.quiz-option.correct{
    background: #DCEFDD;
    border-color: var(--accent);
    font-weight: 600;
}
.quiz-option.wrong{
    background: #F7DEDA;
    border-color: var(--tr);
}
.quiz-feedback{
    min-height: 28px;
    margin-top: 12px;
    font-weight: 600;
}
.quiz-feedback.good{ color: var(--accent); }
.quiz-feedback.bad{ color: var(--tr); }
.quiz-next-btn{
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 26px;
    font-size: 15px;
    cursor: pointer;
    margin: 8px 5px 0;
    transition: 0.3s;
}
.quiz-next-btn:hover{
    box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.25);
}
.quiz-result-score{
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    padding: 0;
}

/* search */
.search-title{
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 6px;
}
.search-section{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.search-section input[type="search"]{
    max-width: 600px;
    margin: 10px auto 0;
}
.search-langs{
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 14px;
}
.search-langs label{
    margin: 0 10px;
    cursor: pointer;
}
.search-count{
    font-weight: 500;
}
#proverbSearchResults{
    max-width: 800px;
    margin: 10px auto 0;
    text-align: left;
}
.search-result{
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: 0.3s;
}
.search-result:hover{
    box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.15);
}
.search-lang{
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    margin-right: 8px;
    vertical-align: middle;
}
.search-lang-uz{ background: var(--uz); }
.search-lang-tr{ background: var(--tr); }
.search-lang-ru{ background: var(--ru); }
.search-lang-en{ background: var(--ink-faint, #6A6E64); }
.search-proverb{
    font-weight: 600;
    font-size: 16px;
}
.search-explanation{
    color: var(--ink-soft);
    font-size: 13px;
    padding: 8px 0 0;
    margin: 0;
}
.search-source{
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}
.search-source:hover{
    text-decoration: underline;
}
/* favorites */
.favorites-section{
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 40px 0 60px;
    text-align: center;
    min-height: 40vh;
}
.favorites-section .search-result{
    text-align: left;
}
.fav-btn.saved{
    border-color: var(--accent);
    color: var(--accent);
    background: var(--card);
}
.fav-remove:hover{
    border-color: var(--tr);
    color: var(--tr);
}
.fav-empty{
    font-size: 15px;
}
.fav-hint{
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 20px;
}

.share-row{
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.share-btn{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid var(--edge);
    border-radius: 16px;
    padding: 3px 12px;
    font-size: 12.5px;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}
.share-btn:hover{
    border-color: var(--accent);
    color: var(--accent);
}
.share-btn.share-tg:hover{
    border-color: var(--tg);
    color: var(--tg);
}
.anchor-highlight{
    animation: anchorFlash 2.5s ease-out;
    border-radius: 8px;
}
li.anchor-highlight{
    display: block;
    padding: 4px 8px;
}
@keyframes anchorFlash{
    0%   { background-color: #b9f0b9; box-shadow: 0 0 0 4px #b9f0b9; }
    60%  { background-color: #e4fbe4; box-shadow: 0 0 0 4px #e4fbe4; }
    100% { background-color: transparent; box-shadow: none; }
}
/* ot leksikasi */
.leksika-section{
    width: 80%;
    max-width: 900px;
    margin: auto;
    padding: 40px 0 60px;
}
.leksika-loading{
    text-align: center;
    color: var(--ink-soft);
}
.lex-lang{
    margin-bottom: 34px;
}
.lex-lang h2{
    font-size: 20px;
    text-align: left;
    margin-bottom: 14px;
    color: var(--ink);
}
.lex-row{
    border-bottom: 1px solid var(--edge);
}
.lex-button{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    padding: 9px 4px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: 0.2s;
}
.lex-button:hover{
    background: var(--card);
}
.lex-button[aria-expanded="true"]{
    background: var(--accent-wash);
}
.lex-word{
    flex: 0 0 120px;
    font-weight: 600;
}
.lex-gloss{
    flex: 1 1 160px;
    color: var(--ink-soft);
    font-size: 14px;
}
.lex-bar{
    flex: 0 0 130px;
    height: 8px;
    background: var(--edge);
    border-radius: 4px;
    overflow: hidden;
}
.lex-bar span{
    display: block;
    height: 100%;
    background: var(--uz);
}
.lex-count{
    flex: 0 0 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft);
}
.lex-proverbs{
    padding: 4px 0 14px 12px;
}
.lex-proverbs ul{
    margin: 0;
    padding-left: 18px;
}
.lex-proverbs li{
    margin-bottom: 5px;
    text-align: left;
}
.lex-proverbs a{
    color: var(--link);
    text-decoration: none;
}
.lex-proverbs a:hover{
    text-decoration: underline;
}
.lex-more, .lex-note{
    color: var(--ink-faint);
    font-size: 14px;
    margin: 8px 0 0;
}
@media (max-width: 700px){
    .lex-button{ flex-wrap: wrap; gap: 6px 10px; }
    .lex-word{ flex: 0 0 auto; }
    .lex-gloss{ flex: 1 1 100%; order: 3; }
    .lex-bar{ flex: 1 1 60px; }
}

/* konkordans (KWIC) */
.konk-section{
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0 60px;
}
.konk-controls{
    max-width: 760px;
    margin: 0 auto 24px;
}
.konk-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    margin-top: 12px;
}
.konk-langs label, .konk-sort{
    margin-right: 14px;
    font-size: 14px;
    color: var(--ink-soft);
}
.konk-sort select{
    margin-left: 6px;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid var(--edge);
}
.konk-results{
    overflow-x: auto;
}
.konk-table{
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 2px 10px;
    align-items: baseline;
    font-size: 15px;
    min-width: 640px;
}
.konk-line{
    display: contents;
    color: inherit;
    text-decoration: none;
}
.konk-line:hover .konk-left,
.konk-line:hover .konk-right,
.konk-line:hover .konk-key{
    background: var(--accent-wash);
}
.konk-lang{
    font-size: 11px;
    align-self: center;
}
.konk-left{
    text-align: right;
    color: var(--ink-soft);
    white-space: nowrap;
}
.konk-key{
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    padding: 2px 4px;
    white-space: nowrap;
}
.konk-right{
    text-align: left;
    color: var(--ink-soft);
    white-space: nowrap;
}
.konk-empty{
    text-align: center;
    color: var(--ink-faint);
}
@media (max-width: 600px){
    .konk-table{ font-size: 13px; }
}

/* collocations on the lexeme page */
.lex-colloc{
    margin: 4px 0 10px 12px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.lex-colloc-label{
    font-weight: 600;
    color: var(--ink);
    margin-right: 4px;
}
.lex-colloc a{
    color: var(--link);
    text-decoration: none;
    white-space: nowrap;
}
.lex-colloc a:hover{
    text-decoration: underline;
}

/* qiyos — cross-language comparison */
.qiyos-section{
    width: 92%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0 60px;
}
.qiyos-loading{ text-align: center; color: var(--ink-faint); }
.qiyos-body{ overflow-x: auto; }
.qiyos-row{
    display: grid;
    grid-template-columns: 170px 1fr 1fr 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--edge);
    align-items: start;
    min-width: 720px;
}
.qiyos-head{ border-bottom: 2px solid var(--edge); padding-bottom: 8px; }
.qiyos-colhead{ text-align: left; }
.qiyos-concept{ display: flex; flex-direction: column; }
.qiyos-concept-uz{ font-weight: 700; color: var(--ink); }
.qiyos-concept-en{ font-size: 12px; color: var(--ink-faint); font-style: italic; }
.qiyos-cell{ display: flex; flex-direction: column; gap: 4px; }
.qiyos-cell-empty{ opacity: 0.6; }
.qiyos-lex{ font-weight: 600; color: var(--accent); }
.qiyos-none{ color: var(--ink-faint); font-weight: 700; }
.qiyos-pn{ font-size: 12px; color: var(--ink-faint); }
.qiyos-colloc{ font-size: 14px; line-height: 1.7; }
.qiyos-colloc a{ color: var(--link); text-decoration: none; white-space: nowrap; }
.qiyos-colloc a:hover{ text-decoration: underline; }
.qiyos-note{ font-size: 12px; color: var(--ink-faint); font-style: italic; }

/* ─── component refinements ───────────────────────────────────────
   Appended last so these win on equal specificity. Bootstrap is
   steered through its own --bs-* variables rather than by
   out-specifying it, which keeps the cascade predictable.
   ------------------------------------------------------------------ */

/* headers over photography: give the title real presence */
.sub-header h1, .turksub-header h1, .russub-header h1,
.articleHeader h1, .article2Header h1, .text-box h1{
    letter-spacing: -0.015em;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.sub-header p, .turksub-header p, .russub-header p,
.articleHeader p, .article2Header p{
    font-size: 16px;
    max-width: 60ch;
    margin-inline: auto;
}

/* the flat blue→teal gradient read as generic; ink-to-green sits with
   the photography on the other headers */
.articleHeader, .article2Header{
    background-image: linear-gradient(150deg, #22302A 0%, #2F6B41 60%, #3E7F50 100%);
}

/* proverb pages ------------------------------------------------- */
.maqollar{
    max-width: 880px;
    padding-inline: 8px;
}
.maqollar h1{ margin-top: 44px; margin-bottom: 6px; }

/* Bootstrap accordion, via its own variables */
.accordion{
    --bs-accordion-bg: var(--card);
    --bs-accordion-btn-bg: var(--card);
    --bs-accordion-active-bg: var(--accent-wash);
    --bs-accordion-active-color: var(--accent-deep);
    --bs-accordion-border-color: var(--edge);
    --bs-accordion-border-radius: 10px;
    --bs-accordion-inner-border-radius: 9px;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(47,107,65,.22);
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-color: var(--ink);
}
.accordion-item{ margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.accordion-button{
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}
.accordion-button:not(.collapsed){ box-shadow: none; }
.accordion-body{
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* unannotated lists */
.izohsiz{ list-style: none; }
.izohsiz li{
    padding: 11px 4px 11px 20px;
    border-bottom: 1px solid var(--edge);
    font-size: 16.5px;
    line-height: 1.55;
    position: relative;
    transition: background .18s;
}
.izohsiz li::before{
    content: "";
    position: absolute;
    left: 4px; top: 1.15em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .5;
}
.izohsiz li:hover{ background: var(--accent-wash); }
.izohsiz li:target{
    background: var(--accent-wash);
    box-shadow: inset 3px 0 0 var(--accent);
}

/* search ---------------------------------------------------------- */
.search-section input[type="search"]{
    border: 1px solid var(--edge);
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 17px;
    padding: 12px 16px;
    background: var(--card);
    transition: border-color .18s, box-shadow .18s;
}
.search-section input[type="search"]:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47,107,65,.15);
    outline: none;
}
.search-result{ box-shadow: var(--shadow-sm); }
.search-result:hover{ box-shadow: var(--shadow-md); }
.search-proverb{ font-size: 17px; line-height: 1.5; }
.search-lang{ letter-spacing: .04em; text-transform: uppercase; }

/* pagination, via Bootstrap's variables */
.pagination{
    --bs-pagination-color: var(--ink-soft);
    --bs-pagination-bg: var(--card);
    --bs-pagination-border-color: var(--edge);
    --bs-pagination-hover-color: var(--accent-deep);
    --bs-pagination-hover-bg: var(--accent-wash);
    --bs-pagination-hover-border-color: var(--edge);
    --bs-pagination-active-bg: var(--accent);
    --bs-pagination-active-border-color: var(--accent);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(47,107,65,.22);
    font-family: var(--font-sans);
    margin-block: 26px 40px;
}

/* footer ---------------------------------------------------------- */
.footer{
    background-image: none;
    background: #22302A;          /* the blue→teal→green gradient read as dated */
    padding: 38px 0 30px;
    border-top: 3px solid var(--accent);
}
.footer h4{
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,.72);
}
.footer p{ color: rgba(255,255,255,.66); font-size: 13px; }
.icons a{ margin: 0 7px; }
/* the old hover shrank the icon (font-size: large); lift instead */
.facebook:hover, .scholar:hover, .researchgate:hover, .telegram:hover{
    font-size: x-large;
    color: #9FD3AE;
}

/* cards ----------------------------------------------------------- */
.parallel-card, .course-col, .section3-col{ box-shadow: var(--shadow-sm); }
.parallel-card:hover, .course-col:hover{ box-shadow: var(--shadow-md); }
.parallel-item{ box-shadow: none; }
.parallel-item p{ font-size: 15.5px; line-height: 1.55; }

html{ scroll-behavior: smooth; }

/* ─── language switcher (interface language, distinct from proverb filters) ── */
.lang-switch{ position: relative; margin-left: 14px; font-family: var(--font-sans); }
.lang-toggle{
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}
.lang-toggle:hover{ background: rgba(255,255,255,0.22); }
.lang-menu{
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: rgba(20,40,25,0.98);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 140px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 20;
}
.lang-menu.open{ opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt{
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #fff;
    font: inherit;
    font-size: 14px;
    padding: 9px 18px;
    cursor: pointer;
}
.lang-opt:hover{ background: rgba(255,255,255,0.12); }
.lang-opt[aria-pressed="true"]{ color: #E8B84B; font-weight: 700; }
@media(max-width: 700px){
    .lang-switch{ margin: 8px 10px; }
    .lang-menu{ right: auto; left: 0; }
}

/* localized subtitle under an article-card title (the paper's original
   title stays; a translation appears below it in other languages). Empty
   in Uzbek, so it collapses via :empty. */
.card-subtitle{
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-style: italic;
    color: var(--ink-faint);
    margin: 4px 0 8px;
    line-height: 1.4;
}
.card-subtitle:empty{ display: none; }

/* localized summary shown under the original card text (blank in uz) */
.card-abstract{
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--edge, #E2E0D6);
    font-size: .9rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink-soft, #5A5F55);
    text-align: left;
}
.card-abstract:empty{ display: none; }

/* bibliography under a proverb-page intro (kept in the original language) */
.proverb-sources{
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ink-faint, #6A6E64);
}

/* localized subtitle under an article title (in the coloured header) */
.article-subtitle{
    margin: 14px auto 0;
    max-width: 60ch;
    font-size: 18px;
    font-style: italic;
    line-height: 1.45;
    color: #F4E3B8;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.article-subtitle:empty{ display: none; }

/* article abstract (annotatsiya) — localized summary at the top of each article */
.article-abstract{
    max-width: 900px;
    margin: 28px auto 4px;
    padding: 18px 22px;
    background: var(--accent-wash, #E8F0E8);
    border-left: 4px solid var(--accent, #2F6B41);
    border-radius: 8px;
    text-align: left;
}
.article-abstract .abstract-label{
    margin: 0 0 6px;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent-deep, #1F4A2C);
}
.article-abstract .abstract-text{
    margin: 0;
    line-height: 1.65;
    color: var(--ink, #1E211C);
}
