/* ======================================================
   DESIGN SYSTEM – Tarix Kitabları
   Konsept: Təhsil • Tarix • Premium • Modern
====================================================== */

:root {
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;

    --primary: #1e3a8a;
    --primary-soft: #2563eb;

    --dark: #020617;
    --dark-soft: #0f172a;

    --accent: #facc15;
    --accent-soft: #fde047;

    --text-dark: #0f172a;
    --text-light: #e5e7eb;
    --text-muted: #94a3b8;
}

/* === Global === */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

html, body {
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 0;
}

/* === Header === */
header {
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo img {
    width: 60px;
    height: 60px;
}

header nav {
    display: flex;
    gap: 24px;
}

header nav a {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    transition: transform 0.3s ease;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

header nav a:hover {
    transform: translateY(-2px);
}

header nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {

    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;   /* BU əlavə edildi */
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.4s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 100px 30px;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 1000;
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 999;
}

/* Active states */
.mobile-menu.active {
    right: 0;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* === Hero === */
@media (min-width: 1023px) {
.hero {
    text-align: center;
    padding: 110px 20px 90px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: white;

    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 18px;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
}

@media (max-width: 768px) {

    .hero {
        padding: 80px 20px 60px;
            text-align: center;

              background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: white;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
    }
}


/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(250,204,21,0.35);
}

@media (max-width: 768px) {

    .btn,
    .preview-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}


/* === Sections === */
section {
    background: var(--bg-white);
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

section h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

/* === Books Grid === */
.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.book-card {
    text-align: center;
    cursor: pointer;
}

.book-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 24px 24px 14px 14px;
    transition: transform 0.25s ease;
}

.book-card img:hover {
    transform: scale(1.06);
}

.book-card p {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {

    .books-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .book-card img {
        height: 200px;
    }
}


/* === Books Preview (Dark Premium Section) === */
.books-preview {
    margin-top: 90px;
    padding: 60px;
    display: flex;
    gap: 70px;
    align-items: center;
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    border-radius: 32px;
}

.preview-book {
    flex: 0 0 260px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 22px;
    text-align: center;
}

.preview-book img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(250,204,21,0.35);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.book-info h4 {
    margin-top: 16px;
    font-size: 18px;
    color: var(--accent);
}

.book-info span {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 768px) {

    .books-preview {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .preview-book {
        padding: 16px;
    }

    .preview-questions h3 {
        font-size: 20px;
        text-align: center;
    }

    .question {
        font-size: 14px;
    }

    .preview-btn {
        width: 100%;
        text-align: center;
    }
}

/* === Questions === */
.preview-questions {
    flex: 1;
    color: var(--text-light);
}

.preview-questions h3 {
    font-size: 26px;
    margin-bottom: 24px;
    color: var(--accent-soft);
}

.question-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.question {
    background: rgba(255,255,255,0.06);
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 15px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.question:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-4px);
}

@media (min-width: 1024px) {
    .preview-btn {
        display: inline-block;
        margin-top: 26px;
        padding: 14px 30px;
        background: var(--accent);
        color: var(--dark);
        border-radius: 999px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .preview-btn {
        display: inline-block;
        width: auto;
        background: var(--accent);
        color: var(--dark);
        padding: 10px 18px;
        font-size: 14px;
        margin-top: 16px;
        border-radius: 20px;
    }
}

/* === Footer === */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .books-preview {
        flex-direction: column;
        padding: 40px;
    }

    .preview-book img {
        width: 180px;
        height: 260px;
    }

    .question-cards {
        grid-template-columns: 1fr;
    }
}




/*  ana sehifede cavablar ucun   */


.qa-item {
    overflow: hidden;
}

.answer {
    max-height: 0;
    opacity: 0;
    margin-top: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.35s ease;
}

.qa-item.active .answer {
    max-height: 120px;
    opacity: 1;
    padding: 10px 16px;
}



/* -----  ABOUT ----   */ 


/* ===============================
   About Page – Premium Creative
=============================== */

.about-section {
    padding: 80px 20px;
    gap: 10;
    background: #f1f5f9; /* Açıq, sakit fon */
    color: #1f2937; /* əsas text rəngi */
}

.about-section h2 {
    font-size: 36px;
    color: #1e40af; /* mavi-primary */
    text-align: center;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563; /* muted text */
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
}

.about-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h3 {
    color: #2563eb; /* blue soft */
    font-size: 28px;
    margin-bottom: 16px;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-text ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #374151; /* dark soft */
}

.about-text ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #facc15; /* accent yellow */
}

.mission-section {
    color: #1e40af; /* soft yellow */
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
}

.mission-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.mission-section p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: auto;
    color: #374151;
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .about-section h2 {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 24px;
    }

    .mission-section h2 {
        font-size: 28px;
    }
}






/*      end ABOUT */




/* ================= CONTACT PAGE ================= */

/* ================= CONTACT PAGE ================= */

/* ================= CONTACT PAGE ================= */

.contact-section {
    padding: 60px 15px;
    background: #1e3a8a;
    overflow-x: hidden; /* daşmanı kəsir */
}

.contact-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: stretch;
    box-sizing: border-box;
}

/* Hər iki tərəf */
.contact-form,
.contact-info {
    flex: 1 1 0;
    min-width: 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    box-sizing: border-box;
}

/* FORM */
.contact-form h2,
.contact-info h2 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .contact-section {
        padding: 40px 12px;
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form,
    .contact-info {
        width: 100%;
        padding: 20px;
    }

}

/* ================= END CONTACT PAGE ================= */


/* ================= END CONTACT PAGE ================= */