/* body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} */



/* .hero-section {
    display: flex;
    align-items: flex-start !important;
    padding-top: 40px;
    position: relative;
    min-height: 100vh;
     background: url(../img/images/iaps-loginbg.jpg) no-repeat center bottom;
    background-size: cover;
    background-position: center;

    overflow: hidden;
    color: white;
} */

.mal {
    font-family: "Anek Malayalam", sans-serif !important;
}

.hero-section {
    display: flex;
    align-items: center !important;
    position: relative; /* Keep this relative */
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

/* Create a separate layer for the background */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes the image behind the text */
    
    /* Your background properties */
    background: url(../img/images/iaps-loginbg.webp) no-repeat center center;
    background-size: cover;
    
    /* The Rotation */
    /* transform: rotate(180deg); */
}
.container-station {
    width: 100%;
    position: relative;
    z-index: 2;
}

.header-top {
    margin-bottom: 30px !important;
}


/* .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}


.main-header.scrolled {
    padding: 10px 0;
    background: #000000a1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
} */
/* .main-content-area {
    padding-top: 100px;
} */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* Header state when scrolled */
.main-header.scrolled {
    padding: 10px 0;
    background: #000000a1; /* Semi-transparent black */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.header-logo {
    height: 60px;
    transition: height 0.4s ease;
}

.main-header.scrolled .header-logo {
    height: 45px;
}

/* Ensure Hero section doesn't hide behind the header */
.hero-section {
    padding-top: 80px !important; /* Adjust based on your header height */
    padding-bottom: 60px !important; /* Space for the fixed footer */
}
/* .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url(../img/images/iaps-loginbg.jpg) no-repeat center bottom;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
} */

.hero-section .container-station {
    position: relative;
    z-index: 2;
}

.stats-box {
    width: 100%;
    max-width: 524px;
    height: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-evenly;
    gap: 37px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 9px 0px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* This creates the visual space between h3 and p */
    gap: 10px;
}
.stat-item h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    text-transform: capitalize;
    color: #ffffff;
    margin-bottom: 0;
    display: block;
    text-align: center;
}
.stat-item p {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0%;
    font-style: normal;

    color: #ffffff;
    opacity: 1;

    margin-bottom: 0;
    margin-top: -8px;
}

