/* static/css/sri_ramakrishna.css */

/* Hero section specific styles */
.sri-ramakrishna-hero {
    /* NEW: Add your banner image here */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* Dark overlay for text readability */
                url('{% static "images/common_hero_banner.jpg" %}') no-repeat center center; /* Path to your banner image */
    background-size: cover; /* Ensures the image covers the entire area */
    color: var(--rkm-dark); /* This will be overridden by h1/p styles below */
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sri-ramakrishna-hero h1 {
    font-size: 3.5rem;
    color: white; /* Changed to white for contrast against dark banner */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}

.sri-ramakrishna-hero .lead {
    font-size: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9); /* Changed to light white for contrast */
}

/* Main content area (two columns) */
.sri-ramakrishna-content {
    background-color: var(--rkm-light); /* Use your defined light background color */
    padding: 60px 0;
}

/* Sidebar styling */
.sticky-sidebar {
    position: sticky;
    top: 20px; /* Adjust as needed for spacing from top */
    margin-bottom: 20px; /* Space below sidebar if not sticky */
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners clip content */
}

.sticky-sidebar .card-header {
    background-color: var(--rkm-primary); /* Use your primary color */
    color: white;
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sticky-sidebar .list-group-item {
    font-size: 1.05rem;
    color: var(--rkm-dark);
    padding: 0.8rem 1.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sticky-sidebar .list-group-item:hover {
    background-color: rgba(0, 86, 179, 0.05); /* Light primary hover */
    color: var(--rkm-primary);
}

.sticky-sidebar .list-group-item.active {
    background-color: var(--rkm-primary);
    border-color: var(--rkm-primary);
    color: white;
    font-weight: bold;
}

/* Main Content Card styling */
.main-content-card {
    border-radius: 8px;
    padding: 2rem !important; /* Override default Bootstrap padding */
    line-height: 1.8; /* Improve readability */
    font-size: 1.05rem;
}

.main-content-card h2,
.main-content-card h3 {
    color: var(--rkm-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-content-card p {
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sri-ramakrishna-hero h1 {
        font-size: 2.5rem;
    }
    .sticky-sidebar {
        position: static; /* Disable sticky on smaller screens */
        top: auto;
        margin-bottom: 2rem; /* Add space below sidebar */
    }
}