/********** Template CSS **********/

:root {
    --bs-primary: #00BCD4;      /* Turquoise */
    --bs-secondary: #E91E63;    /* Magenta/Pink */
    --bs-dark: #212121;         /* Almost black for text */
    --bs-light: #F9F9F9;        /* Soft grey background */
    --bs-white: #FFFFFF;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url("{{ asset('assets/img/hero-bg.jpg') }}") top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("img/bg-about-img.png") top left no-repeat;
    background-size: contain;
}

.program-slider-section {
    background-color: #2c87b3;
    color: rgb(63, 63, 63);
    padding: 60px 0;
}

.program-slider-section .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.program-slider-section .card:hover {
    transform: translateY(-5px);
}

.program-slider-section .card-img-top {
    height: 300px;
    object-fit: cover;
}

.program-slider-section .carousel-control-prev-icon,
.program-slider-section .carousel-control-next-icon {
    background-color: #f0e6ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(61, 61, 61);
    font-size: 1.5rem;
    cursor: pointer;
}

.program-slider-section .carousel-indicators button {
    width: 10px;
    height: 10px;
    background-color: #f0e6ff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.program-slider-section .carousel-indicators button.active {
    background-color: hsl(0, 2%, 9%);
}

.program-slider-section .btn-outline-light {
    border-color: #080808;
    color: #0c0c0c;
    font-weight: bold;
    transition: all 0.3s ease;
}

.program-slider-section .btn-outline-light:hover {
    background-color: #0a0a0a;
    color: #6c757d;
}

#galleryCarousel .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    position: relative; /* Ini penting */
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#galleryCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

#galleryCarousel .carousel-control-prev {
    left: 20px;
}

#galleryCarousel .carousel-control-next {
    right: 20px;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#galleryCarousel .carousel-indicators button.active {
    background-color:#000102;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border-color: #000102;
    color: #000102;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #000102;
    color: white;
}

.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}



/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

/*** Latar Belakang ***/
/* === Latar Belakang Section === */
.bg-latbel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-latbel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05), rgba(142, 45, 226, 0.08), rgba(216, 0, 178, 0.06));
    z-index: 0;
    pointer-events: none;
}

.latbel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.latbel-container h1 {
    font-size: 2.5rem;
    color: var(--bs-secondary); /* #D800B2 */
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-left: 15px;
    border-left: 4px solid var(--bs-primary); /* #00AEEF */
}

.latbel-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Grid Projek */
.latbel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.latbel-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.latbel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.latbel-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.latbel-card h3 {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
    font-weight: 500;
}

/* CTA Button */
.latbel-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(to right, #00AEEF, #8E2DE2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.latbel-cta:hover {
    background: linear-gradient(to right, #0086c7, #7a25c4);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 174, 239, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .latbel-container h1 {
        font-size: 2rem;
    }

    .latbel-container p {
        font-size: 1rem;
    }

    .latbel-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .bg-latbel {
        padding: 60px 0;
    }
}


/* === Card Galeri (Fit Height + Branding) === */
.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Penting: buat semua card sama tinggi */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Imej di atas (sama saiz untuk semua) */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Imej sentiasa penuh tanpa distorsi */
    object-position: center;
    border-radius: 8px 8px 0 0;
}

/* Body card (flex-grow supaya isi ruang) */
.card-body {
    flex: 1; /* Penting: isi ruang kosong supaya sama tinggi */
    padding: 15px;
    background: #f0e6ff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #000102;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pastikan tarikh di bawah */
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000102;
    line-height: 1.3;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1; /* Elakkan teks tekan ke bawah */
}

/* Info bawah (penulis & tarikh) */
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsif */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .card {
        margin-bottom: 15px;
    }

    .card-meta {
        font-size: 0.75rem;
    }
}

.visitor-counter-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.visitor-count {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255,255,255,.5);
    text-align: center;
    margin-bottom: 10px;
}

.visitor-stats {
    font-size: 0.9rem;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

.powered-by {
    font-size: 0.8rem;
    color: rgba(255,255,255,.5);
    margin-top: 10px;
}

/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/bg-gradient.png) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Accordian ***/
.accordion-button {
  color: var(--bs-dark);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(49,129,127, .1);
  color: var(--bs-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--bs-dark);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}