.locator-card {
    width: 100%;
    max-width: 599px;
    height: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 40px !important;
    margin-top: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.locator-card h2 {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 400; 
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    font-style: normal;
    color: #6b6b6b;
    
    text-align: center;
    vertical-align: middle;
    margin-bottom: 24px !important;
    margin-top: 0;
}
.locator-card .text-danger {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 600; /* This represents SemiBold */
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0;
    
    /* Color using your variable with a fallback */
    color: #c62828 !important;
    
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    text-align: center;
    text-transform: uppercase; /* Kept from original, remove if not needed */
}
.form-select {
    border-radius: 10px;
    width: 100%;
}
.locator-card .form-label {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 500; 
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.48px;
    color: #2f2f2f !important;
    vertical-align: middle;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    leading-trim: none;
}

.locator-card .form-label span {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.48px;
    vertical-align: middle;
    text-transform: lowercase;
    leading-trim: none;
}
.btn-danger {
    background-color: #c62828;
    border: none;
}

.btn-danger:hover {
    background-color: #a51d1d;
}

.lang-switch {
    /* position: absolute;
    top: 40px;
    right: 50px;
    z-index: 10; */
}
/* Container to align both buttons */
.lang-switch {
    display: flex;
    gap: 8px; /* Space between icons */
}

/* Common styles for both boxes */

.btn-lang-custom {
    background: #ffffff;
    border: none;
    border-radius: 10px; /* Matched to Figma rounded corners */
    height: 42px; /* Fixed height for consistency */
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
}
.btn-home-icon {
    background: #ffffff !important;
    border: none!important;
    border-radius: 10px!important; 
    height: auto!important;
    padding: 0.5rem;
    text-decoration: none!important;
    transition: background 0.3s ease!important;
    cursor: pointer!important;
}

/* Home Icon Box - Specific square width */
/* .btn-home-icon {
    width: 42px;
} */

/* Language Switcher - Specific padding and color */
.btn-lang-custom {
    padding: 0 13px;
    width: auto; /* Let it grow with text */
    display: flex;
    gap: 11px;
    align-items: center;
}

.lang-text {
    color: #c62828;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

/* Hover State */
.btn-home-icon:hover, 
.btn-lang-custom:hover {
    background: #f8f9fa;
}

/* SVG Colors */
.btn-home-icon svg,
.btn-lang-custom svg:first-child {
    stroke: #20385e;
}
/* 
.btn-lang-custom {
    width: 100%;
    height: auto;
    background: #ffffff;
    border: none;
    border-radius: 8px;

    padding: 9px 13px;
    display: flex;
    gap: 11px;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-lang-custom:hover {
    background: #f8f9fa;
}

.lang-text {
    color: #c62828;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
 
}

.btn-lang-custom svg:first-child {
    stroke: #20385e;
} */
.main-container {
    margin-top: 1rem;
}

.hero-section h1.display-3 {
    /* font-family: "Sora", sans-serif; */
    font-weight: 700;
    font-size: 70px;
    line-height: 72px;
    letter-spacing: -0.04em;
    text-transform: capitalize;
    color: #ffffff;

    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .hero-section h1.display-3 {
        font-size: 48px;
        line-height: 52px;
    }
}
.hero-section p.lead {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0%;
    color: #ffffff;
    opacity: 0.75;

    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 600px;
}

.custom-input-box {
    /* Exact Figma Dimensions & Background */
    width: 100%;
    height: 48px; 
    background-color: #f5f5f5 !important;
    border: none !important;
    border-radius: 10px;

    /* Typography */
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #6b6b6b;

    /* Alignment & Spacing */
    padding: 12px 16px;
    vertical-align: middle;
    letter-spacing: 0%;
    
    /* Remove default styling and dropdown icon */
    outline: none;
}

/* Style for the placeholder text */
.custom-input-box::placeholder {
    color: #6b6b6b;
    opacity: 0.8;
}

.custom-input-box:disabled {
    color: #6b6b6b;
    background-color: #eeeeee !important; /* Slightly darker to show it is disabled */
}

.input-container {
    position: relative;
    width: 100%;
    height: 48px;
}

.custom-input-box {
    width: 100%;
    height: 48px; 
    background-color: #f5f5f5 !important;
    border: none !important;
    border-radius: 10px;
    padding: 12px 45px 12px 16px; /* Extra right padding so text doesn't hit the icon */
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6b6b6b;
    outline: none;
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px; 
    opacity: 0.6;
    margin: 0;
    padding: 0;
    display: block;
}

.btn-search-custom {
    width: 100%;
    max-width: 274px; /* Updated width */
    height: 50px;     /* Updated height */
    background-color: rgba(56, 50, 120, 1) !important; /* New Purple Background */
    border: none;
    border-radius: 10px;
    opacity: 1;
    
    /* Typography */
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px auto 0 auto;
    
    /* Animation */
    transition: background 0.3s ease, transform 0.1s ease;
    
    /* Rotation (Angle 0 deg) */
    transform: rotate(0deg);
}

/* Optional: Add a hover effect for better UX */
.btn-search-custom:hover {
    background-color: rgba(46, 40, 100, 1) !important;
}

.btn-search-custom:active {
    transform: scale(0.98);
}

.btn-search-custom span {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.3px;
    font-style: normal;

    text-align: center;
    vertical-align: middle;
    display: inline-block;

    color: #ffffff;
}

.btn-search-custom svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-bottom: 1px;
}

.locator-card .help-text {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #949494;
    margin-top: 24px !important;
    text-align: center;
}

.locator-card .help-text a {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 600;
    color: #20385e;
    text-decoration: none;
    margin-left: 4px;
}

.locator-card .help-text a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .header-top {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        margin-bottom: 20px !important;
        padding: 0 15px;
    }

    .logo-area img {
        height: 45px !important;
    }

    .btn-lang-custom {
        /* width: 110px; */
        height: 32px;
        padding: 5px 8px;
        gap: 6px;
    }

    .btn-lang-custom svg:first-child {
        width: 16px;
        height: 16px;
    }

    .lang-text {
        font-size: 12px;
    }

    .btn-lang-custom svg:last-child {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .logo-area img {
        height: 38px !important;
    }
}

.btn-lang-custom.is-english .lang-text {
    color: #20385e;
}

.btn-lang-custom.is-active svg:last-child {
    transform: rotate(180deg);
}

.btn-lang-custom svg {
    transition:
        transform 0.3s ease,
        stroke 0.3s ease;
}

@media (max-width: 768px) {
    .stats-box {
        max-width: 450px;
        height: 85px;
        gap: 20px;
    }

    .stat-item h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .stat-item p {
        font-size: 14px;
    }
}

.locator-card {
    margin-bottom: 2rem;
}
@media (max-width: 576px) {
    .stats-box {
        max-width: 100%;
        height: auto;
        padding: 15px 10px;
        gap: 10px;
        justify-content: space-between;
    }

    .stats-box .vr {
        display: none;
    }

    .stat-item {
        flex: 1;
        text-align: center;
        align-items: center;
    }

    .stat-item h2 {
        font-size: 22px;
        line-height: 1;
    }

    .stat-item p {
        font-size: 12px;
    }
}

.footer-powered {
    /* font-family: "DM Sans", sans-serif; */
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0%;

    color: #6b6b6b !important;
    vertical-align: middle;
    text-align: center;

    margin: 0;
}

@media (max-width: 768px) {
    .footer-powered {
        font-size: 14px;
        line-height: 14px;
    }
}

.footer-logos {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.footer-logo-group img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .footer-logos {
        position: relative;
        padding: 20px 0 !important;
    }

    .footer-logo-group {
        gap: 25px !important;
    }

    .footer-logo-group img {
        height: 32px;
    }

    .footer-powered {
        margin-top: 10px !important;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-logo-group {
        gap: 15px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-logo-group img {
        height: 28px;
    }
}

.nearby-stations-wrapper {
    border-top: 1px dashed #dee2e6 !important;
}

.station-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    color: #20385e;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.station-pill:hover {
    background-color: #ffffff;
    border-color: #c62828;
    color: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(198, 40, 40, 0.1);
}

.station-pill.highlight {
    background-color: #eef4ff;
    border-color: #d0e1ff;
    color: #0056b3;
}

.station-pill.highlight:hover {
    background-color: #0056b3;
    color: #fff;
}
/* Layout Container */
.captcha-container {
    display: flex;
    /* align-items: center; */
    gap: 12px; 
    width: 100%;
}


.captcha-input {
    flex: 1; 
    min-width: 0;
}

/* Captcha Image Styling */
.captcha-image-box {
    height: 48px;
    /* border-radius: 10px; */
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
}

.captcha-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Refresh Icon Styling */
.refresh-icon-box {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: transform 0.2s ease;
}

.refresh-icon-box:active {
    transform: rotate(90deg);
}

.refresh-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0;
}

.error-text-msg {
    font-family: "DM Sans", sans-serif;
    font-weight: 400; /* Regular */
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    color: #c62828;
    vertical-align: middle;

    leading-trim: none;
}

/* 
.refresh-icon {
    width: 18px; 
    height: 18px;
    filter: invert(21%) sepia(87%) saturate(3474%) hue-rotate(346deg) brightness(85%) contrast(93%);
} */

.error-container {
    gap: 8px; /* Adds a small space between icon and text */
}


.card-grid-container {
    gap: 24px;
    padding: 20px;
}

.custom-ui-card {
    width: 393px;
    height: 363px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: rotate(0deg);
}

/* Image section with relative positioning for the icon */

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 236px; /* 212px height + 12px top + 12px bottom */
}

