﻿* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f4f1eb;
    color: #172c3d;
    line-height: 1.8;
}


/* =====================
   HEADER
===================== */

.header {
    height: 125px;
    background: #102f47;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid #c8a66b;
}

.site-title {
    text-align: center;
}

    .site-title div {
        color: #cdb27d;
        font-size: 15px;
    }

    .site-title h1 {
        margin: 2px 0 0;
        font-size: 40px;
    }

/* لوگو حالا سمت راست هدر */
.logo {
    position: absolute;
    right: 40px;
    width: 60px;
    height: 60px;
    border: 2px solid #cdb27d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cdb27d;
    font-size: 27px;
}

/* آیکون منو حالا سمت چپ هدر */
.menu {
    position: absolute;
    left: 40px;
    font-size: 32px;
    color: #cdb27d;
    cursor: pointer;
}


/* =====================
   HERO
===================== */

.hero {
    min-height: 540px;
    background: linear-gradient(120deg, #102f47, #1d4963);
    display: flex;
    flex-direction: row-reverse; /* عکس سمت راست، متن سمت چپ */
    align-items: center;
    padding: 55px 10%;
    color: white;
}

.hero-text {
    width: 55%;
    padding-right: 40px;
}

.small-title {
    color: #d5b87d;
    font-size: 15px;
    font-weight: bold;
}

.hero h2 {
    font-size: 55px;
    line-height: 1.45;
    margin: 15px 0;
}

.hero p {
    max-width: 520px;
    font-size: 18px;
    color: #d7e0e6;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    background: #d1ad6d;
    color: #172c3d;
    padding: 12px 25px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .button:hover {
        transform: translateY(-3px);
        background: #e5c990;
    }

.hero-photo {
    width: 45%;
    display: flex;
    justify-content: center;
}

    .hero-photo img {
        width: 330px;
        height: 410px;
        object-fit: cover;
        border-radius: 12px;
        border: 7px solid rgba(255,255,255,0.15);
        box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    }


/* =====================
   FIVE CARDS
===================== */

.navigation {
    max-width: 1200px;
    margin: -35px auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 3;
}

.nav-card {
    min-height: 210px;
    background: white;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #172c3d;
    box-shadow: 0 8px 30px rgba(0,0,0,0.09);
    transition: 0.3s;
}

    .nav-card:hover {
        transform: translateY(-9px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.14);
    }

.icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #173b56;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
}

.nav-card:nth-child(2) .icon {
    background: #52816e;
}

.nav-card:nth-child(3) .icon {
    background: #39748b;
}

.nav-card:nth-child(4) .icon {
    background: #735c91;
}

.nav-card:nth-child(5) .icon {
    background: #b48c50;
}

.nav-card h3 {
    margin: 0;
    font-size: 20px;
}

.nav-card p {
    margin: 5px 0 0;
    color: #879198;
    font-size: 13px;
}


/* =====================
   SECTION TITLE
===================== */

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title span {
        color: #b18b4e;
        font-size: 14px;
        font-weight: bold;
    }

    .section-title h2 {
        margin: 4px 0;
        font-size: 35px;
        color: #17324a;
    }

    .section-title i {
        display: block;
        width: 55px;
        height: 3px;
        background: #c5a265;
        margin: 10px auto;
    }


/* =====================
   HIGHLIGHTS (5 quick cards with photo)
===================== */

.highlights {
    max-width: 1250px;
    margin: 0 auto 110px;
    padding: 0 20px;
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.highlight {
    background: white;
    border-radius: 18px;
    padding: 25px 18px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transition: 0.3s;
}

    .highlight:hover {
        transform: translateY(-6px);
    }

.highlight-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eef1f4;
    color: #17324a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.highlight h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #17324a;
}

.highlight p {
    margin: 0 0 18px;
    font-size: 13px;
    color: #879198;
    line-height: 1.7;
}

.highlight-media {
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef1f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .highlight-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* کارت اول: آیکون‌های تماس به‌جای عکس */
.highlight-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    color: #17324a;
}

/* کارت نقل‌قول */
.highlight-quote {
    color: #17324a;
    font-weight: bold;
    font-size: 14px;
    padding: 10px;
}


/* =====================
   ABOUT
===================== */

.about {
    max-width: 1100px;
    margin: 0 auto 110px;
    padding: 0 20px;
}

.about-box {
    background: white;
    border-radius: 20px;
    padding: 45px;
    display: flex;
    align-items: center;
    gap: 45px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.about-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 7px solid #eee5d5;
    flex-shrink: 0;
}

.about-text h3 {
    font-size: 25px;
    margin-top: 0;
    color: #17324a;
}

.about-text p {
    color: #68757c;
}

.more {
    color: #a1783d;
    text-decoration: none;
    font-weight: bold;
}


/* =====================
   BOOKS
===================== */

.books {
    max-width: 1200px;
    margin: 0 auto 110px;
    padding: 0 20px;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.book {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .book:hover {
        transform: translateY(-7px);
    }

.book-cover {
    height: 240px;
    background: linear-gradient(135deg, #163950, #356b7e);
    color: #e1c284;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: bold;
}

.book-content {
    padding: 22px;
}

    .book-content h3 {
        margin: 0;
        color: #17324a;
        font-size: 21px;
    }

    .book-content p {
        color: #7b858a;
        font-size: 14px;
    }


/* =====================
   FOOTER
===================== */

footer {
    background: #102f47;
    color: #cbd5dc;
    text-align: center;
    padding: 40px 20px;
}

    footer h3 {
        color: white;
        margin-top: 0;
    }


/* =====================
   TABLET
===================== */

@media (max-width: 1000px) {
    .navigation {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 30px;
    }

    .highlight-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h2 {
        font-size: 45px;
    }
}


/* =====================
   MOBILE
===================== */

@media (max-width: 700px) {
    .header {
        height: 100px;
    }

    .site-title h1 {
        font-size: 25px;
    }

    .logo {
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .menu {
        left: 15px;
        font-size: 26px;
    }

    .hero {
        flex-direction: column;
        padding: 45px 20px;
    }

    .hero-text {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .hero h2 {
        font-size: 35px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-photo {
        width: 100%;
        margin-top: 35px;
    }

        .hero-photo img {
            width: 260px;
            height: 330px;
        }

    .navigation {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
        gap: 15px;
    }

    .highlight-list {
        grid-template-columns: 1fr;
    }

    .about-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .book-list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 450px) {
    .navigation {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 30px;
    }
}
