* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.main-nav a:hover {
    color: #3498db;
}

.language-switcher {
    margin-left: 20px;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.language-switcher a:hover {
    color: #3498db;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.weather-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 20px auto;
}

#search {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe6e9;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
}

.search-button {
    padding: 10px 15px;
    border: 1px solid #dfe6e9;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #2980b9;
}

.search-button i {
    font-size: 14px;
}

.weather-forecast {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #dfe6e9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.weather-forecast p {
    font-size: 16px;
    color: #333;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 20px auto;
}

.main-content {
    flex: 3;
}

.forecast-links {
    flex: 1;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.forecast-links h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.forecast-links ul {
    list-style: none;
}

.forecast-links li {
    margin-bottom: 10px;
}

.forecast-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

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

.forecast-links a.active {
    color: #2c3e50;
    font-weight: 600;
}

.current-weather {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
}

.current-weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.current-temp {
    font-size: 36px;
    font-weight: 600;
}

.feels-like {
    font-size: 16px;
    color: #555;
}

.weather-icon.large {
    width: 80px;
    height: 80px;
}

.current-weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.current-weather-details p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.astro-data {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.astro-data p {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forecast-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.daily-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.daily-forecast {
    background: #f0f4f8;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.forecast-item p {
    margin: 3px 0;
    font-size: 13px;
}

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

.hourly-forecast {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
}

.hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.hourly-item {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hourly-item p {
    margin: 5px 0;
    font-size: 12px;
}

.forecast-date, .hourly-time, .conditions, .temp, .tempmax, .tempmin, .humidity, .windspeed, .precipprob, .feelslike, .pressure, .cloudcover, .visibility, .dew, .sunrise, .sunset, .moonrise, .moonset {
    display: inline-block;
}

.related-locations {
    margin-top: 20px;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
}

.related-locations h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.related-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.related-location-link {
    display: block;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.related-location-link:hover {
    background: #e0e7ee;
}

.locations-container {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #dfe6e9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.region-column {
    display: flex;
    flex-direction: column;
}

.region-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 8px 16px;
    background: #3498db;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s;
}

.region-link:hover {
    background: #2980b9;
}

.districts-list {
    list-style: none;
}

.districts-list li {
    padding: 6px 0;
}

.district-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
}

.district-link:hover {
    text-decoration: underline;
}

.see-all {
    color: #f39c12;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.see-all:hover {
    color: #e67e22;
    text-decoration: underline;
}

.location-details {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #dfe6e9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sub-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.sub-location-link {
    display: block;
    padding: 10px;
    background: #f0f4f8;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.sub-location-link:hover {
    background: #e0e7ee;
}

footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 20px 0;
}

.footer-nav li {
    margin: 0 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #3498db;
}

footer p {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

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

    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        margin: 10px 0;
    }

    .footer-nav li {
        margin: 5px 0;
    }

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

    .locations-container {
        margin: 15px;
        padding: 15px;
    }

    .search-form {
        width: calc(100% - 30px);
    }

    .hourly-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .content-wrapper {
        flex-direction: column;
    }

    .forecast-links {
        margin-top: 20px;
    }

    .daily-forecast {
        max-width: 100%;
    }

    .daily-forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .current-weather-details {
        grid-template-columns: 1fr;
    }

    .related-locations-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .header-container {
        align-items: center;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 5px 0;
    }

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

    .region-link {
        font-size: 18px;
    }

    .district-link {
        font-size: 13px;
    }

    .search-form {
        width: calc(100% - 30px);
    }

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

    .current-temp {
        font-size: 28px;
    }

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

    .daily-forecast {
        max-width: 100%;
    }

    .daily-forecast-grid {
        grid-template-columns: 1fr;
    }

    .related-locations-grid {
        grid-template-columns: 1fr;
    }
}