.card-image-wrapper img {
    position: absolute;
    width: 369px;
    height: 212px;
    top: 12px;
    left: 12px;
    
    border-radius: 16px;
    opacity: 1;
    transform: rotate(0deg);
    object-fit: cover; /* Ensures the image doesn't stretch */
}

/* Responsive adjustment for mobile */
@media (max-width: 420px) {
    .card-image-wrapper img {
        width: calc(100% - 24px); /* Scales image if screen is narrower than 369px */
        height: auto;
        aspect-ratio: 369 / 212;
    }
}
.main-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Slightly smaller radius for inner image */
}

/* The red icon box that overlaps the image and text */
.floating-icon-box {
    position: absolute;
    /* Keeps the overlapping position between image and text */
    bottom: -25px; 
    left: 28px;
    
    /* Exact Dimensions */
    width: 50px;
    height: 50px;
    background-color: #c62828;
    border-radius: 6px; /* Updated radius */
    
    /* Display & Center */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: rotate(0deg);
    
    /* Shadow for depth */
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.3);
    z-index: 2; /* Ensures it stays above the text section */
}
.floating-icon-box img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icons white */
}

/* Text Section */
.card-content {
    padding: 35px 30px 20px 30px;
    flex-grow: 1;
}

.card-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #20385e;
    margin-bottom: 8px;
}

