/* style.css */

@font-face{
    font-family:'CantarellItalic';
    src:url('fonts/Cantarell-Italic.ttf');
}

@font-face{
    font-family:'Cantarell';
    src:url('fonts/Cantarell.ttf');
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f7f7f7;
    font-family:'CantarellItalic';
    color:#1a1a1a;
}

a{
    text-decoration:none;
}

.site-wrapper{
    width:1280px;
    margin:auto;
    background:white;
    min-height:100vh;
    position:relative;
}

/* NAVIGATION */

.topbar{
    position:absolute;
    top:16px;
    left:20px;
    right:20px;
    height:70px;
    background:white;
    z-index:999;
    display:flex;
    box-shadow:0 2px 10px rgba(0,0,0,0.12);
    border-radius: 3px;
}

.logo-section{
    width:320px;
    background:#000366;
    display:flex;
    align-items:center;
    justify-content:center;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.logo-section img{
    max-width:300px;
}

.main-nav{
    display:flex;
    flex:1;
}

.nav-item{
    position:relative;
}

.nav-item > a{
    height:70px;
    width:175px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#000366;
    border-right:1px solid #e3e3e3;
}

.nav-item > a:hover{
    background:#cae4fa;
    color: #000366;
}

.nav-item img{
    width:26px;
    margin-bottom:6px;
}

.lang-switch{
    width:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
}

/* DROPDOWN */

.dropdown-menu{
    position:absolute;
    top:70px;
    left:0;
    width:1000px;
    background:white;
    padding:40px;
    display:none;
    z-index:1000;

    transform:translateY(-30px);
    opacity:0;

    transition:
    transform .35s ease,
    opacity .35s ease;
}

.has-dropdown:hover .dropdown-menu{
    display:flex;
    gap:40px;

    transform:translateY(0);
    opacity:1;
}

.has-dropdown:hover ~ .nav-overlay{
    opacity:1;
}

.dropdown-column{
    flex:1;
}

.dropdown-column h3{
    color:#000366;
    margin-bottom:20px;
    font-size:34px;
}

.dropdown-image{
    width:100%;
    height:280px;
    overflow:hidden;
    margin-bottom:20px;
}

.dropdown-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.dropdown-column ul{
    list-style:none;
}

.dropdown-column li{
    margin-bottom:15px;
}

.dropdown-column a{
    color:#5265a5;
    font-size:20px;
}

/* OVERLAY */

.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.80);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
    z-index:100;
}

body:has(.has-dropdown:hover) .nav-overlay{
    opacity:1;
}

/* HERO */

.hero{
    position:relative;
    height:720px;
    overflow:hidden;
}

.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity .8s ease;
}

.hero-slide.active{
    opacity:1;
}

.hero-slide::after{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
}

.hero-content{
    position:absolute;
    left:160px;
    bottom:120px;
    z-index:2;
    color:white;
}

.hero-content h1{
    font-size:68px;
    margin-bottom:5px;
}

.hero-content p{
    font-size:32px;
    font-family:'Cantarell';
    margin-bottom:30px;
}

.hero-button{
    display:inline-block;
    background:#739bb0;
    color:white;
    padding:14px 28px;
    font-size:20px;
}

/* ARROWS */

.carousel-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    background:rgba(255,255,255,0.25);
    color:white;
    font-size:40px;
    cursor:pointer;
    z-index:5;
}

.carousel-arrow.left{
    left:25px;
}

.carousel-arrow.right{
    right:25px;
}

/* DOTS */

.carousel-dots{
    position:absolute;
    bottom:25px;
    width:100%;
    display:flex;
    justify-content:center;
    gap:10px;
    z-index:5;
}

.dot{
    width:14px;
    height:14px;
    background:#d8d8d8;
    border-radius:50%;
}

.dot.active{
    background:#000366;
}

/* HOMEPAGE GRID */

