body {
  display: block;
}

.numerology-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(to right, #001a33, #002b2b);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #ffd700; /* Optional for golden glow */
}

.form-group input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.calculate-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.calculate-button:hover {
    background-color: #0056b3;
}

.error-messages {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.numerology-result {
    margin-top: 10px;
}

.grid-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Adjust spacing between grids */
}

.grid-item {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.grid-table {
    width: 100%; /* Full width within grid-item */
    border-collapse: collapse;
    margin: 0;
}

.grid-table td {
    width: 33.33%; /* Equal column widths */
    border: 1px solid #ffcc00; /* Consistent with vedic-grid */
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.numerology-table .spacer-row {
    height: 20px; /* Adjust space height as needed */
}

.numerology-table .spacer-row td {
    padding: 0;
    border: none;
}

.vedic-grid, .lo-shu-grid {
    font-size: 14px; /* Adjust as needed */
}

.vedic-grid td, .lo-shu-grid td {
    border: 1px solid #ffcc00;
    padding: 10px;
    text-align: center;
}

.whatsapp-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

/* Center the Your Mobile Numerology Results heading */
.numerology-result .card-text.h3 {
    text-align: center;
    color: #ffd700;
}

/* Center the Original Number, Modified Number, and Single Digit Sum */
.dob-table p {
    text-align: left;
    color: #f8f8f8;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin: 10px 0;
}

/* Vedic Grid Table */
.grid-table.vedic-grid {
    border-collapse: collapse;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    background: #000033;
    color: #ffcc00;
    font-family: 'Cinzel', serif;
    border: 1px solid #ffcc00;
}

.grid-table.vedic-grid td,
.grid-table.vedic-grid th {
    border: 1px solid #ffcc00;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
}

.grid-table.vedic-grid tr {
    background: rgba(255, 204, 0, 0.1);
}

/* Two-Digit and Position Significance Tables */
.numerology-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
    margin: 10px auto;
    background: #000033;
    color: #f8f8f8;
    font-family: 'Cinzel', serif;
    border: 1px solid #ffcc00;
}

.numerology-table th,
.numerology-table td {
    border: 1px solid #ffcc00;
    padding: 8px;
    text-align: left;
    font-size: 1rem;
    word-wrap: break-word; /* Ensure text wraps */
    white-space: normal; /* Allow wrapping for long text */
}

.numerology-table .table-header {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    font-weight: bold;
}

.numerology-table tr {
    background: rgba(255, 204, 0, 0.1);
}



/* Highlight for Most Repeated Number */
.highlight {
    font-weight: bold;
    color: #ffcc00;
}

/* Table wrapper for horizontal scrolling on mobile */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: 0;
    padding: 0;
}

/* Ensure tables are scrollable and maintain structure */
.numerology-table, .grid-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .numerology-container {
        padding: 1rem; /* Reduce padding on smaller screens */
    }

    .grid-table.vedic-grid,
    .numerology-table {
        font-size: 0.9rem;
        min-width: 500px; /* Ensure table structure is maintained */
    }

    .grid-table.vedic-grid td,
    .numerology-table td {
        padding: 6px;
    }

    .table-wrapper {
        margin: 0 -10px; /* Adjust for container padding */
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        flex-direction: column;
        align-items: center;
    }

    .grid-item {
        width: 100%; /* Stack grids on small screens */
    }

    .grid-table.vedic-grid,
    .numerology-table {
        font-size: 0.8rem;
        min-width: 400px; /* Adjusted for smaller screens */
    }

    .grid-table.vedic-grid td,
    .numerology-table td {
        padding: 4px;
    }
}



.header-logo img {
  max-height: 90px;
}

.overlay {
  padding: 10px 10px;
}


.header-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-item: center;
   
}

.header-container .overlay h1 {
  font-size: 1.8rem;
  color: gold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  font-weight: 600;
  margin: 0 0 5px 0; /* Adds 10px of space below h1 */

}

.header-container .overlay h2 {
  font-size: 1.0rem;
  color: white;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  font-weight: 400;
  margin: 0;
}

.expertise p {
  color: var(--white);
   font-size: 1.0rem;
}

.card-description {
    font-size: 1.1em;
    line-height: 1.5;
    color: #f8f8f8;
    background: #333;
    padding: 15px;
    border-radius: 5px;
}
