:root {
    --primary-color: #d1ffd1; /* Softer Light Green */
    --secondary-color: #8cc68c; /* Medium Green for accents/buttons */
    --dark-green: #388e3c; /* Darker green for text/icons */
    --text-color: #333;
    --light-text: #666;
    --link-color: #007bff;
    --white-color: #fff;
    --background-light: #f9f9f9; /* Lighter background for sections */
    --border-color: #e0e0e0;
    --box-shadow-light: 0 4px 8px rgba(0,0,0,0.08); /* Softer shadow */
    --box-shadow-hover: 0 6px 12px rgba(0,0,0,0.15); /* Slightly darker on hover */
    --gradient-light: linear-gradient(to right, var(--primary-color), #c2ffc2); /* Light gradient */
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif; /* Modern, readable body font */
    margin: 0;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* Modern, bold headings */
    color: var(--dark-green);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

.mt-20 {
    margin-top: 20px;
}

/* Header Section */
.header-container {
    background: var(--gradient-light); /* Subtle gradient for header */
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color); /* Thicker border */
    box-shadow: var(--box-shadow-light);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 3em;
    color: var(--dark-green);
    margin-right: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle icon shadow */
}

.logo h1 {
    margin: 0;
    color: var(--dark-green);
    font-size: 2.8em; /* Slightly larger */
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15); /* Text shadow for depth */
}

.logo .tagline {
    margin: 5px 0 0;
    color: var(--light-text);
    font-size: 0.95em;
    font-style: italic;
}

.side-info {
    text-align: right;
    font-size: 0.85em;
    color: var(--light-text);
}

.side-info .date {
    margin-bottom: 5px;
}

.accessibility .btn-access {
    color: var(--dark-green); /* Icons in dark green */
    margin-left: 8px;
    font-size: 1.1em;
}

.accessibility .btn-access:hover {
    color: var(--text-color);
}

/* Navigation Bar */
.navbar {
    background-color: #018749; /* Darker green for navbar */
    padding: 12px 0;
    box-shadow: var(--box-shadow-light);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px; /* More spacing */
}

.navbar ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600; /* Bolder font */
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar ul li a i {
    margin-right: 8px; /* Space between icon and text */
}

.navbar ul li a:hover, .navbar ul li a.active { /* Active class for current page */
    background-color: var(--primary-color);
    color: var(--dark-green);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2); /* Inner shadow on hover */
}

/* Main Container Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 20px; /* Gap between sidebar and main content */
}

.left-sidebar {
    flex: 0 0 280px; /* Slightly wider sidebar */
}

.advertisement {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    margin-bottom: 20px; /* Space between ads */
}

.advertisement h3 {
    margin-top: 0;
    color: var(--dark-green);
    font-size: 1.2em;
}

.ad-placeholder {
    background-color: #e6e6e6;
    height: 250px; /* Larger ad space */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    border-radius: 5px;
    font-size: 0.9em;
}

.main-content {
    flex-grow: 1;
    background-color: var(--white-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
}

/* Slider */
.slider {
    width: 100%;
    height: 350px; /* Taller slider */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--box-shadow-light);
}

.slide-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6); /* Darker overlay for text */
    color: var(--white-color);
    padding: 15px 25px;
    text-align: left;
}

.slide-caption h3 {
    color: var(--primary-color); /* Green highlight for caption title */
    margin: 0 0 5px;
    font-size: 1.8em;
}

.slide-caption p {
    margin: 0;
    font-size: 1.1em;
}

/* Section Headings */
h2 {
    color: var(--dark-green);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.8em;
}

h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Quick Links Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly larger grid items */
    gap: 20px;
}

.grid-item {
    background: #018749; /* Gradient for grid items */
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--secondary-color);
}

.grid-item:hover {
    background: #2e5537; /* Solid green on hover */
    color: var(--white-color);
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: var(--box-shadow-hover);
    border-color: var(--dark-green);
}

.grid-item i.icon-large {
    margin-bottom: 15px;
    font-size: 3.5em; /* Larger icons */
    color: #fff;
    transition: color 0.3s ease;
}

