/* Background */
body {
    background: #f9fafb;
    font-family: 'Poppins', sans-serif;
    color: #222;
}

/* Premium Card */
.premium-card {
    background: #fff !important;
    border-radius: 16px;
    padding: 25px;
    border-top: 6px solid #f4b400;

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.08),
        0 4px 10px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
}

/* Hover Lift (Soft 3D) */
.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.08);
}

/* Section Title */
.section-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

/* Yellow underline */
.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #f4b400;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Table */
.premium-table td {
    padding: 14px !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
}

/* Row Hover */
.premium-table tr:hover {
    background: #fff8e1;
    transition: 0.3s;
}

/* Button */
.btn-premium {
    background: #f4b400;
    color: #fff;
    border: none;
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: 500;

    box-shadow: 0 4px 0 #c49000;
    transition: all 0.2s ease;
}

/* Hover */
.btn-premium:hover {
    background: #ffca28;
    transform: translateY(-2px);
}

/* Click Press Effect */
.btn-premium:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #c49000;
}

/* Smooth Fade */
/* .premium-card {
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */
/* ============================= */
/* 1. Animated Yellow Line */
.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f4b400, #ffd54f, #f4b400);
    background-size: 200% auto;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
    animation: lineMove 3s linear infinite;
}

@keyframes lineMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}


/* ============================= */
/* 2. Card Border Glow Animation */
.premium-card {
    position: relative;
    overflow: visible;
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(120deg, transparent, #f4b400, transparent);
    background-size: 200% 200%;
    animation: borderGlow 4s linear infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

@keyframes borderGlow {
    0% { background-position: 0% }
    100% { background-position: 200% }
}


/* ============================= */
/* 3. Table Row Auto Animation */
.premium-table tbody tr {
    animation: fadeSlide 0.6s ease both;
}

/* .premium-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.premium-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.premium-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.premium-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.premium-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.premium-table tbody tr:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} */


/* ============================= */
/* 4. Soft Floating Animation */
/* .premium-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
} */


/* ============================= */
/* 5. Button Pulse Glow */
.btn-premium {
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.2; }
    100% { opacity: 0; transform: scale(1.3); }
}

/* Keep all text normal */
.premium-table td {
    text-align: left;
}

/* Only move button to right */
/* .premium-table td .btn-premium {
    float: right;
} */
 .premium-table td {
    position: relative;
}

.premium-table td .btn-premium {
    float: none;
}
.container,
.row,
.body-inner,
.premium-card {
    overflow: visible !important;
}
.btn-premium {
    text-decoration: none;
    display: inline-block; /* important for proper button look */
}
.btn-premium-2 {
    background: #f4b400;
    color: #fff;
    border: none;
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: 500;

    box-shadow: 0 4px 0 #c49000;
    transition: all 0.2s ease;
}

/* Hover */
.btn-premium-2:hover {
    background: #ffca28;
    transform: translateY(-2px);
}

/* Click Press Effect */
.btn-premium-2:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #c49000;
}
/* .premium-table td .btn-premium {
    float: ;
} */
.btn-premium {
    text-decoration: none;
    display: inline-block; /* important for proper button look */
}

/* Header */
.premium-table thead {
    background: #f4b400;
    color: #fff;
}

/* Table spacing */
.premium-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Align S.No center */
.premium-table td:first-child {
    /* text-align: center; */
    /* vertical-align: middle; */
    font-weight: 500;
}

/* Hover effect */
.premium-table tbody tr:hover {
    background: #fff8e1;
}
/* .premium-table td:last-child {
    text-align: right;
} */

.container-2{
max-width: 1200px
}
/* Force only this column to behave properly */
/* .btn-cell {
    width: 100%;
    display: block;
} */

/* Create internal flex layout */
.btn-cell {
   align-items: start;
}
.btn-align-left {
    display: flex;
    justify-content: flex-start; /* LEFT */
}

