* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #4a90a4 0%, #2d6b7a 100%);
    min-height: 100vh;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(180deg, #4a90a4 0%, #2d6b7a 100%);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.header-text {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.header-text h1 {
    color: #ffeb3b;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.header-text .tagline {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 5px;
}

.bus-image {
    display: flex;
    align-items: center;
}

.bus-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));
}

/* Service Title */
.service-title {
    background: #ffeb3b;
    padding: 10px 15px;
    text-align: center;
}

.service-title h2 {
    color: #d32f2f;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Schedule Tables */
.schedules {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #5a9fb3 0%, #4a8fa3 100%);
}

.schedule-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.table-header {
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    padding: 10px 12px;
}

.table-header h3 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

thead {
    background: #e8f5e9;
}

th {
    padding: 10px 8px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    border-bottom: 2px solid #c8e6c9;
    white-space: nowrap;
}

th.supervisor {
    background: #c8e6c9;
    color: #1b5e20;
}

td {
    padding: 10px 8px;
    font-size: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:nth-child(even) {
    background: #f5f5f5;
}

tbody tr:active {
    background: #c8e6c9;
}

td.phone {
    color: #1565c0;
    font-weight: 600;
    white-space: nowrap;
}

/* Note */
.note {
    background: linear-gradient(180deg, #5a9fb3 0%, #4a8fa3 100%);
    padding: 10px 15px;
    text-align: center;
}

.note p {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Counter Section */
.counter-section {
    padding: 10px;
    background: linear-gradient(180deg, #4a8fa3 0%, #3d7a8a 100%);
}

.counter-title {
    background: linear-gradient(135deg, #ff7043 0%, #e64a19 100%);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.counter-title h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.counter-item {
    padding: 12px 6px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.counter-item:active {
    transform: scale(0.95);
}

.counter-item.green {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

.counter-item.blue {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

.counter-item.red {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.counter-item .location {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.counter-item .number {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Footer Message */
.footer-message {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    padding: 12px 15px;
    text-align: center;
    margin: 10px;
    border-radius: 8px;
}

.footer-message p {
    color: #1a237e;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Website */
.website {
    background: #fff;
    padding: 12px 15px;
    text-align: center;
    margin: 0 10px 10px;
    border-radius: 8px;
}

.website a {
    color: #1565c0;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet */
@media (max-width: 900px) {
    .schedules {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .counter-item {
        padding: 14px 8px;
    }

    .counter-item .location {
        font-size: 0.9rem;
    }

    .counter-item .number {
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        gap: 8px;
    }

    .logo-img {
        height: 50px;
    }

    .bus-img {
        height: 60px;
    }

    .header-text {
        min-width: unset;
        width: 100%;
    }

    .header-text h1 {
        font-size: 1.4rem;
    }

    .header-text .tagline {
        font-size: 0.8rem;
    }

    
    .service-title {
        padding: 8px 10px;
    }

    .service-title h2 {
        font-size: 1rem;
    }

    .schedules {
        padding: 8px;
        gap: 10px;
    }

    .table-header {
        padding: 8px 10px;
    }

    .table-header h3 {
        font-size: 0.8rem;
    }

    th, td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .counter-item {
        padding: 15px 10px;
    }

    .counter-item .location {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .counter-item .number {
        font-size: 0.9rem;
    }

    .counter-title {
        padding: 8px 12px;
        border-radius: 15px;
    }

    .counter-title h2 {
        font-size: 1rem;
    }

    .note p {
        font-size: 0.8rem;
    }

    .footer-message {
        margin: 8px;
        padding: 10px 12px;
    }

    .footer-message p {
        font-size: 0.85rem;
    }

    .website {
        margin: 0 8px 8px;
        padding: 10px;
    }

    .website a {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .header-text h1 {
        font-size: 1.2rem;
    }

    .header-text .tagline {
        font-size: 0.75rem;
    }

    .service-title h2 {
        font-size: 0.9rem;
    }

    th, td {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .counter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .counter-item .location {
        font-size: 0.85rem;
    }

    .counter-item .number {
        font-size: 0.8rem;
    }

    .footer-message p {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .header {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .header-text {
        min-width: unset;
    }

    .counter-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .counter-item {
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    td.phone {
        padding: 12px 8px;
    }

    tbody tr {
        min-height: 44px;
    }
}
