/* =============================================
   IPO MASTER STYLESHEET - Consolidated
   ============================================= */

:root {
    --gold: #cf9c0a;
    --gold-light: #fdf3d0;
    --gold-hover: #b8870a;
    --blue: #273158;
    --blue-mid: #3a4b85;
    --blue-light: #e8ecf8;
    --dark: #181d38;
    --light: #E9F9FF;
    --white: #ffffff;
    --gray-bg: #f8f9fc;
    --border: #e2e6ef;
    --text-muted: #6b7280;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(39,49,88,0.08);
    --shadow-md: 0 6px 24px rgba(39,49,88,0.12);
    --shadow-lg: 0 12px 40px rgba(39,49,88,0.16);
}

/* =============================================
   GLOBAL STYLES
   ============================================= */
* { box-sizing: border-box; }

body {
    background: var(--gray-bg);
    font-family: 'Heebo', sans-serif;
}

/* =============================================
   HERO SECTION
   ============================================= */
.ipo-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 55%, var(--blue-mid) 100%);
    padding: 60px 24px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 0 0 20px 20px;
}

.ipo-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border: 2px solid rgba(207,156,10,0.18);
    border-radius: 50%;
}

.ipo-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 160px; height: 160px;
    border: 2px solid rgba(207,156,10,0.12);
    border-radius: 50%;
}

.ipo-hero-inner { position: relative; z-index: 2; }

.ipo-hero-badge {
    display: inline-block;
    background: rgba(207,156,10,0.18);
    color: #f5c842;
    border: 1px solid rgba(207,156,10,0.35);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ipo-hero h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.ipo-hero h1 span { color: #f5c842; }

.ipo-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.ipo-hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-gold {
    background: var(--gold);
    color: var(--white) !important;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
}

.btn-hero-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white) !important;
    border: 1.5px solid rgba(255,255,255,0.45);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
}

.btn-hero-outline:hover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
}

/* =============================================
   SEARCH CONTAINER
   ============================================= */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e6ef;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
}