/* ============================= */
/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 992px) {

    .premium-card {
        padding: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .premium-table td {
        font-size: 14px;
        padding: 10px !important;
    }

    .btn-premium {
        padding: 5px 14px;
        font-size: 13px;
    }
}


/* Mobile */
@media (max-width: 768px) {

    /* Make table scrollable */
    .table-responsive {
        overflow-x: auto;
    }

    .premium-table {
        min-width: 700px; /* keeps layout intact */
    }

    /* Card spacing */
    .premium-card {
        padding: 15px;
    }

    /* Title smaller */
    .section-title {
        font-size: 16px;
    }

    /* Button fix */
    .premium-table td .btn-premium {
        float: none; /* remove right float */
    }

    /* Button alignment fix */
    .btn-align-left {
        justify-content: flex-start;
    }

    /* Stack multiple buttons */
    .btn-group-custom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 15px;
    }

    .premium-table td {
        font-size: 13px;
    }

    .btn-premium {
        font-size: 12px;
        padding: 4px 12px;
    }
}
@media (max-width: 768px) {
    .premium-table td .btn-premium {
        float: none;
    }
}

/* .table-wrapper {
    width: 100%;
    overflow-x: auto;
} */

/* Force horizontal scroll */
/* .premium-table {
    min-width: 1000px;
} */

/* Prevent text wrapping (IMPORTANT) */
/* ============================= */
/* FINAL SCROLL FIX */



/* Force table width */
/* .premium-table {
    min-width: 1200px; 
    border-collapse: collapse;
} */

/* Prevent wrapping so table expands */
/* ============================= */
/* DESKTOP: NO SCROLL */

.table-wrapper {
    overflow: hidden; /* ❌ hide scroll */
}

@media (max-width: 1086px) {
/* 
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    } */

    .table-wrapper table {
        width: max-content; 
    }

    /* .premium-table {
        min-width: 900px;
    } */

}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #f4b400;
    border-radius: 10px;
}
/* ============================= */
/* RESPONSIVE TABLE WITHOUT SCROLL */

@media (max-width: 768px) {

    /* Remove fixed width */
    .premium-table {
        min-width: 100% !important;
        width: 100%;
    }

    /* Allow text to wrap */
    .premium-table td {
        white-space: normal !important;
        word-break: break-word;
        font-size: 13px;
        padding: 10px !important;
        vertical-align: top;
    }

    /* Header text size */
    .premium-table thead th {
        font-size: 13px;
    }

    /* Reduce button size */
    .btn-premium {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 16px;
    }

    /* Align button properly */
    .premium-table td .btn-premium {
        display: inline-block;
        margin-top: 5px;
    }

    /* If multiple buttons */
    .btn-group-custom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

}
/* ============================= */
/* MOBILE PERFECT TABLE FIX */

@media (max-width: 768px) {

    .premium-table {
        width: 100%;
        table-layout: fixed; /* IMPORTANT */
    }

    .premium-table td,
    .premium-table th {
        font-size: 13px;
        padding: 8px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        vertical-align: top;
    }

    /* Column widths (IMPORTANT FIX) */
    .premium-table td:nth-child(1) {
        width: 8%;
    }

    .premium-table td:nth-child(2) {
        width: 62%;
    }

    .premium-table td:nth-child(3) {
        width: 30%;
    }

    /* Button fix */
    .premium-table td .btn-premium {
        display: inline-block;
        font-size: 12px;
        padding: 4px 10px;
        margin-top: 5px;
        white-space: nowrap; /* prevent hide */
    }

}

/* ============================= */
/* FINAL RESPONSIVE FIX (TABLET + MOBILE) */

@media (max-width: 1000px) {

    .premium-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .premium-table th,
    .premium-table td {
        padding: 8px !important;
        font-size: 13px;
        line-height: 1.4;
        vertical-align: top;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Column balance */
    .premium-table td:nth-child(1) {
        width: 10%;
    }

    .premium-table td:nth-child(2) {
        width: 60%;
    }

    .premium-table td:nth-child(3) {
        width: 30%;
        text-align: left;
    }

    /* Button fix */
    .premium-table td .btn-premium {
        display: inline-block;
        font-size: 12px;
        padding: 4px 10px;
        margin-top: 6px;
        white-space: nowrap;
    }

    /* Multiple buttons */
    .btn-group-custom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Remove forced widths */
    .premium-table,
    .table-wrapper table {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* No scroll */
    .table-wrapper {
        overflow: hidden !important;
    }

}