.grid-item:hover i.icon-large {
    color: var(--white-color); /* White icon on hover */
}

.grid-item span {
    font-size: 1.2em;
}

/* Latest Updates */
.latest-updates ul {
    list-style: none; /* Remove default disc */
    padding: 0;
}

.latest-updates ul li {
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
}

.latest-updates ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 0.8em; /* Smaller caret icon */
    position: relative;
    top: 5px; /* Align icon better with text */
}

.latest-updates ul li a {
    color: var(--text-color);
    text-decoration: none;
}

.latest-updates ul li a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Category Specific Styles (e.g., for competition-exam.html, pdf-notes.html) */
.category-list ul {
    list-style: none;
    padding: 0;
}

.category-list ul li {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow-light);
    transition: all 0.3s ease;
}

.category-list ul li:hover {
    transform: translateX(5px); /* Slide effect on hover */
    box-shadow: var(--box-shadow-hover);
    background-color: var(--primary-color);
}

.category-list ul li a {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.1em;
}

.category-list ul li a:hover {
    text-decoration: underline;
    color: var(--text-color);
}

.download-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.download-btn i {
    margin-right: 8px;
}

.download-btn:hover {
    background-color: var(--dark-green);
    transform: scale(1.03); /* Slight scale effect */
}

/* Footer */
.main-footer {
    background-color: var(--dark-green); /* Darker green footer */
    color: var(--white-color);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.9em;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}

.main-footer .footer-links a {
    color: var(--white-color);
    margin: 0 12px;
}

