/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/*
========================================
    General Styling & Variables
========================================
*/
:root {
    --navbar-height: 70px;
    --primary-color: #d81e28; /* Red from logo */
    --secondary-color: #004A99; /* Blue from logo */
    --dark-color: #222529;
    --light-gray: #f8f9fa;
    --text-color: #666;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    position: relative;
    padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #333;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

/*
========================================
    Navigation Bar
========================================
*/
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: #555;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/*
========================================
    Flipbook Section Styles
========================================
*/
/* This style ensures the flipbook container has a proper height and looks good */
#flipbook-container {
    height: 80vh; /* Makes the flipbook take up 80% of the viewport height */
    max-height: 700px; /* Sets a maximum height */
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden; /* Ensures the shadow and radius are applied correctly */
}

/* dFlip uses the class _df_book, we can target it for styling */
._df_book {
    height: 100% !important; /* Forces the flipbook to fill our container */
}


/*
========================================
    Footer
========================================
*/
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 80px 0 20px 0;
}

footer .footer-logo {
    height: 50px;
    margin-bottom: 20px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

footer p,
footer a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/*
========================================
    Responsive Media Queries
========================================
*/
@media (max-width: 991.98px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    footer {
        text-align: center;
    }
    footer .social-icons {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    #flipbook-container {
        height: 70vh; /* Adjust height for smaller screens */
    }
}
