/* ===== PLACEHOLDER & HOVER EFFECTS ===== */

/* Logo row container */
.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible;
}

/* Anchor wrapping each logo */
.logo-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo image – your existing rules preserved */
.logo-row img {
    /* max-height: 90px; */   /* control visual size if needed */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Hover scale */
.logo-row a:hover img {
    transform: scale(1.07);
    z-index: 2;
     filter: brightness(1.1);
}



/* Mobile: reduce hover scale */
@media (max-width: 768px) {
    .logo-row a:hover img {
        transform: scale(1.07);
    }
}


.placeholder-box {
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-box a img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.placeholder-box:hover a img {
    transform: scale(1.07);
    filter: brightness(1.1);
}

/* ===== MAP STYLES ===== */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-point {
    position: absolute;
    display: flex;
    width: 25px;
    height: 25px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    background: rgba(218, 241, 70, 0.70);
    backdrop-filter: blur(1px);
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 10;
    transform: translate(-50%, -50%);
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.25);
    background: rgba(255, 235, 59, 0.85);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    z-index: 20;
}

.map-point.active {
    background: rgb(41 48 117 / 85%);
    color: #fff;
    z-index: 30;
    transform: translate(-50%, -50%) scale(1.15);
}

/* ===== LOCATION TOOLTIP ===== */
.location-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    width: 240px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-10px, 10px) scale(0.95);
}

.location-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-10px, 10px) scale(1);
}

