/* =====================================================
   GmpUpdates — gmp2.png Design
   ===================================================== */

:root {
    --blue: #1a56db;
    --blue-dark: #1648b3;
    --blue-light: #e8f0fe;
    --orange: #f5920b;
    --orange-light: #fff8eb;
    --green: #059669;
    --green-bg: #d1fae5;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #fff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--gray-700);
    background: #f5f7fb;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; position: relative; max-width: 100%; }

a { color: var(--blue); text-decoration: none !important; }
a:hover { color: var(--blue-dark); text-decoration: none !important; }

.site-header,.site-footer,.site-info,.entry-header,.page-header,.entry-title,.generate-columns-container,#secondary{display:none!important}
.site-content,.content-area,.site-main,.inside-article,.entry-content,#page,.site,.grid-container,.inside-page,.post,article,#primary{padding:0!important;margin:0!important;max-width:100%!important;width:100%!important;border:none!important;box-shadow:none!important;background:transparent!important;float:none!important}
.sidebar,#secondary,.widget-area{display:none!important}

/* ---- TOP ACCENT LINE ---- */
.gmp-topline { display: none; }

/* ---- HEADER ---- */
.gmp-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gmp-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 48px;
}

.gmp-logo { display: flex; align-items: center; margin-right: 28px; }
.gmp-logo-img { width: 220px; height: auto; display: block; margin: -30px 0 -30px -20px; }
/* Old text logo (commented out in HTML) */
.gmp-logo-icon {
    background: linear-gradient(135deg, #1a56db, #2563eb);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}
.gmp-logo-text { font-size: 19px; font-weight: 800; color: var(--blue); letter-spacing: -0.3px; }
.gmp-logo-text span { color: var(--orange); }

.gmp-nav { display: flex; align-items: center; gap: 0; }

/* Nav dropdown */
.gmp-nav-dropdown { position: relative; }
.gmp-nav-dropdown-trigger { cursor: pointer; }
.gmp-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
}
.gmp-nav-dropdown:hover .gmp-nav-dropdown-menu { display: block; }
.gmp-nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--gray-600) !important;
    font-size: 13px;
    font-weight: 500;
    border-bottom: none !important;
}
.gmp-nav-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--blue) !important;
}
.gmp-nav a {
    color: var(--gray-500);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
    position: relative;
    border-radius: 0;
    background: none;
}
.gmp-nav a:hover { color: var(--blue); background: none; }
.gmp-nav a.active {
    color: var(--blue);
    font-weight: 600;
    background: none;
}
.gmp-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}

.gmp-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gmp-login-link { color: var(--gray-500); font-size: 13px; font-weight: 500; }
.gmp-login-link:hover { color: var(--blue); }
.gmp-login-btn {
    background: var(--blue);
    color: var(--white) !important;
    padding: 6px 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.gmp-login-btn:hover { background: var(--blue-dark); }

.gmp-menu-toggle { display: none; background: none; border: 1px solid var(--gray-300); cursor: pointer; padding: 6px 8px; border-radius: 5px; flex-direction: column; gap: 3px; }
.gmp-menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--gray-500); border-radius: 1px; }

