/* ===========================================
   File 5: assets/css/style.css
   Purpose: Global responsive styling
   =========================================== */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px;
}

.logo img {
  height: 50px;
}

.search-bar form {
  display: flex;
  align-items: center;
}

.search-bar input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 250px;
}

.search-bar button {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 9px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

.main-nav a {
  font-weight: 600;
}

.ad-top-strip, .ad-footer {
  text-align: center;
  margin: 15px 0;
}

/* Homepage Layout */
.banner-section {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.banner-section h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.banner-section p {
  font-size: 1.1rem;
}

/* Scrolling States Sections */
.scroll-section {
  white-space: nowrap;
  overflow-x: auto;
  padding: 20px;
  background: #fafafa;
}

.scroll-section img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
}

.scroll-section::-webkit-scrollbar {
  display: none;
}

/* District Boxes */
.box-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.district-box {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.district-box h3 {
  color: #004080;
  margin-bottom: 10px;
}

.district-box ul {
  list-style: none;
}

.district-box li {
  margin: 5px 0;
}

/* Footer */
.site-footer {
  background: #222;
  color: #ddd;
  padding: 40px 20px 10px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  width: 22%;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 10px;
}

.footer-col h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding-top: 10px;
  color: #aaa;
}

@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .search-bar input {
    width: 180px;
  }

  .district-box {
    width: 90%;
  }
}