.card-desc {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}



@media (max-width: 768px) {
    .card-grid-container {
        gap: 40px; 
        padding: 15px;
    }

    .custom-ui-card {
        width: 100%;    
        max-width: 400px;
        height: auto; 
        margin: 0 auto;
    }

    .card-content {
        padding: 40px 20px 25px 20px; 
    }

    .card-title {
        font-size: 18px; 
    }
}


@media (max-width: 480px) {
    .card-image-wrapper {
        height: 180px; 
    }
    
    .floating-icon-box {
        left: 20px; 
        width: 42px;
        height: 42px;
    }
}

.logout-text {
    font-family: 'Inter', sans-serif; 
    font-weight: 400;               
    font-size: 14px;                 
    line-height: 100%;              
    letter-spacing: 0em;             
    color: #c62828;                 
    
    
}

.logout-btn svg {
    stroke: #3F3D89; 
}
.logout-btn{

    width: 100%;
    max-width: 125px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    
    /* Spacing */
    padding: 7px 13px; 
    
    /* Appearance */
    background: #ffffff;
    border: none;
    border-radius: 8px;
    opacity: 1;
    
    /* Transitions & Interaction */
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    
    /* Angle / Rotation */
    transform: rotate(0deg); 
}




.table-white-container {
    margin-top: 3rem;
    background: #ffffff;
    border-radius: 30px 30px 0 0; 
    padding: 40px;
    margin-bottom: 0; 
    box-shadow: 0px -5px 25px rgba(0, 0, 0, 0.05);
    height: 70vh;
    /* Change: Remove min-height and use flex-grow if needed */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    position: relative;
}
.table-white-container-official {
    margin-top: 10rem;
    background: #ffffff;
    border-radius: 30px 30px 0 0; 
    /* padding: 40px; */
    margin-bottom: 0; 
    box-shadow: 0px -5px 25px rgba(0, 0, 0, 0.05);
    /* height: 100vh; */
    /* Change: Remove min-height and use flex-grow if needed */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    position: relative;
 padding: 60px 30px 30px 30px; /* Top padding increased to make room for the slider */


}
/* Tablet and Small Laptops (under 992px) */
@media (max-width: 991.98px) {
    .table-white-container-official {
        margin-top: 6rem; /* Reduced space from top */
        padding: 40px 20px 20px 20px;
        height: auto; /* Let content determine height */
        min-height: 100vh;
        border-radius: 20px 20px 0 0;
    }
}

