/* Core Variables & Reset */
:root {
    --primary-blue: #0D5B7A;
    --accent-orange: #f37021;
    --light-bg: #ffffff;
    --text-dark: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Big Header with Brand Colors */
.main-header {
    background: var(--primary-blue);
    color: white;
    padding: 80px 20px;
    
    /* Force centering using Flexbox */
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;     /* Vertical centering */
    text-align: center;
    
    border-bottom: 8px solid var(--accent-orange);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%; /* Ensure it spans full width */
}

.header-overlay {
    width: 100%; /* Ensure the inner div also stays centered */
}

.main-header h1 {
    font-size: 3rem;
    margin: 0; /* Remove default margins that might push it off-center */
    text-transform: uppercase;
    display: block;
    width: 100%;
}

.main-header p {
    font-weight: 300;
    opacity: 0.9;
    margin-top: 10px;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: -40px auto 40px;
    padding: 0 20px;
    margin-top: 40px !important;
}

.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Table Styling */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table thead {
    background-color: var(--primary-blue);
    color: white;
}

.responsive-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.responsive-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

/* Special Cell Formatting */
.sno-cell {
    font-weight: bold;
    color: #a0aec0;
}

.date-cell {
    white-space: nowrap;
    font-size: 0.95rem;
}

.highlight-date {
    color: var(--accent-orange);
    font-weight: 700;
}

.tender-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.tender-link:hover {
    color: var(--accent-orange);
    transform: translateX(3px);
}

/* Mobile Responsiveness (Stacked Table) */
@media screen and (max-width: 768px) {
    .main-header h1 { font-size: 2rem; }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tr {
        display: block;
        border-bottom: 2px solid #edf2f7;
        padding: 10px 0;
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        border: none;
    }
    
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--primary-blue);
        margin-right: 10px;
    }
}