@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Armenian:wght@400;500;600&display=swap');

/* ===== BLOG POST ===== */

.blog-post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.blog-post-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.blog-post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-title {
    font-family: Bokonique, NotoSans, Helvetica, Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 14px;
    padding-bottom: 14px;
    position: relative;
}
.blog-post-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: #F78323;
    border-radius: 4px;
}

.blog-post-date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 24px;
}

.blog-gallery-heading {
    font-family: Bokonique, NotoSans, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.blog-post-text {
    font-family: "Noto Serif Armenian", Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #3d3d3d;
    line-height: 1.9;
    margin-bottom: 48px;
    background: #f8f6f2;
    padding: 26px 30px;
    border-radius: 14px;
}

.blog-post-video {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 48px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.blog-post-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== GALLERY ===== */

.blog-post-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-top: 40px;
}

.blog-gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.blog-gallery-item {
    min-width: 100%;
}

.blog-gallery-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.blog-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.blog-gallery-btn:hover {
    background: rgba(0,0,0,0.7);
}

.blog-gallery-prev {
    left: 12px;
}

.blog-gallery-next {
    right: 12px;
}

/* ===== BLOG CARDS (գլխավոր էջ) ===== */

.blog-home-section {
    padding: 80px 40px;
    text-align: center;
}

.blog-home-header {
    margin-bottom: 48px;
}

.blog-home-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #e49a39;
    font-size: 13px;
    line-height: 1;
    opacity: 0.9;
}
.blog-home-stars::before,
.blog-home-stars::after {
    content: "";
    width: 60px;
    height: 2px;
    border-radius: 2px;
}
.blog-home-stars::before {
    background: linear-gradient(90deg, transparent, #e49a39);
}
.blog-home-stars::after {
    background: linear-gradient(90deg, #e49a39, transparent);
}

.blog-home-heading {
    font-size: 36px;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-home-heading-highlight {
    color: #e49a39;
    font-size: inherit;
}

.blog-home-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-decoration: none;
    background: #fff;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e49a39;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.blog-card-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 32px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.blog-card-body {
    padding: 16px 20px 24px;
    text-align: left;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-card-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

.blog-home-footer {
    margin-top: 40px;
}

.blog-home-more-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1.5px solid #e49a39;
    border-radius: 12px;
    color: #e49a39;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blog-home-more-btn:hover {
    background: #e49a39;
    color: #fff;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-home-heading {
        font-size: 26px;
    }
}

@media (max-width: 500px) {
    .blog-cards {
        grid-template-columns: 1fr;
    }
    .blog-home-section {
        padding: 60px 20px;
    }
}

/* ===== THUMBNAIL GALLERY + LIGHTBOX ===== */

.blog-post-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.blog-thumb-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.blog-thumb-img:hover {
    opacity: 0.8;
    transform: scale(1.04);
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lb-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
}

#lb-prev, #lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

#lb-prev { left: 20px; }
#lb-next { right: 20px; }

#lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 500px) {
    .blog-thumb-img {
        width: 80px;
        height: 60px;
    }
}