@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Vazirmatn,Tahoma,Arial,sans-serif;
    direction:rtl;
    background:#f5f8fc;
    color:#111827;
}

a{
    text-decoration:none;
}

.container{
    width:91%;
    max-width:1380px;
    margin:auto;
}

/* TOP BAR */

.top-info-bar{
    background:#061b36;
    color:#fff;
    font-size:12px;
    height:38px;
    display:flex;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.18);
}

.top-info-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.top-info-right,
.top-info-left{
    display:flex;
    align-items:center;
    gap:28px;
}

/* NAVBAR */

.main-navbar{
    background:linear-gradient(90deg,#0045a8,#006df0,#087cff);
    height:68px;
    box-shadow:0 3px 9px rgba(0,0,0,.22);
}

.nav-inner{
    height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
}

.brand-logo{
    width:58px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    color:#fff;
    transform:rotate(90deg);
}

.brand-text h1{
    font-size:22px;
    line-height:1.2;
    font-weight:800;
}

.brand-text span{
    font-size:12px;
    color:#e6f2ff;
}

.nav-menu{
    list-style:none;
    display:flex;
    align-items:center;
    gap:52px;
}

.nav-menu a{
    color:#fff;
    font-size:15px;
    font-weight:700;
    padding:22px 0;
    border-bottom:3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active{
    border-bottom-color:#fff;
}

/* HERO WITH YOUR REAL ASTRONOMY IMAGE */

.hero{
    position:relative;
    height:230px;
    overflow:hidden;
    color:#fff;
    background:
        linear-gradient(
            90deg,
            rgba(0,8,22,.20) 0%,
            rgba(0,18,50,.45) 42%,
            rgba(0,30,75,.70) 100%
        ),
        url('../images/space-bg.jpg');
    background-size:cover;
    background-position:left center;
    background-repeat:no-repeat;
}

/* dark layer for text readability */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.05) 0%,
            rgba(0,0,0,.28) 48%,
            rgba(0,0,0,.45) 100%
        );
    z-index:1;
}

/* no fake CSS stars */
.hero::after{
    display:none;
}

.hero-inner{
    position:relative;
    z-index:2;
    height:230px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.hero-content{
    text-align:center;
    flex:1;
    margin-right:40px;
}

.hero-content h1{
    font-size:32px;
    font-weight:900;
    line-height:1.2;
    margin-bottom:12px;
    text-shadow:0 4px 14px rgba(0,0,0,.75);
}

.hero-subtitle{
    font-size:12px;
    margin-bottom:12px;
    text-shadow:0 3px 10px rgba(0,0,0,.75);
}

.hero-fields{
    font-size:11px;
    text-shadow:0 3px 10px rgba(0,0,0,.75);
}

.hero-dots{
    margin-top:26px;
    display:flex;
    justify-content:center;
    gap:8px;
}

.hero-dots span{
    width:10px;
    height:10px;
    background:#00356f;
    border-radius:50%;
    opacity:.85;
}

.hero-dots span.active{
    background:#fff;
    opacity:1;
}

.hero-book{
    width:430px;
    height:210px;
    position:relative;
    margin-left:10px;

    background:
        url('../images/hero-books.png');

    background-size:contain;
    background-repeat:no-repeat;
    background-position:center center;
}

/* remove old fake CSS books */

.book-stack,
.book-stack::before,
.hero-main-book{
    display:none;
}

.slider-arrow{
    position:absolute;
    z-index:5;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    color:#fff;
    font-size:32px;
    cursor:pointer;
}

.slider-left{
    left:40px;
}

.slider-right{
    right:40px;
}

/* SEARCH */

.search-section{
    margin-top:-5px;
    position:relative;
    z-index:8;
}

.search-box{
    width:82%;
    margin:auto;
    background:#fff;
    border-radius:8px;
    padding:6px;
    display:flex;
    align-items:center;
    box-shadow:0 2px 12px rgba(0,0,0,.14);
    border:1px solid #e5eaf2;
}

.search-box button{
    width:125px;
    height:42px;
    border:none;
    border-radius:4px;
    background:#073b83;
    color:#fff;
    font-family:inherit;
    font-size:14px;
    cursor:pointer;
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:0 15px;
    font-family:inherit;
    font-size:13px;
    color:#666;
}

.search-icon{
    color:#064ca8;
    font-size:28px;
    padding-left:12px;
}

/* SECTIONS */

.section{
    padding:25px 0 12px;
}

.section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.section-heading h2{
    color:#003b88;
    font-size:21px;
    font-weight:900;
}

.section-heading a,
.panel-heading a{
    color:#005bc7;
    font-size:12px;
    font-weight:700;
}

/* CATEGORIES */

.categories{
    display:grid;
    grid-template-columns:repeat(9,1fr);
    gap:8px;
}

.category-box{
    background:#fff;
    min-height:78px;
    border-radius:6px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.10);
    border:1px solid #edf1f6;
    transition:.2s;
}

