/* MASTER STYLE: MODERN EDUCATION PORTAL 
   Theme: Deep Ocean & Golden Sun
*/

/* --- 1. Global & Reset --- */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.6;
}

.no-underline { text-decoration: none !important; }
.rounded-xl { border-radius: 25px !important; }
.object-fit-cover { object-fit: cover; }

/* --- 2. Header & Navigation --- */
.top-bar {
    background: #012a4a;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 8px 0;
}

.brand-name {
    font-weight: 800;
    color: #013a63;
    font-size: 28px;
    letter-spacing: -1px;
}

.menu-bar {
    background: #01497c !important;
    border-bottom: 4px solid #ffc107;
    padding: 0;
}

.sm-clean a {
    color: #fff !important;
    font-weight: 600;
    padding: 22px 25px !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.sm-clean a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffc107 !important;
}

/* --- 3. Section Titles (The "01" Style) --- */
.modern-header {
    font-weight: 900;
    text-transform: uppercase;
    border-left: 6px solid #ffc107;
    padding-left: 15px;
    font-size: 1.1rem;
    color: #012a4a;
}

.tracking-wider { letter-spacing: 2px; }

/* --- 4. Bento Grid (News Section) --- */
.feature-post {
    border-radius: 30px;
    height: 450px;
    background: #000;
}

.feature-post img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.feature-post:hover img {
    transform: scale(1.08);
    opacity: 0.6;
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(1, 42, 74, 0.95));
}

.post-category {
    background: #ffc107;
    color: #012a4a;
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 15px;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #ced4da;
    transition: all 0.3s;
}

.side-post-item:hover {
    padding-left: 10px;
    background: rgba(255,193,7,0.05);
}

/* --- 5. Floating Gallery (Horizontal Scroll) --- */
.gallery-dynamic-wrapper {
    background: #ffffff;
    border-radius: 35px;
}

.gallery-scroll {
    gap: 20px;
    scrollbar-width: none; /* Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-card-floating {
    min-width: 260px;
    cursor: pointer;
}

.gallery-card-floating .img-holder {
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-card-floating img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-card-floating:hover .img-holder img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-card-floating:hover {
    transform: translateY(-15px);
}

/* --- 6. Video Glassmorphism --- */
.video-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 12px;
    transition: all 0.4s ease;
}

.video-glass:hover {
    box-shadow: 0 20px 40px rgba(1, 42, 74, 0.15);
    transform: scale(1.02);
}

/* --- 7. Sidebar Elements --- */
.sidebar-card {
    background: #fff;
    border-radius: 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.headmaster-img-wrapper {
    height: 280px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 13px;
    color: #444;
    text-decoration: none !important;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.archive-item:hover {
    background: #012a4a;
    color: #fff;
    transform: translateX(5px);
}

/* --- 8. Carousel / Slider Fix --- */
.carousel-item, .carousel-item img {
    height: 550px;
    border-radius: 0 0 50px 50px;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-left: 6px solid #ffc107;
    border-radius: 20px;
    padding: 30px;
    left: 5%;
    bottom: 10%;
    text-align: left;
    max-width: 500px;
}

/* --- 9. Search & Buttons --- */
.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #012a4a;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
}

.btn-warning:hover {
    background-color: #e5ac00;
    transform: translateY(-2px);
}

.search-overlay {
    background: rgba(1, 42, 74, 0.98);
}

/* Update Footer & Search Overlay */
.akreditasi-badge {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    min-width: 180px;
}

.info-ticker {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.soc-item {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff !important;
    transition: 0.3s;
    font-size: 1.2rem;
}

.soc-item:hover {
    background: #ffc107;
    color: #012a4a !important;
    transform: translateY(-5px);
}

.small-text-footer span {
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Custom Animation for Carousel Control */
.carousel-control-prev, .carousel-control-next {
    opacity: 0;
    transition: 0.4s;
}

.carousel:hover .carousel-control-prev, 
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.search-overlay .search-box {
    width: 90%;
    max-width: 600px;
    transform: scale(0.9);
    transition: 0.3s;
}

.search-overlay:target .search-box {
    transform: scale(1);
}

#return-to-top {
    display: none;
    transition: 0.3s;
}

#return-to-top:hover {
    background: #012a4a;
    color: #ffc107;
}

