  /* Inline critical CSS for the loader */
  @keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-img {
    height: 60px;
    /* Adjust the height as needed */
    width: auto;
    /* Maintain aspect ratio */
    animation: pulse 1.5s infinite ease-in-out;
}

#loader {
    position: fixed;
    left: 0;
    top: -12%;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Ensure it stays on top */
    background-color: rgba(0, 0, 0, 0.8);
    /* Set the background color (white in this example) */
    display: flex;
    justify-content: center;
    align-items: center;
}

body.loaded {
    overflow: auto;
}

body.loaded #loader {
    display: none;
}

/* Root variables for consistent styling */
:root {
    --primary-color: #3FFF00; /* Vibrant Green */
    --bg-dark: #0D0E0E; /* Deep Charcoal */
    --text-light: #fff; /* Soft White */
    --text-muted: rgba(255, 255, 255, 0.7); /* Muted Gray */
    --overlay-bg: rgba(0, 0, 0, 0.5); /* Dark Overlay */
    --border-color: rgba(255, 255, 255, 0.1); /* Subtle Border */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Shadow */
    --transition-duration: 0.3s; /* Standard transition speed */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
    top: 0;
}

/* Navbar Styling */
.navbar {
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--transition-duration) ease;
    box-shadow: 0 2px 5px var(--shadow-color);
    height: 14%;
}

.navbar-brand {
   
    font-weight: 700;
    margin-left: -35px;
    transition: transform var(--transition-duration) ease;
    margin-top: -20px;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .white {
    color: var(--text-light);
    font-size: 1.75rem;
}

.navbar-brand .green {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.2rem;
    transition: color var(--transition-duration) ease, background-color var(--transition-duration) ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.nav-item {
    margin-left: 0.75rem;
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.nav-item .dropdown-item {
    color: var(--text-light);
    font-size: 1rem;
    transition: color var(--transition-duration) ease, background-color var(--transition-duration) ease;
}

.nav-item .dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color var(--transition-duration) ease;
    margin-right: -20px;
}

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

.navbar-toggler:hover {
    color: var(--primary-color);
}

.navbar-toggler-icon {
    display: none;
}

/* On larger screens make navbar background darker */
@media (min-width: 992px) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

/* On larger screens make navbar background darker */
@media (max-width: 768px) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.8);
        height: 8%;
    }
    .navbar-nav {
        background-color: rgba(0, 0, 0, 0.7);
        height: 8%;
    }
}

/* Hero Section */
.image-card {
    position: relative;
    width: 100%;
    height: 75vh; /* Increased height for impact */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: height var(--transition-duration) ease; /* Smooth transition on height */
    top: 0px;
}

.image-card:hover {
    height: 80vh; /* Expand on hover */
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Slightly less transparent */
    transition: transform var(--transition-duration) ease, opacity var(--transition-duration) ease;
   
}

.image-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.image-card .title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%); /* Refined gradient */
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    font-size: 2rem; /* Larger title */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px var(--shadow-color);
    transition: bottom var(--transition-duration) ease;
}

.image-card:hover .title-overlay {
    bottom: 1rem; /* Reveal more on hover */
}

/* Content Card */
.content-card {
    position: relative;
    top: -1rem;
    left: -7px;
    width: 100%;
    min-height: 70vh;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    padding: 3rem;
    box-shadow: 0 -4px 20px var(--shadow-color);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: top var(--transition-duration) ease; /* Smooth transition on top */
}
.content-card:hover {
    top: -6rem; /* Move up on hover */
}

.content-card h2, .content-card h3 {
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.39rem;
    font-weight: 600;
    letter-spacing: 0.05em; /* Improve readability */
    text-wrap: nowrap;
}

.content-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8; /* Enhanced line height */
}

/* Meta Info */
.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 20px;
    z-index: 2;
    transition: background-color var(--transition-duration) ease; /* Smooth transition */
}

.meta-info:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darken on hover */
}

.category {
    font-size: 0.88rem;
    color: var(--text-light);
    background: linear-gradient(45deg, #12c708, #12c708);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition-duration) ease; /* Smooth transition */
}
.category:hover {
    transform: scale(1.1); /* Scale up on hover */
}

.date {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: transform var(--transition-duration) ease;
}
.sidebar:hover {
    transform: translateY(-5px); /* Lift on hover */
}

.sidebar h2 {
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 1rem;
    transition: transform var(--transition-duration) ease;
}
.sidebar ul li:hover {
    transform: translateX(5px); /* Slide on hover */
}

.sidebar ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(63, 255, 0, 0.5);
}

/* Advertisement */
.ad {
    margin: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-style: italic;
    transition: transform var(--transition-duration) ease; /* Add transition */
}
.ad:hover {
    transform: scale(1.05); /* Slight scale on hover */
}
/* Footer Styling */
.footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    transition: background-color var(--transition-duration) ease;
}
.footer:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darken on hover */
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

.footer a:hover {
    color: var(--text-light);
}

/* Text Reveal Effect */
.content-card p, .content-card h2, .content-card h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-card p.reveal, .content-card h2.reveal, .content-card h3.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .content-card {
        top: 0;
        padding: 2rem;
        border-radius: 20px;
    }

    .image-card {
        height: 50vh;
    }

    .image-card .title-overlay {
        font-size: 1.7rem;
        padding: 1.5rem;
    }

    .meta-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .sidebar h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .sidebar {
        display: none;
    }

    .content-card {
        padding: 1.5rem;
    }
    .content-card h2, .content-card h3 {
        color: var(--text-light);
        font-family: 'Poppins', sans-serif;
        margin-bottom: 1.5rem;
        font-size: 1.27rem;
        font-weight: 600;
        letter-spacing: 0.05em; /* Improve readability */
    }
    
}

/* Next Page Button Styles - styled to match website design*/
.next-page-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(115deg, #70f570, #49c628);
    /* Consistent green */
    color: #000;
    /* Black text */
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    /*Use the same font family as the rest of the website*/
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
    /* Added shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    /* Initially hidden */
    visibility: hidden;
    /* Initially hidden */
}

.next-page-button:hover {
    background-color: #36d400;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.6);
    /* Darker shadow on hover */
}


.next-page-button.visible {
opacity: 1;
}

/* Slide Out Animation */
.slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .navbar.fixed-bottom {
        /* ... other styles ... */
        min-height: 80px; /* Adjust this value */
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .nav-link i {
        margin-bottom: 8px;
    }
    .navbar.fixed-bottom .nav-link i {
        font-size: 20px !important;
        color: lightgray !important;
        margin-bottom: 0 !important;
        margin-right: 8px !important;
    }
}