.search-btn-custom {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn-custom:hover {
    background: var(--gold);
}

/* =============================================
   LEGEND BAR
   ============================================= */
.legend-bar {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 30px;
    background: var(--white);
    border-radius: 50px;    
    border: 1px solid var(--border);
    margin: 0 auto 30px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-upcoming { background: #fef08a; border: 1px solid #d4cb35; }
.dot-ongoing  { background: #86efac; border: 1px solid #3dbb4a; }
.dot-closed   { background: #7dd3fc; border: 1px solid #43a9cc; }

/* =============================================
   SECTION HEADING & INFO SECTIONS
   ============================================= */
.section-heading, .info-section-head {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-heading .label, .info-section .label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.section-heading h2, .info-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    margin: 0 0 15px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-heading h2::after, .info-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
}

.section-heading p, .info-section p.sub-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* =============================================
   IPO TABLE CARD
   ============================================= */
.ipo-table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ipo-table-card-header {
    background: var(--blue);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipo-table-card-header i {
    color: var(--gold);
    font-size: 18px;
}

.ipo-table-card-header span {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.ipo-table-card-footer {
    padding: 16px;
    text-align: center;
    background: rgba(248, 249, 252, 0.5);
    border-top: 1px solid var(--border);
    margin-top: auto; 
}

.ipo-tbl { width: 100%; border-collapse: collapse; margin-bottom: 0; }

.ipo-tbl thead tr { background: rgba(39,49,88,0.04); }

.ipo-tbl thead th {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ipo-tbl tbody td {
    padding: 15px 18px;
    font-size: 15px;
    border-bottom: 1px solid rgba(226,230,239,0.6);
    vertical-align: middle;
}

.ipo-tbl tbody tr:last-child td { border-bottom: none; }

/* Row Status Colors */
.row-upcoming { background: rgba(254,240,138,0.12); }
.row-upcoming:hover { background: rgba(254,240,138,0.22); }
.row-ongoing  { background: rgba(134,239,172,0.10); }
.row-ongoing:hover  { background: rgba(134,239,172,0.20); }
.row-closed   { background: rgba(125,211,252,0.08); }
.row-closed:hover   { background: rgba(125,211,252,0.15); }

/* =============================================
   COMPANY NAME & LINKS
   ============================================= */
.company-name-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.company-link {
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.15s;
    margin: 0;
}

.company-link:hover { color: var(--gold); text-decoration: underline; }

/* =============================================
   BADGES & TAGS
   ============================================= */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin: 0;
}

.badge-upcoming { background: rgba(254,240,138,0.5); color: #7a6b00; border: 1px solid #d4cb35; }
.badge-ongoing  { background: rgba(134,239,172,0.4); color: #1a6b25; border: 1px solid #3dbb4a; }
.badge-open     { background: rgba(134,239,172,0.4); color: #1a6b25; border: 1px solid #3dbb4a; }
.badge-closed   { background: rgba(125,211,252,0.35); color: #0c5a8a; border: 1px solid #43a9cc; }

.pill-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    margin: 0;
}

.pill-danger  { background: #ef4444; color: #fff; }
.pill-warn    { background: rgba(207,156,10,0.2); color: #7a5200; border: 1px solid rgba(207,156,10,0.4); }

.action-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.action-btn:hover { opacity: 0.85; }
.action-apply  { background: var(--blue); color: #fff !important; }
.action-allot  { background: #00abe9; color: #fff !important; }

.date-cell { font-size: 14px; color: var(--text-muted); white-space: nowrap; }

/* =============================================
   PROSPECTUS & DRHP
   ============================================= */
.drhp-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.drhp-link:hover { opacity: 0.85; }
.link-drhp { background: var(--blue-light); color: var(--blue) !important; border: 1px solid #c8d0e8; }
.link-rhp  { background: #e1f5ee; color: #0f6e56 !important; border: 1px solid #9fe1cb; }

/* =============================================
   INFO SECTIONS (Detailed Content)
   ============================================= */
.info-section { 
    margin-top: 70px; 
    margin-bottom: 40px;
}

.info-section h2 { 
    text-align: center;
    display: block;
}

.info-section > p { 
    font-size: 16px; 
    color: #4b5563; 
    line-height: 1.8; 
    margin-bottom: 25px; 
    text-align: center;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

/* Align Left Modifier */
.info-section.align-left h2 { text-align: left; display: block; }
.info-section.align-left h2::after { left: 0; transform: none; }
.info-section.align-left > p, 
.info-section.align-left .sub-text,
.info-section.align-left h4,
.info-section.align-left ul,
.info-section.align-left li { text-align: left; margin-left: 0; }

.info-section.align-left .popular-list { justify-content: start; }

.info-light-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin: 25px 0;
    text-align: left;
}

.info-light-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.info-light-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #4b5563;
}

.info-light-card li strong {
    color: var(--dark);
}

.comparison-table-wrap { background: #fff; border-radius: 15px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { background: var(--blue); color: #fff; padding: 16px; text-align: left; font-weight: 700; border-right: 1px solid rgba(255,255,255,0.1); }
.comparison-table td { padding: 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); color: #374151; font-size: 15px; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:last-child, .comparison-table th:last-child { border-right: none; }
.comparison-table tr:nth-child(even) { background: #f9fafb; }

.process-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }
.process-step { background: #fff; padding: 25px 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center; position: relative; transition: transform 0.3s ease; box-shadow: var(--shadow-sm); }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-step .step-num { width: 45px; height: 45px; background: var(--gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-weight: 800; font-size: 18px; }
.process-step p { margin: 0; font-weight: 600; color: var(--dark); font-size: 14px; line-height: 1.5; }

.popular-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; justify-content: center; }
.popular-list li { background: #fff; padding: 16px 20px; border-radius: 10px; border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--dark); font-size: 15px; }
.popular-list li i { color: var(--gold); font-size: 18px; }

.risk-warning { background: #fff1f2; border: 1px solid #fecaca; padding: 20px; border-radius: 12px; margin: 30px auto 0; display: flex; gap: 15px; align-items: flex-start; max-width: 800px; }
.risk-warning i { color: #e11d48; font-size: 24px; margin-top: 2px; }
.risk-warning p { margin: 0; color: #991b1b; font-weight: 600; font-size: 15px; text-align: left; }

.cta-banner { background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%); padding: 50px 30px; border-radius: 20px; text-align: center; color: #fff; margin: 60px 0; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.cta-banner h2 { color: #fff; font-size: 30px; margin-bottom: 15px; font-family: 'Nunito', sans-serif; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 30px; }
.cta-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn { padding: 12px 32px; border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.btn-white { background: #fff; color: var(--blue) !important; }
.btn-gold { background: var(--gold); color: #fff !important; border: none; }

/* =============================================
   MASTER FINANCIAL FUTURE SECTION (CFS)
   ============================================= */
.cfs-section-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #E9F9FF 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 15px;
}

.cfs-container { max-width: 1200px; margin: 0 auto; width: 100%; }

.cfs-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }

.cfs-title { color: #181d38; font-size: 36px; font-weight: 700; margin: 0 0 15px 0; line-height: 1.2; }

.cfs-title span { color: #273158; }

.cfs-subtitle { color: #666; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.cfs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.cfs-card-link { text-decoration: none; color: inherit; display: block; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.cfs-card-link:focus { outline: 2px solid #273158; outline-offset: 2px; border-radius: 12px; }

.cfs-card { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 40px 25px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(24,29,56,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid rgba(0,0,0,0.02); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
    height: 100%; 
}

.cfs-card-link:hover .cfs-card { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(24,29,56,0.1); }

.cfs-card-link:active .cfs-card { transform: translateY(-2px); }

.cfs-icon-box { 
    width: 70px; 
    height: 70px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 25px; 
    position: relative; 
    background: #ffffff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

.cfs-icon-box svg { width: 32px; height: 32px; fill: white; }

.cfs-card-link:nth-child(odd) .cfs-icon-box { background-color: #273158; box-shadow: 0 8px 20px rgba(39,49,88,0.3); }
.cfs-card-link:nth-child(even) .cfs-icon-box { background-color: #cf9c0a; box-shadow: 0 8px 20px rgba(207,156,10,0.3); }

.cfs-card-title { color: #181d38; font-size: 18px; font-weight: 700; margin-bottom: 15px; }

.cfs-card-text { color: #777; font-size: 14px; line-height: 1.6; margin: 0; }

/* =============================================
   ACCORDION & FAQ SECTION
   ============================================= */
.accordion-item { border: none; margin-bottom: 15px; border-radius: 10px !important; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.accordion-button { color: #273158; font-weight: 600; background-color: #ffffff; border-left: 5px solid #cf9c0a; box-shadow: none !important; }

.accordion-button:not(.collapsed) { color: #ffffff; background-color: #273158; border-left: 5px solid #cf9c0a; }

.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }

.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,.125); }

.accordion-body { background-color: #ffffff; color: #181d38; font-weight: 500; border-top: 1px solid #dee2e6; }

.faq-section-wrapper {
    background: var(--light);
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-explore {
    background-color: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 600;
    padding: 10px 24px;
    transition: 0.3s;
    text-decoration: none !important;
    display: inline-block;
    margin: 5px;
}

.btn-explore:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #ffffff !important;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 1200px) {
    .cfs-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
    .ipo-tbl thead th { font-size: 13px; padding: 12px; }
    .ipo-tbl tbody td { font-size: 14px; padding: 12px; }
    .company-link { font-size: 15px; }
    .cfs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .cfs-title { font-size: 32px; }
}

@media (max-width: 768px) {
    .ipo-hero h1 { font-size: 28px; }
    .ipo-hero p { font-size: 15px; }
    .ipo-tbl thead th { font-size: 11px; padding: 10px; }
    .ipo-tbl tbody td { font-size: 13px; padding: 10px; }
    .info-section h2 { font-size: 24px; }
    .cta-banner h2 { font-size: 24px; }
    .search-container { flex-direction: column; border-radius: 15px; padding: 10px; }
    .search-input { text-align: center; padding: 10px; }
    .adsbygoogle, div[align="center"] .adsbygoogle, .ad-container-responsive .adsbygoogle { display: none !important; }
}

@media (max-width: 576px) {
    .ipo-hero { padding: 40px 15px; border-radius: 0; }
    .ipo-hero h1 { font-size: 24px; }
    .ipo-tbl thead th { font-size: 10px; padding: 8px; }
    .ipo-tbl tbody td { font-size: 12px; padding: 8px; }
    .status-badge { font-size: 10px; padding: 4px 8px; }
    .cfs-section-wrapper { padding: 40px 15px; }
    .cfs-grid { grid-template-columns: 1fr; gap: 20px; }
    .cfs-title { font-size: 26px; }
    .cfs-card { padding: 30px 20px; }
    .cfs-icon-box { width: 60px; height: 60px; }
    .cfs-card-title { font-size: 16px; }
    .cfs-card-text { font-size: 13px; }
}
