/* =========================================================
   Arghavan Blog Template - Final Clean CSS
   Path:
   /wp-content/themes/arghavan-child/assets/css/arghavan-blog.css
========================================================= */

/* ---------- Base ---------- */

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.arghavan-v5-active {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background: #ffffff !important;
}

body.arghavan-v5-active * {
    box-sizing: border-box;
}

body.arghavan-v5-active .ar5-page,
body.arghavan-v5-active .ar5-article,
body.arghavan-v5-active .ar5-hero,
body.arghavan-v5-active .ar5-content-area {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #ffffff;
}

body.arghavan-v5-active .ar5-page {
    color: #111111;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.arghavan-v5-active .ar5-container,
body.arghavan-v5-active .ar5-guide-wrap,
body.arghavan-v5-active .ar5-featured,
body.arghavan-v5-active .ar5-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Hero ---------- */

body.arghavan-v5-active .ar5-hero {
    padding: 56px 24px 28px;
}

body.arghavan-v5-active .ar5-container {
    max-width: 1120px;
}

body.arghavan-v5-active .ar5-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 34px;
    padding-bottom: 15px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.arghavan-v5-active .ar5-brand {
    min-width: 0;
    color: #681322;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: normal;
}

body.arghavan-v5-active .ar5-time {
    min-width: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Title ---------- */

body.arghavan-v5-active .ar5-title,
body.arghavan-v5-active .ar5-title * {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.arghavan-v5-active .ar5-title {
    width: 100%;
    max-width: 920px;
    margin: 0 !important;
    padding: 0 !important;
    color: #090909 !important;
    font-size: clamp(36px, 5.2vw, 64px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
    font-weight: 850 !important;
    text-transform: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.arghavan-v5-active .ar5-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #666666;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

body.arghavan-v5-active .ar5-dot {
    width: 5px;
    height: 5px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #681322;
}

body.arghavan-v5-active .ar5-subtitle {
    width: 100%;
    max-width: 620px;
    margin: 18px 0 0 !important;
    overflow: visible;
    color: #4f4f4f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    white-space: normal;
}

/* ---------- Article Guide ---------- */

body.arghavan-v5-active .ar5-guide-wrap {
    max-width: 1120px;
    margin-top: 28px;
}

body.arghavan-v5-active .ar5-guide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

body.arghavan-v5-active .ar5-guide summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    user-select: none;
}

body.arghavan-v5-active .ar5-guide summary::-webkit-details-marker {
    display: none;
}

body.arghavan-v5-active .ar5-guide summary span {
    color: #111111;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.arghavan-v5-active .ar5-guide summary i {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #111111;
    transition: transform 160ms ease, background 160ms ease;
}

body.arghavan-v5-active .ar5-guide summary i::before,
body.arghavan-v5-active .ar5-guide summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
}

body.arghavan-v5-active .ar5-guide summary i::before {
    left: 9px;
    transform: rotate(45deg);
}

body.arghavan-v5-active .ar5-guide summary i::after {
    right: 9px;
    transform: rotate(-45deg);
}

body.arghavan-v5-active .ar5-guide[open] summary i {
    transform: rotate(180deg);
    background: #681322;
}

body.arghavan-v5-active .ar5-guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 18px;
}

body.arghavan-v5-active .ar5-guide-list a {
    display: block;
    min-width: 0;
    padding: 11px 12px;
    overflow-wrap: anywhere;
    background: #f7f7f7;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #151515;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

body.arghavan-v5-active .ar5-guide-list a:hover {
    background: #ffffff;
    color: #681322;
    border-color: rgba(104, 19, 34, 0.25);
}

/* ---------- Featured Image ---------- */

body.arghavan-v5-active .ar5-featured {
    max-width: 980px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: #f3f3f3;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.075);
}

body.arghavan-v5-active .ar5-featured img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
}

/* ---------- Content Layout ---------- */

body.arghavan-v5-active .ar5-content-area {
    padding: 54px 24px 86px;
}

body.arghavan-v5-active .ar5-content {
    max-width: 980px;
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* ---------- Text ---------- */

body.arghavan-v5-active .ar5-content p {
    width: 100%;
    max-width: 780px;
    margin: 0 0 24px !important;
    padding: 0 !important;
    color: #1c1c1c;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.86 !important;
    font-weight: 400 !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

body.arghavan-v5-active .ar5-content > p:first-of-type {
    max-width: 860px;
    color: #111111;
    font-size: 20px !important;
    line-height: 1.78 !important;
    font-weight: 450 !important;
}

body.arghavan-v5-active .ar5-content h2 {
    width: 100%;
    max-width: 900px;
    margin: 64px 0 20px !important;
    padding: 0 !important;
    color: #090909 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 850 !important;
    text-transform: none !important;
    overflow-wrap: normal;
    word-break: normal;
}

body.arghavan-v5-active .ar5-content h2:first-child {
    margin-top: 0 !important;
}

body.arghavan-v5-active .ar5-content h2::before {
    content: "";
    display: block;
    width: 100%;
    max-width: 900px;
    height: 1px;
    margin-bottom: 22px;
    background: rgba(0, 0, 0, 0.12);
}

body.arghavan-v5-active .ar5-content h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 16px;
    border-radius: 99px;
    background: #681322;
}

body.arghavan-v5-active .ar5-content h3 {
    width: 100%;
    max-width: 780px;
    margin: 38px 0 14px !important;
    color: #681322 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: clamp(22px, 2.3vw, 28px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    font-weight: 850 !important;
    text-transform: none !important;
}

body.arghavan-v5-active .ar5-content ul,
body.arghavan-v5-active .ar5-content ol {
    width: 100%;
    max-width: 780px;
    margin: 0 0 28px 22px !important;
    padding: 0 !important;
}

body.arghavan-v5-active .ar5-content li {
    margin-bottom: 10px !important;
    color: #1c1c1c;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

body.arghavan-v5-active .ar5-content a {
    color: #681322 !important;
    font-weight: 800 !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 5px !important;
}

/* ---------- Images Inside Content ---------- */

body.arghavan-v5-active .ar5-content figure,
body.arghavan-v5-active .ar5-content .wp-block-image {
    width: 100%;
    max-width: 860px;
    margin: 42px 0 !important;
}

body.arghavan-v5-active .ar5-content figure img,
body.arghavan-v5-active .ar5-content .wp-block-image img,
body.arghavan-v5-active .ar5-content img {
    display: block;
    width: 100% !important;
    max-width: 860px !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 18px;
    object-fit: cover;
}

body.arghavan-v5-active .ar5-content figcaption,
body.arghavan-v5-active .ar5-content .wp-element-caption {
    max-width: 860px;
    margin-top: 10px !important;
    color: #777777 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body.arghavan-v5-active .ar5-content .size-thumbnail,
body.arghavan-v5-active .ar5-content .size-medium,
body.arghavan-v5-active .ar5-content .size-large,
body.arghavan-v5-active .ar5-content .size-full {
    max-width: 860px !important;
}

/* ---------- Blockquote ---------- */

body.arghavan-v5-active .ar5-content blockquote {
    width: 100%;
    max-width: 860px;
    margin: 38px 0 !important;
    padding: 28px 30px !important;
    background: #f7f7f7;
    border-left: 4px solid #681322;
    border-radius: 18px;
    color: #111111;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.65 !important;
    font-weight: 500 !important;
}

/* ---------- Tables ---------- */

body.arghavan-v5-active .ar5-content table {
    width: 100%;
    max-width: 980px;
    border-collapse: collapse;
    margin: 34px 0;
    font-size: 15px;
}

body.arghavan-v5-active .ar5-content th,
body.arghavan-v5-active .ar5-content td {
    padding: 13px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
}

body.arghavan-v5-active .ar5-content th {
    background: #111111;
    color: #ffffff;
}

/* ---------- Mobile ---------- */

@media (max-width: 782px) {
    body.arghavan-v5-active .ar5-hero {
        padding: 36px 14px 22px;
    }

    body.arghavan-v5-active .ar5-content-area {
        padding: 38px 14px 68px;
    }

    body.arghavan-v5-active .ar5-top {
        display: block;
        margin-bottom: 30px;
        padding-bottom: 14px;
    }

    body.arghavan-v5-active .ar5-brand {
        display: block;
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.3;
        letter-spacing: 0.12em;
        white-space: normal;
    }

    body.arghavan-v5-active .ar5-time {
        display: block;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        color: #777777;
    }

    body.arghavan-v5-active .ar5-title {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 46px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.04em !important;
    }

    body.arghavan-v5-active .ar5-meta {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.45;
    }

    body.arghavan-v5-active .ar5-subtitle {
        max-width: 100%;
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    body.arghavan-v5-active .ar5-guide-wrap {
        margin-top: 24px;
    }

    body.arghavan-v5-active .ar5-guide {
        border-radius: 16px;
    }

    body.arghavan-v5-active .ar5-guide summary {
        padding: 14px 15px;
    }

    body.arghavan-v5-active .ar5-guide summary span {
        font-size: 11px;
    }

    body.arghavan-v5-active .ar5-guide summary i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    body.arghavan-v5-active .ar5-guide summary i::before {
        left: 8px;
    }

    body.arghavan-v5-active .ar5-guide summary i::after {
        right: 8px;
    }

    body.arghavan-v5-active .ar5-guide-list {
        grid-template-columns: 1fr;
        padding: 0 15px 15px;
    }

    body.arghavan-v5-active .ar5-featured {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 340px;
        border-radius: 16px;
    }

    body.arghavan-v5-active .ar5-content p,
    body.arghavan-v5-active .ar5-content li {
        max-width: 100%;
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    body.arghavan-v5-active .ar5-content > p:first-of-type {
        font-size: 17px !important;
        line-height: 1.78 !important;
    }

    body.arghavan-v5-active .ar5-content h2 {
        max-width: 100%;
        margin-top: 50px !important;
        font-size: clamp(27px, 8vw, 36px) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.035em !important;
    }

    body.arghavan-v5-active .ar5-content h3 {
        max-width: 100%;
        font-size: 21px !important;
        line-height: 1.25 !important;
    }

    body.arghavan-v5-active .ar5-content figure,
    body.arghavan-v5-active .ar5-content .wp-block-image,
    body.arghavan-v5-active .ar5-content figure img,
    body.arghavan-v5-active .ar5-content .wp-block-image img,
    body.arghavan-v5-active .ar5-content img {
        max-width: 100% !important;
        border-radius: 14px;
    }

    body.arghavan-v5-active .ar5-content blockquote {
        padding: 22px 20px !important;
        font-size: 17px !important;
    }
}