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

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #2070ff 0%, #021e4f 100%);
    color: #fff;
}

nav {
    font-size: 35px;
    text-align: center;
}
.main {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.container {
    height: 100%;
    display: flex;
    overflow-y: auto;
}

.left-panel, .right-panel {
    width: 50%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

.left-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.left-panel section {
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.left-panel section > * {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-panel section h2 {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 1.1em;
}

.notice-carousel, .video-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 5px;
}

.notice-content, .staff-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notice-content p, .staff-content p {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
}

.notice-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.notice-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.notice-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    color: white;
}

.notice-title-overlay h3 {
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}


#map {
    flex: 1;
    margin-top: 0;
}

.notice-carousel, .staff-carousel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notice-carousel, .staff-carousel {
    position: relative;
    padding: 15px;
    margin-top: 10px;
}

.video-player {
    margin-top: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.video-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

#video-player {
    width: 100%;
    height: 80%;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
}

#video-player:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.video-prev-btn,
.video-next-btn {
    padding: 12px 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-prev-btn:hover,
.video-next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.video-prev-btn:active,
.video-next-btn:active {
    transform: scale(0.95);
}

.video-info {
    margin-top: 10px;
    text-align: center;
}

.video-info h3 {
    margin: 0;
    padding: 0;
    font-size: 1.1em;
}

#map {
    height: 300px;
    margin-top: 10px;
}

.carousel-controls {
    text-align: center;
    margin-top: 10px;
}

.carousel-controls button {
    padding: 12px 20px;
    margin: 0 40px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.carousel-controls button:active {
    transform: scale(0.95);
}

.right-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
}

.card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.telephone-card {
    cursor: default;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

.telephone-list {
    list-style: none;
    padding: 0;
    margin-left: 50px;
    text-align: left;
    width: 100%;
}

.telephone-list li {
    padding: 3px 0;
    font-size: 1.1em;
}

.telephone-icon {
    margin-right: 10px;
}

.card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.file-list-container {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.file-item:nth-child(odd) {
    background-color: #0e48b0;
}

.file-item:nth-child(even) {
    background-color: #1255cc;
}

.file-item:hover {
    background-color: #1147a6;
}

.file-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    font-size: 1.2em;
}

.file-name {
    vertical-align: middle;
}

.card:hover {
    background-color: #1167ff;
}

.content-viewer {
    flex-grow: 1;
    padding: 20px;
    height: calc(100vh - 100px);
    position: relative;
}

.content-viewer h2 {
    margin-bottom: 20px;
}

.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 10px;
    border-bottom: 1px solid #3761ac;
    cursor: pointer;
}

.file-list li:hover {
    background-color: #1147a6;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

iframe {
    width: 100%;
    height: calc(100vh - 100px);
    border: none;
    background: transparent;
}

iframe[src$=".pdf"] {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        height: auto;
    }
}

#pdf-viewer {
    overflow: auto;
    width: 100%;
    padding: 20px 110px 0 20px;
}
