/* Custom Styles for STIKES Baramuli */

/* Background Images */
.hero-bg-img {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80');
}
.prodi-kesmas-img {
    background-image: url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?auto=format&fit=crop&w=800&q=80');
}
.prodi-keperawatan-img {
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=800&q=80');
}
.prodi-ners-img {
    background-image: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=800&q=80');
}
.fac-keperawatan-img {
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=600&q=80');
}
.fac-elibrary-img {
    background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=600&q=80');
}
.fac-multimedia-img {
    background-image: url('https://images.unsplash.com/photo-1527689368864-3a821dbccc34?auto=format&fit=crop&w=600&q=80');
}
.fac-cbt-img {
    background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=600&q=80');
}
.fac-kesmas-img {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=600&q=80');
}
.fac-auditorium-img {
    background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?auto=format&fit=crop&w=600&q=80');
}
.post-1-img {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=600&q=80');
}
.post-2-img {
    background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=600&q=80');
}
.post-3-img {
    background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?auto=format&fit=crop&w=600&q=80');
}
.sambutan-img {
    background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=600&q=80');
}

/* Custom Animations */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 4s ease-in-out infinite;
}

.card-delay-1 {
    animation-delay: 1s;
}

/* Navigation Links Styling */
.nav-link {
    color: #475569; /* slate-600 */
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #0284c7; /* healthBlue-600 */
    background-color: #f0f9ff; /* healthBlue-50 */
}

/* Mobile Accordion Transition */
.mobile-accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* News Filter Buttons */
.filter-btn {
    background-color: #f1f5f9; /* slate-100 */
    color: #475569; /* slate-600 */
    border: 1px solid #e2e8f0; /* slate-200 */
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.filter-btn.active {
    background: linear-gradient(to right, #0284c7, #9333ea); /* healthBlue-600 to healthPurple-600 */
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Smooth Scroll Offset */
html {
    scroll-padding-top: 5rem; /* Matches header height */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card Hover Effects */
.news-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   ANIMATED GLOWING LINES BACKGROUND
   Lines fall down forming "STIKES BARAMULI"
   ============================================ */

.glowing-lines-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.12;
}

/* The large watermark text in the background */
.glowing-text-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(80px, 12vw, 200px);
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(14, 165, 233, 0.3);
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.2;
    text-align: center;
}

.glowing-text-watermark span {
    display: block;
}

/* Falling glowing lines */
.glow-line {
    position: absolute;
    top: -120px;
    width: 2px;
    border-radius: 2px;
    animation: glowFall linear infinite;
    opacity: 0;
}

/* Different line styles */
.glow-line--cyan {
    background: linear-gradient(180deg, transparent, #06b6d4, #22d3ee, transparent);
    box-shadow: 0 0 8px #06b6d4, 0 0 20px rgba(6, 182, 212, 0.4);
}

.glow-line--blue {
    background: linear-gradient(180deg, transparent, #3b82f6, #60a5fa, transparent);
    box-shadow: 0 0 8px #3b82f6, 0 0 20px rgba(59, 130, 246, 0.4);
}

.glow-line--purple {
    background: linear-gradient(180deg, transparent, #a855f7, #c084fc, transparent);
    box-shadow: 0 0 8px #a855f7, 0 0 20px rgba(168, 85, 247, 0.4);
}

.glow-line--pink {
    background: linear-gradient(180deg, transparent, #ec4899, #f472b6, transparent);
    box-shadow: 0 0 8px #ec4899, 0 0 20px rgba(236, 72, 153, 0.4);
}

.glow-line--green {
    background: linear-gradient(180deg, transparent, #10b981, #34d399, transparent);
    box-shadow: 0 0 8px #10b981, 0 0 20px rgba(16, 185, 129, 0.4);
}

.glow-line--gold {
    background: linear-gradient(180deg, transparent, #f59e0b, #fbbf24, transparent);
    box-shadow: 0 0 8px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Falling animation */
@keyframes glowFall {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) scaleY(1.2);
        opacity: 0;
    }
}

/* Pulsing glow on the watermark text */
@keyframes textGlowPulse {
    0%, 100% {
        -webkit-text-stroke-color: rgba(14, 165, 233, 0.2);
        filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.1));
    }
    33% {
        -webkit-text-stroke-color: rgba(168, 85, 247, 0.3);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.15));
    }
    66% {
        -webkit-text-stroke-color: rgba(6, 182, 212, 0.3);
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.15));
    }
}

.glowing-text-watermark {
    animation: textGlowPulse 8s ease-in-out infinite;
}

/* Horizontal scanning line effect */
.glow-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), rgba(168, 85, 247, 0.4), rgba(6, 182, 212, 0.4), transparent);
    animation: scanDown 12s linear infinite;
    opacity: 0.5;
}

