/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    transition: all 0.3s;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.navbar.sticky-top {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Fix navbar width issue on hosting */
.navbar .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.brand-text {
    margin-left: 15px;
}

.brand-name {
    font-weight: 700;
    color: #1e3c72;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    background: rgba(30, 60, 114, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 1.5rem;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(30, 60, 114, 0.08);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-item:hover::before {
    height: 60%;
}
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1e3c72;
}

/* Logo Container dengan efek floating */
.logo-container {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-floating {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s;
}

.logo-floating:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3))
            drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}

/* Animasi floating */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Logo Circle - untuk fallback jika tidak ada logo */
.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Brand Text */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e3c72;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #666;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 12px 18px;
    margin: 0 3px;
    transition: all 0.3s;
    position: relative;
    font-size: 1.3rem;
    border-radius: 8px;
}

.navbar-light .navbar-nav .nav-link i {
    transition: all 0.3s;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffc107;
    transition: width 0.3s;
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #1e3c72;
    background: rgba(30, 60, 114, 0.05);
}

.navbar-light .navbar-nav .nav-link:hover i,
.navbar-light .navbar-nav .nav-link.active i {
    transform: scale(1.15);
    color: #ffc107;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 25px;
}

/* Hero Carousel Styles */
#heroCarousel {
    position: relative;
    height: 400px;
    overflow: hidden;
}

#heroCarousel .carousel-item {
    height: 400px;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: none;
}

.hero-content .btn-warning {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.hero-content .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.hero-content .btn-light {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-content .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s;
    z-index: 3;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 193, 7, 0.9);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background-color: #ffc107;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Floating Text Animation */
.floating-text-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.floating-text {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    animation: float-free 15s infinite ease-in-out;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    user-select: none;
}

.floating-text:hover {
    animation-play-state: paused;
    transform: translateY(-30px) scale(1.3) rotate(5deg) !important;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(255, 193, 7, 0.6);
    opacity: 1 !important;
    z-index: 10;
    filter: brightness(1.3);
}

.floating-text.float-1 {
    top: 10%;
    left: 5%;
    font-size: 2.5rem;
    color: rgba(255, 193, 7, 0.9);
    animation: float-free 18s infinite ease-in-out;
}

.floating-text.float-1:hover {
    color: rgba(255, 193, 7, 1);
    transform: translateY(-35px) scale(1.4) rotate(-8deg) !important;
}

.floating-text.float-2 {
    top: 30%;
    right: 10%;
    font-size: 2rem;
    animation: float-free 20s infinite ease-in-out 2s;
}

.floating-text.float-2:hover {
    transform: translateY(-30px) scale(1.35) rotate(10deg) !important;
}

.floating-text.float-3 {
    top: 60%;
    left: 15%;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: float-free 22s infinite ease-in-out 4s;
}

.floating-text.float-3:hover {
    transform: translateY(-32px) scale(1.38) rotate(-5deg) !important;
}

.floating-text.float-4 {
    bottom: 20%;
    right: 5%;
    font-size: 1.8rem;
    color: rgba(255, 193, 7, 0.8);
    animation: float-free 19s infinite ease-in-out 1s;
}

.floating-text.float-4:hover {
    color: rgba(255, 193, 7, 1);
    transform: translateY(-28px) scale(1.32) rotate(12deg) !important;
}

.floating-text.float-5 {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.3rem;
    color: rgba(255, 255, 255, 0.85);
    animation: float-free 21s infinite ease-in-out 3s;
}

.floating-text.float-5:hover {
    transform: translate(-50%, -40px) scale(1.45) rotate(-10deg) !important;
}

@keyframes float-free {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -40px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 30px) rotate(-3deg);
        opacity: 1;
    }
    75% {
        transform: translate(40px, -20px) rotate(4deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #heroCarousel,
    #heroCarousel .carousel-item {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content .btn {
        width: 100%;
        padding: 10px 20px !important;
        font-size: 0.95rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Hotline News Styles */
.hotline-news {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.hotline-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff6b6b, #4ecdc4, #ffc107);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.hotline-label {
    background: rgba(255, 193, 7, 0.95);
    color: #1e3c72;
    padding: 8px 20px;
    border-radius: 0 25px 25px 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.6);
    }
}

