/* Başlıq və yazılar üçün şəkildəki üsluba uyğun şriftlər */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Cormorant+Garamond:ital,wght@0,500;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=VT323&display=swap');

:root {
    --p-beige: #F5EFEB;     /* Yumşaq krem-bej fon */
    --p-navy: #2F4156;      /* Yazılar və cizgilər üçün tünd göy */
    --p-teal: #567C8D;      /* Hover zamanı zərif keçid rəngi */
    --p-sky: #C8D9E6;       /* Aktiv vizual element rəngi */
    --p-white: #FFFFFF;     /* Düymələrin içi */
    --primary: var(--p-navy);
}

body {
    background-color: var(--p-beige);
    margin: 0;
    padding: 0;
        font-family: 'Cinzel', serif;
    color: var(--p-navy);
    overflow-x: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 40px 20px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(17, 16, 15, 0.018) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(47, 65, 86, 0.08), transparent 34%),
        var(--p-beige);
    background-size: 100% 6px, auto, auto;
}

/* --- JALÜZİ/PƏNCƏRƏ ÜSLUBLU HAKKIMDA KARTI --- */
.about-card-container {
    position: fixed;
    top: 40px;
    left: 40px;
    width: 178px;
    background: #f4eddd;
    border: 3px solid #171512;
    box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.28);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.about-card-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    pointer-events: none;
}

.card-header {
    height: 34px;
    border-bottom: 3px solid #171512;
    background: #f4eddd;
    position: relative;
}

.close-card-btn {
    position: absolute;
    top: 6px;
    right: 7px;
    background: #faf7ee;
    color: #171512;
    border: 1px solid #171512;
    width: 21px;
    height: 21px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.about-img-slot {
    width: calc(100% - 18px);
    height: 158px;
    margin: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 3px solid #171512;
    background: #fffdf8;
    box-sizing: border-box;
}

.about-img-slot img {
    max-width: 88%;
    max-height: 94%;
    object-fit: contain;
}

.about-interactive-btn {
    background: #fffdf8;
    border: 1px solid rgba(23, 21, 18, 0.28);
    margin: 0 9px 9px;
    padding: 7px 9px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #171512;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    text-decoration: none;
    width: calc(100% - 18px);
    box-sizing: border-box;
}

.about-interactive-btn:hover {
    background: var(--p-beige);
}

.heart-icon {
    font-size: 1rem;
}

/* --- BREND BAŞLIQ --- */
.brand-header {
    text-align: center;
    margin-bottom: 42px;
    position: relative;
    width: min(100%, 720px);
    min-height: 260px;
    padding-top: 6px;
}

.main-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(4.2rem, 7.8vw, 6.4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #050505;
    margin: 0;
    line-height: 0.82;
    letter-spacing: 0;
}

.main-title span {
    display: block;
}

.title-i {
    display: inline-block !important;
    position: relative;
}

.i-star {
       position: absolute;
    top: -0.50em;
    left: 50%;
    transform: translateX(-50%);
    color: #050505;
    font-size: 0.3em;
    line-height: 1;
    z-index: 3;
}

.title-star {
    display: none;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 48px;
    margin-bottom: 0;
    color: #050505;
    opacity: 1;
}

.brand-avatar {
    display: block;
    width: 92px;
    height: auto;
    object-fit: contain;
    position: absolute;
    right: -8px;
    bottom: calc(100% - 60px);
    z-index: 12;
    pointer-events: none;
}

.button-sticker {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 18px);
    width: 92px;
    height: 118px;
    object-fit: contain;
    transform: translate(-50%, 10px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    z-index: 11;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-pill {
    display: none;
}

/* --- DÜYMƏLƏR GRİDİ --- */
.buttons-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 800px;
    z-index: 10;
    position: relative;
    margin-top: 6px;
}

.project-grid-btn {
    background-color: var(--p-white);
    border: 1px solid rgba(47, 65, 86, 0.12);
    border-radius: 18px;
    padding: 24px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 65, 86, 0.05); 
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.project-grid-btn:hover {
    transform: translateY(-3px);
    border-color: var(--p-teal);
    box-shadow: 0 8px 20px rgba(86, 124, 141, 0.12);
}

.project-grid-btn:hover .button-sticker,
.project-grid-btn:focus-visible .button-sticker {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.project-grid-btn[data-char-pos="blog"] .button-sticker {
    display: none;
}

.btn-text {
     font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--p-navy);
    transition: color 0.2s;
}

.project-grid-btn:hover .btn-text {
    color: var(--p-teal);
}

/* --- İNTERAKTİV PERSONAJ VƏ PARILTILAR --- */
.interactive-character {
    display: none;
    position: fixed;
    width: 100px;
    height: 130px;
    background-image: url('../images/char-laptop.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 50;
    transition: transform 0.1s ease-out;
}

.pixel-trail {
    display: none;
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--p-teal);
    border-radius: 50%;
    pointer-events: none;
    animation: fade 0.4s forwards;
}

@keyframes fade {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(0); opacity: 0; }
}

