/* --- 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;
}

.lead {
    font-weight: 400;
}

.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;
}

/*
========================================
    Hero Section
========================================
*/
#hero {
    background-image: url('/assets/pexels-rdne-6415562.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    color: #fff;
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #b0151e;
    border-color: #b0151e;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/*
========================================
    About & Features Sections
========================================
*/
#about .content h3 {
    font-weight: 600;
    font-size: 26px;
    color: var(--secondary-color);
}

/* --- FIX FOR ABOUT US IMAGE --- */
#about .image-ad {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .image-ad img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 500px; /* Constrains the height to prevent it from being too tall */
    width: 100%;       /* Ensures it fills the column width */
    object-fit: cover; /* Prevents the image from being stretched or squashed */
}
/* --- END OF FIX --- */

#about .content .list-unstyled i {
    font-size: 1.2rem;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--secondary-color);
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}


/*
========================================
    Magazine List Page
========================================
*/
.page-header {
    padding-top: 60px;
}

.magazine-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.magazine-item a {
    text-decoration: none;
}

.magazine-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.magazine-item:hover img {
    transform: scale(1.05);
}

.magazine-item .magazine-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px 20px;
    color: #fff;
}

.magazine-item .magazine-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.magazine-item .magazine-info p {
    margin-bottom: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.magazine-item:hover .magazine-info p {
    opacity: 1;
}

/*
========================================
    Call to Action (CTA) Section
========================================
*/
#cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

#cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

#cta .btn-light {
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#cta .btn-light:hover {
    background: #fff;
    color: var(--secondary-color);
    transform: scale(1.05);
}

/*
========================================
    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; /* Use flex for better centering */
    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) {
    #hero h1 {
        font-size: 2.8rem;
    }
    #hero p {
        font-size: 1.2rem;
    }
    .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;
    }
    #hero h1 {
        font-size: 2.2rem;
    }
    #cta h2 {
        font-size: 2rem;
    }
}