.category-box:hover{
    transform:translateY(-2px);
}

.category-box span{
    font-size:30px;
    line-height:1;
    margin-bottom:6px;
    color:#0050b8;
}

.category-box p{
    font-size:13px;
    font-weight:700;
}

/* BOOK PANELS */

.books-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:2px;
}

.books-panel{
    background:#fff;
    border-radius:8px;
    padding:12px 14px 14px;
    box-shadow:0 2px 9px rgba(0,0,0,.10);
    border:1px solid #edf1f6;
    position:relative;
}

.panel-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.panel-heading h2{
    color:#003b88;
    font-size:16px;
    font-weight:900;
}

.book-list{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}

.book-card{
    text-align:center;
}

.book-cover{
    height:118px;
    border-radius:5px;
    background:
        radial-gradient(circle at 50% 45%,rgba(38,168,255,.7),transparent 25%),
        linear-gradient(145deg,#06152f,#0a438e);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px;
    font-size:11px;
    line-height:1.6;
    box-shadow:0 4px 10px rgba(0,0,0,.22);
    margin-bottom:8px;
}

.book-card h3{
    color:#111;
    font-size:12px;
    line-height:1.5;
    font-weight:800;
}

.book-card p{
    color:#555;
    font-size:11px;
    margin-top:2px;
}

.book-card strong{
    display:block;
    color:#e39100;
    font-size:11px;
    margin-top:3px;
}

/* SERVICES */

.services{
    margin-top:14px;
    margin-bottom:6px;
    background:#eef7ff;
    border:1px solid #dfefff;
    border-radius:8px;
    min-height:65px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    align-items:center;
}

.service-box{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#004aa8;
}

.service-box span{
    font-size:34px;
}

.service-box strong{
    display:block;
    font-size:14px;
    font-weight:900;
}

.service-box small{
    display:block;
    font-size:11px;
    color:#667085;
    margin-top:3px;
}

/* FOOTER */

.footer{
    margin-top:0;
    background:linear-gradient(135deg,#061b36,#062f65,#073b83);
    color:#fff;
}

.footer-container{
    padding:28px 0 24px;
    display:grid;
    grid-template-columns:2fr 1fr 1.5fr 1.2fr;
    gap:35px;
}

.footer-col h3{
    font-size:15px;
    margin-bottom:16px;
    font-weight:900;
}

.footer-col p{
    color:#e5eefb;
    font-size:12px;
    line-height:2;
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:8px;
}

.footer-col ul li a{
    color:#e5eefb;
    font-size:12px;
}

.footer-symbols{
    display:flex;
    gap:18px;
    align-items:center;
}

.symbol-box{
    width:90px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#fff;
    font-size:13px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
    padding:10px;
    color:#d9e8ff;
    font-size:11px;
}

/* RESPONSIVE */

@media(max-width:1100px){
    .categories{
        grid-template-columns:repeat(3,1fr);
    }

    .books-row{
        grid-template-columns:1fr;
    }

    .book-list{
        grid-template-columns:repeat(3,1fr);
    }

    .nav-menu{
        gap:22px;
    }
}

@media(max-width:768px){
    .top-info-bar{
        display:none;
    }

    .main-navbar{
        height:auto;
    }

    .nav-inner{
        height:auto;
        flex-direction:column;
        gap:12px;
        padding:12px 0;
    }

    .nav-menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .hero{
        height:auto;
        padding:28px 0;
        background-position:center center;
    }

    .hero-inner{
        height:auto;
        flex-direction:column;
    }

    .hero-content{
        margin-right:0;
    }

    .hero-content h1{
        font-size:32px;
    }

    .hero-book{
        display:none;
    }

    .search-box{
        width:100%;
    }

    .categories{
        grid-template-columns:repeat(2,1fr);
    }

    .book-list{
        grid-template-columns:repeat(2,1fr);
    }

    .services{
        grid-template-columns:1fr;
        gap:14px;
        padding:16px;
    }

    .footer-container{
        grid-template-columns:1fr;
    }
}