:root {
    --primary-color: #1abc9c;
    --primary-hover: #16a085;
    --dark-bg: #2c3e50;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*html, body {*/
/*    max-width: 100%;*/
/*    overflow-x: hidden;*/
/*}*/

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ===== Navbar Start ===== */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* padding: 1rem 0; */
}

.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Navbar link hover dan aktif */
.nav-link {
    color: white !important;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #f0f0f0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid white;
}

/* Dropdown item hover dan aktif */
.dropdown-item {
    color: white;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.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='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: var(--primary-hover);
    border: none;
}

.dropdown-item {
    color: white;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.btn-login {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-login:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Laptop kecil */
@media (min-width: 992px) {
    .navbar .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop besar */
@media (min-width: 1200px) {
    .navbar .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 1200px) {
    .nav-link {
        margin: 0 0.25rem;
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 0.75rem;
        border-radius: 6px;
    }

    .nav-link:hover,
    .nav-link.active {
        border-bottom: none;
        background-color: var(--primary-hover);
    }
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        background-color: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        border-radius: 8px;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: var(--primary-hover);
    }
}
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 36px;
    }
}
@media (max-width: 991.98px) {
    .btn-login,
    .btn-outline-light {
        width: 100%;
        margin: 0.5rem 0 0 0;
        text-align: center;
    }
}

/* ===== Hero Section Start ===== */
.hero-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
        url("/assets/backgound.webp") center / cover;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.page-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
        url("/assets/landing.webp") center / cover;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: white;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

    /* border-right: 0.15em solid white; 
  white-space: nowrap; */
    overflow: hidden;
}

/* Cursor blinking */
@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

#typing-text {
    animation: blink-caret 0.75s step-end infinite;
}

.hero-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== Button Styles Start ===== */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-secondary {
    background-color: #34495e;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    color: white;
}

/* ===== Section Spacing Start ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ===== Card Styles Start ===== */
.card {
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-body {
    flex-grow: 1;
}

.card-title {
    color: var(--dark-bg);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ===== Footer Start ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom .support-link {
    color: rgba(255, 255, 255, 0.7); 
    transition: all 0.3s ease;
}

.footer-bottom .support-link:hover {
    color: white; 
}

.footer-bottom .support-link i {
    margin: 0 0 0 2px;
}

/* ===== Gallery Grid Start ===== */


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.1);
    /* zoom image */
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    /* tampilkan overlay */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    text-decoration: none;
}

/* Ketika target aktif */
.lightbox:target {
    display: flex;
}

/* ===== Contact Form Start ===== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}
.contact-text {
    font-size: 1.05rem;   /* default Bootstrap ~1rem */
    line-height: 1.7;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}
@media (max-width: 576px) {
    .contact-text {
        font-size: 1.1rem;
    }
}


/* ===== Responsive Design Start ===== */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
        margin-top: 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .navbar-brand {
        font-size: 1.7rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h3 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    transition: opacity 0.3s;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

#gallerySliderModal .carousel-item img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #1abc9c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: bold;
    z-index: 10;
}

.news-detail-page {
    background: #fafbfc;
}

.news-thumbnail {
    overflow: hidden;
    border-radius: 8px;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.02);
}

.news-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #333;
}

.news-content h2,
.news-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Share button */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
}

/* Default background */
.btn-facebook {
    background: #3b5998;
}
.btn-twitter {
    background: #1da1f2;
}
.btn-whatsapp {
    background: #25d366;
}
.btn-native {
    background: #6c757d;
}
.btn-link {
    background: #6c757d;
}

/* Hover effect */
.btn-social:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover warna sesuai brand */
.btn-facebook:hover {
    background: #2d4373;
}
.btn-twitter:hover {
    background: #0d95e8;
}
.btn-whatsapp:hover {
    background: #1ebea5;
}
.btn-native:hover {
    background: #495057;
}
.btn-link:hover {
    background: #495057;
}

/* Author box */
.author-box {
    transition: 0.3s;
}
.author-box:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsif: share button lebih besar di mobile */
@media (max-width: 576px) {
    .btn-social {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Carousel spacing */
#quoteCarousel .carousel-item {
    padding: 30px 0;
}

/* Header anchor (foto + nama) */
.quote-header {
    position: relative;
}

/* Kontrol carousel */
.quote-control {
    position: absolute;
    top: 90px;
    /* sejajar antara foto & nama */
    transform: translateY(-50%);
    width: auto;
    opacity: 1;
    z-index: 10;
}

.carousel-control-prev.quote-control {
    left: 8%;
}

.carousel-control-next.quote-control {
    right: 8%;
}

@media (max-width: 576px) {
    .carousel-control-prev.quote-control {
        left: 0;
    }

    .carousel-control-next.quote-control {
        right: 0;
    }
}

/* Icon styling */
.quote-control i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    border-radius: 50%;
    color: #0000004d;
    transition: transform 0.2s ease;
}

.quote-control i:hover {
    transform: scale(1.15);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .quote-control {
        top: 80px;
    }

    .carousel-control-prev.quote-control {
        left: 4%;
    }

    .carousel-control-next.quote-control {
        right: 4%;
    }
}

.quote-text {
    position: relative;
    line-height: 1.7;
}

/* Quote icons */
.quote-text .quote-icon-left,
.quote-text .quote-icon-right {
    color: #1abc9c;
    opacity: 0.5;
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Spacing kiri dan kanan */
.quote-text .quote-icon-left {
    margin-right: 8px;
    position: relative;
    top: -6px;
}

.quote-text .quote-icon-right {
    margin-left: 8px;
    position: relative;
    bottom: -6px;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.scroll-top i {
  font-size: 24px;
  color: var(--light-gray);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--primary-hover), transparent 20%);
  color: var(--light-gray);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}
