:root {
            --alam-blue: #004b7a; --ocean-cyan: #00d9ff; --deep-abyss: #00060a;
            --glass-header: rgba(255, 255, 255, 0.98); --glass-ui: rgba(255, 255, 255, 0.08); --glass-border: rgba(0, 217, 255, 0.25);
        }
        body, html { 
            margin: 0; padding: 0; background: var(--deep-abyss); color: white; 
            font-family: 'Rajdhani', sans-serif; overflow: hidden; height: 100vh;
            cursor: none; 
        }

        /* --- HEADER & NAV (UNCHANGED) --- */
        header { 
            position: fixed; top: 0; width: 100%; height: 85px; background: var(--glass-header); 
            display: flex; justify-content: center; align-items: center; z-index: 1000;
            clip-path: polygon(0 0, 100% 0, 99% 100%, 1% 100%);
            border-top: 1px solid #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
        }
        .header-content { width: 96%; display: grid; grid-template-columns: 140px 1fr 280px; align-items: center; gap: 15px; }
        .header-signage { background: transparent; height: 40px; width: 90%; margin: 0 auto; display: flex; align-items: center; overflow: hidden; position: relative; border-left: 1px solid rgba(0,0,0,0.1); border-right: 1px solid rgba(0,0,0,0.1); }
        .signage-ticker { white-space: nowrap; display: inline-block; font-family: 'Orbitron'; font-size: 16px; font-weight: 700; color: #000; animation: ticker-scroll 35s linear infinite; padding-left: 100%; }
        @keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
        .chrono-container { text-align: right; border-left: 2px solid var(--alam-blue); padding-left: 15px; }
        .portal-label { font-family: 'Orbitron'; font-size: 16px; font-weight: 900; color: var(--alam-blue); text-transform: uppercase; line-height: 1; }
        #live-clock { font-family: 'Orbitron'; font-size: 14px; font-weight: bold; color: #333; }
        #live-date { font-family: 'Rajdhani'; font-size: 11px; font-weight: 700; color: var(--alam-blue); opacity: 0.8; }

        .glass-nav-container { position: fixed; top: 95px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; z-index: 999; width: 100%; }
        nav.glass-menu { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(35px); border: 1px solid rgba(0, 217, 255, 0.4); padding: 18px 50px; border-radius: 50px; display: flex; gap: 30px; box-shadow: 0 0 30px rgba(0, 217, 255, 0.15); }
        nav.glass-menu a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
        nav.glass-menu a:hover { color: var(--ocean-cyan); text-shadow: 0 0 12px var(--ocean-cyan); transform: translateY(-2px); }

        /* --- HERO & UI (UNCHANGED) --- */
        .hero-container { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; z-index: 5; }
        .main-title { font-family: 'Orbitron'; font-size: 5rem; background: linear-gradient(to bottom, #fff, var(--ocean-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; letter-spacing: 10px; font-weight: 900; }
        .sub-title { font-family: 'Orbitron'; font-size: 14px; letter-spacing: 10px; opacity: 0.6; font-weight:bold; margin-bottom: 30px; text-transform: uppercase; color: var(--ocean-cyan); }
        
        .layout-engine { display: contents; } 
        .search-wrapper { width: 500px; margin: 0 auto; position: relative; pointer-events: all; }
        .search-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 12px 75px 12px 25px; border-radius: 35px; color: white; font-family: 'Rajdhani'; font-size: 16px; letter-spacing: 2px; backdrop-filter: blur(10px); outline: none; box-sizing: border-box; }
        .search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--ocean-cyan); border: none; padding: 6px 15px; border-radius: 25px; color: var(--deep-abyss); font-family: 'Orbitron'; font-weight: 900; font-size: 10px; cursor: pointer; }

        .bulletin-feed, .tide-panel { position: absolute; top: 310px; background: var(--glass-ui); border: 1px solid var(--glass-border); backdrop-filter: blur(25px); padding: 20px; z-index: 10; border-radius: 10px; width: 280px; }
        .bulletin-feed { left: 50px; border-left: 4px solid var(--ocean-cyan); }
        .tide-panel { right: 50px; border-right: 4px solid var(--ocean-cyan); }
        .hud-item { font-size: 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(0, 217, 255, 0.1); padding-bottom: 5px; text-align: left; }
        .hud-item strong { color: var(--ocean-cyan); display: block; font-family: 'Orbitron'; font-size: 9px; }

        /* --- TIDE TABLE STYLING --- */
        .tide-row { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 11px; margin-top: 5px; padding: 4px 0; border-bottom: 1px solid rgba(0, 217, 255, 0.1); }
        .tide-label { color: var(--ocean-cyan); font-weight: bold; }
        .tide-value { text-align: center; }
        .tide-meter { text-align: right; font-family: 'Orbitron'; font-weight: bold; }
        .tide-graph { height: 4px; background: rgba(0, 217, 255, 0.1); margin-top: 4px; border-radius: 2px; overflow: hidden; }
        .tide-fill { height: 100%; background: var(--ocean-cyan); box-shadow: 0 0 10px var(--ocean-cyan); }

        @media (min-width: 769px) {
            .layout-engine { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 20px; }
            .bulletin-feed, .tide-panel { position: relative; top: 0; left: auto; right: auto; margin: 0; }
            .search-wrapper { order: 2; margin: 0; }
            .bulletin-feed { order: 1; }
            .tide-panel { order: 3; }
        }

        /* --- CURSOR EFFECTS (UNCHANGED) --- */
        #sonar-cursor { position: fixed; width: 35px; height: 35px; border: 1px solid var(--ocean-cyan); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); box-shadow: 0 0 15px var(--ocean-cyan); }
        #sonar-dot { position: fixed; width: 4px; height: 4px; background: var(--ocean-cyan); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); }
        .sonar-wave { position: fixed; border: 2px solid var(--ocean-cyan); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); animation: sonar-ping 1.2s ease-out forwards; z-index: 9999; }
        @keyframes sonar-ping { 0% { width: 0; height: 0; opacity: 0.8; } 100% { width: 400px; height: 400px; opacity: 0; } }

        /* --- FOOTER (UNCHANGED) --- */
        footer { position: fixed; bottom: 0; width: 100%; height: 35px; background: var(--alam-blue); display: flex; justify-content: space-between; align-items: center; padding: 0 50px; font-size: 11px; z-index: 1000; box-sizing: border-box; }
        .ta-circle { display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; font-size: 5px; font-weight: bold; }

        /* --- MOBILE MENU FIX (FORCED ONE ROW) --- */
        @media (max-width: 768px) {
            header { height: 65px; clip-path: none; }
            .header-content { grid-template-columns: 45px 1fr 100px; }
            .header-signage { height: 28px; border: none; }
            .glass-nav-container { top: 75px; }
            nav.glass-menu { 
                padding: 10px; width: 94%; gap: 15px; 
                flex-wrap: nowrap; overflow-x: auto; /* Force one row */
                scrollbar-width: none; border-radius: 25px;
            }
            nav.glass-menu::-webkit-scrollbar { display: none; }
            nav.glass-menu a { font-size: 14px; white-space: nowrap; }
            .main-title { font-size: 2.2rem; }
            .bulletin-feed, .tide-panel { position: relative; top: 15px; left: auto; right: auto; margin: 10px auto; width: 85%; }
            footer { padding: 0 10px; flex-direction: column; height: auto; }
            #sonar-cursor, #sonar-dot { display: none; }
        }

        canvas#kmc-engine { position: fixed; top: 0; left: 0; z-index: 1; }