.homepage-grid{
    padding:60px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.home-card h2{
    color:#4f62a2;
    margin-bottom:20px;
    font-size:40px;
}

.home-card img{
    width:100%;
    height:360px;
    object-fit:cover;
    margin-bottom:25px;
}

.home-card ul{
    list-style:none;
}

.home-card li{
    margin-bottom:18px;
}

.home-card a{
    color:#5265a5;
    font-size:24px;
}

/* PAGE BANNER */

.page-banner{
    position:relative;
    height: 420px;
    background:url('images/page-banner.png');
    background-size:cover;
    background-position:center;
}


.page-banner-content{
    position:absolute;
    left:100px;
    bottom:80px;
    color:white;
    z-index:5;
}

.page-banner-content h1{
    font-size:58px;
    margin-bottom:10px;
}

.page-banner-content p{
    font-size:26px;
    font-family:'Cantarell';
}

/* CONTENT */

.content-section{
    padding:80px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
}

.content-box h2{
    color:#000366;
    margin-bottom:25px;
    font-size:42px;
}

.content-box p{
    font-family:'Cantarell';
    font-size:21px;
    line-height:1.8;
    margin-bottom:30px;
}

.content-box img{
    width:100%;
}

.content-button{
    display:inline-block;
    padding:14px 24px;
    background:#739bb0;
    color:white;
}

/* FOOTER */

.footer{
    background:#000366;
    padding:70px;
    color:white;
}

.footer-logo{
    margin-bottom:50px;
}

.footer-logo img{
    width:500px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:50px;
}

.footer-column h3{
    margin-bottom:25px;
    font-size:28px;
}

.footer-column a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:white;
    margin-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,0.15);
    padding-bottom:12px;
    font-size:18px;
}

.footer-column img{
    width:18px;
}

/* RESPONSIVE */

@media(max-width:1300px){

    .site-wrapper{
        width:100%;
    }

}

@media(max-width:1000px){

    .homepage-grid,
    .content-section,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .main-nav{
        display:none;
    }

}

/* BOOK SEARCH */

.book-search-section{
    padding:80px;
    padding-top: 180px;
    background:#ffffff;
}

.book-search-header{
    margin-bottom:40px;
}

.book-search-header h2{
    font-size:52px;
    color:#000366;
    margin-bottom:18px;
}

.book-search-header p{
    font-size:22px;
    font-family:'Cantarell';
    color:#4a4a4a;
}

.book-search-box{
    background: #ffffff;
    border:1px solid #d6dce7;
    padding:40px;
}

.search-controls{
    display:flex;
    gap:20px;
    margin-bottom:35px;
}

.search-controls input{
    flex:1;
    height:70px;
    border:none;
    border-bottom:2px solid #000366;
    padding:0 20px;
    font-size:22px;
    font-family:'CantarellItalic';
    background:#f7f9fc;
    color:#000366;
    outline:none;
}

.search-controls input::placeholder{
    color:#7d89a6;
}

.search-controls button{
    width:180px;
    border:none;
    background:#000366;
    color:white;
    font-size:20px;
    font-family:'CantarellItalic';
    cursor:pointer;
}

.search-controls button:hover{
    background:#739bb0;
}

.search-results{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.search-placeholder,
.search-loading{
    padding:40px;
    background:#f7f9fc;
    border-left:5px solid #739bb0;
    color:#4b5878;
    font-size:20px;
    font-family:'Cantarell';
}

.book-result{
    border:1px solid #d7deea;
    background:white;
    padding:35px;
}

.book-result-main h3{
    font-size:34px;
    color:#000366;
    margin-bottom:25px;
}

.location-grid{
    display:flex;
    gap:25px;
}

.location-box{
    width:220px;
    background:#f4f8fc;
    border-left:5px solid #739bb0;
    padding:20px;
}

.location-label{
    display:block;
    font-size:16px;
    color:#5c6d92;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.location-value{
    display:block;
    font-size:34px;
    color:#000366;
}

@media(max-width:900px){

    .search-controls{
        flex-direction:column;
    }

    .search-controls button{
        width:100%;
        height:70px;
    }

    .location-grid{
        flex-direction:column;
    }

    .location-box{
        width:100%;
    }

}