:root {
    --primary-color: #192f59;
    --accent-color: #ffb400;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.bengali {
    font-family: 'Hind Siliguri', sans-serif;
}

.section-container {
    padding: 3rem 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;

    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.event-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 700px;
    /* max-height: 556px; */
    /* allows growth if content is long */
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
}

.event-img {
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    min-height: 200px;
    flex-shrink: 0;
    /* prevent image shrinking when content expands */
    background-color: #f9f9f9;
    /* fallback background if image doesn't fill */
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1.08);
    animation: fadeZoomIn 0.5s ease-out forwards;
    transition: transform 0.2s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.12);
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.25);
    }

    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.event-content {
    padding: 20px;
    margin-top: 30px;
    background-color: #fff;
    flex-grow: 1;
    /* allows content to stretch when needed */
}

.event-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.4;
}

.event-date {
    color: #ffb400;
    border-radius: 5px;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    width: 80px;
    margin-top: 5px;
}

.date-day {
    font-size: 24px;
    margin-bottom: 2px;
}

.date-month {
    text-transform: uppercase;
    font-size: 14px;
}

.text-justify {
    text-align: justify;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 10px;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.read-more i {
    margin-right: 5px;
}

.notices-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 700px;
    overflow-y: auto;
}

.notice-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}

.notice-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.notice-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.view-all-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.view-all-btn:hover {
    background-color: #e09e00;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.notice-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.notice-control-btn {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.notice-control-btn:hover {
    background: #ddd;
}

/* Custom scrollbar for notices */
.notices-container::-webkit-scrollbar {
    width: 6px;
}

.notices-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notices-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.notices-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .event-card {
        margin-bottom: 30px;
    }

    .notices-container {
        margin-top: 30px;
        height: 450px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 24px;
        padding-top: 20px;
    }

    .event-title,
    .notice-title {
        font-size: 16px;
    }
}