/* ==================================================
   HOMEPAGE ENHANCEMENTS - MODERN INTERACTIVE FEATURES
   Green Theme with Engaging User Experience
   ================================================== */

/* ==================================================
   LAYANAN UNGGULAN - Featured Services
   ================================================== */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, white 0%, #f9fafb 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.25rem;
    color: #10b981;
    transition: color 0.4s;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.875rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==================================================
   BERITA TERKINI - Latest News Carousel
   ================================================== */
.news-section {
    padding: 5rem 0;
    background: white;
}

.news-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
}

.news-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-content {
    padding: 1.75rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.news-date i {
    color: #10b981;
}

.news-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
    transition: gap 0.3s;
}

.news-read-more:hover {
    gap: 0.75rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

/* ==================================================
   QUICK ACCESS MENU - Floating Action Button
   ================================================== */
.quick-access-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-main {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.fab-main i {
    font-size: 1.75rem;
    color: white;
    transition: transform 0.3s;
}

.fab-main.active i {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.fab-label {
    background: #1e293b;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.fab-menu.active .fab-label {
    opacity: 1;
    transform: translateX(0);
}

.fab-button {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px solid #f1f5f9;
}

.fab-button:hover {
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.1);
}

.fab-button i {
    font-size: 1.25rem;
    color: #64748b;
    transition: color 0.3s;
}

.fab-button:hover i {
    color: white;
}

/* ==================================================
   PENGUMUMAN TICKER - Announcement Bar
   ================================================== */
.announcement-ticker {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ticker-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-icon i {
    font-size: 1.25rem;
    color: #78350f;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-text {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-text:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding-right: 4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.ticker-item::after {
    content: '•';
    margin-left: 2rem;
    opacity: 0.5;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-close {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: transparent;
    border: 2px solid rgba(120, 53, 15, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ticker-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ticker-close i {
    font-size: 0.9rem;
    color: #78350f;
}

/* ==================================================
   FASILITAS - Facilities Showcase
   ================================================== */
.facilities-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.facility-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}

.facility-image {
    width: 100%;
    height: 100%;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.facility-overlay h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.facility-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.facility-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: #10b981;
    color: white;
    transform: rotate(90deg);
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card {
        flex: 0 0 300px;
    }

    .carousel-nav {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Sections */
    .services-section,
    .news-section,
    .facilities-section {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .facility-card {
        height: 240px;
    }

    .news-card {
        flex: 0 0 280px;
    }

    .news-carousel {
        gap: 1.5rem;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-content h3 {
        font-size: 1.05rem;
    }

    /* FAB */
    .quick-access-fab {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab-main {
        width: 60px;
        height: 60px;
    }

    .fab-main i {
        font-size: 1.5rem;
    }

    .fab-button {
        width: 50px;
        height: 50px;
    }

    .fab-button i {
        font-size: 1.1rem;
    }

    .fab-label {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Ticker */
    .announcement-ticker {
        padding: 0.875rem 0;
    }

    .ticker-item {
        font-size: 0.875rem;
    }

    .ticker-icon {
        width: 40px;
        height: 40px;
    }

    .ticker-icon i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    /* Extra small devices */
    .services-section,
    .news-section,
    .facilities-section {
        padding: 2.5rem 0;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .news-card {
        flex: 0 0 260px;
    }

    .fab-main {
        width: 55px;
        height: 55px;
    }

    .fab-main i {
        font-size: 1.35rem;
    }

    .ticker-wrapper {
        gap: 1rem;
    }

    .ticker-item {
        font-size: 0.8rem;
        padding-right: 3rem;
    }
}
/* Fix spacing before footer */
.about-section {
    margin-bottom: 5rem !important;
}

.text-center {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

/* Add breathing room before footer */
.footer {
    margin-top: 4rem;
}
