.jee-updates-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('path/to/jee-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.dark-mode .hero::before {
    opacity: 0.5;
}

.dark-mode .hero-content {
    background-color: rgba(0, 0, 0, 0.7);
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.updates-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.update-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .update-card {
    background-color: #333;
    color: #fff;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.update-card:hover {
    transform: translateY(-5px);
}

.update-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.update-content {
    padding: 20px;
}

.update-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dark-mode .read-more {
    background-color: #0056b3;
}

.read-more:hover {
    background-color: #0056b3;
}

.dark-mode .read-more:hover {
    background-color: #003d82;
}

.sidebar {
    flex: 1;
}

.sidebar-widget {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .sidebar-widget {
    background-color: #444;
    color: #fff;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 10px;
}

.event-list li {
    display: flex;
    justify-content: space-between;
}

.event-date {
    font-weight: bold;
}

.dark-mode {
    background-color: #222;
    color: #fff;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        order: -1;
    }
}