html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 20px;
    font-weight: 600;
    color: #003366;
}

.navbar nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #0072ce;
}

/* NAV BUTTON */
.btn-nav {
    background: #F54927;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* HERO */
.hero {
    height: 90vh;
    background: linear-gradient(to right, #001f3f, #003366);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}


/* HERO BUTTON CONTAINER */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    align-items: center;
}

/* BUTTON COMMON STYLE */
.hero-buttons a {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: linear-gradient(135deg, #3b66d9, #2b4fb3);
    color: white;
    border: none;
}



/* SECONDARY BUTTON */
.btn-secondary {
    padding: 12px;
    background: #F54927;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #003366;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 90%;
        max-width: 320px;
        text-align: center;
    }
}

/* SECTIONS */
.section {
    padding: 50px 60px;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.bg-light {
    background: #f8f9fa;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}



/* CTA */
.cta {
    background: linear-gradient(to right, #001f3f, #003366);
    color: white;
    text-align: center;
    padding: 60px;
}

.cta h2 {
    margin-bottom: 20px;
}

/* CONTACT */
.contact-form {
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background: #0072ce;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #005bb5;
}
/* CONTACT INFO (FOR ADDRESS SECTION) */
.contact-content {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.contact-block {
    margin-bottom: 35px;
}

.contact-block h4 {
    text-align: center;
    letter-spacing: 4px;
    color: #4a63c7;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-block p {
    text-align: center;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}
#contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #003366;
    letter-spacing: 1px;
}
/* FOOTER */
footer {
     background: linear-gradient(to right, #001f3f, #003366);
    color: white;
    text-align: center;
    padding: 20px;
}

/* ðŸ”¥ RESPONSIVE DESIGN */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .navbar nav {
        margin-top: 10px;
    }

    .navbar nav a {
        display: block;
        margin: 10px 0;
    }

    .hero {
        padding: 20px;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 50px 20px;
    }
}
/* ADDRESS BOX */
.address-box {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.address-box h3 {
    margin-bottom: 10px;
    color: #003366;
}

.address-box p {
    margin: 5px 0;
}
/* NAV LINKS */
.navbar nav a {
    transition: color 0.3s ease;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-nav {
    transition: all 0.3s ease;
}

/* CARDS */
.card {
    transition: all 0.4s ease;
}
/* MODERN CONTACT STYLE */
.contact-modern {
    background: #f5f7fa;
    text-align: center; /* center whole section */
}

.contact-modern h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a1a1a;
}

/* CONTENT WRAPPER */
.contact-content {
    max-width: 700px;
    margin: auto;
}

/* EACH BLOCK */
.contact-block {
    margin-bottom: 30px;
}

/* HEADINGS */
.contact-block h4 {
    color: #3f5bd8;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* TEXT */
.contact-block p {
    font-size: 18px;
    color: #333;
    margin: 5px 0;
}
.contact-block p {
    text-align: center;
}
/* ROW LAYOUT */
.catalog-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* BOOK CARD */
.book-card {
    width:260px; /* increased width */

    background:#fff;

    padding:15px;

    border-radius:12px;

    text-align:center;

    /* thinner shadow */
    box-shadow:0 3px 8px rgba(0,0,0,0.06);

    transition:0.3s;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    border:1px solid #f1f1f1; /* light thin border */
}
.book-actions {
    margin-top: auto;   /* ADD THIS (push buttons to bottom) */
}


/* IMAGE */
.book-card img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
}
.book-card {
    width: 260px;
    padding: 15px;
}

/* TEXT */
.book-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.author {
    font-size: 14px;
    color: #000;
}

.isbn {
    font-size: 13px;
    color: #000;
    margin-bottom: 10px;
}

/* BUTTONS */
.book-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-view, .btn-buy {
    flex: 1;
    padding: 8px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.3s;
}

/* VIEW BUTTON */
.btn-view {
    background: #eee;
    color: #333;
}

.btn-view:hover {
    background: #ddd;
}

/* BUY BUTTON */
.btn-buy {
    background: #F54927;
    color: #fff;
}

.btn-buy:hover {
    background: #FF8FA3;
    color: #000;
   
}

.btn-primary1 {
    background: #FF8FA3;
    color: #000;
   
}

.btn-primary1:hover {
    background: #FF8FA3;
    color: #000;
   
}
.btn-cancel {
    background: #F54927;
    color: #000;
   
}
.btn-cancel:hover {
    background: #FF8FA3;
    color: #000;
   
}

/* 📱 MOBILE FIX FOR CATALOG */
@media (max-width: 768px) {

    .catalog-row {
        flex-direction: column;
        align-items: center;
    }

    .book-card {
        width: 90%;
        max-width: 320px;
    }

    .book-card img {
        height: auto;
    }

    .book-actions {
        flex-direction: column;
    }

    .btn-view, .btn-buy {
        width: 100%;
        margin-bottom: 8px;
        padding: 10px;
        font-size: 14px;
    }

    .section h2 {
        font-size: 26px;
    }
}
@media (max-width: 768px) {

    .catalog-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .book-card {
        width: 100%;
    }

    .book-card img {
        height: 200px;
    }

    .book-actions {
        flex-direction: column;
    }
}



.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navbar nav a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        display: block;
    }

    .navbar nav.show {
        display: flex;
    }
}
/* FIX SCROLL OFFSET FOR STICKY HEADER */
section {
    scroll-margin-top: 90px;
}
.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
}
.logo img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}




/* ANIMATION */
@keyframes fadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* BOX */
.loading-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 280px;
}

/* SPINNER */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-bottom: 15px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}


