.map-outer-box {
    background-color: #050b1a;
    position: relative;
}
.map-card {
    background-color: #050b1a; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    height: 450px;
    position: relative;
    overflow: hidden;
}
.map-image-layer {
    position: absolute;
    inset: 0;
    background-image: url('../image/Map.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Apply filters ONLY here */
    filter: invert(0.9) hue-rotate(180deg) brightness(0.6) contrast(1.2);
    opacity: 0.4;
    transition: all 0.5s ease;
    z-index: 1;
}
.map-card:hover .map-image-layer {
    opacity: 0.7;
    filter: invert(0.9) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}
.map-data-layer {
    position: absolute;
    inset: 0;
    /* Important: Check this path! */
    background-image: url('/image/Map.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* These filters turn your white/black map into a dark blue version */
    filter: invert(0.9) hue-rotate(180deg) brightness(0.6) contrast(1.2);
    opacity: 0.4;
    z-index: 1; /* Lowest layer */
    transition: all 0.5s ease;
}

/* Brighten the map slightly on hover */
.group:hover .map-data-layer {
    opacity: 0.6;
    filter: invert(0.9) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}

.pulse-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #f0c85c !important; /* Forces the Gold color */
    border-radius: 50%;
    /* This centers the dot on its coordinates */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(240, 200, 92, 0.8);
    pointer-events: auto; /* Makes them hoverable if needed later */
}

.pulse-point::after {
    content: "";
    position: absolute;
    /* Center the pulsing ring inside the dot */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #f0c85c;
    transform: translate(-50%, -50%);
    animation: pulse-animation 2s infinite ease-out;
}

@keyframes pulse-animation {
    0% { 
        width: 100%; 
        height: 100%; 
        opacity: 0.8; 
    }
    100% { 
        width: 400%; 
        height: 400%; 
        opacity: 0; 
    }
}

/* Coordinates (Double check these against your map) */
.point-dubai   { top: 53%; left: 66%; }
.point-africa  { top: 77%; left: 57%; }
.point-angola  { top: 70%; left: 53%; }
.point-asia    { top: 54%; left: 76%; }
.point-eu  { top: 37%; left: 47%; }
.point-aus  { top: 77%; left: 90%; }
.point-usa  { top: 47%; left: 17%; }


/* Fixes the white background on dropdown options */
#subject option {
    background-color: #0F172A; /* Match your site's dark blue/slate */
    color: #94A3B8; /* Slate-400 */
    padding: 12px;
}

/* Optional: Style for when a user hovers over an option */
#subject option:hover,
#subject option:focus {
    background-color: #1E293B;
    color: #3B82F6; /* Khono Blue */
}

/* Error state styling */
.border-red-500 {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.03) !important;
}

/* Makes the "Select Subject" text look like a placeholder */
select:invalid {
    color: #64748b; /* Slate-500 color */
}

/* Switches to white once a valid option is selected */
select:valid {
    color: white;
}

.gold-gradient {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
}


/* -----TOC Page Styling------ */
/* Ensure the font is clean */
body { font-family: sans-serif; }

.gold-gradient {
    background: linear-gradient(90deg, #d4af37 0%, #f2d472 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.toc-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Tighter gap between the thinner cards */
}

.toc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem; /* Significantly reduced vertical padding */
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Stacks on mobile */
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .toc-card {
        flex-direction: row;
        align-items: center; /* Vertically centers the items */
        gap: 2.5rem;
    }
}

.toc-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3b82f6; 
    transform: translateX(4px); /* A subtle slide right instead of moving up */
}
.toc-date-box {
    display: flex;
    flex-direction: column;
    min-width: 80px;
    flex-shrink: 0;
}
.toc-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.toc-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3b82f6; /* Blue highlight */
    font-weight: 700;
    margin-top: 0.25rem;
}
.toc-content {
    flex-grow: 1; /* Takes up the remaining middle space */
}

.toc-metadata {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b; /* slate-500 */
    margin-bottom: 1rem;
}

.toc-date {
    color: #3b82f6;
    font-weight: 800;
}

.toc-title {
    font-size: 1.25rem; /* Slightly smaller for the slim card */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.toc-summary {
    color: #94a3b8; 
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    /* Optional: Clamps the text to 2 lines so long summaries don't break the slim design */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.toc-arrow {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.toc-card:hover .toc-arrow {
    transform: translateX(4px); /* Arrow pushes right on hover */
}

.read-more-btn {
    color: #3b82f6;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Container for images to ensure spacing and alignment */
.image-frame {
    margin: 3rem auto; /* Creates space above and below the image */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-frame img {
    width: 100%;
    max-width: 850px; /* Limits large images to a readable width */
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for dark mode */
}

/* Optional: Caption styling if needed later */
.image-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b; /* slate-500 */
    text-align: center;
}

.shop-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );

    /* Fallback + actual border */
    border: 1px solid #ffffff1a;
    border: 1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(12px);

    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Better than height:100% */
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    background: rgba(255, 255, 255, 0.07);

    /* Stronger hover border */
    border-color: rgba(255, 255, 255, 0.35);

    transform: translateY(-10px);

    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Accent borders */
.border-blue-accent {
    border-color: #3b82f64d !important; /* fallback */
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.border-amber-accent {
    border-color: #f59e0b4d !important; /* fallback */
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Floating Logo for KHONO */
.floating-logo {
    position: fixed !important;
    top: 1px !important;
    left: 2px !important;
    height: 160px !important;
    width: auto !important;
    z-index: 999999 !important;
    pointer-events: none;
    opacity: 0.95;
    transition: transform 0.15s linear, opacity 0.15s linear;
}

.floating-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Hide on small screens */
@media (max-width: 480px) {
    .floating-logo {
        display: none;
    }
}

.toc-card.article-highlight .toc-title {
    color: #f89838 !important;
    font-weight: 700 !important;
}
