/* First Row - Contact Bar */
.top-contact-bar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
}

/* Second Row - Keep it sticky */
.navbar{
    position: sticky;      /* Don't change if already sticky */
    top: 52px;             /* Height of the contact bar */
    z-index: 99998;
}

/* Prevent content from hiding */
body{
    padding-top: 52px;   /* Height of top contact bar only */
}

.language-selector {
    margin: 0 20px;
}

.language-selector select {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #ff9800;
}

.language-selector select:focus {
    border-color: #ff9800;
    box-shadow: 0 0 6px rgba(255,152,0,0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar{
    position: sticky;
    top: 42px;                 /* Height of contact bar */
    width: 100%;
    min-height: 110px;         /* Increased height */
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;         /* Smaller vertical padding */
    z-index: 9998;
}

/* Logo */
.logo {
    font-size: 22px;
    font-weight: bold;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #00008B;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #C2A46D;
}

/* Mobile Menu Icon */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
body{
    padding-top: 110px;    /* Contact bar + navbar height */
}
.navbar {
    top: 110px;

}
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
	background:rgba(255,255,255,.95);
    color: #00008B;

        flex-direction: column;
        width: 200px;
        display: none;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ================= Books ================= */

.pdf-section{
    padding:70px 20px;
    background:#f8fafc;
}

.pdf-grid-1{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
}

.pdf-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.pdf-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
    transition:.3s;
}

.pdf-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.pdf-card a{
    text-decoration:none;
    color:inherit;
    display:block;
}

.pdf-preview{
    width:100%;
    height:420px;
    border:none;
    display:block;
    pointer-events:none;
}

.pdf-preview-1{
    width:100%;
    height:620px;
    border:none;
    display:block;
    pointer-events:none;
}

.pdf-card h3{
    padding:18px;
    margin:0;
    text-align:center;
    font-size:22px;
    color:#1f2937;
}

@media(max-width:992px){
    .pdf-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .pdf-grid{
        grid-template-columns:1fr;
    }

    .pdf-preview{
        height:500px;
    }
}