.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 15px; /* Space between widgets */
    width: 100%;
    padding: 20px;
    background-color: #f0f8ff; /* A light blue background */
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width:700px) {
  body.homepage .weather-details-grid {
    grid-template-columns: 1fr;
}
  	.weather-grid {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
}
@media (max-width:500px) {
  	.forecast-grid {
    display: block !important;
    
}
    .forecast-day {
    padding: 1rem;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}
  .weather-search-container #weather-search-result {
    margin: 0px -20px;
}
}

@media (max-width:320px) {
.weather-grid {
    padding: 0px;
}
  .weather-search-container #weather-search-result {
    margin: 0px -34px;
}
}

.weather-widget-small {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.weather-widget-small h5 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.weather-icon-small {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.weather-temp-small {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}

.weather-search-container{
    width: 80%;
    margin: 0 auto;
}

.weather-search-container #weather-button {
    background-color: var(--navy-blue);
}

.weather-search-container #weather-button:hover {
    transform: scale(1.03);
    filter: brightness(1.3);
}

.weather-search-container #weather-search-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0px;
    width: 100%;
    padding: 50px 0;
    background-color: #f0f8ff;
  margin: 0px -16px;
 
    border-radius: 8px;
    box-sizing: border-box;
}

.weather-box {
    background: #f0f8ff;
  	max-width: 80%;
  	margin: 0 auto;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
  	align-content: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba #0000000d (0, 0, 0, 0.05);
}


.weather-widget {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba #0000000d (0, 0, 0, 0.05);
}

h3.weather-search-title {
    text-align: center;
    font-size: 1.5rem;
    padding-top: 3.5rem;
}

/* --- Comprehensive Weather Widget Styles --- */
.weather-widget {
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    width: 100%; /* Or whatever width you prefer */
    margin: 0 auto;
}

.weather-widget h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon {
    width: 60px;
    height: 60px;
}

.weather-temp {
    font-size: 2.5em;
    font-weight: bold;
    margin-left: 10px;
    color: ver(--sky-blue);
}

.weather-description {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1em;
    color: #666;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 0;
}

.detail-item {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 25px;
  	border: 1px solid var(--old-gold);
}

.detail-item .label {
  	text-align: center;
    display: block;
    font-size: 0.8em;
    color: #555;
    font-weight: bold;
}

.detail-item .value {
  	text-align: center;
    display: block;
    font-size: 1.1em;
    color: var(--navy-blue);
    font-weight: bold;
}

.forecast-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.forecast-day {
    text-align: center;
    flex: 1;
    border-right: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
}

.day-name {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.day-icon {
    width: 40px;
    height: 40px;
    margin: 2px auto;
}

.day-temp {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--navy-blue);
}