.book-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-view, .btn-buy {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

/* VIEW */
.btn-view {
    background: #f0f0f0;
    color: #333;
}

.btn-view:hover {
    background: #e0e0e0;
}

/* BUY */
.btn-buy {
    background: #F54927;
    color: white;
}





/* OVERLAY */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* BOX */
.popup-box {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    width: 620px;
    text-align: center;
    position: relative;
    animation: popupFade 0.3s ease;
}

/* ANIMATION */
@keyframes popupFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #777;
}

.close-btn:hover {
    color: #000;
}

/* LOGO */
.popup-logo img {
    width: 350px;
    margin-bottom: 10px;
}

/* TITLE */
.popup-box h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* INPUT GROUP */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

/* INPUT */
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

/* FLOAT LABEL */
.input-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #888;
    font-size: 14px;
    transition: 0.2s;
    pointer-events: none;
}

/* ACTIVE LABEL */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    background: white;
    padding: 0 4px;
    font-size: 12px;
    color: #003366;
}

/* PRIMARY BUTTON */
.btn-primary {
 
    padding: 12px;
    background: #F54927;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: white;
    color: #003366;
}

/* CANCEL BUTTON */
.btn-cancel {

    padding: 12px;
    background: #F54927;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

/* PRIMARY BUTTON1*/


/* BUTTONS */
.btn-primary1,
.btn-nav {
    transition: all 0.3s ease;
}
/* PRIMARY BUTTON */
.btn-primary1 {
 
    padding: 12px;
    background: #F54927;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .catalog-row {
        display: grid;
        grid-template-columns: 1fr; /* CHANGE to single column */
        gap: 15px;
    }

    .book-card {
        width: 100%;
        height: 100%; /* ADD */
    }

    .book-card img {
        height: auto;
    }

    .book-actions {
        flex-direction: column;
        margin-top: auto; /* ADD */
    }
}
/* =========================
   BOOK POPUP OVERLAY
========================= */

.book-popup-overlay{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.65);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:9999;

    padding:15px;
}

/* =========================
   POPUP BOX
========================= */

.book-popup-box{
    background:#fff;

    width:95%;
    max-width:1400px;

    height:95vh;

    border-radius:20px;

    position:relative;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,0.18);
}

/* =========================
   CLOSE ICON
========================= */

/* =========================
   SCROLL CONTENT
========================= */

.popup-scroll-content{
    padding:20px 35px 25px 35px;

    flex:1;
}

/* =========================
   MAIN TITLE
========================= */

.book-popup-box h2{
    text-align:center;

    font-size:34px;
    line-height:1.3;

    margin-bottom:20px;

    color:#222;
}

/* =========================
   CONTENT TITLE
========================= */

.book-popup-content h3{
    text-align:center;

    font-size:24px;

    margin-bottom:25px;

    color:#222;
}

/* =========================
   CHAPTER SECTION
========================= */

.chapter{
    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #eee;
}

/* CHAPTER TITLE */

.chapter h4{
    font-size:20px;

    color:#111;

    margin-bottom:10px;
}

/* SUB TOPICS */

.chapter p{
    margin:6px 0;

    font-size:16px;

    color:#555;

    line-height:1.6;
}

/* =========================
   BOTTOM BUTTONS
========================= */

.popup-bottom-buttons{
    display:flex;

    gap:15px;

    padding:15px 20px;

    background:#fff;

    border-top:1px solid #eee;
}


/* BUTTONS */

.popup-close-btn,
.popup-buy-btn{
    flex:1;

    border:none;

    padding:14px;

    border-radius:12px;

    font-size:16px;

    cursor:pointer;

    transition:0.3s;
}

/* CLOSE BUTTON */

.popup-close-btn{
    background:#ececec;
    color:#222;
}

.popup-close-btn:hover{
    background:#dcdcdc;
}

/* BUY BUTTON */

.popup-buy-btn{
    background:#d95b32;
    color:#fff;
}

.popup-buy-btn:hover{
    opacity:0.92;
}

/* =========================
   PREVENT BACKGROUND SCROLL
========================= */

body.popup-open{
    overflow:hidden;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

    .book-popup-overlay{
        padding:10px;
    }

    .book-popup-box{
        border-radius:16px;
    }

    .popup-scroll-content{
        padding:15px 20px 20px 20px;
    }


    .book-popup-box h2{
        font-size:24px;
    }

    .book-popup-content h3{
        font-size:20px;
    }

    .chapter h4{
        font-size:17px;
    }

    .chapter p{
        font-size:14px;
    }

    .popup-bottom-buttons{
        gap:10px;

        padding:14px;
    }

    .popup-close-btn,
    .popup-buy-btn{
        font-size:14px;

        padding:12px;
    }

}
/* PDF FRAME */
.book-frame{
    width:100%;

    height:85vh;

    border:none;

    display:block;

    background:#fff;
}
/* SAME WIDTH BUTTONS */
.btn-primary1,
.btn-cancel{
    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    font-size:16px;

    cursor:pointer;

    margin-top:12px;

    box-sizing:border-box;
}

/* PAY BUTTON */
.btn-primary1{
    background:#d95b32;
    color:#fff;
}

/* CANCEL BUTTON */
.btn-cancel{
    background:#ececec;
    color:#222;
}