body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f4f7f6;
    font-size: 16px;
    line-height: 1.6;
}

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.page-content {
    padding-top: 140px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    color: #1A237E;
}

a {
    color: #0D47A1;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFAB40;
    text-decoration: none;
}

.btn-primary {
    background-color: #0D47A1;
    border-color: #0D47A1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #0a3a80;
    border-color: #0a3a80;
}

.btn-ppdb {
    background-color: #FFD700 !important;
    color: #1A237E !important;
    border: none;
    font-weight: 600;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-ppdb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.floating-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-app-button {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #1A237E !important;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}
.floating-app-button:hover {
    color: #1A237E !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.floating-app-button:last-child {
    margin-bottom: 0;
}

#main-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 1030;
}

#main-header .top-bar {
    background-color: #1A237E;
    color: #E0E0E0;
    font-size: 0.85rem;
}
#main-header .top-bar a {
    color: #FFFFFF;
}
#main-header .top-bar a:hover {
    color: #FFD700;
}
#main-header .running-text-container {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}
#main-header .running-text-container marquee {
    vertical-align: middle;
}

#main-header .header-main-content {
}

#main-header .logo-brand .logo-img {
    height: 55px;
    transition: transform 0.3s ease;
}
#main-header .logo-brand:hover .logo-img {
    transform: scale(1.05);
}
#main-header .logo-brand .school-name {
    color: #1A237E;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}

#main-header .navbar {
    padding: 0 !important;
}
#main-header .navbar-nav .nav-link {
    color: #333333;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
    margin: 0 0.2rem;
}
#main-header .navbar-nav .nav-link:hover,
#main-header .navbar-nav .nav-link.active,
#main-header .navbar-nav .nav-item.show .nav-link {
    color: #FFFFFF;
    background-color: #0D47A1;
}

#main-header .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    margin-top: 0;
}
#main-header .navbar-nav .dropdown-item {
    font-weight: 500;
    color: #333333;
    transition: color 0.3s ease, background-color 0.3s ease;
}
#main-header .navbar-nav .dropdown-item:hover,
#main-header .navbar-nav .dropdown-item.active {
    background-color: #e9ecef;
    color: #0D47A1;
}
#main-header .navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
#main-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 35, 126, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.swiper-container {
    width: 100%;
    height: 450px;
    background-color: #eeeeee;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.swiper-slide .carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    z-index: 10;
    background-color: rgba(26, 35, 126, 0.6);
    border-radius: 5px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background-color: rgba(26, 35, 126, 0.5);
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(26, 35, 126, 0.8);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}
.swiper-pagination-bullet {
    background-color: #ffffff;
    opacity: 0.7;
}
.swiper-pagination-bullet-active {
    background-color: #FFD700;
    opacity: 1;
}

.card {
    border: none;
    border-radius: 8px;
}
.card-header {
    border-bottom: none;
    border-radius: 8px 8px 0 0 !important;
    font-family: 'Roboto Slab', serif;
}
.bg-success {
    background-color: #1B5E20 !important;
}
.bg-info {
    background-color: #0277BD !important;
}

.album-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.album-cover-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.album-cover-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.album-card .card-body {
    padding: 1rem;
    flex-grow: 1;
}
.album-card .card-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #1A237E;
}
.album-card .card-text {
    font-size: 0.85rem;
    color: #555;
}
.album-card .card-footer {
    background-color: transparent;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
}

.video-card iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 8px 8px 0 0;
}
.sambutan-kepsek img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

footer.bg-dark {
    background-color: #1f2937 !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
footer a.text-warning {
    color: #FFD700 !important;
    text-decoration: underline;
}
footer a.text-warning:hover {
    color: #ffed8a !important;
}

@media (max-width: 991.98px) {
    .page-content {
        padding-top: 180px;
    }
    #main-header .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    #main-header .navbar-nav .nav-link {
        margin-bottom: 0.5rem;
    }
    #main-header .top-bar {
        font-size: 0.8rem;
    }
    .desktop-app-button {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .floating-buttons-container {
        display: none !important;
    }
}

#flipbook-container {
    margin: 20px auto;
}
#flipbook {
    width: 800px;
    height: 500px;
    margin: 0 auto;
}
#flipbook .page {
    background-color: white;
    border: 1px solid #ccc;
    overflow: hidden;
}
#flipbook .page img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
    object-fit: contain;
}
#flipbook .odd {
}
#flipbook .even {
}