.hotline-content {
    overflow: hidden;
    position: relative;
}

.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.news-item {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-item:hover {
    color: #ffc107;
    transform: scale(1.05);
}

.news-item i {
    font-size: 0.5rem;
    color: #ffc107;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.news-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0 10px;
    font-weight: 600;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Hotline */
@media (max-width: 768px) {
    .hotline-news {
        padding: 10px 0;
    }
    
    .hotline-label {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .hotline-label span {
        display: none;
    }
    
    .hotline-label i {
        margin: 0;
    }
    
    .news-item {
        padding: 0 20px;
    }
    
    .news-date {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .news-title {
        font-size: 0.85rem;
    }
    
    .marquee-content {
        animation: marquee 40s linear infinite;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ffc107;
}

/* Card Styling */
.card {
    transition: all 0.3s;
    height: 100%;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.3s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: #1e3c72;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Button Styles */
.btn-primary {
    background: #1e3c72;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.btn-outline-primary {
    color: #1e3c72;
    border: 2px solid #1e3c72;
    border-radius: 5px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* Info Kontak Section */
.kontak {
    background: #f8f9fa;
}

.kontak i {
    transition: all 0.3s;
}

.kontak .col-md-4:hover i {
    transform: scale(1.1);
    color: #ffc107 !important;
}

/* Footer Styles */
footer {
    background: #1a1a2e;
}

footer h5 {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    text-decoration: none;
    transition: all 0.3s;
    color: rgba(255,255,255,0.8);
}

footer a:hover {
    color: #ffc107;
    padding-left: 5px;
}

footer .fab {
    transition: all 0.3s;
}

footer .fab:hover {
    transform: scale(1.2);
    color: #ffc107 !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #ffc107;
}

/* Profile Page */
.profile-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.card {
    animation: fadeInUp 0.6s ease-out;
}



/* Agenda Styles */
.agenda-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.agenda-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.agenda-date {
    padding: 10px;
}

.date-day {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3c72;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.agenda-meta {
    font-size: 0.9rem;
    color: #666;
}

.agenda-meta i {
    font-size: 0.85rem;
}

/* Ekstrakurikuler Styles */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Statistik Section */
.statistik {
    background: #f8f9fa;
}

.stat-box-small {
    padding: 20px 10px;
    border-radius: 10px;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-box-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.stat-box-small i {
    transition: all 0.3s;
}

.stat-box-small:hover i {
    transform: scale(1.1);
}

.stat-box-small h4 {
    font-size: 1.8rem;
    color: #333;
}

.stat-box-small small {
    font-size: 0.85rem;
    display: block;
}

@media (max-width: 768px) {
    .stat-box-small h4 {
        font-size: 1.5rem;
    }
    
    .stat-box-small i {
        font-size: 1.5rem !important;
    }
}


/* Sambutan Kepala Sekolah */
.sambutan {
    background: white;
    overflow: hidden;
}

.kepala-sekolah-foto {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.kepala-sekolah-foto:hover {
    transform: translateY(-20px) scale(1.05);
}

.kepala-sekolah-foto img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid #f8f9fa;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kepala-sekolah-foto:hover img {
    border-color: #ffc107;
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.4),
                0 0 30px rgba(30, 60, 114, 0.2);
    transform: rotate(5deg);
}

.foto-placeholder {
    width: 250px;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #e9ecef;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kepala-sekolah-foto:hover .foto-placeholder {
    border-color: #ffc107;
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.4);
    transform: rotate(5deg);
}

.kepala-sekolah-foto h4 {
    transition: all 0.4s ease;
}

.kepala-sekolah-foto:hover h4 {
    color: #1e3c72;
    transform: translateY(-5px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kepala-sekolah-foto p {
    transition: all 0.4s ease;
}

.kepala-sekolah-foto:hover p {
    color: #ffc107;
    transform: translateY(-3px);
}

.sambutan-text {
    position: relative;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #1e3c72;
    line-height: 1.8;
    font-size: 1rem;
    color: #555;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sambutan-text:hover {
    transform: translateY(-15px) translateX(10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left-color: #ffc107;
    border-left-width: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
                -10px 0 30px rgba(255, 193, 7, 0.2);
}

.quote-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    opacity: 0.2;
    transition: all 0.5s ease;
}

.sambutan-text:hover .quote-icon {
    opacity: 0.4;
    transform: scale(1.3) rotate(-10deg);
    color: #ffc107;
}

.sambutan-text p {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sambutan-text:hover p {
    color: #333;
    letter-spacing: 0.3px;
}

/* Animasi floating untuk section title */
.sambutan h2 {
    transition: all 0.4s ease;
    cursor: pointer;
}

.sambutan h2:hover {
    transform: translateY(-10px);
    color: #ffc107 !important;
    text-shadow: 3px 3px 10px rgba(255, 193, 7, 0.3);
}

.sambutan h2::after {
    transition: all 0.4s ease;
}

.sambutan h2:hover::after {
    width: 100px;
    background: linear-gradient(90deg, #ffc107, #1e3c72);
}

@media (max-width: 768px) {
    .kepala-sekolah-foto img,
    .foto-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .sambutan-text {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .sambutan-text:hover {
        transform: translateY(-10px);
    }
    
    .kepala-sekolah-foto:hover {
        transform: translateY(-10px) scale(1.03);
    }
}

/* Custom Tooltip Styling */
.tooltip {
    font-size: 0.9rem;
}

.tooltip-inner {
    background-color: #1e3c72;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #1e3c72;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1e3c72;
}

/* Responsive - tampilkan text di mobile */
@media (max-width: 991px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 10px 15px;
        text-align: left;
    }
    
    .navbar-light .navbar-nav .nav-link::after {
        content: attr(title);
        position: static;
        width: auto;
        height: auto;
        background: none;
        margin-left: 10px;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        width: auto;
    }
}

/* Offcanvas Sidebar Mobile */
.offcanvas {
    width: 280px !important;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.offcanvas-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
}

.offcanvas-title {
    font-weight: bold;
    font-size: 1.3rem;
}

.offcanvas .btn-close {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.offcanvas .btn-close:hover {
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-body .navbar-nav {
    width: 100%;
}

.offcanvas-body .nav-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.offcanvas-body .nav-item:hover {
    background: rgba(30, 60, 114, 0.05);
}

.offcanvas-body .nav-link {
    padding: 15px 20px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

.offcanvas-body .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.offcanvas-body .nav-link:hover::before {
    transform: scaleY(1);
}

.offcanvas-body .nav-link i {
    width: 25px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.offcanvas-body .nav-link:hover i {
    transform: translateX(5px);
}

.offcanvas-body .collapse .nav-link {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #666;
}

.offcanvas-body .collapse .nav-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* Hamburger button styling */
.navbar-toggler {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.navbar-toggler:hover {
    background: rgba(30, 60, 114, 0.1);
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: scale(1.1);
}

/* Modern Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff6b6b, #4ecdc4, #ffc107);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.footer-main {
    position: relative;
    z-index: 1;
}

.footer-widget h5 {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
}

.footer-title {
    font-size: 1.1rem;
}

.logo-circle-footer {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #ffc107;
    color: #1a1a2e;
    transform: translateY(-3px);
    border-color: #ffc107;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: #ffc107;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 30px;
    animation: logoFloat 2s ease-in-out infinite;
}

.preloader-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e9ecef;
}

.logo-placeholder i {
    font-size: 3.5rem;
    color: #1e3c72;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.preloader-text h4 {
    color: #1e3c72;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: none;
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff6b6b, #4ecdc4);
    background-size: 200% 100%;
    animation: loadingProgress 1.5s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 70%;
        background-position: 100% 50%;
    }
    100% {
        width: 100%;
        background-position: 200% 50%;
    }
}

.loading-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: 'Loading';
    }
    40% {
        content: 'Loading.';
    }
    60% {
        content: 'Loading..';
    }
    80%, 100% {
        content: 'Loading...';
    }
}

/* Prevent scroll when preloader is active */
body.loading {
    overflow: hidden;
}


/* Responsive Navbar Fix */
@media (max-width: 991px) {
    .navbar .d-none.d-lg-flex {
        display: none !important;
    }
    
    .navbar-toggler {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar .d-none.d-lg-flex {
        display: flex !important;
    }
}

/* Fix container width */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Fix navbar brand width */
.navbar-brand {
    white-space: normal;
    word-wrap: break-word;
}

.brand-name {
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
}