/* Standard Mobile Devices (under 768px) */
@media (max-width: 767.98px) {
    .table-white-container-official {
        margin-top: 5rem; /* Further reduced for small screens */
        padding: 30px 15px 80px 15px; /* Extra bottom padding to clear fixed footer */
        height: auto;
        border-radius: 15px 15px 0 0;
    }

    /* Fix the Slider for Mobile */
    .card-slider-wrapper {
        padding: 0 10px;
    }

    .info-card {
        min-width: 260px; /* Smaller cards so they don't overflow */
        padding: 15px;
    }

    /* Force Table Horizontal Scroll */
    .table-responsive {
        border: 0;
        margin-bottom: 0;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    /* Ensure table doesn't squish too small to read */
    .custom-data-table {
        min-width: 600px; 
    }
}

/* Small Mobile Devices (under 480px) */
@media (max-width: 480px) {
    .portal-filter-bar {
        flex-direction: column; /* Stack filters vertically */
        align-items: stretch;
    }

    .filter-select, .search-wrapper {
        width: 100%;
    }

    .header-logo {
        height: 35px; /* Smaller logo for more space */
    }

    .logout-text {
        display: none; /* Hide text, keep icon to save header space */
    }
}
/* Add this to create the gap above the fixed footer */
.main-content-area {
    /* Adjust 100px to be the height of your footer + the gap you want */
    /* padding-bottom: 120px;  */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.hero-section, .container-station {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* Adjust the table to sit nicely inside */
/* Container to handle the rounded corners and border */


.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

/* Header Styling */
.custom-data-table thead th {
    background-color: #C62828; /* The red from your image */
    color: #ffffff;
    font-weight: 500;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #B71C1C;
    border-right: 1px solid #cbcbcb; /* Light separator for headers */
}

/* Remove right border on last header cell */
.custom-data-table thead th:last-child {
    border-right: none;
}

/* Body Styling */
.custom-data-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #cbcbcb;
    border-right: 1px solid #cbcbcb;
    color: #444;
    font-size: 14px;
    vertical-align: middle;
}

/* Remove right border on the last column cells */
.custom-data-table tbody td:last-child {
    border-right: none;
}

/* Remove bottom border on the last row to keep it clean */
.custom-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Icons Styling */
.actions-cell {
    display: flex;
    gap: 15px;
    justify-content: center; /* Centered like in the image */
    align-items: center;
}

.actions-cell img {
    width: 20px;
    height: auto;
    transition: transform 0.2s;
}

.actions-cell a:hover img {
    transform: scale(1.1);
}


.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Body Styling Update */
.custom-data-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #cbcbcb;
    border-right: 1px solid #cbcbcb;
    color: #444;
    font-size: 14px;
    vertical-align: middle;
    /* Ensure the cell takes up the full row height */
    height: 100%; 
}

/* Action Icons Styling Update */
.actions-cell {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    /* This ensures the flex container fills the TD height */
    min-height: 100%; 
    height: 100%;
    box-sizing: border-box;
}

/* Specific fix for Mobile Responsive View */
/* 1. Ensure the container allows horizontal scrolling instead of breaking the layout */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    /* Force the table to maintain layout even on small screens */
    table-layout: fixed; 
    min-width: 600px; /* Adjust this to the minimum width where the table looks good */
}

/* 2. Standardize Header and Cell heights */
.custom-data-table thead th{
    padding: 15px 20px;
    border-bottom: 1px solid #cbcbcb;
    border-right: 1px solid #cbcbcb;
    color: #ffffff;
    font-size: 14px;
    vertical-align: middle;
    /* Ensure height is consistent across all cells in a row */
    height: 50px; 
    box-sizing: border-box;
}
.custom-data-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #cbcbcb;
    border-right: 1px solid #cbcbcb;
    color: #6b6b6b;
    font-size: 14px;
    vertical-align: middle;
    /* Ensure height is consistent across all cells in a row */
    height: 50px; 
    box-sizing: border-box;
}

