.md-typeset h1 {
    color: var(--md-default-fg-color);
    font-weight: 700;
}

.md-typeset h2 {
    font-weight: 700;
}

/* Card container */
.card-container {
    display: grid;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    grid-template-columns: repeat(2, 1fr);
}

/* Card styles */
.doc-card {
    flex: 1;
    min-width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--md-default-bg-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Card sections */
.card-icon {
    display: flex;
    justify-content: center;
    padding: 30px 0 15px 0;
    font-size: 2em;
}

.card-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 500;
    padding: 0 15px 15px;
}

.card-desc {
    flex-grow: 1;
    padding: 0 15px 20px;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.5;
}

.card-action {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-button {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: var(--md-primary-fg-color);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.card-button:hover {
    background-color: var(--md-primary-fg-color);
    text-decoration: none;
}

/* Material icons */
.material-icon {
    font-size: 1em;
}

.md-banner {
    background-color: black;
    color: white;
    padding: 0;
    font-size: 0.1rem;
}

.md-banner__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 0.5rem;
}

.md-banner__link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

/* 翻頁式公告橫幅 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    animation: carousel 15s infinite;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

@keyframes carousel {
    0%, 25% {
        transform: translateX(0);
    }
    33%, 58% {
        transform: translateX(-100%);
    }
    66%, 91% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}