/* =========================================
   Design System Variables & Reset
   ========================================= */
:root {
    --primary-color: #1e3a8a; /* Deep Trust Blue */
    --accent-color: #e11d48;  /* Alert Rose/Red */
    --bg-color: #f3f4f6;      /* Soft Gray Background */
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Style */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-color); /* Fallback color */
    position: relative; /* Needed for the background trick */
    min-height: 100vh;
}

/* The Watermark Background Trick */
body::before {
    content: "";
    position: fixed; /* Keeps the image in place when you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/nalanda.jpg'); /* Your image file */
    background-size: cover;
    background-position: center;
    
    /* These two lines create the magic watermark effect! */
    opacity: 0.10; /* Makes the image very faint (8% visible) */
    filter: grayscale(100%); /* Turns the image completely black and white */
    
    z-index: -1; /* Puts the image behind all your website content */
}
/* =========================================
   Header & Navigation
   ========================================= */
header {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* =========================================
   Container & Hero Section
   ========================================= */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 5%;
}

.hero-section {
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
    overflow: hidden;
}

.hero-section h2 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent-color);
    white-space: nowrap;
    font-weight: 700;
}

/* Animated News Ticker */
.news-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-ticker p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   Category Cards Grid
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


/* Card Images */
.card-image {
    width: 100%;
    height: 180px; /* Forces all images to be the same height */
    object-fit: cover; /* Prevents the image from squishing or stretching */
    border-radius: 8px; /* Smooth, rounded corners */
    margin-bottom: 15px; /* Space between the image and the title */
    border: 1px solid var(--border-color);
}

.category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 15px;
}

.category-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.category-card ul li {
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
}

/* Beautiful custom bullets */
.category-card ul li::before {
    content: "\f101"; /* FontAwesome double arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 4px;
}

.category-card ul li a {
    color: var(--text-dark);
    font-weight: 500;
}

.category-card ul li a:hover {
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    background: var(--bg-color);
    padding: 8px 15px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

.read-more:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* =========================================
   Ad Banners
   ========================================= */
.ad-banner {
    background-color: var(--card-bg);
    text-align: center;
    padding: 30px 10px;
    margin: 30px 0;
    border-radius: 12px;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    font-weight: 500;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #111827; /* Dark Gray/Black */
    color: #e5e7eb;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content p {
    margin-bottom: 20px;
    font-size: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* =========================================
   Responsive Design (Mobile Devices)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}