:root {
    --primary-color: #2c3e50; /* Dark Blue/Grey */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #e74c3c; /* Red */
    --light-color: #ecf0f1; /* Light Grey */
    --dark-color: #2c3e50;
    --text-color: #34495e; /* Darker Grey for text */
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--light-color);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.containerr {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Card Styles */
.section-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Section Header Styles */
.section-header {
    position: relative;
    margin-bottom: 1.5rem; /* Reduced margin */
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header .fas {
    color: var(--secondary-color);
    margin-right: 10px;
}

.items-container {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 500px; /* Standard height for both sections */
    padding-right: 10px; /* Space for scrollbar */
}

/* Scrollbar Customization */
.items-container::-webkit-scrollbar {
    width: 8px;
}

.items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.items-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.items-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Notice List Styles */
.notice-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    background-color: #f8f9fa;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--secondary-color); /* Added a subtle border */
}

.notice-list li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.notice-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 500;
    display: block;
    flex-grow: 1;
}

.notice-list li a:hover {
    color: var(--secondary-color);
}

/* Video Card Styles */
.video-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex; /* Use flexbox for layout within the card */
    flex-direction: column; /* Stack video and content vertically */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-card video {
    width: 100%;
    /* Adjusted max-height for a better fit and visual appeal */
    max-height: 220px;
    height: auto;
    object-fit: cover; /* Ensures the video covers the area without distortion */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.video-content {
    padding: 1.25rem;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
}

.video-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* Reduced margin */
    font-weight: 600;
}

.video-content small {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    display: block;
}

.video-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1; /* Allows description to take available space */
}

.read-mores {
    display: inline-block; /* Make it block to control padding and margin easily */
    font-size: 0.8rem;
    padding: 8px 16px; /* Slightly more padding */
    background-color: #4361ee;
    color: #ffffff;
    border-radius: 5px; /* Slightly more rounded */
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start; /* Align button to the start within flex container */
}

.read-mores:hover {
    background-color: #3a0ca3;
    transform: translateY(-2px); /* Subtle hover effect */
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure it fills the container height */
}

.no-items i {
    font-size: 2.5rem; /* Slightly larger icon */
    margin-bottom: 1rem;
    color: #bdc3c7;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .items-container {
        max-height: 400px; /* Slightly reduced height for medium screens */
        overflow-y: auto; /* Keep scroll for consistency */
    }
    
    .video-card video {
        max-height: 180px; /* Further reduced height for smaller screens */
    }
}

@media (max-width: 768px) {
    .section-card {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .video-content {
        padding: 1rem;
    }

    .items-container {
        max-height: none; /* Allow content to expand on small screens */
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.3rem;
    }
    .video-content h3 {
        font-size: 1.1rem;
    }
    .video-content p {
        font-size: 0.9rem;
    }
    .read-mores {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}