/* 3. Fix the Actions Cell */
.actions-cell {
    /* Use flexbox inside the cell, but keep vertical-align middle on the td */
    display: flex !important; 
    gap: 15px;
    justify-content: center;
    align-items: center;
    height: 100%; /* Fill the td height */
    border-right: none; /* If it's the last cell */
}

/* 4. Fix for Mobile - Preventing "Block" View */
@media screen and (max-width: 768px) {
    .custom-data-table {
        display: table; /* Force it to stay a table */
    }
    .custom-data-table tr {
        display: table-row;
    }
    .custom-data-table td, .custom-data-table th {
        display: table-cell; /* Prevent the 'block' or 'label' behavior */
        white-space: nowrap; /* Prevents text wrapping from stretching row height */
    }
    
    /* Ensure the "Books" column can wrap if it's too long, 
       while others stay tight */
    .custom-data-table td:nth-child(2) {
        white-space: normal;
        word-break: break-word;
    }
}

/* Container styling to match Screenshot 2026-05-09 161510.png */
.portal-white-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

/* Table Wrapper for Horizontal Scroll on Mobile */
.portal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #eee;
}

.data-portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Forces row view on mobile */
    table-layout: fixed; /* Ensures consistent column widths */
}

/* Header Styling */
.data-portal-table thead th {
    background-color: #C62828; /* Red from Screenshot 2026-05-09 161510.png */
    color: #ffffff;
    padding: 15px;
    font-size: 14px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Body Cell Styling */
.data-portal-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: middle; /* Keeps all cells aligned even with long text */
    font-size: 13px;
    color: #555;
    word-wrap: break-word;
}

/* Action Cell specific to the red download icon */
.portal-actions-cell {
    text-align: center;
    width: 80px;
}

.portal-actions-cell img {
    width: 20px;
    height: auto;
    /* This filter makes a black SVG appear Red to match the figma */
    filter: invert(21%) sepia(100%) saturate(3500%) hue-rotate(345deg) brightness(95%) contrast(90%);
}

/* Filters Styling */
.portal-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-item, .search-wrapper input {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
}

/* Force Table Behavior on Mobile */
@media (max-width: 768px) {
    .data-portal-table {
        display: table !important; /* Prevents stacked/block view */
    }
    .data-portal-table tr {
        display: table-row !important;
    }
    .data-portal-table td {
        display: table-cell !important;
    }
}



/* --- Slider Styling --- */
.card-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 45px;
    justify-content: center;
}

.card-slider {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
}
.card-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 40px;
    padding: 12px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    justify-content: center;
}
card-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.card-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.card-slider::-webkit-scrollbar { display: none; } /* Hide scrollbar */

.info-card {
    /* Dimensions */
    width: 246px;
    height: 174px;
    flex-shrink: 0; 
    
  
    border-radius: 24px;
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    border: 1px solid #f0f0f0; 
    
    /* Shadow */
    box-shadow: 0px -0.82px 21px 0px rgba(0, 0, 0, 0.08);
    

    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
 
    margin: 0;
    overflow: hidden; 
}

.card-title {
  
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500; 
    color: #383278;
    
    /* Layout & Alignment */
    display: block;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    
   
    line-height: 100%; 
    letter-spacing: 0px;
    margin-bottom: 8px; 
    
    
    line-height-step: 0; 
}

.card-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; 
    
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #c62828;
    margin-bottom: 12px;
}
.card-date {
    text-transform: none; 
    letter-spacing: 0.2px;
}
.info-card p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-style: normal; 
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0;
    color: #6b6b6b;
    
}
.slider-nav {
    position: absolute;
    width: 47px;
    height: 47px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(224, 224, 224, 1);
    border-radius: 50%;
    box-shadow: 0px 1.18px 40px 0px rgba(0, 0, 0, 0.08);
    
    /* Perfect Centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    z-index: 15;
    outline: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-nav.prev { 
    left: -23px; 
    color: #c62828;

    font-size: 32px; 

 
}

.slider-nav.next { 
    right: -23px; 
    color: #c62828;
 
    font-size: 32px; 


}


.slider-nav:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Optional: Hover Effect */
.slider-nav:hover {
    background: #f8f8f8;
    box-shadow: 0px 4px 45px 0px rgba(0, 0, 0, 0.12);
}

/* --- Filter Bar Adjustment --- */
.portal-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    margin-top: 2rem; /* Reduced because padding-top on parent handles space */
}

