/* --- Custom CSS for LectureBytes Educational Portal --- */

/* Reset/Base Styles (already handled by Bootstrap, but good for custom tweaks) */
:root {
    --bs-primary: #0d6efd; /* Blue for primary accents */
    --bs-info: #0dcaf0; /* Light blue for secondary accents */
    --bs-dark: #212529;
    --bs-light-bg: #f8f9fa;
    --section-padding: 3rem 0;
}

body {
    background-color: var(--bs-light-bg);
    line-height: 1.6;
    color: var(--bs-dark);
}

/* --- Hero Section Styling --- */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6f42c1 100%);
    color: white;
    padding: 6rem 0; /* Increased padding for visual weight */
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
}

.hero-stats .card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.hero-stats .card:hover {
    transform: translateY(-5px);
}

/* --- Content Card Styling --- */

/* Course Cards */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    color: white !important; /* Ensure content is readable */
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-icon-bg {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 4rem;
    opacity: 0.2;
    transform: rotate(-10deg);
}

/* Video Cards */
.video-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bs-dark); /* Placeholder until thumbnail loads */
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.video-meta-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Material Cards */
.material-card {
    transition: transform 0.3s, border-color 0.3s;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.material-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* AdSense Placeholder Styling */
.ads-placeholder {
    background-color: #e9ecef; /* Light gray background */
    border: 1px dashed #adb5bd;
    color: #6c757d;
    text-align: center;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-style: italic;
}
/* Ensure ads are fully responsive and don't break layout */
.ads-placeholder.responsive-unit {
    min-height: 100px; /* Minimum height for responsive unit */
}


/* --- Utility Classes --- */
.text-info-gradient {
    background: linear-gradient(90deg, #17a2b8, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hover-info:hover {
    color: var(--bs-info) !important;
}

/* AdSense Safe Zones */
.ad-header-top { margin-top: 0; }
.ad-section-bottom { margin-bottom: 2rem; }
.ad-sidebar { padding: 1rem; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        border-radius: 0 0 30px 30px;
    }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-stats {
        margin-top: 1rem !important;
    }
    .ads-placeholder {
        margin: 1rem 0;
    }
}