/* Prevent horizontal scrolling */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Images */
img {
    max-width: 100%;
    
}

/* Tables */
table {
    max-width: 100%;
}

/* Form controls */
input,
select,
textarea,
button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile */
@media (max-width:768px) {

    table,
    tbody,
    tr,
    td,
    th {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    td {
        margin-bottom: 10px;
    }

    iframe {
        width: 100% !important;
    }
}

  /* Responsive Design */
 /* Mobile & Tablet Responsive Design */
@media (max-width: 768px) {

    .head-text {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .card-table {
        width: 100% !important;
        border-spacing: 10px;
        display: block;
    }

    .card-table tbody,
    .card-table tr {
        display: block;
        width: 100%;
    }

    .card-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 12px;
        padding: 18px 15px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 18px;
        text-align: center;

        /* Modern Glass Effect */
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);

        /* Better Shadow */
        box-shadow:
            0 4px 15px rgba(0,0,0,0.08),
            0 1px 3px rgba(0,0,0,0.06);

        transition: all .3s ease;
    }

    .card-table td:hover {
        transform: translateY(-4px);
    }

    .card-table a.main {
        display: block;
        width: 100%;
        padding: 5px;
        font-size: 15px;
        line-height: 1.5;
    }

    .error-label {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {

    .head-text {
        font-size: 16px;
        font-weight: 700;
    }

    .card-table td {
        padding: 16px 12px;
        font-size: 14px;
        border-width: 1px;
        border-radius: 15px;
    }

    .card-table a.main {
        font-size: 14px;
    }
}
 /* Responsive Design */
  @media (max-width: 768px) {
    .card-table {
      border-spacing: 15px;
    }

    .card-table td {
      font-size: 1rem;
      padding: 20px;
    }

    .head-text {
      font-size: 24px;
    }
  }
@media(max-width:768px){

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