/* --- SOSİAL MEDİA FOOTER --- */
.social-footer {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    z-index: 10;
}

.social-link {
    color: var(--p-navy);
    font-size: 1.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--p-teal);
    transform: scale(1.15);
}

.copyright {
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
    color: rgba(47, 65, 86, 0.68);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.98rem;
}

/* --- KİTABLAR / HAQQIMDA SƏHİFƏSİ STRUKTURU --- */
.about-page {
    max-width: 900px; /* Daha geniş və rahat nizam üçün genişləndirildi */
    margin: 0 auto;
    padding: 50px 24px 80px;
    min-height: 100vh;
    box-sizing: border-box;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
     font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--p-navy);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--p-teal);
}

.about-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-page-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    background: var(--p-white);
    border-radius: 50%; /* Stiker formasında yumşaq dairəvi avatar sahəsi */
    border: 2px solid var(--p-navy);
    box-shadow: 0 8px 20px rgba(47, 65, 86, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.about-page-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.about-page-title {
     font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--p-navy);
}

.about-page-name {
     font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0;
    color: var(--p-teal);
}

.about-page-tagline {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1.4rem;
    margin: 10px 0 0;
    opacity: 0.8;
}

.about-page-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.about-section h2 {
     font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--p-navy);
    border-bottom: 2px solid rgba(47, 65, 86, 0.1);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section p {
    font-family: 'Cinzel', serif; /* Mətn oxunaqlılığı üçün zərif font */
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-section p .social-link {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

/* --- KİTAB KARTLARI GRİD SİSTEMİ --- */
.book-card {
    background: var(--p-white);
    border: 1px solid rgba(47, 65, 86, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(47, 65, 86, 0.03);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--p-teal);
    box-shadow: 0 12px 24px rgba(86, 124, 141, 0.12);
}

.book-cover {
    font-size: 2.8rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.2s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.1) rotate(4deg);
}

.book-title {
     font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--p-navy);
    line-height: 1.4;
}

.book-author {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1rem;
    margin: 0 0 12px;
    color: var(--p-teal);
}

.book-note {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-top: auto; /* Yazını kartın ən aşağısına sabitləyir */
    padding: 4px 12px;
    background-color: var(--p-beige);
    border-radius: 8px;
    color: var(--p-navy);
}