.filter-select {
    background-color: #EBEBEB;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    color: #666;
    flex: 1;
    min-width: 180px;
}

.search-wrapper {
    position: relative;
    flex: 2;
    min-width: 250px;
}

.search-wrapper input {
    width: 100%;
    background-color: #EBEBEB;
    border: none;
    border-radius: 10px;
    padding: 12px 45px 12px 15px;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
}

/* --- Table Adjustments --- */
.custom-data-table thead th {
    background-color: #C62828;
    text-transform: none; /* Matches Figma's clean look */
    font-weight: 400;
}

.red-icon {
    filter: invert(21%) sepia(100%) saturate(3500%) hue-rotate(345deg) brightness(95%) contrast(90%);
}
.slider-container {
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%; 
    z-index: 10;
    margin-top: 0 !important;
}

select.custom-select-ui {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(../img/images/chevron-right.svg);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px auto;
    padding-right: 40px;
    background-color: #f1f1f1 !important;
}
.custom-select-ui, .search-group-ui input {
    background-color: #f1f1f1 !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 32.41px;
    letter-spacing: 0%;
    color: #505050 !important;
    padding: 10px 15px;
    width: 100%;
    display: block;
    outline: none;
}

.custom-tender-table {
    border-radius: 15px !important;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
}

.custom-tender-table thead th {
    background-color: #c62828 !important; 
    color: white;
    font-weight: 500;
    text-align: center;
    border: none;
    padding: 15px;
}

.custom-tender-table tbody td {
    padding: 10px 15px;
    color: #555;
    border-color: #eee;
    font-size: 14px;
}



.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 15px;
    position: relative;
    margin-bottom: 20px;
}


.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #c62828;
    border-radius: 10px;
}


.custom-tender-table {
    min-width: 900px; 
    margin-bottom: 0;
}


.custom-tender-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-tender-table tbody tr:hover {
    background-color: #fff8f8;
}


.action-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-icons a {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.action-icons a:hover {
    transform: scale(1.2) rotate(5deg);
}

.small-text {
    line-height: 1.6;
    color: #666;
}


.action-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 18px;
}

.action-icons a {
    color: #777;
    transition: color 0.3s;
}

.action-icons a:hover {
    color: #c62828;
}


.btn-nav {
    background: transparent;
    border: none;
    color: #2b2a6d;
    font-weight: 600;
}

.custom-table-pagination .page-num {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1f1f1;
    cursor: pointer;
}

.custom-table-pagination .page-num.active {
    background: #c62828 !important;
    color: white;
}

.custom-tender-table, 
.custom-tender-table th, 
.custom-tender-table td {
    border: 1px solid #dee2e6 !important;
}


.custom-tender-table thead th {
    border-bottom-width: 1px;
}


.action-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}


.action-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}


.action-icons a:hover {
    background-color: #f0f4ff; 
    transform: translateY(-3px) scale(1.1); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
}


.action-icons a:hover img {
    filter: brightness(1.2); 
}


.action-icons a:active {
    transform: translateY(0) scale(0.95); 
}

.custom-table-pagination .dots {
    color: #000000;
    font-weight: bold;
    padding: 0 5px;
    align-self: center;
    user-select: none;
}

@media (max-width: 440px) {
    .captcha-container {
        flex-wrap: wrap !important;
    }
    .captcha-input {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 0 100% !important;
        margin-bottom: 10px;
    }
}