@keyframes scanDown {
    0% {
        top: -2px;
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Floating particles around the text */
.glow-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) translateX(30px) scale(0.3);
        opacity: 0;
    }
}

/* Responsive: reduce effects on mobile */
@media (max-width: 768px) {
    .glowing-lines-bg {
        opacity: 0.08;
    }
    .glowing-text-watermark {
        font-size: 50px;
    }
}

/* ============================================
   POST MODAL WITH GLOWING BORDER ANIMATION
   ============================================ */

/* Modal Overlay */
.post-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.post-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Outer glow wrapper - the magic border container */
.post-modal-glow-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 1.5rem;
    padding: 3px; /* This creates the border thickness */
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.post-modal-overlay.active .post-modal-glow-wrapper {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animated gradient border using pseudo-element */
.post-modal-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #06b6d4,
        #3b82f6,
        #a855f7,
        #ec4899,
        #f59e0b,
        #10b981,
        #06b6d4
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glowBorderSpin 4s linear infinite;
    z-index: -1;
}

/* Outer glow shadow effect */
.post-modal-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1.75rem;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #06b6d4,
        #3b82f6,
        #a855f7,
        #ec4899,
        #f59e0b,
        #10b981,
        #06b6d4
    );
    filter: blur(18px);
    opacity: 0.4;
    animation: glowBorderSpin 4s linear infinite;
    z-index: -2;
}

/* Spinning the conic gradient */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes glowBorderSpin {
    to {
        --glow-angle: 360deg;
    }
}

/* Fallback for browsers without @property support */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .post-modal-glow-wrapper::before,
    .post-modal-glow-wrapper::after {
        background: linear-gradient(135deg, #06b6d4, #3b82f6, #a855f7, #ec4899, #10b981);
        animation: glowBorderFallback 3s ease infinite;
    }
    @keyframes glowBorderFallback {
        0%, 100% { filter: hue-rotate(0deg); }
        50% { filter: hue-rotate(60deg); }
    }
}

/* Inner modal content */
.post-modal-content {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: calc(1.5rem - 3px);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Light mode modal override */
:root:not(.dark):not(.panorama) .post-modal-content {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}
:root:not(.dark):not(.panorama) .post-modal-title {
    color: #0f172a;
}
:root:not(.dark):not(.panorama) .post-modal-article {
    color: #334155;
}
:root:not(.dark):not(.panorama) .post-modal-meta {
    color: #64748b;
}
:root:not(.dark):not(.panorama) .post-modal-body {
    scrollbar-color: #cbd5e1 #f1f5f9;
}
:root:not(.dark):not(.panorama) .post-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}
:root:not(.dark):not(.panorama) .post-modal-body::-webkit-scrollbar-thumb {
    background: #94a3b8;
}
:root:not(.dark):not(.panorama) .post-modal-footer {
    background: rgba(241, 245, 249, 0.9);
    border-top-color: rgba(203, 213, 225, 0.6);
}
:root:not(.dark):not(.panorama) .post-modal-share-btn {
    color: #475569;
    background: rgba(203, 213, 225, 0.4);
    border-color: rgba(148, 163, 184, 0.3);
}
/* hero::after removed — image is now inside scroll body */
:root:not(.dark):not(.panorama) .post-modal-topbar {
    background: rgba(241, 245, 249, 0.98);
    border-bottom-color: rgba(203, 213, 225, 0.7);
}
:root:not(.dark):not(.panorama) .post-modal-topbar-title {
    color: #1e293b;
}
:root:not(.dark):not(.panorama) .post-modal-close-top {
    background: rgba(203, 213, 225, 0.5);
    border-color: rgba(148, 163, 184, 0.3);
    color: #475569;
}
:root:not(.dark):not(.panorama) .post-modal-logo-img {
    background: transparent;
    padding: 0;
}