/* Responsivlik — index.html */
@media (max-width: 900px) {
    .main-container {
        padding: 28px 16px 48px;
        justify-content: flex-start;
        min-height: 100dvh;
    }

    .brand-header {
        width: min(100%, 620px);
        min-height: 250px;
        margin-bottom: 36px;
    }

    .main-title {
        font-size: clamp(4rem, 12vw, 6rem);
    }

    .subtitle {
        font-size: clamp(1.75rem, 5vw, 2.45rem);
        margin-top: 56px;
    }

    .brand-avatar {
        width: 86px;
        top: auto;
        right: 8px;
        bottom: calc(100% - 10px);
    }

    .buttons-grid-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 12px;
    }

    .project-grid-btn {
        padding: 20px 12px;
    }

    .btn-text {
        font-size: 1.05rem;
    }

    .social-footer {
        margin-top: 44px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    body {
        background: #f7f4ee;
    }

    .main-container {
        min-height: 100dvh;
        width: min(100%, 412px);
        margin: 0 auto;
        padding: 12px 14px 50px;
        justify-content: flex-start;
        overflow-x: hidden;
        background:
            linear-gradient(rgba(17, 16, 15, 0.018) 1px, transparent 1px),
            radial-gradient(circle at top left, rgba(47, 65, 86, 0.08), transparent 34%),
            #f8f5ef;
        background-size: 100% 6px, auto, auto;
    }

    .about-card-container {
        position: absolute;
        top: 22px;
        left: 14px;
        align-self: auto;
        transform: none;
        width: 108px;
        margin: 0;
        background: #f4eddd;
        border: 2px solid #171512;
        box-shadow: 5px 5px 0 rgba(23, 21, 18, 0.28);
        z-index: 5;
    }

    .about-card-container.hidden {
        transform: translateY(-20px);
    }

    .card-header {
        height: 28px;
        border-bottom: 2px solid #171512;
        background: #f4eddd;
    }

    .close-card-btn {
        width: 16px;
        height: 16px;
        top: 5px;
        right: 6px;
        border: 1px solid #171512;
        color: #171512;
        font-size: 11px;
        background: #faf7ee;
    }

    .about-img-slot {
        width: calc(100% - 12px);
        height: 96px;
        margin: 6px;
        padding: 0;
        border: 2px solid #171512;
        background: #fffdf8;
    }

    .about-img-slot img {
        max-width: 88%;
        max-height: 94%;
    }

    .about-interactive-btn {
        width: calc(100% - 12px);
        margin: 0 6px 6px;
        border: 1px solid rgba(23, 21, 18, 0.28);
        background: #fffdf8;
        font-family: 'VT323', monospace;
        font-size: 0.82rem;
        letter-spacing: 0;
        color: #171512;
        padding: 4px 6px;
    }

    .heart-icon {
        font-size: 0.75rem;
    }

    .language-pill {
        display: flex;
        position: absolute;
        top: 22px;
        right: 10px;
        z-index: 8;
        align-items: center;
        gap: 4px;
        padding: 3px 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(23, 21, 18, 0.12);
        box-shadow: 0 6px 20px rgba(23, 21, 18, 0.1);
        font-family: Arial, sans-serif;
        font-size: 0.7rem;
        color: #222;
    }

    .language-pill span {
        display: inline-flex;
        min-width: 25px;
        height: 20px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
    }

    .language-pill .active {
        background: #111;
        color: #fff;
        font-weight: 700;
    }

    .brand-header {
        position: relative;
        width: min(100%, 430px);
        min-height: auto;
        margin: 0 auto;
        padding-top: 196px;
        text-align: center;
    }

    .main-title {
        font-family: 'Playfair Display', 'Georgia', serif;
        font-size: clamp(3.1rem, 14.5vw, 4.05rem);
        font-weight: 900;
        text-transform: uppercase;
        margin: 0;
        letter-spacing: 0;
        line-height: 0.86;
        color: #050505;
        position: relative;
        z-index: 2;
    }

    .main-title span {
        display: block;
    }

    .i-star {
        top: -1.14em;
        font-size: 0.18em;
    }

    .brand-avatar {
        display: block;
        width: 76px;
        height: auto;
        object-fit: contain;
        position: absolute;
        top: auto;
        right: 8px;
        bottom: calc(100% - 10px);
        z-index: 16;
    }

    .button-sticker {
        display: none;
    }

    .subtitle {
        font-family: 'Playfair Display', 'Georgia', serif;
        font-style: italic;
        font-size: clamp(1.55rem, 6.3vw, 2rem);
        color: #050505;
        margin: 74px 0 28px;
        line-height: 1.05;
        position: relative;
        z-index: 3;
    }

    .buttons-grid-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 268px;
        gap: 10px;
        margin-top: 0;
        position: relative;
        z-index: 6;
    }

    .project-grid-btn {
        min-height: 82px;
        padding: 14px 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(23, 21, 18, 0.16);
        box-shadow: 0 18px 42px rgba(23, 21, 18, 0.08);
        backdrop-filter: blur(10px);
    }

    .btn-text {
        font-family: 'Sansita Swashed', 'Playfair Display', serif;
        font-size: clamp(1.35rem, 6vw, 2rem);
        line-height: 0.9;
        color: #101010;
        text-align: center;
    }

    .social-footer {
        width: min(100%, 390px);
        margin-top: 44px;
        gap: 22px;
        justify-content: center;
    }

    .social-link {
        color: #111;
        font-size: 1.45rem;
    }
}

