* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

:root {
    --primary-dark: #001f3f;
    --primary-blue: #003d82;
    --accent-blue: #0066cc;
    --light-blue: #e8f4f8;
    --text-dark: #2c3e50;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 31, 63, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 95px;
    max-height: 95px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo {
        height: 48px;
        max-height: 48px;
    }
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

/* Make nav links match logo height for visual balance */
.nav-links a {
    display: flex;
    align-items: center;
    height: 95px;
    padding: 0 1rem;
}

.nav-links a:hover {
    color: #5dade2;
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        height: auto;
    }

    .navbar {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }

    .navbar .container {
        padding: 0 20px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
    border-bottom: 3px solid #003d82;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #001f3f;
}

.hero p {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.btn-secondary {
    background-color: #e8f4f8;
    color: #001f3f;
    border: 2px solid #003d82;
}

.btn-secondary:hover {
    background-color: #003d82;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features */
.features {
    margin: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #001f3f;
}

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

.feature {
    padding: 2rem;
    border: 1px solid #d0e8f2;
    border-radius: 8px;
    text-align: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    box-shadow: 0 8px 16px rgba(0, 61, 130, 0.2);
    transform: translateY(-4px);
}

.feature h3 {
    margin-bottom: 1rem;
    color: #003d82;
}

/* Info cards */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.1);
    border-left: 4px solid #0066cc;
}

.info-card h3 {
    color: #003d82;
    margin-bottom: 1rem;
}

/* Calendar Section */
.calendar-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-section h2 {
    color: #001f3f;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.calendar-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.calendar-list {
    flex: 1;
    min-width: 0;
}

.calendar-view {
    flex: 1;
    min-width: 0;
}

.calendar-list h3,
.calendar-view h3 {
    color: #003d82;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-event {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 4px solid #003d82;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-event:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.15);
}

.event-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-details {
    flex: 1;
}

.event-title {
    color: #001f3f;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-time {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.event-location {
    color: #0066cc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    line-height: 1.5;
}

.calendar-loading,
.calendar-empty,
.calendar-error {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.calendar-error {
    color: #d32f2f;
}

/* Calendar Grid */
.calendar-grid {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.calendar-month-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #001f3f;
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    background: #003d82;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.2rem;
    min-width: 40px;
}

.calendar-nav-btn:hover {
    background: #001f3f;
}

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

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #003d82;
    padding: 0.75rem 0.25rem;
    font-size: 0.85rem;
}

.calendar-day {
    min-height: 80px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.calendar-day.other-month {
    background: #f5f5f5;
    opacity: 0.4;
}

.calendar-day.other-month .day-number {
    color: #999;
}

.calendar-day.other-month .day-event {
    opacity: 0.7;
}

.calendar-day.today .day-number {
    background: #0066cc;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.day-number {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.35rem;
    align-self: flex-start;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.day-event {
    font-size: 0.7rem;
    padding: 3px 5px;
    background: #e8f4f8;
    border-left: 3px solid #003d82;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #001f3f;
    line-height: 1.3;
    min-width: 0;
    max-width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.day-event:hover {
    background: #d4eaf5;
}

.day-event.all-day {
    background: #003d82;
    color: white;
    border-left-color: #001f3f;
    font-weight: 500;
}

.day-event.all-day:hover {
    background: #001f3f;
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.event-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
    padding-right: 1rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.event-modal-body {
    padding: 1.5rem;
}

.event-modal-field {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.event-modal-field:last-child {
    margin-bottom: 0;
}

.event-modal-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.event-modal-value {
    flex: 1;
    color: #2c3e50;
    line-height: 1.6;
}

.event-modal-description {
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .event-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .event-modal-header {
        padding: 1rem;
    }
    
    .event-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .event-modal-body {
        padding: 1rem;
    }
    
    .modal-close {
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 1024px) {
    .calendar-container {
        flex-direction: column;
    }
    
    .calendar-view {
        order: -1;
    }
}

@media (max-width: 768px) {
    .calendar-section {
        padding: 1rem;
    }
    
    .calendar-container {
        gap: 1.5rem;
    }
    
    .calendar-event {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .event-day {
        font-size: 1.5rem;
    }
    
    .event-month {
        font-size: 1rem;
        margin-top: 0;
        align-self: center;
    }
    
    .calendar-grid {
        padding: 0.75rem;
    }
    
    .calendar-month-header {
        margin-bottom: 1rem;
    }
    
    .calendar-month-name {
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
        min-width: 35px;
    }
    
    .calendar-days-grid {
        gap: 2px;
    }
    
    .calendar-day {
        overflow: hidden;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.5rem 0.15rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .day-events {
        gap: 2px;
        min-width: 0;
    }
    
    .day-event {
        font-size: 0.6rem;
        padding: 2px 3px;
        min-width: 0;
        max-width: 100%
        font-size: 0.6rem;
        padding: 2px 3px;
    }
    
    .calendar-day.today .day-number {
        width: 24px;
        height: 24px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}