/* Modal image inside scroll area */
.post-modal-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* Modal Top Bar (logo + title + close) */
.post-modal-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    flex-shrink: 0;
    position: relative;
}
.post-modal-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0.5rem;
    padding: 3px 6px;
}
.post-modal-topbar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.02em;
    flex-grow: 1;
}
/* Close button in top bar */
.post-modal-close-top {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.post-modal-close-top:hover {
    background: rgba(239, 68, 68, 0.7);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.post-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* No overlay gradient needed — image is inside scroll body */

/* Close button */
.post-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.post-modal-close:hover {
    background: rgba(239, 68, 68, 0.7);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Modal body scrollable area */
.post-modal-body {
    padding: 1.25rem 1.75rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #334155 #1e293b;
}

.post-modal-body::-webkit-scrollbar {
    width: 6px;
}

.post-modal-body::-webkit-scrollbar-track {
    background: #1e293b;
}

.post-modal-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

/* Category badge in modal */
.post-modal-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    color: #fff;
}

/* Meta info */
.post-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.post-modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Title */
.post-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    margin-top: 1rem;
}

/* Article content */
.post-modal-article {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.post-modal-article p {
    margin-bottom: 1rem;
}

.post-modal-article p:last-child {
    margin-bottom: 0;
}

/* Decorative corner glows inside modal */
.post-modal-corner-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.post-modal-corner-glow--tl {
    top: -30px;
    left: -30px;
    background: #06b6d4;
    animation: cornerPulse 4s ease-in-out infinite;
}

.post-modal-corner-glow--br {
    bottom: -30px;
    right: -30px;
    background: #a855f7;
    animation: cornerPulse 4s ease-in-out infinite 2s;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.3); }
}

/* Footer action bar */
.post-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.8);
}