/* ---- TICKER ---- */
.gmp-ticker { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); padding: 8px 0; overflow: hidden; }
.gmp-ticker-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; gap: 12px; }
.gmp-ticker-label { background: rgba(255,255,255,0.2); color: var(--white); padding: 3px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.gmp-ticker-scroll { overflow: hidden; flex: 1; }
.gmp-ticker-items { display: flex; gap: 30px; animation: ticker 40s linear infinite; white-space: nowrap; }
.gmp-ticker-items a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); }
.gmp-ticker-items a:hover { color: var(--white); }
.ticker-name { color: rgba(255,255,255,0.8); }
.ticker-gmp { font-weight: 700; }
.ticker-up .ticker-gmp { color: #6ee7b7; }
.ticker-down .ticker-gmp { color: #fca5a5; }
.ticker-flat .ticker-gmp { color: rgba(255,255,255,0.5); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- HOMEPAGE ---- */
.gmp-homepage { max-width: 1300px; margin: 0 auto; padding: 16px 40px; }

/* Ad Banner (gold - gmp2.png) */
.gmp-ad-banner { background: linear-gradient(135deg, #f5d27e, #f0c14b, #f5d27e); padding: 10px 24px; text-align: center; margin-bottom: 16px; border-radius: var(--radius-sm); }
.gmp-ad-banner-inner { font-size: 13px; color: #5a3e0a; font-weight: 600; max-width: 1200px; margin: 0 auto; }
.gmp-ad-banner-inner span { font-weight: 800; color: #8b5e0a; }

/* Hero (inside left column) */
.gmp-hero2 {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8faff 0%, #eef3fb 50%, #f0f5ff 100%);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(26,86,219,0.08);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.gmp-hero2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26,86,219,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.gmp-hero2-left { flex: 1; min-width: 0; position: relative; z-index: 1; }

.gmp-hero2-title { font-size: 24px; font-weight: 800; color: var(--gray-900); line-height: 1.3; margin: 0 0 6px; }
.gmp-hero2-title em { font-style: italic; color: var(--blue); }

.gmp-hero2-sub { font-size: 14px; color: var(--gray-500); margin: 0 0 20px; font-weight: 500; }

.gmp-hero2-search {
    display: flex;
    max-width: 440px;
    margin-bottom: 22px;
    position: relative;
    align-items: center;
}

/* Breadcrumb */
.gmp-breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 8px 0; }
.gmp-breadcrumb-inner { max-width: 1300px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-family: 'Poppins', sans-serif; }
.gmp-breadcrumb-link { color: var(--blue) !important; text-decoration: none !important; font-weight: 500; }
.gmp-breadcrumb-link:hover { text-decoration: underline !important; }
.gmp-breadcrumb-sep { color: var(--gray-400); font-size: 11px; }
.gmp-breadcrumb-current { color: var(--gray-500); font-weight: 500; }

.gmp-hero2-search {
    display: flex;
    position: relative;
    margin-bottom: 16px;
    max-width: 480px;
}

.gmp-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    pointer-events: none;
}

.gmp-search-icon svg { width: 16px; height: 16px; }

.gmp-hero2-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--white);
    color: var(--gray-700);
    height: 46px;
    box-sizing: border-box;
}

.gmp-hero2-input::placeholder { color: var(--gray-400); }
.gmp-hero2-input:focus { border-color: var(--blue); }

.gmp-hero2-btn {
    padding: 0 28px;
    background: var(--blue);
    color: var(--white);
    border: 2px solid var(--blue);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    height: 46px;
    box-sizing: border-box;
}

.gmp-hero2-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.gmp-hero2-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.gmp-hero2-stat {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 0 18px;
}

.gmp-hero2-stat:first-child { padding-left: 0; }

.gmp-hero2-stat-sep {
    width: 1px;
    height: 20px;
    background: var(--gray-300);
}

.gmp-hero2-stat-num {
    font-size: 24px;
    font-weight: 800;
    margin-right: 4px;
}

.stat-green { color: var(--green); }
.stat-amber { color: var(--orange); }
.stat-blue { color: var(--blue); }

.gmp-hero2-right {
    width: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gmp-hero2-illustration { width: 100%; }
.gmp-hero2-illustration svg { width: 100%; height: auto; }

/* Main Grid */
.gmp-main-grid2 { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.gmp-main-left { min-width: 0; }

/* Sections */
.gmp-section2 { margin-bottom: 24px; padding: 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.gmp-section2-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gmp-section2-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 0 0 12px; }
.gmp-see-all { font-size: 13px; font-weight: 600; color: var(--blue); }
.gmp-live-dot { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.gmp-live-dot::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Table Card */
.gmp-table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow); padding: 14px; overflow-x: auto; }

/* Status Row */
.gmp-status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.gmp-status-card { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all 0.2s; color: inherit; }
.gmp-status-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.gmp-status-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.si-green { background: var(--green-bg); color: var(--green); }
.si-amber { background: var(--orange-light); color: var(--orange); }
.si-gray { background: var(--gray-100); color: var(--gray-500); }
.si-blue { background: var(--blue-light); color: var(--blue); }
.gmp-status-num { font-size: 22px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.gmp-status-label { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Calendar */
.gmp-calendar2 { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); }
.gmp-cal2-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: inherit; transition: background 0.15s; }
.gmp-cal2-item:last-child { border-bottom: none; }
.gmp-cal2-item:hover { background: var(--gray-50); color: inherit; }
.gmp-cal2-date { display: flex; flex-direction: column; align-items: center; background: var(--blue); color: var(--white); border-radius: var(--radius-sm); padding: 5px 10px; min-width: 44px; }
.gmp-cal2-month { font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.gmp-cal2-day { font-size: 20px; font-weight: 800; line-height: 1; }
.gmp-cal2-info { flex: 1; }
.gmp-cal2-name { display: block; font-size: 14px; font-weight: 600; color: var(--gray-900); }
.gmp-cal2-meta { display: block; font-size: 12px; color: var(--gray-500); }

/* Tools */
.gmp-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gmp-tool-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px 14px; text-align: center; color: var(--gray-700); transition: all 0.2s; }
.gmp-tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--blue); }
.gmp-tool-icon { width: 52px; height: 52px; background: var(--blue-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.gmp-tool-name { font-size: 12px; font-weight: 600; }

/* Info Box */
.gmp-info-box { font-size: 14px; line-height: 1.8; color: var(--gray-700); }
.gmp-info-box p { margin-bottom: 10px; }
.gmp-info-box p:last-child { margin-bottom: 0; }

/* Sidebar */
.gmp-sidebar2 { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.gmp-sidebar2-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gmp-sidebar2-header { background: var(--blue); color: var(--white); padding: 12px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.gmp-sidebar2-list { list-style: none; max-height: 460px; overflow-y: auto; }
.gmp-sidebar2-list li { border-bottom: 1px solid var(--gray-100); }
.gmp-sidebar2-list li:last-child { border-bottom: none; }
.gmp-sidebar2-item { display: block; padding: 10px 16px; color: inherit; transition: background 0.15s; }
.gmp-sidebar2-item:hover { background: var(--gray-50); color: inherit; }
.gmp-sidebar2-name { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 3px; }
.gmp-sidebar2-meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--gray-500); font-weight: 500; flex-wrap: wrap; }
.gmp-sidebar2-links { display: flex; flex-direction: column; }
.gmp-sidebar2-links a { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); font-size: 13px; font-weight: 500; color: var(--gray-700) !important; }
.gmp-sidebar2-links a:last-child { border-bottom: none; }
.gmp-sidebar2-links a:hover { background: var(--blue-light); color: var(--blue) !important; }

/* Newsletter */
.gmp-newsletter { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 40px 24px; text-align: center; }
.gmp-newsletter-inner { max-width: 440px; margin: 0 auto; }
.gmp-newsletter-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 0 0 6px; }
.gmp-newsletter-text { font-size: 14px; color: var(--gray-500); margin: 0 0 16px; }
.gmp-newsletter-form { display: flex; }
.gmp-newsletter-input { flex: 1; padding: 12px 16px; border: 2px solid var(--gray-200); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; }
.gmp-newsletter-input:focus { border-color: var(--blue); }
.gmp-newsletter-btn { padding: 12px 28px; background: var(--orange); color: var(--white); border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.gmp-newsletter-btn:hover { background: #e08500; }

/* ---- TABLE ---- */
.ipo-table-wrapper { margin: 0; overflow-x: auto; }
.ipo-table-filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ipo-filter-btn { padding: 6px 16px; border: 1px solid var(--gray-200); border-radius: 20px; background: var(--white); color: var(--gray-500); cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; transition: all 0.15s; }
.ipo-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.ipo-filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.ipo-gmp-table, table.dataTable { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; border: none !important; font-family: 'Poppins', sans-serif !important; }
.ipo-gmp-table thead, table.dataTable thead { background: var(--gray-100) !important; }
.ipo-gmp-table thead th, table.dataTable thead th { padding: 12px 10px !important; color: var(--gray-500) !important; font-weight: 600 !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; border: none !important; border-bottom: 1px solid var(--gray-200) !important; white-space: nowrap !important; background: transparent !important; }
.ipo-gmp-table tbody tr, table.dataTable tbody tr { border-bottom: 1px solid var(--gray-100) !important; transition: background 0.1s !important; }
.ipo-gmp-table tbody tr:hover, table.dataTable tbody tr:hover { background: var(--blue-light) !important; }
.ipo-gmp-table tbody td, table.dataTable tbody td { padding: 14px 10px !important; vertical-align: middle !important; border: none !important; font-size: 14px !important; white-space: nowrap !important; font-weight: 500 !important; }
table.dataTable tbody tr:nth-child(even) { background: transparent !important; }

.ipo-name-cell { white-space: normal !important; min-width: 160px; }

.ipo-name-link {
    color: var(--gray-900) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.ipo-name-arrow {
    color: var(--blue);
    font-size: 8px;
    flex-shrink: 0;
}

/* GMP Badge (colored pill) */
.gmp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.gmp-badge-green { background: var(--green-bg); color: var(--green); }
.gmp-badge-red { background: var(--red-bg); color: var(--red); }
.gmp-badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* Gain Indicator (arrow + %) */
.gain-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

.gain-up { color: var(--green); }
.gain-down { color: var(--red); }
.gain-flat { color: var(--gray-400); }

.gain-arrow { font-size: 10px; }

/* Status icons */
.status-hot {
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
}

.status-open-icon {
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}

/* View All button */
.gmp-table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gmp-view-all-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700) !important;
    background: var(--white);
    transition: all 0.15s;
}

.gmp-view-all-btn:hover {
    border-color: var(--blue);
    color: var(--blue) !important;
}

.ipo-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.ipo-badge-open { background: var(--green-bg); color: var(--green); }
.ipo-badge-upcoming { background: var(--orange-light); color: var(--orange); }
.ipo-badge-closed { background: var(--gray-100); color: var(--gray-500); }
.ipo-badge-listed { background: var(--blue-light); color: var(--blue); }
.ipo-badge-withdrawn { background: var(--red-bg); color: var(--red); }
.ipo-type-badge { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.ipo-type-mainboard { background: var(--blue-light); color: var(--blue); }
.ipo-type-sme { background: #fef3c7; color: #92400e; }
.gmp-positive { color: var(--green) !important; font-weight: 700 !important; }
.gmp-negative { color: var(--red) !important; font-weight: 700 !important; }
.ipo-view-btn { display: inline-block; padding: 5px 14px; background: var(--orange); color: var(--white) !important; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.ipo-view-btn:hover { background: #e08500; }
.ipo-gmp-updated { text-align: right; font-size: 10px; color: var(--gray-400); margin-top: 6px; }

.dataTables_wrapper .dataTables_filter input { border: 2px solid var(--gray-200) !important; border-radius: var(--radius-sm) !important; padding: 6px 12px !important; font-size: 13px !important; font-family: inherit !important; outline: none !important; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--blue) !important; }
.dataTables_wrapper .dataTables_length select { border: 1px solid var(--gray-200) !important; border-radius: var(--radius-sm) !important; font-family: inherit !important; }
.dataTables_wrapper .dataTables_info { font-size: 11px !important; color: var(--gray-500) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--radius-sm) !important; font-size: 12px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--blue) !important; color: var(--white) !important; border-color: var(--blue) !important; }

/* ---- FOOTER (Light Theme) ---- */
.gmp-footer2 { background: #f8fafc; color: #475569; padding: 48px 0 0; font-family: 'Poppins', sans-serif; border-top: 2px solid #e2e8f0; }
.gmp-footer2-inner { max-width: 1300px; margin: 0 auto; padding: 0 40px; }

/* Footer top: brand + grid */
.gmp-footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 32px; }

/* Brand section */
.gmp-footer-brand { }
.gmp-footer-logo { display: block; margin-bottom: 0; margin-top: -70px; }
.gmp-footer-logo-img { width: 260px; height: auto; margin: -40px 0 -40px -30px; }
/* Old text logo (commented out in HTML) */
.gmp-footer-logo-icon { width: 36px; height: 36px; background: var(--blue); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.gmp-footer-logo-text { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.gmp-footer-logo-text span { color: var(--orange); }
.gmp-footer-desc { font-size: 14px; line-height: 1.8; color: #64748b; margin: 0; margin-top: -70px; }

/* Link grid */
.gmp-footer2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gmp-footer2-col h4 { color: #1e293b; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.gmp-footer2-col ul { list-style: none; padding: 0; margin: 0; }
.gmp-footer2-col li { margin-bottom: 10px; }
.gmp-footer2-col a { color: #64748b !important; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.gmp-footer2-col a:hover { color: var(--blue) !important; }
.gmp-footer-social-icon { margin-right: 6px; }

/* Disclaimer */
.gmp-footer2-disclaimer {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.7;
    color: #78350f;
}
.gmp-footer2-disclaimer strong { color: #c2410c; }

/* Bottom bar */
.gmp-footer2-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}
.gmp-footer-bottom-links { display: flex; gap: 20px; }
.gmp-footer-bottom-links a { color: #94a3b8 !important; font-size: 13px; }
.gmp-footer-bottom-links a:hover { color: var(--blue) !important; }

/* ---- AD SLOTS ---- */
.gmp-ad { text-align: center; margin-bottom: 16px; }

.gmp-ad-placeholder {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4f8 100%);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 90px;
}

.gmp-ad-300 {
    min-height: 250px;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.gmp-ad-leaderboard .gmp-ad-placeholder {
    max-width: 728px;
    margin: 0 auto;
}

.gmp-ad-bottom {
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 16px 24px;
}

.gmp-ad-bottom .gmp-ad-placeholder {
    max-width: 970px;
    min-height: 250px;
    margin: 0 auto;
}

/* ---- SINGLE IPO ---- */
.gmp-single-ipo { max-width: 960px; margin: 20px auto; padding: 0 20px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .gmp-main-grid2 { grid-template-columns: 1fr !important; }
    .gmp-sidebar2 { position: static; }
    .gmp-footer-top { grid-template-columns: 1fr; gap: 28px; }
    .gmp-footer2-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* === HEADER === */
    .gmp-header-inner { height: 44px; padding: 0 12px; }
    .gmp-logo-text { font-size: 17px; }
    .gmp-logo-img { width: 140px; }
    .gmp-logo-icon { width: 24px; height: 24px; font-size: 12px; }
    .gmp-header-actions { display: none; }
    .gmp-nav {
        display: none;
        position: fixed;
        top: 44px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        z-index: 999;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        overflow-y: auto;
    }
    .gmp-nav a.active::after { display: none; }
    .gmp-nav.active { display: flex; }
    .gmp-nav a { padding: 14px 16px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); border-radius: 0; }
    .gmp-nav a.active { background: var(--blue-light); color: var(--blue); }
    .gmp-menu-toggle { display: flex; }
    .gmp-nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; border-radius: 0; }

    /* === BREADCRUMB === */
    .gmp-breadcrumb-inner { padding: 0 12px; }

    /* === HOMEPAGE WRAPPER === */
    .gmp-homepage { padding: 10px 10px; }

    /* === HERO === */
    .gmp-hero2 { flex-direction: column; padding: 16px; gap: 14px; }
    .gmp-hero2-left { width: 100%; }
    .gmp-hero2-title { font-size: 18px; line-height: 1.35; margin-bottom: 6px; }
    .gmp-hero2-title em { display: block; font-size: 16px; }
    .gmp-hero2-sub { font-size: 12px; margin-bottom: 14px; }
    .gmp-hero2-right { display: none; }
    .gmp-hero2-search { max-width: 100%; width: 100%; margin-bottom: 14px; }
    .gmp-hero2-input { font-size: 13px; padding: 10px 12px; height: 42px; }
    .gmp-hero2-btn { padding: 0 14px; font-size: 12px; font-weight: 700; height: 42px; white-space: nowrap; }
    .gmp-hero2-stats { flex-wrap: wrap; gap: 8px; }
    .gmp-hero2-stat-sep { display: none; }
    .gmp-hero2-stat { padding: 0 8px 0 0; font-size: 13px; }
    .gmp-hero2-stat-num { font-size: 20px; }

    /* === SECTION === */
    .gmp-section2 { padding: 14px 12px; margin-bottom: 14px; }
    .gmp-section2-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
    .gmp-section2-title { flex: 1 1 100%; font-size: 14px; font-weight: 700; margin: 0; }
    .gmp-table-actions { flex-shrink: 0; gap: 8px; }
    .gmp-view-all-btn { font-size: 11px; padding: 5px 10px; }
    .gmp-see-all { font-size: 12px; }

    /* === TABLE === */
    .gmp-table-card { padding: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ipo-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ipo-gmp-table thead th,
    table.dataTable thead th { padding: 8px 6px !important; font-size: 10px !important; }
    .ipo-gmp-table tbody td,
    table.dataTable tbody td { padding: 10px 6px !important; font-size: 12px !important; }
    .ipo-name-cell { min-width: 120px; max-width: 160px; white-space: normal !important; }
    .ipo-name-link { font-size: 12px !important; }
    .ipo-filter-btn { padding: 5px 10px; font-size: 11px; }

    /* === STATUS CARDS === */
    .gmp-status-row { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
    .gmp-status-card { padding: 12px 10px; gap: 8px; }
    .gmp-status-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
    .gmp-status-num { font-size: 18px; }
    .gmp-status-label { font-size: 10px; }

    /* === CALENDAR === */
    .gmp-cal2-item { gap: 10px; padding: 10px 12px; }
    .gmp-cal2-name { font-size: 13px; }
    .gmp-cal2-date { min-width: 40px; padding: 4px 8px; }
    .gmp-cal2-day { font-size: 17px; }

    /* === TOOLS GRID === */
    .gmp-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gmp-tool-card { padding: 16px 10px; }
    .gmp-tool-icon { width: 44px; height: 44px; }
    .gmp-tool-name { font-size: 11px; }

    /* === INFO BOX / COMPARE TABLE === */
    .gmp-info-box { overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
    .gmp-compare-table { min-width: 480px; }
    .gmp-compare-table th, .gmp-compare-table td { padding: 8px 10px; font-size: 12px; }

    /* === APPLY CARDS === */
    .gmp-apply-methods { grid-template-columns: 1fr; gap: 10px; }

    /* === FAQ === */
    .gmp-faq-item summary { font-size: 13px; padding: 12px 14px; }
    .gmp-faq-item p { font-size: 12px; padding: 12px 14px; }

    /* === SIDEBAR === */
    .gmp-sidebar2 { gap: 12px; }

    /* === AD === */
    .gmp-ad-banner { margin-bottom: 10px; }
    .gmp-ad-header-global, .gmp-ad-footer-global { padding: 8px 12px; }

    /* === TICKER === */
    .gmp-ticker { display: none; }

    /* === FOOTER === */
    .gmp-footer2-grid { grid-template-columns: 1fr; }
    .gmp-footer2-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .gmp-footer2-inner { padding: 0 14px; }
    .gmp-footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* === NEWSLETTER === */
    .gmp-newsletter { padding: 24px 14px; }
    .gmp-newsletter-form { flex-direction: column; gap: 8px; }
    .gmp-newsletter-input { border-right: 2px solid var(--gray-200); border-radius: var(--radius-sm); }
    .gmp-newsletter-btn { border-radius: var(--radius-sm); width: 100%; }
    .gmp-newsletter-title { font-size: 18px; }

    /* === CALENDAR PAGE === */
    .gmp-calendar-page { padding: 10px; }
    .gmp-calendar-page .gmp-section2 { padding: 12px; }
    .gmp-table2-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .gmp-table2 { font-size: 12px; min-width: 500px; }
    .gmp-table2 thead th { padding: 8px 6px; font-size: 10px; }
    .gmp-table2 tbody td { padding: 10px 6px; }

    /* === SINGLE IPO === */
    .gmp-single-ipo { padding: 0 10px; margin: 12px auto; }
}

@media (max-width: 480px) {
    .gmp-homepage { padding: 8px 8px; }
    .gmp-hero2-title { font-size: 16px; }
    .gmp-hero2-title em { font-size: 14px; }
    .gmp-status-row { grid-template-columns: 1fr 1fr; gap: 6px; }
    .gmp-status-card { padding: 10px 8px; }
    .gmp-status-num { font-size: 16px; }
    .gmp-tools-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .gmp-section2 { padding: 12px 10px; }
    .gmp-section2-title { font-size: 13px; }
    .ipo-gmp-table tbody td,
    table.dataTable tbody td { padding: 8px 4px !important; font-size: 11px !important; }
    .ipo-gmp-table thead th,
    table.dataTable thead th { padding: 7px 4px !important; font-size: 9px !important; }
    .gmp-badge { padding: 3px 8px; font-size: 11px; }
    .ipo-badge { padding: 2px 6px; font-size: 9px; }
    .gmp-cal2-name { font-size: 12px; }
}

/* Global Ad Slots */
.gmp-ad-header-global,
.gmp-ad-footer-global {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 40px;
    text-align: center;
}
.gmp-ad-header-global .gmp-ad-placeholder,
.gmp-ad-footer-global .gmp-ad-placeholder {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 8px;
    padding: 14px;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}
.gmp-ad-sidebar .gmp-ad-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}
.gmp-ad-leaderboard { margin: 16px 0; text-align: center; }
.gmp-ad-leaderboard .gmp-ad-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    color: #94a3b8;
    font-size: 12px;
}

/* How to Apply cards */
.gmp-apply-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.gmp-apply-card { background: var(--gray-50); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--gray-100); }
.gmp-apply-card h3 { font-size: 14px; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.gmp-apply-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* Comparison table */
.gmp-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.gmp-compare-table th { background: var(--blue); color: #fff; padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; }
.gmp-compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.gmp-compare-table tr:hover { background: var(--gray-50); }

/* FAQ */
.gmp-faq-list { display: flex; flex-direction: column; gap: 8px; }
.gmp-faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.gmp-faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gmp-faq-item summary::-webkit-details-marker { display: none; }
.gmp-faq-item summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--gray-400); transition: transform 0.2s; }
.gmp-faq-item[open] summary::after { content: '−'; }
.gmp-faq-item[open] summary { color: var(--blue); border-bottom: 1px solid var(--gray-100); }
.gmp-faq-item p { padding: 14px 18px; font-size: 13px; color: var(--gray-600); line-height: 1.7; margin: 0; }
.gmp-faq-item a { color: var(--blue); }

/* IPO Type pill */
.ipo-type-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.ipo-type-mainboard { background: #dbeafe; color: #1e40af; }
.ipo-type-sme { background: #fef3c7; color: #92400e; }

/* Minimal table mode (homepage) — hide filters, search, pagination */
.ipo-table-minimal .ipo-table-filters,
.ipo-table-minimal .dataTables_filter,
.ipo-table-minimal .dataTables_length,
.ipo-table-minimal .dataTables_info,
.ipo-table-minimal .dataTables_paginate {
    display: none !important;
}

/* =====================================================
   IPO Calendar Page — match homepage table design
   ===================================================== */
.gmp-calendar-page { max-width: 1200px; margin: 0 auto; padding: 20px; }
.gmp-calendar-page .gmp-section2 {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
}
.gmp-calendar-page .gmp-section2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.gmp-calendar-page .gmp-section2-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Filter buttons */
.gmp-table-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.gmp-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}
.gmp-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.gmp-filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Table */
.gmp-table2-wrap { overflow-x: auto; }
.gmp-table2 {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}
.gmp-table2 thead th {
    background: var(--gray-50);
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    white-space: nowrap;
}
.gmp-table2 tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.gmp-table2 tbody tr:hover { background: var(--gray-50); }
.gmp-table2 tbody td {
    padding: 14px;
    color: var(--gray-700);
    vertical-align: middle;
}

/* IPO name link */
.gmp-ipo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.gmp-ipo-link:hover { color: var(--blue-dark); }
.gmp-row-arrow { color: var(--blue); font-size: 10px; }

/* GMP badge */
.gmp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.gmp-badge-positive { background: #dcfce7; color: #166534; }
.gmp-badge-negative { background: #fef2f2; color: #991b1b; }
.gmp-badge-neutral { background: var(--gray-100); color: var(--gray-500); }

/* Gain percentage */
.gmp-gain-pos { color: #16a34a; font-weight: 600; }
.gmp-gain-neg { color: #dc2626; font-weight: 600; }

/* Status pill */
.gmp-status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.gmp-status-open { background: #dcfce7; color: #166534; }
.gmp-status-upcoming { background: #fff7ed; color: #c2410c; }
.gmp-status-closed { background: var(--gray-100); color: var(--gray-500); }
.gmp-status-listed { background: #dbeafe; color: #1e40af; }

/* Live dot */
.gmp-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
}
.gmp-live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse 1.5s infinite;
}

/* Sort indicator */
.gmp-th-sortable { cursor: pointer; user-select: none; }
.gmp-th-sortable::after { content: ' \25B4\25BE'; font-size: 9px; opacity: 0.4; }
.gmp-th-sortable.sort-asc::after { content: ' \25B4'; opacity: 1; }

/* News Post Header (compact, title first) */
.gmp-news-header {
    padding: 24px 32px 16px;
}
.gmp-news-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0 0 10px;
}
.gmp-news-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.gmp-news-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.gmp-news-date { font-size: 13px; color: var(--gray-400); }
.gmp-news-reading-time { font-size: 13px; color: var(--gray-400); }
.gmp-news-reading-time::before { content: '·'; margin-right: 10px; }

/* News body */
.gmp-news-body { padding: 20px 32px 24px !important; }
.gmp-news-body p:empty { display: none !important; }
.gmp-news-body > p:first-child br:first-child { display: none; }
.gmp-news-body > p:first-child:empty { display: none !important; }
.gmp-news-body title { display: none !important; }
.gmp-news-body h1, .gmp-news-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gray-200);
}
.gmp-news-body h1:first-child, .gmp-news-body h2:first-child { margin-top: 0; }

/* News Data Card (auto-injected IPO data) */
.gmp-news-data-card {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}
.gmp-news-data-row {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.gmp-news-data-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px 6px;
    border-right: 1px solid #dbeafe;
}
.gmp-news-data-item:last-child { border-right: none; }
.gmp-news-data-label { display: block; font-size: 10px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.gmp-news-data-value { display: block; font-size: 16px; font-weight: 800; color: var(--gray-900); }
.gmp-news-data-value.val-green { color: #16a34a; }
.gmp-news-data-value.val-red { color: #dc2626; }
.gmp-news-data-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dbeafe;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue) !important;
}

@media (max-width: 480px) {
    .gmp-news-data-row { flex-wrap: wrap; }
    .gmp-news-data-item { min-width: 33%; border-bottom: 1px solid #dbeafe; }
}

/* Highlighted numbers in news content */
.ipo-hl-money { color: #1e40af; font-weight: 700; }
.ipo-hl-pct { color: #166534; font-weight: 700; }

/* Related Posts */
.gmp-related-posts {
    padding: 20px 32px 24px;
    border-top: 1px solid var(--gray-200);
}
.gmp-related-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin: 0 0 14px; }
.gmp-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gmp-related-item {
    display: block;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.15s;
}
.gmp-related-item:hover { border-color: var(--blue); }
.gmp-related-item-title { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; line-height: 1.4; }
.gmp-related-item:hover .gmp-related-item-title { color: var(--blue); }
.gmp-related-item-date { font-size: 11px; color: var(--gray-400); }

@media (max-width: 768px) { .gmp-related-grid { grid-template-columns: 1fr; } }

/* News Tags */
.gmp-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.gmp-news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .gmp-news-header { padding: 16px 20px 12px; }
    .gmp-news-title { font-size: 20px; }
    .gmp-news-body { padding: 14px 20px 20px !important; }
}

/* IPO News Filters */
.ipo-news-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ipo-news-filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 1px solid var(--gray-200); border-radius: 24px; font-size: 13px; font-weight: 600; color: var(--gray-500); background: var(--white); cursor: pointer; transition: all 0.15s; text-decoration: none !important; font-family: 'Poppins', sans-serif; }
.ipo-news-filter-btn:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
.ipo-news-filter-btn.active { background: var(--blue); color: var(--white) !important; border-color: var(--blue); }
.ipo-news-filter-btn.active:hover { background: var(--blue-dark); }
.ipo-news-filter-count { background: rgba(255,255,255,0.25); padding: 1px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.ipo-news-filter-btn:not(.active) .ipo-news-filter-count { background: var(--gray-100); color: var(--gray-500); }

/* IPO News Pagination */
.ipo-news-pagination { display: flex; justify-content: center; gap: 4px; margin: 24px 0 8px; flex-wrap: wrap; }
.ipo-news-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gray-600); background: var(--white); text-decoration: none; transition: all 0.15s; }
.ipo-news-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.ipo-news-pagination .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.ipo-news-pagination .prev, .ipo-news-pagination .next { font-size: 12px; padding: 0 14px; }

/* IPO News Grid (all news page) */
.ipo-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}
.ipo-news-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.ipo-news-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(26,86,219,0.1);
}
.ipo-news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ipo-news-card-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.ipo-news-card-date {
    font-size: 12px;
    color: var(--gray-400);
}
.ipo-news-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.4;
}
.ipo-news-card:hover .ipo-news-card-title { color: var(--blue); }
.ipo-news-card-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.ipo-news-pagination {
    text-align: center;
    margin: 24px 0;
}
.ipo-news-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    margin: 0 2px;
}
.ipo-news-pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

@media (max-width: 768px) {
    .ipo-news-grid { grid-template-columns: 1fr; }
}

/* Sidebar Active IPOs (clean) */
.gmp-sidebar-ipo-list { display: flex; flex-direction: column; }
.gmp-sidebar-ipo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none !important;
    transition: background 0.15s;
}
.gmp-sidebar-ipo-item:hover { background: var(--gray-50); }
.gmp-sidebar-ipo-item:last-child { border-bottom: none; }
.gmp-sidebar-ipo-name { font-size: 13px; font-weight: 600; color: var(--gray-800); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmp-sidebar-ipo-item:hover .gmp-sidebar-ipo-name { color: var(--blue); }
.gmp-sidebar-ipo-info { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px; }
.gmp-sidebar-ipo-price { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.gmp-sidebar-ipo-type {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.gmp-sidebar-ipo-type-mainboard { background: #dbeafe; color: #1e40af; }
.gmp-sidebar-ipo-type-sme { background: #fef3c7; color: #92400e; }

/* Sidebar News */
.gmp-sidebar-news-list { display: flex; flex-direction: column; }
.gmp-sidebar-news-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none !important;
}
.gmp-sidebar-news-item:hover { background: var(--gray-50); }
.gmp-sidebar-news-item:last-child { border-bottom: none; }
.gmp-sidebar-news-title { font-size: 13px; font-weight: 600; color: var(--gray-800); line-height: 1.4; margin-bottom: 2px; }
.gmp-sidebar-news-item:hover .gmp-sidebar-news-title { color: var(--blue); }
.gmp-sidebar-news-date { font-size: 11px; color: var(--gray-400); }
.gmp-sidebar-news-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue) !important;
    border-top: 1px solid var(--gray-100);
}
.gmp-sidebar-news-all:hover { background: var(--gray-50); }

/* =====================================================
   Blog Post List (Archive/Category pages)
   ===================================================== */
.gmp-post-list { display: flex; flex-direction: column; gap: 0; }
.gmp-post-item {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: padding-left 0.15s;
}
.gmp-post-item:hover { padding-left: 8px; }
.gmp-post-item:last-child { border-bottom: none; }
.gmp-post-item-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.gmp-post-item:hover .gmp-post-item-title { color: var(--blue); }
.gmp-post-item-meta { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.gmp-post-item-excerpt { font-size: 13px; color: #64748b; line-height: 1.6; }

.gmp-pagination { margin-top: 20px; text-align: center; }
.gmp-pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.gmp-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}
.gmp-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.gmp-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* =====================================================
   Broker Affiliate Cards
   ===================================================== */
.ipo-broker-cards {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}
.ipo-broker-header {
    background: linear-gradient(135deg, #1a56db, #1e40af);
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.ipo-broker-card {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
    text-decoration: none !important;
}
.ipo-broker-card:hover { background: var(--gray-50); }
.ipo-broker-card:last-child { border-bottom: none; }
.ipo-broker-name { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.ipo-broker-tagline { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.ipo-broker-features { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; }
.ipo-broker-btn {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
}

/* Inline broker links */
.ipo-broker-inline {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--gray-600);
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ipo-broker-inline-link {
    font-weight: 600;
    font-size: 13px;
    padding: 2px 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Placeholder for admin */
.ipo-broker-placeholder { margin-bottom: 12px; }

/* =====================================================
   404 Page
   ===================================================== */
.gmp-404-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}
.gmp-404-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.15;
}
.gmp-404-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin: -30px 0 12px;
}
.gmp-404-text {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}
.gmp-404-search form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin: 0 auto 36px;
}
.gmp-404-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}
.gmp-404-input:focus { border-color: var(--blue); }
.gmp-404-btn {
    padding: 12px 24px;
    background: var(--blue);
    color: #fff;
    border: 2px solid var(--blue);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.gmp-404-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.gmp-404-links h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.gmp-404-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.gmp-404-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}
.gmp-404-card:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(26,86,219,0.1);
}
.gmp-404-icon { font-size: 22px; }

@media (max-width: 480px) {
    .gmp-404-code { font-size: 80px; }
    .gmp-404-title { font-size: 22px; margin-top: -20px; }
    .gmp-404-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Generic Page Template (Privacy, Disclaimer, Terms, etc.)
   ===================================================== */
.gmp-page-content {
    background: #f8fafc;
    min-height: 60vh;
    padding: 30px 0;
}

.gmp-page-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.gmp-page-main { min-width: 0; }

.gmp-page-sidebar {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Keep old class for backward compat */
.gmp-page-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.gmp-article {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.gmp-article-header {
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
    padding: 32px 40px;
    color: #fff;
}

.gmp-article-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
}

.gmp-article-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.gmp-article-body {
    padding: 36px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.gmp-article-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.gmp-article-body h2:first-child {
    margin-top: 0;
}

/* When header is hidden (calculators), remove extra top padding */
.gmp-article-body:first-child {
    padding-top: 24px;
}

.gmp-news-header + .gmp-article-body {
    padding-top: 36px;
}

.gmp-article-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 20px 0 8px;
}

.gmp-article-body p {
    margin: 0 0 14px;
    color: #475569;
}

.gmp-article-body ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.gmp-article-body li {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.7;
}

.gmp-article-body li strong {
    color: #1e293b;
}

.gmp-article-body a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.gmp-article-body a:hover {
    text-decoration: underline;
}

.gmp-article-body em {
    color: #64748b;
    font-size: 13px;
}

/* Calculator Styles */
.gmp-calc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.gmp-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.gmp-calc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.gmp-calc-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gmp-calc-field input:focus {
    border-color: #1a56db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.gmp-calc-results {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}
.gmp-calc-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
}
.gmp-calc-result-card {
    padding: 16px 10px;
    border-radius: 8px;
}
.gc-green { background: #f0fdf4; }
.gc-blue { background: #eff6ff; }
.gc-amber { background: #fefce8; }
.gc-pink { background: #fdf2f8; }
.gmp-calc-result-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.gmp-calc-result-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #166534;
}
.gmp-calc-summary {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .gmp-calc-grid { grid-template-columns: 1fr; }
    .gmp-calc-result-grid { grid-template-columns: 1fr 1fr; }
    .gmp-calc-result-value { font-size: 18px; }
}

@media (max-width: 1024px) {
    .gmp-page-grid { grid-template-columns: 1fr; }
    .gmp-page-sidebar { position: static; }
}

@media (max-width: 768px) {
    .gmp-page-grid { padding: 0 16px; }
    .gmp-page-inner { padding: 0 16px; }
    .gmp-article-header { padding: 24px 20px; }
    .gmp-article-title { font-size: 22px; }
    .gmp-article-body { padding: 20px 16px; font-size: 14px; }
    .gmp-article-body h2 { font-size: 18px; }
}

/* =====================================================
   MOBILE RESPONSIVENESS — Comprehensive Fixes
   ===================================================== */

@media (max-width: 768px) {
    /* --- Ensure no element breaks out of viewport --- */
    .gmp-homepage,
    .gmp-main-grid2,
    .gmp-main-left,
    .gmp-hero2,
    .gmp-section2,
    .gmp-calendar2,
    .gmp-status-row,
    .gmp-page-grid,
    .gmp-page-main { max-width: 100%; width: 100%; }

    /* --- Breadcrumb --- */
    .gmp-breadcrumb-inner { padding: 0 12px; }

    /* --- Ad slots --- */
    .gmp-ad-header-global,
    .gmp-ad-footer-global { padding: 6px 12px; }

    /* --- Homepage grid: force single column --- */
    .gmp-main-grid2 { grid-template-columns: 1fr !important; }

    /* --- Hero section --- */
    .gmp-hero2 { padding: 16px; flex-direction: column; }
    .gmp-hero2-left { width: 100%; min-width: 0; }
    .gmp-hero2-right { display: none !important; }
    .gmp-hero2-title { font-size: 18px; line-height: 1.3; }
    .gmp-hero2-sub { font-size: 13px; }
    .gmp-hero2-search { max-width: 100%; width: 100%; }
    .gmp-hero2-input { min-width: 0; width: 0; flex: 1; }
    .gmp-hero2-btn { padding: 0 16px; font-size: 13px; white-space: nowrap; }

    /* --- Section cards --- */
    .gmp-section2 { padding: 14px 12px; }

    /* --- Section header: wrap on mobile so title + actions don't overflow --- */
    .gmp-section2-header { flex-wrap: wrap; gap: 6px; }
    .gmp-section2-title { font-size: 14px; margin-bottom: 0; min-width: 0; flex: 1 1 100%; }
    .gmp-table-actions { flex-shrink: 0; }
    .gmp-see-all { font-size: 12px; flex-shrink: 0; }

    /* --- Calendar items --- */
    .gmp-cal2-item { gap: 10px; padding: 10px 12px; }
    .gmp-cal2-info { min-width: 0; flex: 1; overflow: hidden; }
    .gmp-cal2-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

    /* --- IPO table: horizontal scroll inside wrapper only --- */
    .ipo-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ipo-filter-btn { font-size: 11px; padding: 5px 11px; }

    /* --- Status cards --- */
    .gmp-status-row { gap: 8px; }

    /* --- Single IPO page --- */
    .gmp-single-ipo { padding: 0 12px; margin: 12px auto; }
    .ipo-detail-wrapper { overflow: hidden; max-width: 100%; }
    .ipo-gmp-highlight-box { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ipo-gmp-card { padding: 12px 10px; }
    .ipo-gmp-card-value { font-size: 20px; }
    .ipo-detail-header { padding: 16px; }
    .ipo-detail-title-row h1 { font-size: 18px; }
    .ipo-info-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .ipo-info-item { padding: 10px !important; }
    .ipo-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .ipo-gmp-chart-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

    /* --- News --- */
    .gmp-news-body { padding: 14px 16px 20px !important; }
    .gmp-news-header { padding: 16px; }

    /* --- Footer --- */
    .gmp-footer2 { padding: 24px 0 0; }
    .gmp-footer2-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
    /* --- Hero --- */
    .gmp-hero2 { padding: 12px; }
    .gmp-hero2-title { font-size: 16px; }
    .gmp-hero2-sub { font-size: 12px; margin-bottom: 12px; }
    .gmp-hero2-btn { padding: 0 14px; font-size: 12px; }
    .gmp-hero2-stats { gap: 6px; }

    /* --- Section --- */
    .gmp-section2 { padding: 12px 10px; }
    .gmp-section2-title { font-size: 13px; }
    .gmp-see-all { font-size: 11px; }

    /* --- Calendar item --- */
    .gmp-cal2-name { font-size: 12px; }
    .gmp-cal2-meta { font-size: 10px; }
    .ipo-badge { font-size: 9px; padding: 2px 7px; }
    .gmp-cal2-date { min-width: 38px; padding: 4px 8px; }

    /* --- Filter buttons --- */
    .ipo-filter-btn { font-size: 10px; padding: 4px 10px; }
    .ipo-table-filters { gap: 4px; }

    /* --- IPO detail cards --- */
    .ipo-gmp-highlight-box { gap: 6px; }
    .ipo-gmp-card-value { font-size: 18px; }
    .ipo-gmp-card-label { font-size: 10px; }

    /* --- Article body --- */
    .gmp-article-body { padding: 14px 12px; }
}
