/*
Theme Name: Armenia Diaspora
Theme URI: https://armeniadiaspora.site/
Author: Armenia Diaspora
Description: Lightweight WordPress theme for Armenian diaspora news, culture, business, genealogy and heritage.
Version: 3.1.1
License: GPL v2 or later
Text Domain: armeniadiaspora
*/

:root {
    --blue: #0033a0;
    --red: #d90012;
    --gold: #f2a900;
    --dark: #182331;
    --text: #263447;
    --muted: #64748b;
    --light: #f4f6f8;
    --white: #ffffff;
    --border: #dce2e8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--light);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

/* Remove unwanted black outlines around links */
a:focus,
a:active {
    outline: none;
    box-shadow: none;
}

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

/* Accessibility: visible keyboard focus without black boxes */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* =========================
   GENERAL
========================= */

.container {
    width: min(1160px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   TOP BAR
========================= */

.topbar {
    background: #101923;
    color: #ffffff;
    font-size: 13px;
}

.topbar .container {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #ffffff;
}

.brand-row {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    max-height: 65px;
    width: auto;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--red) 0 33%,
        var(--blue) 33% 66%,
        var(--gold) 66% 100%
    );
}

.site-title {
    display: inline-block;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.site-title span {
    color: var(--red);
}

.site-description {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;
    padding: 12px 20px;
    background: var(--red);
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.button:hover {
    color: #ffffff !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =========================
   MAIN NAVIGATION
========================= */

.main-nav {
    background: var(--blue);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 13px 18px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
    background: var(--red);
    color: #ffffff !important;
}

/* =========================
   CONTENT AREA
========================= */

.site-main {
    padding: 36px 0 60px;
}

.content-area {
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
}

/* =========================
   PAGE / POST
========================= */

.entry {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin: 0 0 12px;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.entry-title a {
    color: var(--dark);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--red);
}

/* Important: prevent unwanted outlines around post titles */
.entry-title a:focus,
.entry-title a:active,
.entry-title a:hover {
    outline: none;
    box-shadow: none;
}

.entry-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.entry-content {
    color: var(--text);
    font-size: 16px;
}

.entry-content p {
    margin: 0 0 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 30px;
    margin-top: 32px;
}

.entry-content h3 {
    font-size: 24px;
    margin-top: 26px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
}

.entry-content blockquote {
    margin: 25px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--red);
    background: #f7f8fa;
}

/* =========================
   POST LIST / NEWS
========================= */

.page-header {
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.2;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--blue);
}

.post-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.post-card h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.2;
}

.post-card h2 a {
    color: var(--red);
    text-decoration: none;
}

/* Fix black box around article title */
.post-card h2 a:focus,
.post-card h2 a:active {
    outline: none;
    box-shadow: none;
}

.post-card h2 a:hover {
    color: var(--blue);
}

.post-card .post-meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.post-card p {
    margin: 0;
    color: #53657a;
    font-size: 14px;
}

.post-thumbnail {
    margin-bottom: 15px;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 100%;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    margin: 0 0 15px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--gold);
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.sidebar-box ul {
    margin: 0;
    padding-left: 20px;
}

.sidebar-box li {
    margin-bottom: 7px;
}

.sidebar-box a {
    color: var(--blue);
}

/* =========================
   SEARCH
========================= */

.search-form {
    display: flex;
    gap: 6px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #cbd5df;
    border-radius: 4px;
}

.search-submit {
    min-height: 36px;
    padding: 7px 13px;
    border: 0;
    border-radius: 4px;
    background: var(--blue);
    color: #ffffff;
    cursor: pointer;
}

.search-submit:hover {
    background: var(--red);
}

/* =========================
   HOME PAGE
========================= */

.hero-section {
    padding: 32px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.hero-main {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 38px;
}

.hero-main h1 {
    margin: 0 0 20px;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 0.98;
}

.hero-main h1 span {
    color: var(--red);
}

.hero-main p {
    color: #60728a;
    font-size: 17px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 12px;
    color: #ffffff;
}

.hero-card h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.hero-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.hero-card a {
    color: #ffffff;
}

.hero-card.news {
    background: var(--blue);
}

.hero-card.culture {
    background: var(--red);
}

.hero-card.business {
    background: #b27600;
}

.hero-card.heritage {
    background: #344153;
}

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

.site-footer {
    margin-top: 40px;
    padding: 35px 0;
    background: #101923;
    color: #ffffff;
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* =========================
   PAGINATION
========================= */

.navigation.pagination {
    margin-top: 30px;
}

.nav-links {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 7px 11px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.page-numbers.current {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

/* =========================
   COMMENTS
========================= */

.comments-area {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.comment-list {
    padding-left: 20px;
}

.comment-body {
    margin-bottom: 20px;
}

/* =========================
   WORDPRESS
========================= */

.wp-caption {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 900px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

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

    .brand-row {
        min-height: 95px;
    }

    .hero-main h1 {
        font-size: 48px;
    }
}

@media (max-width: 650px) {

    .container {
        width: min(100% - 22px, 1160px);
    }

    .topbar .container {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .brand-row {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand {
        width: 100%;
    }

    .site-title {
        font-size: 25px;
    }

    .brand img {
        max-height: 52px;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 11px 14px;
    }

    .hero-main {
        padding: 25px;
    }

    .hero-main h1 {
        font-size: 40px;
    }

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

    .hero-card {
        min-height: 150px;
    }

    .entry {
        padding: 20px;
    }

    .entry-title {
        font-size: 32px;
    }

    .post-card h2 {
        font-size: 23px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}