/* Share buttons */
.post-modal-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-modal-share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.post-modal-share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.post-modal-share-btn--tw:hover { background: #1da1f2; border-color: #1da1f2; }
.post-modal-share-btn--wa:hover { background: #25d366; border-color: #25d366; }
.post-modal-share-btn--link:hover { background: #6366f1; border-color: #6366f1; }

/* Responsive modal */
@media (max-width: 640px) {
    .post-modal-glow-wrapper {
        max-height: 95vh;
        border-radius: 1rem;
        padding: 2px;
    }
    .post-modal-glow-wrapper::before,
    .post-modal-glow-wrapper::after {
        border-radius: 1rem;
    }
    .post-modal-content {
        border-radius: calc(1rem - 2px);
    }
    .post-modal-hero {
        aspect-ratio: 16 / 9;
    }
    .post-modal-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .post-modal-title {
        font-size: 1.2rem;
    }
    .post-modal-footer {
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================
   DARK MODE & PANORAMA MODE STYLES
   ============================================ */

/* Dark Mode Base */
.dark body {
    background-color: #0b0f19;
    color: #cbd5e1;
}

/* Dark Mode Header */
.dark header#main-header {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 0.4);
}

.dark .nav-link {
    color: #94a3b8;
}

.dark .nav-link:hover, 
.dark .nav-link.active {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
}

.dark header#main-header .absolute.bg-white {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.dark header#main-header .absolute.bg-white a {
    color: #cbd5e1;
}

.dark header#main-header .absolute.bg-white a:hover {
    background-color: rgba(51, 65, 85, 0.4);
    color: #38bdf8;
}

.dark header#main-header .absolute.bg-white span.text-slate-400 {
    color: #64748b;
}

/* Dark Mode Mobile Menu */
.dark #mobile-menu {
    background-color: #0f172a;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark .mobile-nav-link,
.dark .mobile-accordion-btn {
    color: #cbd5e1;
}

.dark .mobile-nav-link:hover,
.dark .mobile-accordion-btn:hover {
    background-color: rgba(51, 65, 85, 0.4);
    color: #38bdf8;
}

.dark .mobile-accordion-content {
    background-color: rgba(15, 23, 42, 0.5);
}

.dark .mobile-accordion-content a {
    color: #94a3b8;
}

.dark .mobile-accordion-content a:hover {
    color: #38bdf8;
}

/* Dark Mode Sections */
.dark section {
    background-color: #0f172a;
}

.dark section.bg-white {
    background-color: #0f172a;
}

.dark section.bg-slate-50 {
    background-color: #0b0f19;
}

.dark h1, .dark h2, .dark h3, .dark h4 {
    color: #f1f5f9;
}

.dark p {
    color: #94a3b8;
}

.dark .text-slate-900 {
    color: #f1f5f9;
}

.dark .text-slate-800 {
    color: #e2e8f0;
}

.dark .text-slate-700 {
    color: #cbd5e1;
}

.dark .text-slate-600 {
    color: #94a3b8;
}

.dark .text-slate-500 {
    color: #64748b;
}

.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-slate-50 {
    background-color: #0f172a;
}

.dark .border-slate-100,
.dark .border-slate-200 {
    border-color: rgba(51, 65, 85, 0.4);
}

/* Dark Mode Cards & Elements */
.dark .news-card,
.dark .group.bg-slate-50,
.dark .bg-white.p-6.rounded-2xl,
.dark .bg-white.p-8.rounded-3xl {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark .news-card:hover,
.dark .group.bg-slate-50:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.dark .filter-btn {
    background-color: #1e293b;
    color: #94a3b8;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark .filter-btn:hover {
    background-color: rgba(51, 65, 85, 0.6);
    color: #f1f5f9;
}

.dark .filter-btn.active {
    background: linear-gradient(to right, #0284c7, #9333ea);
    color: #ffffff;
    border-color: transparent;
}

/* Dark Mode Forms */
.dark input, .dark select, .dark textarea {
    background-color: #0f172a;
    border-color: rgba(51, 65, 85, 0.6);
    color: #f1f5f9;
}

.dark input:focus, .dark select:focus, .dark textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.dark label {
    color: #cbd5e1;
}

/* Dark Mode Footer */
.dark footer {
    background-color: #05070f;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark footer h4 {
    color: #ffffff;
}

.dark footer a {
    color: #94a3b8;
}

.dark footer a:hover {
    color: #38bdf8;
}

/* Dark Mode Watermark & Background */
.dark .glowing-text-watermark {
    -webkit-text-stroke: 1px rgba(56, 189, 248, 0.15);
}

/* Success Modal Dark Mode */
.dark #success-modal-content {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark #success-modal-title {
    color: #f1f5f9;
}

.dark #success-modal-message {
    color: #94a3b8;
}

/* ============================================
   DARK & PANORAMA MODE — POST CARDS TEXT FIX
   ============================================ */

/* Fix dark text on card titles in dark/panorama mode */
.dark .post-card-trigger h3,
.dark .post-card-trigger h4,
.panorama .post-card-trigger h3,
.panorama .post-card-trigger h4 {
    color: #e2e8f0;
}

.dark .post-card-trigger p,
.panorama .post-card-trigger p {
    color: #94a3b8;
}

.dark .post-card-trigger .text-slate-900,
.panorama .post-card-trigger .text-slate-900 {
    color: #e2e8f0;
}

.dark .post-card-trigger .text-slate-600,
.panorama .post-card-trigger .text-slate-600 {
    color: #94a3b8;
}

.dark .post-card-trigger .text-slate-500,
.panorama .post-card-trigger .text-slate-500 {
    color: #64748b;
}

/* Card backgrounds in dark/panorama */
.dark .post-card-trigger.bg-white,
.dark .post-card-trigger,
.panorama .post-card-trigger.bg-white,
.panorama .post-card-trigger {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
}

.dark .post-card-trigger.bg-slate-50,
.panorama .post-card-trigger.bg-slate-50 {
    background-color: #0f172a;
}

.dark .post-card-trigger:hover,
.panorama .post-card-trigger:hover {
    background-color: #1e293b;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Section heading fix */
.dark .text-slate-900,
.panorama .text-slate-900 {
    color: #f1f5f9;
}

/* ============================================
   DARK & PANORAMA MODE — POST MODAL OVERRIDES
   ============================================ */

/* Dark mode modal is already dark by default (same as base) */
/* Panorama mode modal — keep dark style */
.panorama .post-modal-content {
    background: linear-gradient(145deg, #060d1a, #0d1829);
}

.panorama .post-modal-footer {
    background: rgba(6, 13, 26, 0.9);
}

/* Ensure modal text is always light in dark/panorama */
.dark .post-modal-title,
.panorama .post-modal-title {
    color: #f1f5f9;
}

.dark .post-modal-article,
.panorama .post-modal-article {
    color: #cbd5e1;
}

.dark .post-modal-meta,
.panorama .post-modal-meta {
    color: #94a3b8;
}

/* Light mode modal — override to light theme */
:root:not(.dark):not(.panorama) .post-modal-overlay {
    background: rgba(15, 23, 42, 0.6);
}

/* ============================================
   PANORAMA MODE SPECIFICS
   ============================================ */

/* Panorama Mode Background Glow Intensified */
.panorama .glowing-lines-bg {
    opacity: 0.45; /* Significantly clearer and more pronounced */
}

.panorama .glowing-text-watermark {
    -webkit-text-stroke: 1.5px rgba(56, 189, 248, 0.35);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.25));
    animation: textGlowPulsePanorama 6s ease-in-out infinite;
}

@keyframes textGlowPulsePanorama {
    0%, 100% {
        -webkit-text-stroke-color: rgba(56, 189, 248, 0.3);
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.2));
    }
    33% {
        -webkit-text-stroke-color: rgba(168, 85, 247, 0.5);
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.35));
    }
    66% {
        -webkit-text-stroke-color: rgba(6, 182, 212, 0.5);
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.35));
    }
}

