/* =========================================================
   CAUCASOLOGY.COM — MODERN RESPONSIVE STYLESHEET
   ========================================================= */

@font-face {
    font-family: 'Caucasology';
    src: url('../font/caucasology.woff') format('woff'),
         url('../font/caucasology.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --emerald: #1b4d3e;
    --emerald-dark: #12352b;
    --terracotta: #c85a32;
    --terracotta-dark: #a64623;
    --gold-accent: #d4a338;
    --text-dark: #222831;
    --text-muted: #555e68;
    --bg-light: #f7f8fa;
    --white: #ffffff;
    --border-color: #e1e5ea;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Caucasology', system-ui, -apple-system, "Segoe UI", Roboto, "Sylfaen", sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

/* სქროლვის კორექცია ფიქსირებული მენიუს გამო */
section[id] {
    scroll-margin-top: var(--header-height);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.narrow-container {
    max-width: 860px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(18, 24, 32, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.brand:hover {
    color: var(--gold-accent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.4rem 0;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--gold-accent);
}

.main-nav .lang-switch {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-nav .lang-switch:hover {
    background-color: var(--terracotta-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--white);
    border-radius: 2px;
    transition: 0.25s;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(15, 22, 30, 0.72), rgba(15, 22, 30, 0.82)),
                url('../img/bg/bg-1.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 4rem 1rem;
}

.hero-content {
    max-width: 820px;
}

.hero-logo {
    max-width: 190px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.hero-disciplines {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gold-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =========================================================
   QUOTE & MOTTO BANNERS
   ========================================================= */
.quote-banner {
    padding: 3.5rem 1rem;
    color: var(--white);
    text-align: center;
}

.quote-banner.emerald {
    background-color: var(--emerald);
}

.quote-banner.dark-banner {
    background: linear-gradient(rgba(18, 24, 32, 0.78), rgba(18, 24, 32, 0.78)),
                url('../img/bg/bg-3.jpg') center/cover no-repeat;
    padding: 4.5rem 1rem;
}

.quote-banner blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

.quote-banner cite {
    display: block;
    margin-top: 1.25rem;
    font-style: normal;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
}

.motto {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================================================
   SECTIONS GENERAL
   ========================================================= */
.section {
    padding: 5rem 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section.terracotta {
    background-color: var(--terracotta);
    color: var(--white);
}

.section.emerald {
    background-color: var(--emerald);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.85rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background-color: var(--terracotta);
    border-radius: 2px;
}

.section.terracotta .section-title::after,
.section.emerald .section-title::after {
    background-color: var(--gold-accent);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.lead-text {
    font-size: 1.12rem;
    margin-bottom: 1.2rem;
}

.goals-box {
    margin-top: 2rem;
    padding: 1.75rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--emerald);
    border-radius: 6px;
}

.goals-box h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--emerald-dark);
}

.styled-list {
    padding-left: 1.4rem;
}

.styled-list li {
    margin-bottom: 0.65rem;
}

/* =========================================================
   TEAM GRID
   ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.member-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.15rem;
    border: 3px solid var(--emerald);
}

.member-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.member-card h3 a {
    color: var(--emerald-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.member-card h3 a:hover {
    color: var(--terracotta);
    text-decoration: underline;
}

.member-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================================
   SERVICES / RESEARCH GRID
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 2rem 1.25rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.25s ease;
}

.service-card:hover {
    background: var(--white);
    color: var(--terracotta-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.service-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================================
   JOURNAL AMIRANI
   ========================================================= */
.journal-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.journal-info p {
    margin-bottom: 1.1rem;
}

.journal-info a {
    color: var(--emerald);
    font-weight: 600;
}

.journal-cta {
    margin-top: 1.75rem;
}

.btn-primary,
.btn-primary:visited,
.journal-info a.btn-primary {
    display: inline-block;
    background-color: var(--emerald);
    color: #ffffff !important;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.journal-info a.btn-primary:hover {
    background-color: var(--emerald-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.journal-cover {
    text-align: center;
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.journal-cover > img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.cc-license {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cc-license img {
    margin-bottom: 0.5rem;
}

/* აკორდეონი (<details>) */
.editorial-accordions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.accordion-item summary {
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--bg-light);
    color: var(--emerald-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 700;
}

.accordion-item[open] summary::after {
    content: "−";
}

.accordion-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.editorial-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem 2rem;
}

.council-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.council-grid h4 {
    color: var(--terracotta);
    margin: 1.25rem 0 0.6rem;
    font-size: 1.05rem;
}

.council-grid h4:first-child {
    margin-top: 0;
}

.council-grid ul {
    list-style: none;
}

.council-grid li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--gold-accent);
}

.section.emerald .btn-primary {
    background-color: var(--terracotta);
}

.section.emerald .btn-primary:hover {
    background-color: var(--terracotta-dark);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: #121820;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================= */
@media (max-width: 860px) {
    .journal-layout,
    .council-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: #121820;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        padding: 1rem 1.5rem 1.5rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .main-nav a {
        display: block;
        width: 100%;
    }
}
/* =========================================================
   ჟურნალი ამირანი (amirani.php & eng/amirani.php)
   ========================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.journal-hero {
    background-color: var(--emerald);
    color: #ffffff;
    padding: 2.5rem 0;
    border-bottom: 4px solid var(--terracotta);
}

.journal-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.journal-hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.journal-hero-title h1 {
    margin: 0;
    font-size: 1.9rem;
    color: #ffffff;
}

.issn-badge {
    background: rgba(255, 255, 255, 0.16);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.journal-search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.journal-search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn-search {
    background-color: var(--terracotta);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-search:hover {
    opacity: 0.92;
}

.journal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.journal-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.sidebar-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem 0;
    color: var(--emerald);
    border-bottom: 2px solid var(--emerald);
    padding-bottom: 0.4rem;
}

.issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.issue-list a {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 5px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

.issue-list a:hover {
    background-color: #e2e8f0;
}

.issue-list a.active {
    background-color: var(--emerald);
    color: #ffffff;
    font-weight: 600;
}

.current-issue-heading {
    margin: 0 0 1.25rem 0;
    font-size: 1.4rem;
    color: var(--emerald);
}

.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--emerald);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.article-card-title {
    margin: 0 0 0.6rem 0;
    font-size: 1.15rem;
    line-height: 1.45;
}

.article-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--emerald);
    text-decoration: underline;
}

.article-authors {
    margin: 0 0 0.6rem 0;
    font-size: 0.95rem;
    color: #334155;
}

.article-excerpt {
    margin: 0;
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.6;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.75rem;
    align-items: center;
}

.pagination-nav a,
.pagination-nav .current-page {
    padding: 0.45rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.pagination-nav a:hover {
    background-color: #f1f5f9;
}

.pagination-nav .current-page {
    background-color: var(--emerald);
    color: #ffffff;
    border-color: var(--emerald);
    font-weight: 600;
}

@media (max-width: 768px) {
    .journal-hero {
        padding: 1.75rem 0;
    }

    .journal-hero-title h1 {
        font-size: 1.5rem;
    }

    .journal-search-form {
        max-width: 100%;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .issue-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .issue-list a {
        padding: 0.4rem 0.75rem;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        font-size: 0.9rem;
    }

    .article-card {
        padding: 1rem 1.1rem;
    }

    .article-card-title {
        font-size: 1.05rem;
    }
}