/* NIROM Global Professional Styles */
:root {
    --nirom-midnight: #0f172a;
    --nirom-teal: #1e293b;
    --nirom-gold: #f2d24b;
    --nirom-gold-hover: #e5c12b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--nirom-midnight); color: var(--text-main); line-height: 1.6; padding-top: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Transparent Navigation */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; padding: 15px 0; border-bottom: 1px solid var(--glass-border); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-left { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.logo { font-size: 24px; font-weight: 800; color: var(--nirom-gold); text-decoration: none; letter-spacing: 1px; transition: all 0.3s ease; }
.logo img { height: 45px; width:auto; transition: all 0.3s ease; }
.tn-header.scrolled .logo img { height: 38px; }
.nav-links a { color: var(--text-main); text-decoration: none; margin-left: 30px; font-size: 14px; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--nirom-gold); }
.btn-login { border: 1px solid var(--nirom-gold); padding: 8px 20px; border-radius: 5px; }

/* Hero Section with Robotic Arm Background */
.hero {
    position: relative;
    height: 80vh;
    background: url('/assets/images/hero-talent.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-size: 3.0rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--nirom-gold); }
.hero p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 40px; }

/* Glass Search Bar */
.glass-search {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
}
.glass-search select, .glass-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 12px;
    flex: 1;
    font-size: 14px;
}
.glass-search select option { background: var(--nirom-midnight); }
.btn-search { background: var(--nirom-gold); color: var(--nirom-midnight); border: none; padding: 0 30px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-search:hover { background: var(--nirom-gold-hover); transform: translateY(-2px); }
.tn-v-divider { width: 1px; height: 35px; background: linear-gradient( to bottom, transparent, rgba(255,255,255,0.15), transparent ); }
.base-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 18px;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    color: var(--nirom-gold);
    border: 1px solid rgba(242, 210, 75, 0.4);

    background: rgba(242, 210, 75, 0.05);
    backdrop-filter: blur(4px);

    transition: all 0.3s ease;
}
.base-site-btn:hover {
    background: var(--nirom-gold);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(242, 210, 75, 0.35);
    transform: translateY(-2px);
}

/* Strategy Pulse Cards */
.strategy-pulse { padding: 50px 0; }
.section-tag { color: var(--nirom-gold); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s;
    backdrop-filter: blur(5px);
}
.glass-card:hover { border-color: var(--nirom-gold); transform: translateY(-10px); background: rgba(255,255,255,0.06); }
.glass-card i { font-size: 30px; color: var(--nirom-gold); margin-bottom: 20px; }
.glass-card h3 { font-size: 20px; margin-bottom: 15px; }
.glass-card p { color: var(--text-dim); font-size: 14px; }

/* Ticker Bar */
.ticker-bar { background: #0a0f1d; padding: 15px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.ticker-flex { display: flex; justify-content: space-around; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.ticker-flex span b { color: var(--nirom-gold); }

.sector-portal {
    overflow: hidden;
    padding: 0 !important; /* Image fills the top */
}

.portal-img {
    height: 220px; /* Adjust height based on your preference */
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--nirom-gold);
    transition: transform 0.5s ease;
}

.sector-portal h3, .sector-portal p, .sector-portal a {
    padding: 20px;
}