/* Make falling lines thicker and glow stronger in Panorama */
.panorama .glow-line {
    width: 3px !important; /* Thicker lines */
}

.panorama .glow-line--cyan {
    box-shadow: 0 0 12px #06b6d4, 0 0 30px rgba(6, 182, 212, 0.7);
}

.panorama .glow-line--blue {
    box-shadow: 0 0 12px #3b82f6, 0 0 30px rgba(59, 130, 246, 0.7);
}

.panorama .glow-line--purple {
    box-shadow: 0 0 12px #a855f7, 0 0 30px rgba(168, 85, 247, 0.7);
}

.panorama .glow-line--pink {
    box-shadow: 0 0 12px #ec4899, 0 0 30px rgba(236, 72, 153, 0.7);
}

.panorama .glow-line--green {
    box-shadow: 0 0 12px #10b981, 0 0 30px rgba(16, 185, 129, 0.7);
}

.panorama .glow-line--gold {
    box-shadow: 0 0 12px #f59e0b, 0 0 30px rgba(245, 158, 11, 0.7);
}

/* Scan line intensified */
.panorama .glow-scan-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.6), rgba(6, 182, 212, 0.6), transparent);
    opacity: 0.75;
}

/* Responsive Panorama */
@media (max-width: 768px) {
    .panorama .glowing-lines-bg {
        opacity: 0.25;
    }
}