.main-footer .footer-links a:hover {
    color: var(--primary-color); /* Light green hover for footer links */
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .logo {
        margin-bottom: 10px;
    }
    .side-info {
        margin-top: 10px;
    }
    .navbar ul {
        flex-wrap: wrap;
        padding: 0 10px;
    }
    .navbar ul li {
        margin: 5px 10px;
    }
    .container {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 15px;
    }
    .left-sidebar {
        flex: none;
        width: 100%;
        margin-right: 0;
    }
    .main-content {
        padding: 15px;
    }
    .slider {
        height: 250px;
    }
    .slide-caption h3 {
        font-size: 1.5em;
    }
    .slide-caption p {
        font-size: 1em;
    }
    .grid-item {
        padding: 20px;
    }
    .grid-item i.icon-large {
        font-size: 3em;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 2em;
    }
    .logo i {
        font-size: 2.5em;
    }
    .navbar ul li a {
        font-size: 0.9em;
        padding: 6px 10px;
    }
    .link-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .slider {
        height: 180px;
    }
    .slide-caption {
        padding: 10px 15px;
    }
    .slide-caption h3 {
        font-size: 1.2em;
    }
    .slide-caption p {
        font-size: 0.9em;
    }
    h2 {
        font-size: 1.5em;
    }
    .category-list ul li {
        flex-direction: column;
        align-items: flex-start;
    }
    .category-list ul li .download-btn {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

/* Existing CSS... */

/* Header Logo Specific Styles */
.main-header .logo {
    display: flex; /* Allow image and text to sit side-by-side if needed */
    align-items: center; /* Vertically align */
}

.site-logo {
    max-height: 190px; /* Adjust as needed for your logo's height */
    width: auto;
    margin-right: 190px; /* Space between logo and potential text */
}

/* If you decide to hide h1/tagline and only show logo, remove/comment these */
/* .main-header .logo h1 { display: none; } */
/* .main-header .logo .tagline { display: none; } */


/* Social Channel Boxes (No major changes, just ensure they are fine) */
.social-channel-box-large {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.social-channel-box-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.social-channel-box-large a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.social-channel-box-large i {
    font-size: 3.5em;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.social-channel-box-large h4 {
    margin: 0 0 8px;
    font-size: 1.5em;
    color: var(--dark-green);
    line-height: 1.2;
}

.social-channel-box-large p {
    margin: 0;
    font-size: 1em;
    color: var(--light-text);
}

.social-channel-box-large.youtube i { color: #FF0000; }
.social-channel-box-large.whatsapp i { color: #25D366; }
.social-channel-box-large.telegram i { color: #0088CC; }

.social-channel-box-large.youtube:hover { background-color: #ffe5e5; }
.social-channel-box-large.whatsapp:hover { background-color: #e5ffe5; }
.social-channel-box-large.telegram:hover { background-color: #e5f6ff; }


/* Latest Updates Marquee (No changes) */
.marquee-container {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

marquee p {
    margin: 0;
    font-size: 1.1em;
    color: var(--dark-green);
    white-space: nowrap;
    display: inline-block;
}

marquee a {
    color: var(--dark-green);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.2s ease;
}

marquee a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.marquee-icon {
    font-size: 0.8em;
    margin-right: 5px;
    color: var(--secondary-color);
}


/* Latest Videos Section - Crucial Changes for 3 columns */
.latest-videos {
    margin-top: 30px;
}

.video-grid {
    display: grid;
    /* This will force 3 columns as long as items fit. Adjust 1fr if needed */
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns of equal width */
    gap: 20px; /* Space between video items */
    margin-top: 20px;
}

.video-item {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    /* Ensure all video items have consistent height, important for grid */
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.video-item a {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0; /* Image/thumbnail part should not shrink */
}

.video-item img {
    width: 100%;
    height: 150px; /* Reduced height to fit 3 in a row more easily, adjust as desired */
    display: block;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item a:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 3em;
    color: var(--white-color);
}


.video-title {
    padding: 10px 15px;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
    min-height: 50px; /* Fixed height for title */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    background-color: var(--white-color);
    flex-grow: 1; /* Title should take remaining height */
    text-align: left; /* Align title left */
}

/* More Videos Box (9th slot) */
.more-videos-box {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    cursor: pointer;
    text-decoration: none;
    min-height: 200px; /* Adjusted to roughly match other video items */
}

.more-videos-box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 20px;
}

.more-videos-box i.icon-large {
    font-size: 4em;
    color: var(--white-color);
    margin-bottom: 15px;
}

.more-videos-box h4 {
    color: var(--white-color);
    font-size: 1.7em;
    margin: 0 0 10px;
}

.more-videos-box p {
    color: var(--primary-color);
    font-size: 1.1em;
    margin: 0;
}

.more-videos-box:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .site-logo {
        max-height: 50px;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    .video-item img {
        height: 160px; /* Adjust video height */
    }
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 45px;
    }
    .social-channel-box-large {
        padding: 15px;
        min-height: 150px;
    }
    .social-channel-box-large i {
        font-size: 3em;
    }
    .social-channel-box-large h4 {
        font-size: 1.3em;
    }
    .video-grid {
        grid-template-columns: 1fr; /* Single column on tablets in portrait */
    }
    .video-item img {
        height: 200px;
    }
    .more-videos-box {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        max-height: 40px;
    }
    .social-channel-box-large {
        padding: 10px;
        min-height: 120px;
    }
    .social-channel-box-large i {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    .social-channel-box-large h4 {
        font-size: 1.1em;
    }
    .social-channel-box-large p {
        font-size: 0.9em;
    }
    .video-item img {
        height: 180px; /* Adjust height for single column on mobile */
    }
    .more-videos-box {
        min-height: 180px;
    }
}

/* Specific colors for social icons */
.social-channel-box-large.youtube i { color: #FF0000; }
.social-channel-box-large.whatsapp i { color: #25D366; }
.social-channel-box-large.telegram i { color: #0088CC; }
.social-channel-box-large.instagram i {
    color: #E4405F; /* Instagram's brand color */
    /* You can also use a gradient for a more authentic Instagram look */
    /* background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}


/* Hover effects for specific social boxes */
.social-channel-box-large.youtube:hover { background-color: #ffe5e5; }
.social-channel-box-large.whatsapp:hover { background-color: #e5ffe5; }
.social-channel-box-large.telegram:hover { background-color: #e5f6ff; }
.social-channel-box-large.instagram:hover { background-color: #fff0f2; } /* Light pink for hover */