/* WP content panel */
.wp-portal-content{position:relative; z-index:6; width:min(980px,92%); margin:140px auto 70px; background:rgba(255,255,255,0.07); border:1px solid rgba(0, 217, 255, 0.25); backdrop-filter: blur(25px); border-radius:12px; padding:22px; box-shadow:0 0 30px rgba(0,217,255,0.10);} 
.wp-portal-scroll{max-height:calc(100vh - 85px - 35px - 120px); overflow:auto; padding-right:8px;} 
@media (max-width:768px){.wp-portal-content{margin:110px auto 90px;} .wp-portal-scroll{max-height:calc(100vh - 65px - 60px - 90px);} }

/* About page layout */
.tactical-viewport {
            position: fixed;
            top: 155px; 
            left: 0;
            width: 100%;
            height: calc(100vh - 155px - 35px); 
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 5;
            padding-bottom: 50px;
        }

        .tactical-viewport::-webkit-scrollbar { width: 5px; }
        .tactical-viewport::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }

        .tactical-viewport::-webkit-scrollbar-thumb { 
            background: var(--ocean-cyan); 
            border-radius: 10px; 
            box-shadow: 0 0 12px var(--ocean-cyan);
        }

        .main-content-wrapper {
            padding-top: 80px; 
            display: flex; flex-direction: column; align-items: center;
        }

        .about-layout {
            display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1200px; width: 90%;
        }

        .tactical-slate {
            background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border); padding: 40px; 
            position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            transform-style: preserve-3d; transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .full-width { grid-column: 1 / -1; }
        
        .slate-header { font-family: 'Orbitron'; font-size: 10px; color: var(--ocean-cyan); letter-spacing: 3px; margin-bottom: 20px; display: flex; align-items: center; }

        .pulse-indicator { width: 8px; height: 8px; background: #00ffaa; border-radius: 50%; margin-right: 12px; box-shadow: 0 0 8px #00ffaa; animation: glow 2s infinite; }
        @keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

        .slate-title { font-family: 'Orbitron'; font-size: 24px; font-weight: 900; margin-bottom: 20px; color: #fff; border-bottom: 1px solid var(--ocean-cyan); padding-bottom: 10px; }
        .slate-body { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.8); }

        .slate-body ul { list-style: none; padding: 0; }
        .slate-body li { margin-bottom: 15px; padding-left: 25px; position: relative; }

        .slate-body li::before { content: "»"; position: absolute; left: 0; color: var(--ocean-cyan); font-weight: bold; }

        /* --- SONAR PING & CURSOR --- */
        .sonar-wave { 
            position: fixed; border: 2px solid var(--ocean-cyan); border-radius: 50%; 
            pointer-events: none; transform: translate(-50%, -50%); 
            animation: sonar-ping 1.5s ease-out forwards; z-index: 9999; 
        }

/* v112 About mobile: guarantee bottom content fully readable */
@media (max-width: 768px){
  .about-layout{grid-template-columns: 1fr !important; gap: 16px !important; width: 92% !important;}
  .tactical-slate{padding: 20px !important; box-shadow: 0 18px 45px rgba(0,0,0,0.75) !important;}
  .tactical-slate.full-width{grid-column: auto !important;}

  /* make scrolling smooth and ensure space above fixed footer */
  .tactical-viewport{
    padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* extra spacer element at the very bottom */
  .about-bottom-spacer{height: 220px; width: 100%;}

  /* smaller header label on mobile */
  .portal-label{font-size:13px !important; letter-spacing:1.1px !important;}
  #live-clock{font-size:12px !important;}
  #live-date{font-size:10px !important;}
}
@media (max-width: 420px){
  .tactical-viewport{padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px)) !important;}
  .portal-label{font-size:11px !important; letter-spacing:0.9px !important;}
}
/* OIL PRICES BOARD: center-align all text inside the oil box */
.bulletin-feed.oil-board,
.bulletin-feed.oil-board .hud-item,
.bulletin-feed.oil-board .hud-item strong{ text-align:center !important; }
.bulletin-feed.oil-board .hud-item{ width:100%; }
.bulletin-feed.oil-board a{ display:inline-block; color:var(--ocean-cyan); text-decoration:none; }
.bulletin-feed.oil-board a:hover{ text-decoration:underline; }
