﻿body {
    font-family: 'Poppins', sans-serif;
}

.navbar-brand span {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-link {
    color: #333 !important;
    transition: color 0.3s, font-weight 0.3s;
}

    .nav-link:hover {
        color: #007bff !important;
        font-weight: 600;
    }

footer.footer {
    background-color: #f8f9fa;
    text-align: center;
    font-size: 0.95rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004c99;
    }

img {
    max-width: 100%;
}

/*.my-background-div {
    background-image: url('../images/complexpic.jpg');*/ /* Replace with your image path */
    /*background-size: cover;*/ /* Adjusts the image to cover the entire div */
    /*background-repeat: no-repeat;*/ /* Prevents the image from repeating */
    /*background-position: center;*/ /* Centers the image within the div */
    /*height: 840px;*/ /* Set a height for the div to display the background */
    /*width: 100%;*/ /* Set a width for the div */
/*}*/

/*body.homepage {
    background-image: url('../images/complexpic.jpg'); 
    background-size: cover;*/ /* scale to fill */
    /*background-position: center;*/ /* center the image */
    /*background-repeat: no-repeat;*/ /* avoid tiling */
    /*height: 100vh;*/ /* full screen height */
    /*margin: 0;
}*/


/* Home Page Background */
body.homepage {
    background: url('/images/complexpic.jpg') no-repeat center center fixed;
    background-size: cover;
}

    /* Transparent cards only on homepage */
    body.homepage .card {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* Remove white main background only on homepage */
    body.homepage main {
        background: transparent !important;
        box-shadow: none !important;
    }

/* ✅ For all other pages (non-homepage) */
body:not(.homepage) {
    background-color: #e6f2ff; /* light blue shade */
}

    /* Optional: style the main content box */
    body:not(.homepage) main {
        background-color: #ffffff; /* keep content readable */
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

/* Homepage - make headings and text visible */
body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage p,
body.homepage small {
    color: #222; /* dark gray for good contrast */
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7); /* subtle glow to improve visibility */
}

/* Give Latest News heading a styled background */
body.homepage h2 {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

