/* ==========================================================================
   PIMS.MY — Consolidated Custom Components & Keyframe Stylesheet
   ========================================================================== */

/* --- 1. Base Utility & Hero Theme --- */

        body {
            font-family: 'Inter', sans-serif;
        }

        h1,
        h2,
        h3 {
            font-family: 'Playfair Display', serif;
        }

        .hero-bg {
            background-color: #001f3f;
            background-image: linear-gradient(to bottom, rgba(0, 31, 63, 0.4), rgba(0, 31, 63, 0.8)), url('../images/hero-marine.webp');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        @media (max-width: 1024px) {
            .hero-bg {
                background-attachment: scroll;
            }
        }

        .glass-panel {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }

        .speaker-img {
            transition: all 0.4s ease;
            filter: grayscale(100%);
        }

        .group:hover .speaker-img {
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        
        /* Timeline Styles */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: 1.25rem;
            top: 3rem;
            bottom: -1rem;
            width: 2px;
            background: linear-gradient(to bottom, #06b6d4, transparent);
            z-index: 0;
        }

        .timeline-item:last-child::before {
            display: none;
        }


/* --- 2. Interactive Schedule & Timeline Architecture --- */
        /* ── Programme Section ── */
        #schedule {
            background: linear-gradient(160deg, #0a1628 0%, #0d2744 40%, #0a3d52 75%, #0b4a3f 100%);
            position: relative;
            overflow: hidden;
        }

        #schedule::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 50% at 20% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 60%);
            pointer-events: none;
        }

        .prog-section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            background: linear-gradient(135deg, #e0f2fe 0%, #67e8f9 50%, #a7f3d0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }

        .prog-subtitle {
            color: rgba(186, 230, 253, 0.75);
            font-size: 1.05rem;
            font-style: italic;
            letter-spacing: 0.01em;
        }

        /* ── Day Tabs ── */
        .day-tabs {
            display: flex;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
            padding: 0.35rem;
            backdrop-filter: blur(12px);
            width: fit-content;
            margin: 0 auto 3rem;
        }

        .day-tab {
            padding: 0.55rem 1.5rem;
            border-radius: 9999px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.02em;
            color: rgba(186, 230, 253, 0.65);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            background: transparent;
            white-space: nowrap;
        }

        .day-tab.active {
            background: linear-gradient(135deg, #0891b2, #0d9488);
            color: #fff;
            box-shadow: 0 4px 20px rgba(8, 145, 178, 0.45);
        }

        .day-tab:not(.active):hover {
            color: #e0f2fe;
            background: rgba(255, 255, 255, 0.08);
        }

        /* ── Day Panel ── */
        .day-panel {
            display: none;
            animation: fadeSlideIn 0.45s ease forwards;
        }

        .day-panel.active {
            display: block;
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Day Header Card ── */
        .day-header-card {
            border-radius: 1.25rem;
            padding: 1.5rem 2rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .day-header-card.day1 {
            background: linear-gradient(135deg, rgba(8, 145, 178, 0.25), rgba(6, 182, 212, 0.12));
            border: 1px solid rgba(6, 182, 212, 0.3);
        }

        .day-header-card.day2 {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(96, 165, 250, 0.12));
            border: 1px solid rgba(96, 165, 250, 0.3);
        }

        .day-header-card.day3 {
            background: linear-gradient(135deg, rgba(5, 150, 105, 0.25), rgba(52, 211, 153, 0.12));
            border: 1px solid rgba(52, 211, 153, 0.3);
        }

        .day-num {
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
        }

        .day1 .day-num {
            color: #67e8f9;
        }

        .day2 .day-num {
            color: #93c5fd;
        }

        .day3 .day-num {
            color: #6ee7b7;
        }

        .day-title-text {
            font-size: 1.6rem;
            font-weight: 800;
            color: #f0f9ff;
            margin: 0.15rem 0;
        }

        .day-date-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.45rem 1.1rem;
            border-radius: 9999px;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .day1 .day-date-badge {
            background: rgba(8, 145, 178, 0.3);
            color: #a5f3fc;
            border: 1px solid rgba(6, 182, 212, 0.4);
        }

        .day2 .day-date-badge {
            background: rgba(37, 99, 235, 0.3);
            color: #bfdbfe;
            border: 1px solid rgba(96, 165, 250, 0.4);
        }

        .day3 .day-date-badge {
            background: rgba(5, 150, 105, 0.3);
            color: #a7f3d0;
            border: 1px solid rgba(52, 211, 153, 0.4);
        }

        /* ── Timeline ── */
        .timeline {
            position: relative;
            padding-left: 3rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0.85rem;
            top: 0.5rem;
            bottom: 0.5rem;
            width: 2px;
            background: linear-gradient(to bottom, rgba(6, 182, 212, 0.6) 0%, rgba(52, 211, 153, 0.3) 100%);
            border-radius: 9999px;
        }

        .tl-item {
            position: relative;
            margin-bottom: 1rem;
        }

        .tl-item:last-child {
            margin-bottom: 0;
        }

        /* dot on the timeline line */
        .tl-dot {
            position: absolute;
            left: -2.15rem;
            top: 1.1rem;
            width: 0.8rem;
            height: 0.8rem;
            border-radius: 50%;
            border: 2px solid;
            background: #0a1628;
            z-index: 2;
        }

        .tl-dot.keynote {
            border-color: #f59e0b;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
        }

        .tl-dot.session {
            border-color: #06b6d4;
            box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
        }

        .tl-dot.break {
            border-color: rgba(148, 163, 184, 0.5);
        }

        .tl-dot.special {
            border-color: #a78bfa;
            box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
        }

        .tl-dot.wrap {
            border-color: rgba(100, 116, 139, 0.5);
        }

        .tl-dot.roundtable {
            border-color: #34d399;
            box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
        }

        .tl-dot.closing {
            border-color: #f472b6;
            box-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
        }

        .tl-dot.field {
            border-color: #34d399;
            box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
        }

        /* event card */
        .tl-card {
            border-radius: 0.875rem;
            padding: 1rem 1.25rem;
            border: 1px solid rgba(255, 255, 255, 0.07);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            cursor: default;
        }

        .tl-card:hover {
            transform: translateX(4px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
        }

        /* card variants */
        .tl-card.keynote {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.06) 100%);
            border-color: rgba(245, 158, 11, 0.3);
        }

        .tl-card.keynote:hover {
            border-color: rgba(245, 158, 11, 0.6);
        }

        .tl-card.session {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
            border-color: rgba(6, 182, 212, 0.2);
        }

        .tl-card.session:hover {
            border-color: rgba(6, 182, 212, 0.5);
        }

        .tl-card.break {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .tl-card.special {
            background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
            border-color: rgba(167, 139, 250, 0.3);
        }

        .tl-card.special:hover {
            border-color: rgba(167, 139, 250, 0.6);
        }

        .tl-card.roundtable {
            background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
            border-color: rgba(52, 211, 153, 0.25);
        }

        .tl-card.roundtable:hover {
            border-color: rgba(52, 211, 153, 0.55);
        }

        .tl-card.closing {
            background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
            border-color: rgba(244, 114, 182, 0.25);
        }

        .tl-card.closing:hover {
            border-color: rgba(244, 114, 182, 0.55);
        }

        .tl-card.field {
            background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
            border-color: rgba(52, 211, 153, 0.35);
        }

        .tl-card.field:hover {
            border-color: rgba(52, 211, 153, 0.65);
        }

        /* time chip */
        .tl-time {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: rgba(148, 163, 184, 0.9);
            margin-bottom: 0.35rem;
            text-transform: uppercase;
        }

        /* event type badge */
        .tl-badge {
            display: inline-block;
            padding: 0.2rem 0.65rem;
            border-radius: 9999px;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-left: 0.5rem;
            vertical-align: middle;
        }

        .badge-keynote {
            background: rgba(245, 158, 11, 0.2);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.4);
        }

        .badge-session {
            background: rgba(6, 182, 212, 0.18);
            color: #67e8f9;
            border: 1px solid rgba(6, 182, 212, 0.35);
        }

        .badge-break {
            background: rgba(100, 116, 139, 0.15);
            color: #94a3b8;
            border: 1px solid rgba(100, 116, 139, 0.25);
        }

        .badge-special {
            background: rgba(167, 139, 250, 0.2);
            color: #c4b5fd;
            border: 1px solid rgba(167, 139, 250, 0.4);
        }

        .badge-roundtable {
            background: rgba(52, 211, 153, 0.18);
            color: #6ee7b7;
            border: 1px solid rgba(52, 211, 153, 0.35);
        }

        .badge-closing {
            background: rgba(244, 114, 182, 0.18);
            color: #f9a8d4;
            border: 1px solid rgba(244, 114, 182, 0.35);
        }

        .badge-field {
            background: rgba(52, 211, 153, 0.2);
            color: #a7f3d0;
            border: 1px solid rgba(52, 211, 153, 0.4);
        }

        .badge-wrap {
            background: rgba(100, 116, 139, 0.12);
            color: #94a3b8;
            border: 1px solid rgba(100, 116, 139, 0.22);
        }

        .tl-event-title {
            font-size: 0.98rem;
            font-weight: 700;
            color: #f0f9ff;
            line-height: 1.4;
            margin-bottom: 0.25rem;
        }

        .tl-event-sub {
            font-size: 0.82rem;
            font-style: italic;
            color: rgba(186, 230, 253, 0.7);
            margin-bottom: 0.35rem;
        }

        .tl-event-detail {
            font-size: 0.8rem;
            color: rgba(148, 163, 184, 0.8);
            margin-top: 0.1rem;
        }

        /* speaker chips */
        .speaker-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.55rem;
        }

        .speaker-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
            padding: 0.25rem 0.7rem;
            font-size: 0.74rem;
            color: rgba(186, 230, 253, 0.85);
            font-weight: 500;
        }

        .speaker-chip::before {
            content: '👤';
            font-size: 0.65rem;
        }

        /* Friday prayer notice */
        .friday-notice {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.25);
            border-radius: 0.5rem;
            padding: 0.5rem 0.9rem;
            font-size: 0.78rem;
            color: #fcd34d;
            margin-bottom: 1.5rem;
        }

        @media (max-width: 640px) {
            .day-tabs {
                flex-direction: column;
                border-radius: 1rem;
                width: 100%;
            }

            .day-tab {
                text-align: center;
            }

            .timeline {
                padding-left: 2rem;
            }

            .tl-dot {
                left: -1.65rem;
            }
        }



