body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
}

form {
    display: flex;
    gap: 10px;
    position: relative;
}

input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
}

button {
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
}

hr {
    margin: 25px 0;
}

table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background: #f0f0f0;
}

.error {
    margin-top: 20px;
    color: red;
}

/* AUTOSUGGEST UI */
#suggestions {
    position: absolute;
    top: 45px;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
}

#suggestions div {
    padding: 8px;
    cursor: pointer;
}

#suggestions div:hover,
#suggestions .active {
    background: #f0f0f0;
}
/* ---------- FOOTER ---------- */
/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: 60px;
    padding: 25px 15px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.04);
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    color: #6b7280;
    font-size: 13px;
}


.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    font-size: 16px;
}


/* ===== Postal Banner ===== */
.postal-banner {
    background: linear-gradient(135deg, #f4f7fb, #ffffff);
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.banner-content {
    text-align: center;
}

.postal-badge {
    display: inline-block;
    background-color: #c62828; /* India Post red */
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.postal-banner h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #1a237e; /* Deep blue */
}

.postal-banner p {
    color: #555;
    font-size: 15px;
}

/* Improve overall typography */
body {
    background-color: #f8f9fb;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.states-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.states-section h2 {
    margin-bottom: 15px;
    font-size: 20px;
}

.states-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.states-list a {
    text-decoration: none;
    color: #0a3d62;
    font-weight: 500;
}

.states-list a:hover {
    text-decoration: underline;
}
/* ===========================
   PAGINATION STYLES
   =========================== */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background: #fff;
}

.pagination a:hover {
    background: #f1f5f9;
}

.pagination .active {
    background: #0b3c5d;
    color: #fff;
    border-color: #0b3c5d;
    font-weight: bold;
}
/* ===== PINCODE TABLE ===== */

.pincode-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 15px;
}

.pincode-table thead th {
    background: #0b3c5d;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pincode-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

/* Zebra striping */
.pincode-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}

/* Hover effect */
.pincode-table tbody tr:hover {
    background: #eef5ff;
}

/* Column widths */
.pincode-table th:nth-child(1),
.pincode-table td:nth-child(1) {
    width: 30%;
}

.pincode-table th:nth-child(2),
.pincode-table td:nth-child(2) {
    width: 25%;
}

.pincode-table th:nth-child(3),
.pincode-table td:nth-child(3) {
    width: 25%;
}

.pincode-table th:nth-child(4),
.pincode-table td:nth-child(4) {
    width: 20%;
    text-align: center;
    font-weight: bold;
}

/* Pincode emphasis */
.pincode {
    font-family: monospace;
    letter-spacing: 1px;
}
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-weight: bold;
}

.or-separator::before,
.or-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.or-separator::before {
    margin-right: 10px;
}

.or-separator::after {
    margin-left: 10px;
}

/* ===============================
   MODERN HERO SECTION
   =============================== */

.hero {
    background: linear-gradient(135deg, #eef3ff, #f9fbff);
    padding: 80px 20px 40px;
}

.hero-card {
    max-width: 900px;
    margin: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: fadeUp 0.9s ease-out;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 10px;
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 16px;
    color: #555;
}

/* ===============================
   SEARCH CARD ENHANCEMENT
   =============================== */

.container {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Inputs */
input {
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.25s ease;
}

input:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 4px rgba(63, 81, 181, 0.15);
    outline: none;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #3949ab, #1e88e5);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(30, 136, 229, 0.35);
}

/* ===============================
   STATE LINKS
   =============================== */

.states-section {
    margin-top: 30px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
}

.states-list a {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.25s ease;
}

.states-list a:hover {
    background: #eef3ff;
    transform: translateY(-2px);
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 0 rgba(63, 81, 181, 0.2);
    }
    to {
        text-shadow: 0 0 15px rgba(63, 81, 181, 0.45);
    }
}

/* Fix spacing below place search input */
.place-form {
    margin-top: 20px;
    margin-bottom: 40px;
}

.place-form + hr {
    margin-top: 50px;   /* move line downward */
}

/* ===== SKELETON LOADER ===== */
.skeleton {
    margin: 30px 0;
}

.skeleton-row {
    height: 18px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #eeeeee 25%,
        #dddddd 37%,
        #eeeeee 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.hidden {
    display: none;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

    .hero {
        padding: 50px 15px 30px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .search-card {
        padding: 20px;
        margin-bottom: 40px;
    }

    form {
        flex-direction: column;
        gap: 12px;
    }

    button {
        width: 100%;
    }

    .or-separator {
        margin: 25px 0;
    }

    .states-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== SEARCH FLOATING CARD ===== */
.search-card {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    animation: fadeUp 0.8s ease;
}

/* ===== DARK MODE ===== */
/*
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e5e7eb;
    }

    .container {
        background: #020617;
        box-shadow: none;
    }

    table, th, td {
        border-color: #1e293b;
    }

    th {
        background: #020617;
        color: #e5e7eb;
    }

    td {
        color: #e5e7eb;
    }

    .breadcrumb a {
        color: #60a5fa;
    }

    mark {
        background: #facc15;
        color: #000;
    }
}
*/
/* ===== BREADCRUMB / HOME LINK ===== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: #6b7280;
}

/* highlight search ==== */
mark {
    background: #fff3b0;
    color: #000;
    padding: 2px 4px;
    border-radius: 4px;
}


/* ===== Responsive Views ===== */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Mobile cards */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .pincode-card {
      background: #ffffff;
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 14px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.08);
      animation: fadeUp 0.4s ease;
  }

  .pincode-card div {
      margin-bottom: 6px;
      font-size: 14px;
  }

  .card-pincode {
      margin-top: 10px;
      font-size: 18px;
      font-weight: bold;
      color: #1e40af;
  }
}

