/* =========================================
   Root Variables & Global Resets
========================================= */
:root {
    --anim-speed: 220ms;
    --anim-easing: cubic-bezier(.2, .8, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* =========================================
   Layout Wrappers
========================================= */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* =========================================
   Announcements Section
========================================= */
.announcements {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.announcements h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

/* =========================================
   Calendar Section
========================================= */
.calendar-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* =========================================
   Banner Styles
========================================= */
.banner-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-container img {
    width: 100%;
    height: auto;
    display: block;
}

.heritage-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.heritage-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.heritage-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.heritage-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.heritage-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.35);
}

/* =========================================
   Sidebar Navigation
========================================= */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    background: white;
    padding: 0;
    text-align: center;
    border-bottom: 3px solid #2c3e50;
    position: relative;
    overflow: hidden;
}

.sidebar-header img {
    width: 100%;
    display: block;
    margin: 0;
    position: relative;
    left: 0;   /*left: -15%;*/
}

.sidebar-header h1 {
    font-size: 2rem;
    letter-spacing: 3px;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#header img {
    max-width: 100%;
    height: auto;
    width: auto;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Toggle Buttons */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #3d5a80 0%, #34495e 100%);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    border: none;
    text-align: left;
}

.nav-toggle:hover {
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 100%);
    border-left-color: #3498db;
    padding-left: 1.5rem;
}

.nav-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-left-color: #1abc9c;
}

.nav-icon {
    margin-right: 0.5rem;
}

.expand-icon {
    margin-left: auto;
    transition: transform var(--anim-speed) var(--anim-easing);
    font-size: 0.8rem;
}

.nav-toggle[aria-expanded="true"] .expand-icon {
    transform: rotate(90deg);
}

/* Nested Navigation Items */
.nav-item.nested {
    margin: 0.25rem 0;
}

.nav-toggle.nested {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: transparent;
    border-left: none;
    font-weight: 600;
}

.nav-toggle.nested:hover {
    background: rgba(52, 152, 219, 0.2);
    padding-left: 0.75rem;
}

.nav-toggle.nested[aria-expanded="true"] {
    background: rgba(52, 152, 219, 0.3);
    border-left: none;
}

/* Smooth Panel Animation */
.panel {
    overflow: hidden;
    height: 0;
    transition: height var(--anim-speed) var(--anim-easing);
}

.panel-inner {
    background: rgba(0, 0, 0, 0.2);
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sub-menu li a:hover {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    padding-left: 3.25rem;
    border-left-color: #3498db;
}

/* Nested Sub-menus */
.nav-item.nested .panel-inner {
    background: rgba(0, 0, 0, 0.15);
}

.nav-item.nested .sub-menu li a {
    padding-left: 3.5rem;
}

.nav-item.nested .sub-menu li a:hover {
    padding-left: 3.75rem;
}

/* Direct Links (non-expandable) */
.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #3d5a80 0%, #34495e 100%);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #4a6fa5 0%, #3d5a80 100%);
    border-left-color: #3498db;
    padding-left: 1.5rem;
}

/* =========================================
   Action Buttons
========================================= */
.action-btn i {
    margin-right: 0.75rem;
    font-size: 1.3rem;
    display: inline-block;
}

.action-btn:hover i {
    animation: spin 0.3s linear;
}

.action-btn:not(:hover) i {
    animation: spin-reverse 0.3s linear;
}
.action-buttons {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

.action-btn span {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.action-btn-icon {
    margin-right: 0.75rem;
    font-size: 1.3rem;
    display: inline-block;
}

.action-btn:hover .action-btn-icon {
    animation: spin 0.3s linear;
}

.action-btn:not(:hover) .action-btn-icon {
    animation: spin-reverse 0.3s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.phone-date {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-left: auto;
}

/* =========================================
   Accessibility / Reduced Motion
========================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .panel,
    .expand-icon,
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    main {
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }
}