.text-link {
    color: var(--nirom-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    transition: 0.3s;
}

.text-link:hover { padding-left: 30px; }


.glass-card.sector-portal {
    overflow: hidden; /* This clips the image zoom effect */
    padding: 0 !important; /* Removes internal padding so image touches the edges */
}

.sector-portal:hover .portal-img {
    transform: scale(1.1); /* Subtle zoom effect for interactivity */
}
/* Sidebar Active State for NIROM Premium Theme */
.sidebar-link.active {
    background: rgba(242, 210, 75, 0.1) !important; /* Your NIROM Gold with transparency */
    color: #F2D24B !important; 
    border-left: 4px solid #F2D24B;
    font-weight: 700;
}
/* Ensure the tracker stays at the top but is NOT sticky */
.announcement-bar { background: var(--nirom-gold); color: #0f172a; height: 35px; display: flex; align-items: center; }
.tracking-text { position: absolute; white-space: nowrap; will-change: transform; animation: marquee 25s linear infinite; padding-left: 100%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.ticker-close {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #0f172a;
}

.ticker-close:hover {
    opacity: 0.7;
}


/* If you want the header to stay at the top AFTER the tracker scrolls away, 
   keep top: 0. If they are overlapping right now, add this wrapper: */

.header-wrapper {
    display: flex;
    flex-direction: column;
}

.tn-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.tn-header.scrolled { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); padding: 8px 0; }

/* 1. Force Equal Height and Box Sizing */
.nirom-form input[type="text"],
.nirom-form input[type="password"],
.nirom-form input[type="email"],
.nirom-form input[type="number"],
.nirom-form select,
.nirom-form .btn-submit {
    height: var(--field-height);
    line-height: var(--field-height);
    padding: 0 15px;
    box-sizing: border-box; /* Essential: includes padding/border in height */
    width: 100%;
    border-radius: 8px;
    border: 1px solid #334155;
    background: var(--input-bg);
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 2. Textarea Adjustment */
.nirom-form textarea {
    padding: 12px 15px;
    width: 100%;
    background: var(--input-bg);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    min-height: 120px;
    box-sizing: border-box;
}

/* 3. Label Alignment */
.nirom-form label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--nirom-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* 4. Grid Alignment for Multi-Column Rows */
.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

/* Focus States */
.nirom-form input:focus, .nirom-form select:focus {
    outline: none;
    border-color: var(--nirom-gold);
    box-shadow: 0 0 0 2px rgba(242, 210, 75, 0.1);
}

    :root { 
        --nirom-midnight: #0f172a; 
        --nirom-gold: #f2d24b; 
        --nirom-card: #1e293b; 
        --field-height: 45px; 
    }
    
    /* MASTER BACKGROUND SYNC: Midnight theme */
    body { 
        background: var(--nirom-midnight); 
        color: #f8fafc; 
        font-family: 'Inter', sans-serif; 
        margin: 0; 
    }
    
    .hub-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
    
    /* SEARCH HERO: Seamlessly blends into the background */
    .search-hero { 
        background: radial-gradient(circle at center, rgba(242, 210, 75, 0.05) 0%, transparent 70%); 
        padding: 60px 0 80px; 
        text-align: center; 
    }

    /* SEARCH BOX: Updated to dark industrial style */
    .search-box { 
        max-width: 800px; 
        margin: -40px auto 0; 
        display: flex; 
        gap: 10px; 
        background: var(--nirom-card); 
        padding: 12px; 
        border-radius: 12px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
        border: 1px solid rgba(255,255,255,0.05); 
    }
    
    .search-input { 
        flex: 1; 
        height: var(--field-height); 
        border: 1px solid #334155; 
        background: #0f172a; 
        border-radius: 8px; 
        padding: 0 15px; 
        font-size: 14px; 
        color: #fff; 
        outline: none; 
    }

    /* JOB CARDS: Converted to Glass UI */
    .job-card { 
        background: var(--nirom-card); 
        border: 1px solid rgba(255,255,255,0.05); 
        border-radius: 12px; 
        padding: 20px; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        transition: 0.3s; 
    }
    .job-card:hover { 
        border-color: var(--nirom-gold); 
        transform: translateY(-5px); 
        box-shadow: 0 12px 30px rgba(0,0,0,0.4); 
    }
    
    .job-title { margin: 0; font-size: 16px; font-weight: 800; color: #fff; line-height: 1.4; }
    .comp-name { font-size: 13px; color: #94a3b8; font-weight: 600; margin-top: 4px; }
    
    /* TOOLBAR & PAGINATION: Dark mode compatible */
    .toolbar { 
        background: rgba(255,255,255,0.02); 
        border: 1px solid rgba(255,255,255,0.05); 
        color: #94a3b8; 
    }
    
    .page-link { 
        background: #1e293b; 
        border: 1px solid #334155; 
        color: #94a3b8; 
    }
    .page-link.active { 
        background: var(--nirom-gold); 
        color: #000; 
        border-color: var(--nirom-gold); 
    }