* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background-color: #0d47a1;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #ffca28;
    padding-bottom: 3px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
}

.search-box button {
    border: none;
    background: #ffca28;
    padding: 8px 12px;
    cursor: pointer;
}

/* Hero Section */
.hero-weather {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.main-card {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.date-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.main-weather-body {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.temp-big {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sun-icon {
    font-size: 55px;
    color: #ffca28;
}

.temp-big h1 {
    font-size: 55px;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    font-size: 20px;
}

.detail-item span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Hourly */
.hourly-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hourly-box h3 {
    margin-bottom: 15px;
    color: #1565c0;
}

.hourly-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Section Blocks */
.section-block {
    margin-top: 35px;
}

.section-header {
    margin-bottom: 15px;
    color: #0d47a1;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.region-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s;
    cursor: pointer;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.region-card i {
    font-size: 28px;
    color: #f57c00;
    margin: 10px 0;
}

.region-card span {
    display: block;
    font-weight: bold;
    color: #1565c0;
}

/* Table */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.weather-table {
    width: 100%;
    border-collapse: collapse;
}

.weather-table th, .weather-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.weather-table th {
    background: #e3f2fd;
    color: #0d47a1;
}

.text-yellow { color: #f57c00; }
.temp-high { color: #d32f2f; font-weight: bold; }
.temp-low { color: #1976d2; }

/* Footer */
.footer {
    background: #111827;
    color: #9ca3af;
    margin-top: 50px;
    padding-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}