@media (max-width: 380px) {
    .main-title {
        font-size: 2.9rem;
    }

    .subtitle {
        font-size: 1.42rem;
        margin-top: 66px;
    }

    .about-card-container {
        width: 102px;
        left: 12px;
    }

    .about-img-slot {
        height: 88px;
    }

    .about-interactive-btn {
        font-size: 0.78rem;
        padding: 4px 6px;
    }

    .brand-header {
        padding-top: 188px;
    }

    .i-star {
        top: -0.12em;
        font-size: 0.18em;
    }

    .brand-avatar {
        top: auto;
        right: 6px;
        bottom: calc(100% - 8px);
        width: 70px;
        height: auto;
    }

    .buttons-grid-row {
        margin-top: 0;
    }

    .project-grid-btn {
        min-height: 76px;
    }
}

@media (pointer: coarse) {
    .interactive-character {
        display: none;
    }
}

/* --- PAGINATION ÜSLUBLARI --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
     font-family: 'Cinzel', serif;
}

.pagination-btn {
    background-color: var(--p-white);
    border: 1px solid rgba(47, 65, 86, 0.15);
    color: var(--p-navy);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--p-teal);
    color: var(--p-white);
    border-color: var(--p-teal);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    width: 36px;
    height: 36px;
    background-color: var(--p-white);
    border: 1px solid rgba(47, 65, 86, 0.15);
    color: var(--p-navy);
     font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-num:hover:not(.active) {
    border-color: var(--p-teal);
    color: var(--p-teal);
}

.page-num.active {
    background-color: var(--p-navy);
    color: var(--p-white);
    border-color: var(--p-navy);
    box-shadow: 0 4px 10px rgba(47, 65, 86, 0.2);
}

/* --- %100 DÜZGÜN VİDEO POPUP (MODAL) ÜSLUBLARI --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 30, 45, 0.85); /* Arxa fonu zərif tünd edir */
    backdrop-filter: blur(8px); /* Müasir şüşə effekti */
    display: none; /* ⚠️ BAŞLANĞICDA TAMAMİLƏ GİZLƏDİR (Sol küncə düşmənin qarşısını alır) */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Həmişə ən üstdə görünsün */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Skript bu sinfi əlavə edəndə modal görünəcək */
.video-modal.open {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background-color: var(--p-white, #fff);
    width: 90%;
    max-width: 750px;
    border-radius: 16px;
    padding: 10px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.open .modal-content {
    transform: scale(1);
}

/* Bağlama (X) Düyməsi */
.close-modal-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-modal-btn:hover {
    transform: scale(1.2);
}

/* Video Sahəsinin Ölçüləri */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ekran Nisbəti */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Videonun formasını pozmur */
}

/* --- TABS DIZAYNI --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.tab-btn {
    background-color: #f4f4f6;
    color: #555;
    border: 1px solid #e1e1e7;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background-color: #e2e2e9;
    color: #000;
}

/* Aktiv olan düymənin görünüşü */
.tab-btn.active {
    background-color: #141e2d; /* Saytın ana tünd rənginə uyğunlaşdıra bilərsən */
    color: #fff;
    border-color: #141e2d;
    box-shadow: 0 4px 12px rgba(20, 30, 45, 0.2);
}

@media (max-width: 500px) {
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   KARTLARIN BİR-BİRİNƏ YAPIŞMASINI QƏTİ BLOKLAYAN XİLASEDİCİ KOD
   ========================================================================== */

.books-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Tam 2 sütun */
    gap: 30px !important;                             /* Kartlar arası ümumi məsafə */
    row-gap: 35px !important;                         /* Şaquli məsafəni xüsusi olaraq gücləndiririk */
    max-width: 950px !important;
    margin: 30px auto 60px auto !important;           /* 60px: Altdakı "Əlaqə" bölməsini zərifcə aşağı itələyir */
    width: 100% !important;
}

/* Skript və ya brauzer xətası şaquli boşluğu sıfırlasa belə, 
   bu qayda hər bir kartın altına qəti şəkildə 30px boşluq məsafəsi qoyur: */
.books-grid .project-card-link, .books-grid > a {
    display: grid !important;
    height: 100% !important;
    width: 100% !important;
    margin-bottom: 30px !important;                   /* Sətirlərin bir-birinin içinə girməsini QƏTİ ÖNLƏYİR */
    text-decoration: none !important;
}

.books-grid .book-card {
    height: 100% !important;
    margin: 0 !important;                             /* Lazımsız sürüşmələri sıfırlayır */
    box-sizing: border-box !important;
    padding: 35px 20px !important;
}

/* 📱 Mobil ekran nizamı */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .books-grid .project-card-link, .books-grid > a {
        margin-bottom: 20px !important;
    }
}

