/**
 * Legacy page compatibility layer.
 *
 * «Ընծա», «Արցախի ժառանգություն» և «Ռադիո Նշխար» էջերի հին Bootstrap-ային
 * մարկափը բերում է նոր դիզայնի գունային և տիպոգրաֆիկ համակարգին։
 * Բեռնվում է միայն այդ էջերում։
 */

/* Font Awesome-ի ֆայլերը, որոնք yntsa.css-ում դատարկ url() ունեին */
@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/fontawesome/fa-brands-400.woff2") format("woff2"),
         url("../../fonts/fontawesome/fa-brands-400.woff") format("woff"),
         url("../../fonts/fontawesome/fa-brands-400.ttf") format("truetype");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/fontawesome/fa-regular-400.woff2") format("woff2"),
         url("../../fonts/fontawesome/fa-regular-400.woff") format("woff"),
         url("../../fonts/fontawesome/fa-regular-400.ttf") format("truetype");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../../fonts/fontawesome/fa-solid-900.woff2") format("woff2"),
         url("../../fonts/fontawesome/fa-solid-900.woff") format("woff"),
         url("../../fonts/fontawesome/fa-solid-900.ttf") format("truetype");
}

.legacy-page {
    font-family: var(--sans, "TT Norms", Arial, sans-serif);
    color: var(--ink, #241a1c);
    background: var(--paper, #fff);
    line-height: 1.7;
}

.legacy-page h1,
.legacy-page h2,
.legacy-page h3,
.legacy-page h4,
.legacy-page h5,
.legacy-page h6 {
    font-family: var(--serif, "Arnamu Serif", Georgia, serif);
    color: var(--burgundy, #5a0f1a);
    line-height: 1.25;
}

.legacy-page p {
    color: var(--ink, #241a1c);
}

.legacy-page a {
    color: var(--burgundy, #5a0f1a);
}

.legacy-page a:hover {
    color: var(--gold-dark, #a8861c);
}

.legacy-page .text-primary {
    color: var(--burgundy, #5a0f1a) !important;
}

.legacy-page .bg-primary {
    background-color: var(--burgundy, #5a0f1a) !important;
}

.legacy-page .bg-dark {
    background-color: var(--burgundy-dark, #3d0911) !important;
}

.legacy-page .bg-light {
    background-color: var(--cream, #faf7f2) !important;
}

.legacy-page .bg-white {
    background-color: #fff !important;
}

.legacy-page .bg-dark .text-primary,
.legacy-page .bg-primary .text-primary {
    color: var(--gold, #c9a227) !important;
}

.legacy-page .text-white {
    color: #fff !important;
}

.legacy-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans, "TT Norms", Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.legacy-page .btn-primary,
.legacy-page .btn.btn-primary {
    background: var(--burgundy, #5a0f1a);
    border-color: var(--burgundy, #5a0f1a);
    color: #fff;
}

.legacy-page .btn-primary:hover,
.legacy-page .btn.btn-primary:hover {
    background: var(--gold, #c9a227);
    border-color: var(--gold, #c9a227);
    color: var(--burgundy-dark, #3d0911);
    transform: translateY(-1px);
}

.legacy-page .btn-square {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.legacy-page .btn-square span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ընդհանուր բաժիններ */
.legacy-page .main_inner {
    padding: 0;
}

.legacy-page .breadcrumbs-block {
    display: none;
}

.legacy-page .bg__breadcrumb {
    background: var(--burgundy, #5a0f1a);
    color: #fff;
    padding: 48px 0;
}

.legacy-page .bg__breadcrumb h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.4;
}

.legacy-page .bg__breadcrumb span {
    color: var(--gold, #c9a227);
    font-weight: 700;
}

.legacy-page .about-yntsa {
    background: var(--cream, #faf7f2);
}

.legacy-page .about-yntsa h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 8px;
}

.legacy-page .about-yntsa h4 {
    color: var(--gold-dark, #a8861c);
    font-family: var(--sans, "TT Norms", Arial, sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legacy-page .about-yntsa p {
    font-size: 16px;
    line-height: 1.85;
}

.legacy-page .about-yntsa .fa-bolt {
    color: var(--gold, #c9a227);
}

.legacy-page .about-yntsa .bg-primary {
    border-radius: 12px;
}

.legacy-page .about-yntsa .bg-primary a {
    color: #fff;
    text-decoration: none;
}

.legacy-page .about-yntsa .bg-primary a:hover {
    color: var(--gold, #c9a227);
}

/* Ծառայություն / ժառանգություն էջի հիմնական բլոկ */
.legacy-page .service-single {
    padding: 56px 0 72px;
}

.legacy-page .service-content-area,
.legacy-page .service-content {
    font-size: 16px;
    line-height: 1.85;
}

.legacy-page .service-content .part {
    margin-bottom: 32px;
}

.legacy-page .service-content img {
    border-radius: 12px;
}

.legacy-page .service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legacy-page .sidebar-pane {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(90, 15, 26, .05);
}

.legacy-page .sidebar-title {
    margin: 0 0 16px;
    font-size: 20px;
    letter-spacing: .04em;
}

.legacy-page .sidebar-title a {
    color: var(--burgundy, #5a0f1a);
    text-decoration: none;
}

.legacy-page .sidebar-title a:hover {
    color: var(--gold-dark, #a8861c);
}

.legacy-page .list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-page .list-item {
    border-bottom: 1px solid var(--line, #e7e0d6);
}

.legacy-page .list-item:last-child {
    border-bottom: 0;
}

.legacy-page .list-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--ink, #241a1c);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s ease;
}

.legacy-page .list-item a:hover {
    color: var(--burgundy, #5a0f1a);
}

.legacy-page .list-item a .icon {
    color: var(--gold, #c9a227);
    font-size: 13px;
}

.legacy-page .download-area .list-item a {
    justify-content: flex-start;
    font-weight: 700;
    color: var(--burgundy, #5a0f1a);
}

/* Սոցիալական կոճակներ */
.legacy-page .sc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-page .sc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--burgundy, #5a0f1a);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.legacy-page .sc-link:hover {
    background: var(--gold, #c9a227);
    color: var(--burgundy-dark, #3d0911);
}

/* Թիմ */
.legacy-page .team {
    background: var(--burgundy-dark, #3d0911) !important;
}

.legacy-page .team h2 {
    color: var(--gold, #c9a227);
}

.legacy-page .team-item {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(201, 162, 39, .25);
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.legacy-page .team-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.legacy-page .team-img {
    position: relative;
    overflow: hidden;
}

.legacy-page .team-img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.legacy-page .team-icon {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, transparent, rgba(61, 9, 17, .75));
}

.legacy-page .team-content {
    padding: 18px;
    background: #fff !important;
    text-align: center;
}

.legacy-page .team-content h5 {
    margin: 0 0 4px;
    font-size: 18px;
}

.legacy-page .team-content p {
    margin: 0;
    color: var(--muted, #6f6467);
    font-size: 14px;
}

/* Ծրագրեր / համագործակցություն */
.legacy-page .projects {
    background: var(--cream, #faf7f2) !important;
}

.legacy-page .projects .nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-page .projects .nav-item {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 12px;
    overflow: hidden;
}

.legacy-page .projects .nav-link {
    display: block;
    padding: 14px 18px;
    color: var(--ink, #241a1c);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.legacy-page .projects .nav-link:hover,
.legacy-page .projects .nav-link.active {
    background: var(--burgundy, #5a0f1a);
    color: #fff;
}

.legacy-page .projects-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 16px;
}

.legacy-page .projects-item > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.legacy-page .projects-content {
    padding: 24px;
    background: #fff !important;
}

.legacy-page .projects-content h4 {
    margin-bottom: 12px;
    font-size: 22px;
}

.legacy-page .projects-content p {
    color: var(--muted, #6f6467);
}

/* Կարծիքներ */
.legacy-page .testimonial {
    background: var(--cream, #faf7f2) !important;
}

.legacy-page .testimonial-item {
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 16px;
}

.legacy-page .testimonial-item img {
    border-radius: 50%;
}

.legacy-page .customer-text {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 12px;
}

.legacy-page .customer-text p {
    margin: 0;
    color: var(--muted, #6f6467);
}

.legacy-page .customer-text a {
    color: var(--burgundy, #5a0f1a);
    font-weight: 700;
}

/* ՀՏՀ / ակորդեոն */
.legacy-page .page-section {
    padding: 48px 0;
}

.legacy-page .page-section.faqs {
    background: var(--cream, #faf7f2);
}

.legacy-page .service-title {
    margin-bottom: 24px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: .06em;
}

.legacy-page .bookmarks__item {
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line, #e7e0d6);
    border-radius: 12px;
}

.legacy-page .bookmarks__item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.legacy-page .bookmarks__item-inner:hover {
    background: rgba(201, 162, 39, .08);
}

.legacy-page .bookmarks__item-title {
    font-family: var(--serif, "Arnamu Serif", Georgia, serif);
    font-size: 18px;
    color: var(--burgundy, #5a0f1a);
}

.legacy-page .bookmarks__item-content {
    padding: 0 20px 20px;
    color: var(--ink, #241a1c);
    font-size: 15px;
    line-height: 1.8;
}

.legacy-page .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.legacy-page .gallery-icon img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

/* Ներքին էջերի մանր դետալներ */
.legacy-page .section-title::before {
    background: var(--gold, #c9a227);
}

.legacy-page .neon-text {
    color: var(--burgundy, #5a0f1a);
    text-shadow: none;
}

.legacy-page .img-fluid {
    max-width: 100%;
    height: auto;
}

.legacy-page .two-cols-img img {
    width: 100%;
    border-radius: 12px;
}

.legacy-page .fa,
.legacy-page .fas,
.legacy-page .far,
.legacy-page .fab {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", sans-serif;
}

.legacy-page .fab {
    font-family: "Font Awesome 5 Brands", sans-serif;
}

.legacy-page .bi::before,
.legacy-page [class^="bi-"]::before,
.legacy-page [class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

@media (max-width: 991px) {
    .legacy-page .service-single {
        padding: 40px 0 56px;
    }

    .legacy-page .service-sidebar {
        margin-top: 32px;
    }
}

/* --------------------------------------------------------------------------
   Մուգ ռեժիմ՝ հին (Bootstrap-ային) էջերի համար
   -------------------------------------------------------------------------- */
[data-theme="dark"] .legacy-page {
    color: var(--ink);
    background: var(--cream);
}

[data-theme="dark"] .legacy-page h1,
[data-theme="dark"] .legacy-page h2,
[data-theme="dark"] .legacy-page h3,
[data-theme="dark"] .legacy-page h4,
[data-theme="dark"] .legacy-page h5,
[data-theme="dark"] .legacy-page h6 {
    color: var(--burgundy-dark);
}

[data-theme="dark"] .legacy-page p {
    color: var(--ink);
}

[data-theme="dark"] .legacy-page a {
    color: var(--gold-light);
}

[data-theme="dark"] .legacy-page a:hover {
    color: var(--gold);
}

[data-theme="dark"] .legacy-page .bg-white,
[data-theme="dark"] .legacy-page .bg-light {
    background-color: var(--paper) !important;
    color: var(--ink);
}

[data-theme="dark"] .legacy-page .bg-dark {
    background-color: #0a0304 !important;
}

[data-theme="dark"] .legacy-page .bg-primary {
    background-color: #2a0a10 !important;
}

[data-theme="dark"] .legacy-page .text-dark {
    color: var(--ink) !important;
}

[data-theme="dark"] .legacy-page .text-muted {
    color: var(--muted) !important;
}

[data-theme="dark"] .legacy-page .sidebar-pane,
[data-theme="dark"] .legacy-page .team-item,
[data-theme="dark"] .legacy-page .team-content,
[data-theme="dark"] .legacy-page .projects .nav-item,
[data-theme="dark"] .legacy-page .projects-item,
[data-theme="dark"] .legacy-page .projects-content,
[data-theme="dark"] .legacy-page .testimonial-item,
[data-theme="dark"] .legacy-page .customer-text,
[data-theme="dark"] .legacy-page .bookmarks__item,
[data-theme="dark"] .legacy-page .bookmarks__item-inner {
    background: var(--paper) !important;
    border-color: var(--line);
    color: var(--ink);
}

[data-theme="dark"] .legacy-page .projects .nav-link {
    color: var(--ink);
}

[data-theme="dark"] .legacy-page .projects .nav-link:hover,
[data-theme="dark"] .legacy-page .projects .nav-link.active {
    background: var(--gold);
    color: #1a1208;
}

[data-theme="dark"] .legacy-page .testimonial,
[data-theme="dark"] .legacy-page .page-section.faqs {
    background: var(--cream) !important;
}

[data-theme="dark"] .legacy-page .customer-text p,
[data-theme="dark"] .legacy-page .projects-content p {
    color: var(--muted);
}

[data-theme="dark"] .legacy-page .btn-primary,
[data-theme="dark"] .legacy-page .btn.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1208;
}

[data-theme="dark"] .legacy-page .btn-outline-primary {
    border-color: var(--gold);
    color: var(--gold-light);
}

[data-theme="dark"] .legacy-page .btn-outline-primary:hover {
    background: var(--gold);
    color: #1a1208;
}

[data-theme="dark"] .legacy-page .border,
[data-theme="dark"] .legacy-page .border-bottom,
[data-theme="dark"] .legacy-page .border-top {
    border-color: var(--line) !important;
}

[data-theme="dark"] .legacy-page .accordion-item,
[data-theme="dark"] .legacy-page .accordion-button {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line);
}

[data-theme="dark"] .legacy-page .accordion-button:not(.collapsed) {
    background: rgba(217, 180, 92, .12);
    color: var(--gold-light);
}

[data-theme="dark"] .legacy-page .form-control,
[data-theme="dark"] .legacy-page .form-select {
    background: var(--paper);
    border-color: var(--line);
    color: var(--ink);
}

[data-theme="dark"] .legacy-page .form-control::placeholder {
    color: var(--muted);
}