/* --- 3. Infinite Partner Marquee & Logo Crawler --- */
        .crawler-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 1.5rem 0;
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }

        .crawler-track {
            display: flex;
            width: max-content;
            align-items: center;
            gap: 1.5rem;
            animation: scrollTrackLeft 36s linear infinite;
        }

        .crawler-track.track-reverse {
            animation: scrollTrackRight 40s linear infinite;
        }

        .crawler-track:hover {
            animation-play-state: paused;
        }

        @keyframes scrollTrackLeft {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        @keyframes scrollTrackRight {
            0% {
                transform: translateX(-50%);
            }

            100% {
                transform: translateX(0);
            }
        }

        .crawler-logo-box {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 5.75rem;
            width: 12.5rem;
            padding: 0.25rem 0.5rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (min-width: 640px) {
            .crawler-container {
                padding: 2rem 0;
            }

            .crawler-logo-box {
                height: 7.25rem;
                width: 15.5rem;
                padding: 0.35rem 0.75rem;
            }

            .crawler-track {
                gap: 2.25rem;
            }
        }

        .crawler-logo-box img {
            max-height: 100%;
            max-width: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
        }

        .crawler-logo-box:hover img {
            transform: scale(1.12);
            filter: drop-shadow(0 8px 20px rgba(6, 182, 212, 0.3));
        }