.blog-card-item {
            background: #ffffff;
            border: 1px solid rgba(47, 65, 86, 0.08);
            border-radius: 16px;
            padding: 13px;
            transition: all 0.25s ease;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .blog-card-item:hover {
            transform: translateY(-4px);
            border-color: #567C8D; /* var(--p-teal) */
            box-shadow: 0 8px 20px rgba(86, 124, 141, 0.1);
        }
        .blog-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
        }
        .blog-badge {
            background-color: rgba(47, 65, 86, 0.06);
            color: #2F4156; /* var(--p-navy) */
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .blog-item-title {
            font-size: 1.35rem;
            font-weight: 700;
            margin: 0 0 10px 0;
            line-height: 1.4;
            color: #2F4156;
        }
        .blog-item-desc {
            font-size: 0.95rem;
            color: #567C8D;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        .blog-item-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px dashed rgba(47, 65, 86, 0.1);
            font-size: 0.85rem;
        }
        .read-more-link {
            font-weight: 700;
            color: #2F4156;
            text-decoration: none;
        }
        .blog-card-item:hover .read-more-link {
            color: #567C8D;
        }

/* ==========================================================================
   BLOG ARTICLE PAGES (pages/blogs/*.html)
   ========================================================================== */

.modern-wrapper {
    min-height: 100vh;
    padding: 24px 0 60px;
}

.content-card {
    background: var(--p-white);
    border: 1px solid rgba(47, 65, 86, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(47, 65, 86, 0.06);
}

@media (min-width: 768px) {
    .content-card {
        padding: 40px 48px;
    }
}

.metadata {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--p-teal);
    text-transform: uppercase;
}



.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--p-navy);
    border-bottom: 1px solid rgba(47, 65, 86, 0.12);
    padding-bottom: 10px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-block {
    line-height: 1.85;
    font-size: 1.05rem;
    color: #4a5568;
}

.text-block p:last-child,
.text-block ul:last-child {
    margin-bottom: 0;
}

.accent-box {
    background: rgba(200, 217, 230, 0.35);
    border-left: 4px solid var(--p-teal);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 1.25rem 0;
    line-height: 1.75;
    color: #4a5568;
}

.img-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 1.5rem 0;
}

.blog-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(47, 65, 86, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 65, 86, 0.12);
}

.blog-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-diagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 1.25rem;
}

.blog-diagram-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(47, 65, 86, 0.06);
}

.card-hr {
    border: none;
    border-top: 1px dashed rgba(47, 65, 86, 0.15);
}

.info-footer a {
    color: var(--p-teal);
    font-weight: 700;
    text-decoration: none;
}

.info-footer a:hover {
    color: var(--p-navy);
    text-decoration: underline;
}

.sidebar {
    background: var(--p-white) !important;
    border: 1px solid rgba(47, 65, 86, 0.08);
}

.sidebar-item {
    color: var(--p-teal);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-item:hover {
    color: var(--p-navy);
    padding-left: 4px;
}

.sidebar-item.active {
    color: var(--p-navy);
    font-weight: 700;
}

.sidebar-toc a {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.2s ease;
}

.sidebar-toc a:hover {
    color: var(--p-navy);
    border-left-color: var(--p-teal);
}

.content-card ul {
    padding-left: 1.25rem;
}

.content-card ul li {
    margin-bottom: 0.5rem;
}

.content-card ul ul {
    margin-top: 0.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 1.25rem 0;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.table-container .table {
    margin-bottom: 0;
}

.content-card pre {
    background: rgba(47, 65, 86, 0.06);
    border: 1px solid rgba(47, 65, 86, 0.1);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.content-card pre code {
    color: #374151;
    white-space: pre;
}

.lifetime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 1.25rem 0;
}

.lifetime-item {
    background: rgba(200, 217, 230, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(47, 65, 86, 0.08);
}

.lifetime-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #4a5568;
}
