/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Main content */
.main-content {
    padding: 1rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Menu */
.nav-menu {
    margin-bottom: 3rem;
    text-align: center;
}

.menu-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.menu-toggle i {
    font-size: 1.2rem;
}

/* Navigation Tabs */
.nav-tabs {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.nav-tabs.show {
    display: flex;
}

.nav-tabs .tab-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.tab-button {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-button.disabled {
    background: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-button.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.tab-button.disabled:active {
    transform: none;
}

.tab-button i {
    font-size: 1.25rem;
}

/* Timetable Sections */
.timetable-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.timetable-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timetable-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.timetable-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timetable-header p {
    font-size: 1.125rem;
    color: #718096;
}

/* Timetable Grid */
.timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.day-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.day-header i {
    font-size: 1.5rem;
}

.day-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.periods {
    padding: 1rem;
}

.period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.period:hover {
    transform: translateX(4px);
}

.period.arrival {
    background: #f7fafc;
    border-left: 4px solid #a0aec0;
}

.period.lesson {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

.period.break {
    background: #fffaf0;
    border-left: 4px solid #ed8936;
}

.period.lunch {
    background: #fff5f5;
    border-left: 4px solid #f56565;
}

.period.pause {
    background: #fef5e7;
    border-left: 4px solid #ed8936;
}

.period.dismissal {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
}

.period .time {
    font-weight: 600;
    color: #2d3748;
    min-width: 80px;
}

.period .subject {
    color: #4a5568;
    text-align: right;
    flex: 1;
}

/* Student of the Week */
.student-week-content {
    max-width: 800px;
    margin: 0 auto;
}

.student-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.student-header i {
    font-size: 3rem;
    color: #ed8936;
    margin-bottom: 1rem;
    display: block;
}

.student-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.student-header p {
    font-size: 1.125rem;
    color: #718096;
}

.student-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #ed8936;
}

.student-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.student-avatar .initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.student-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.student-year {
    color: #718096;
    margin-bottom: 1.5rem;
}

.student-quote {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    font-style: italic;
    color: #2d3748;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.achievement-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-card h5 i {
    color: #ed8936;
}

.achievement-card ul {
    list-style: none;
    padding: 0;
}

.achievement-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.achievement-card li:last-child {
    border-bottom: none;
}

.achievement-card p {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #718096;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

/* Sports Section Styling */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sports-week-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sports-week-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #38a169, #667eea, #764ba2);
}

.sports-week-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: #48bb78;
}

.week-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.week-header i {
    font-size: 1.5rem;
    color: #48bb78;
    background: #f0fff4;
    padding: 10px;
    border-radius: 50%;
}

.week-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.sports-activities {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    background: #f8fafc;
    border-left: 4px solid #48bb78;
    transition: all 0.3s ease;
    justify-content: center;
}

.sport-item:hover {
    background: #f0fff4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.2);
}

.sport-item i {
    font-size: 2rem;
    color: #48bb78;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sport-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.3rem;
    text-align: center;
}

/* Sport-specific styling */
.sport-item.basketball i { color: #e53e3e; }
.sport-item.table-tennis i { color: #3182ce; }
.sport-item.football i { color: #38a169; }
.sport-item.netball i { color: #d69e2e; }
.sport-item.athletics i { color: #805ad5; }
.sport-item.tennis i { color: #dd6b20; }
.sport-item.rugby i { color: #2d3748; }
.sport-item.badminton i { color: #319795; }
.sport-item.cricket i { color: #c53030; }
.sport-item.volleyball i { color: #2b6cb0; }
.sport-item.orienteering i { color: #744210; }
.sport-item.dodgeball i { color: #97266d; }

.sports-info {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.info-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.info-card p {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    margin: 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Weekly Bulletin Styles */
.weekly-bulletin-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bulletin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.bulletin-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.bulletin-header h3 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-weight: 700;
}

.bulletin-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.bulletin-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bulletin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.bulletin-item h4 {
    color: #2d3748;
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.bulletin-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.bulletin-item:last-child {
    margin-bottom: 0;
}

/* Empty bulletin state */
.bulletin-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.bulletin-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.bulletin-empty h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.bulletin-empty p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 1.5rem 0;
        border-radius: 0 0 1rem 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .welcome-section h2 {
        font-size: 1.875rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .timetable-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .day-card {
        margin-bottom: 1rem;
    }
    
    .period {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .period .time {
        min-width: auto;
    }
    
    .period .subject {
        text-align: left;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .timetable-header {
        padding: 1.5rem 1rem;
    }
    
    .timetable-header h3 {
        font-size: 1.5rem;
    }
    
    .student-card {
        padding: 1.5rem;
    }
    
    .student-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* Student of the Week Navigation */
.student-week-nav {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.student-tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.student-tab-button:hover {
    background: #f7fafc;
    color: #4a5568;
}

.student-tab-button.active {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
}

.student-tab-button i {
    font-size: 1rem;
}

/* Student Tab Content */
.student-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.student-tab-content.active {
    display: block;
}

/* Previous Students Grid */
.previous-students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.previous-student-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #f6ad55;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.previous-student-card .student-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.previous-student-card .student-avatar i {
    font-size: 1.5rem;
    color: white;
}

.previous-student-card h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.previous-student-card .student-year {
    color: #718096;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
}

.previous-student-card .student-quote {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.previous-student-card .student-quote p {
    color: #4a5568;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.previous-student-card .achievement-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.previous-student-card .week-date {
    font-weight: 500;
    color: #f6ad55;
}

.previous-student-card .teacher-name {
    font-style: italic;
}

/* Empty state for previous students */
.previous-students-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.previous-students-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.previous-students-empty h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.previous-students-empty p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design for Sports Section */
@media (max-width: 768px) {
    .sports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .sports-week-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .week-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sport-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }
    
    .sport-item i {
        min-width: 60px;
        height: 60px;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sport-name {
        font-size: 1.2rem;
        font-weight: 700;
    }
    

    
    .sports-info {
        margin: 30px 10px;
        padding: 20px;
    }
    
    .info-card p {
        font-size: 1.1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sports-week-card {
        padding: 15px;
        margin: 0 5px;
    }
    
    .week-header h4 {
        font-size: 1.1rem;
    }
    
    .sport-item {
        padding: 15px;
    }
    
    .sport-item i {
        min-width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .sport-name {
        font-size: 1.1rem;
    }
    

    
    .info-card h4 {
        font-size: 1.3rem;
    }
    
    .info-card p {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Calendar Section Styling */
.calendar-content {
    margin: 30px 0;
}

.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: #48bb78;
    background: #f0fff4;
    color: #38a169;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.calendar-event {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #38a169, #667eea, #764ba2);
}

.calendar-event:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: #48bb78;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.event-icon {
    font-size: 1.5rem;
    color: #48bb78;
    background: #f0fff4;
    padding: 12px;
    border-radius: 50%;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.event-description {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.event-category {
    display: inline-block;
    background: #f0fff4;
    color: #38a169;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Event Categories */
.calendar-event.assembly .event-icon {
    color: #667eea;
    background: #e6fffa;
}

.calendar-event.sports .event-icon {
    color: #f56565;
    background: #fed7d7;
}

.calendar-event.academic .event-icon {
    color: #9f7aea;
    background: #faf5ff;
}

.calendar-event.trips .event-icon {
    color: #ed8936;
    background: #fef5e7;
}

.calendar-event.special .event-icon {
    color: #38b2ac;
    background: #e6fffa;
}

/* Responsive Design for Calendar Section */
@media (max-width: 768px) {
    .calendar-filters {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-event {
        padding: 20px;
    }
    
    .event-header {
        gap: 12px;
    }
    
    .event-icon {
        font-size: 1.2rem;
        padding: 10px;
        min-width: 45px;
        height: 45px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
}

/* Key Stage sections for separate KS3/KS4 display */
.key-stage-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.key-stage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.key-stage-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.key-stage-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.no-students-message {
    text-align: center;
    padding: 2rem;
}

/* Responsive design for navigation */
@media (min-width: 768px) {
    .nav-tabs {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .nav-tabs .tab-button {
        width: auto;
        text-align: center;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Responsive design for key stage sections */
@media (max-width: 768px) {
    .key-stage-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .key-stage-header h3 {
        font-size: 1.25rem;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