.tooltip-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.tooltip-content {
    position: relative;
    padding: 16px;
    background: linear-gradient(0deg, #293075 68.57%, rgba(41, 48, 117, 0.00) 91.21%);
    margin-top: -50px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tooltip-content:hover {
    background: linear-gradient(0deg, #3a4095 68.57%, rgba(58, 64, 149, 0.00) 91.21%);
}

.tooltip-title {
font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    padding-top: 5px;
}

.tooltip-arrow {
    font-size: 24px;
    color: white;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tooltip-content:hover .tooltip-arrow {
    transform: translateX(4px);
}

.close-tooltip {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
}

.close-tooltip:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

/* ===== LOGO & SECTIONS ===== */
.init-logo {
    height: 230px;
}

.seri-negara-section {
    background: url('../img/dana-warisan/bg-seri-negara.png') no-repeat center center;
    background-size: 70%;
    background-position: left bottom;
    background-color: #E9EEF3;
}


.bsas-section {
    background: url('../img/dana-warisan/bg-bsas_new.png') no-repeat center center;
    background-size: 57%;
    background-position: right bottom;
    background-color: #E9EEF3;
}



.dw-modal {
    background: #E9EEF3;
}

.grey-bg {
    background: #E9EEF3 !important;
}

/* ===== TABS ===== */
.dw-tabs .dw-tabs-menu {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: none;
}

.dw-tabs .dw-tabs-list {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    border: none !important;
}

.dw-tabs .dw-tabs-item {
    list-style: none;
}

.dw-tabs .dw-tabs-link {
    color: #888888;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    background: transparent;
    border-bottom: 2px solid #B0B0B0;
}

.dw-tabs .dw-tabs-link:hover {
    background-color: transparent;
    color: #293075 !important;
    border: none;
}

.dw-tabs .dw-tabs-link.active {
    background-color: transparent;
    color: #293075 !important;
    border: none;
    border-bottom: 2px solid #293075;
}

.dw-tabs .dw-tabs-content {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.dw-tabs .tab-pane h4 {
    margin-bottom: 20px;
}

/* ===== EMBED CONTAINER FOR VIDEO ===== */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* ===== SLICK SLIDER STYLES ===== */
.dw-slick #dw-slickmain1 img,
.dw-slick #dw-slickgallery1 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.dw-slick #dw-slickthumb1 .thumb-img,
.dw-slick #dw-slickgallerythumb1 .thumb-img {
    width: 85px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#dw-slickthumb1 .slick-list,
#dw-slickgallerythumb1 .slick-list {
    padding-bottom: 20px !important;
    padding-top: 20px !important;
}

.dw-slick #dw-slickthumb1 .slick-current .thumb-img,
.dw-slick #dw-slickgallerythumb1 .slick-current .thumb-img {
    opacity: 1;
    border: 2px solid #293075;
    transform: scale(1.2);
}

.dw-slick #dw-slickthumb1 .slick-slide,
.dw-slick #dw-slickgallerythumb1 .slick-slide {
    margin: 0 5px;
}

.dw-slick-arrow {
    background: #293075;
    border: 0;
    font-size: 16px;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-prev.dw-slick-arrow {
    left: -35px !important;
}

.slick-next.dw-slick-arrow {
    right: -35px !important;
}

.dw-slick-arrow:hover {
    color: #293075;
    background: #fff;
    border: 1px solid #293075;
}

.slick-next:before,
.slick-prev:before {
    display: none;
}

/* ===== ICON STYLES ===== */
.dw-icon {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.dw-icon i {
    width: 32px;
    height: 32px;
    background-color: #293075;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ===== CARD STYLES ===== */
.dw-card {
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.f25px {
    font-size: 25px !important;
}

.icon-box {
    text-align: center;
    padding: 5px;
}

.icon-box img {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
}

.icon-text {
    font-size: 16px;
    color: #495057;
    line-height: 1.2;
    padding: 0px 10px;
}

/* ===== PARTNER & BUILDING STYLES ===== */
.partner-logo img {
    margin: 10px auto;
    display: block;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.building-box img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ===== HERITAGE CARD ===== */
.heritage-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.heritage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.heritage-logo {
    margin-bottom: 20px;
}

.heritage-logo img {
    height: 80px;
    width: auto;
}

.heritage-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.find-out-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: gap 0.3s ease;
    margin-top: auto;
    justify-content: center;
}

.find-out-btn:hover {
    color: #1e7e34;
    gap: 12px;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    .seri-negara-section {
        background: url('../img/dana-warisan/bg-seri-negara.png') no-repeat center center;
        background-size: 0%;
        background-position: left bottom;
        background-color: #E9EEF3;
    }
    
    
        .bsas-section {
        background: url('../img/dana-warisan/bg-bsas_new.png') no-repeat center center;
        background-size: 0%;
        background-position: right bottom;
        background-color: #E9EEF3;
    }

    .map-point {
        width: 22px;
        height: 22px;
        padding: 3px;
        font-size: 12px;
    }

    .location-tooltip {
        width: 200px;
    }

    .tooltip-image {
        height: 120px;
    }

    .tooltip-content {
        padding: 12px;
        margin-top: -40px;
    }

    .tooltip-title {
        font-size: 14px;
    }

    .init-logo {
                height: 40vw;
    }

    .dw-tabs .dw-tabs-link {
        padding: 8px 12px;
        font-size: 12px;
    }

    .dw-tabs .dw-tabs-list {
        gap: 5px;
    }

    .dw-slick #dw-slickthumb1 .thumb-img,
    .dw-slick #dw-slickgallerythumb1 .thumb-img {
        width: 65px;
        height: 45px;
    }

    .slick-prev.dw-slick-arrow {
        left: -15px !important;
    }

    .slick-next.dw-slick-arrow {
        right: -15px !important;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    .map-point {
        width: 20px;
        height: 20px;
        padding: 2px;
        font-size: 11px;
    }

    .location-tooltip {
        width: 180px;
        left: 50% !important;
        transform: translateX(-50%) scale(0.95);
    }

    .location-tooltip.show {
        transform: translateX(-50%) scale(1);
    }

    .tooltip-image {
        height: 100px;
    }

    .tooltip-content {
        padding: 10px;
        margin-top: -35px;
    }

    .tooltip-title {
        font-size: 13px;
    }
    
    
}

@media (max-width: 767px) {
  #dw-slickgallerythumb1 {
    display: none !important;
  }
}