:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    --text-color: #333;
    --text-light: #ecf0f1;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}


/* Calendar Specific Styles */
.calendar-container {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calendar-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.calendar-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    margin: 0 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.calendar-controls button:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.calendar-controls h2 {
    font-size: 1.5rem;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.academic {
    background-color: #3498db;
}

.legend-color.holiday {
    background-color: #e74c3c;
}

.legend-color.event {
    background-color: #2ecc71;
}

.calendar {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #eee;
    padding: 10px;
    position: relative;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background-color: var(--bg-light);
}

.calendar-date {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
}

.calendar-day.today .calendar-date {
    background-color: var(--accent-color);
    color: white;
}

.calendar-day.outside-month {
    background-color: #f9f9f9;
    color: #aaa;
}

.calendar-event {
    margin-top: 20px;
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--secondary-color);
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    transform: translateY(-2px);
}

.calendar-event.academic {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

.calendar-event.holiday {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.calendar-event.event {
    background-color: rgba(46, 204, 113, 0.1);
    border-left-color: #2ecc71;
}

.event-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
}

.event-item.academic {
    border-left-color: #3498db;
}

.event-item.holiday {
    border-left-color: #e74c3c;
}

.event-item.event {
    border-left-color: #2ecc71;
}

.event-date {
    min-width: 80px;
    text-align: center;
    border-right: 1px solid #ddd;
    padding-right: 1rem;
    margin-right: 1rem;
}

.event-day {
    font-size: 1.2rem;
    font-weight: 600;
}

.event-month {
    font-size: 0.9rem;
    color: #777;
}

.event-info h4 {
    margin-bottom: 0.5rem;
}

.event-info p {
    color: #666;
    font-size: 0.9rem;
}

/*Footer*/
footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p i {
    margin-right: 10px;
    color: #3498db;
}

.footer-section address {
    font-style: normal;
}

.footer-section address a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section address a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #34495e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #3498db;
    transform: translateY(-5px);
}

.copyright {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
    color: #bdc3c7;
}
/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .calendar-event {
        font-size: 0.7rem;
        padding: 3px 5px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

@media (max-width: 500px) {
    .calendar-controls h2 {
        font-size: 1.2rem;
        min-width: 150px;
    }
    
    .calendar-date {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 0.5rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}