@charset "utf-8";

/* Base Styles */
body {
  background: #f2f2f2;
  color: #000;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.header {
  padding: 5px 0;
  margin: 0 5px;
  color: #fff;
  background: #003366; /* Changed to professional dark navy */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.header a {
  text-decoration: none;
  color: #fff;
}

.header a:link,
.header a:visited {
  color: #fff;
  text-decoration: none;
}

/* Box */
.box {
  background: #FFFFFF;
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
}

/* Titles */
.title {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

/* Content Block */
.cont {
  background-color: #e6f0fa; /* Light professional blue tone */
  width: 30%;
  display: inline-block;
  margin: 10px 0;
  border-radius: 5px;
}

.context {
  padding: 10px 0;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

/* Paragraph */
p {
  overflow-x: hidden;
  line-height: 1.5;
}

/* Buttons */
.btn {
  border: none;
  color: #fff;
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  margin: 2px;
  border-radius: 25px;
}

.btn-2 {
  border: none;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 2px;
  border-radius: 25px;
}

/* Button Color Variations */
.green {
  background-color: #27ae60;
}
.green:hover {
  background-color: #2ecc71;
}

.red {
  background-color: #c0392b;
}
.red:hover {
  background-color: #e74c3c;
}

.pur {
  background-color: #8e44ad;
}
.pur:hover {
  background-color: #9b59b6;
}

.gree {
  background-color: #16a085;
}
.gree:hover {
  background-color: #1abc9c;
}

.pink {
  background-color: #e91e63;
}
.pink:hover {
  background-color: #ec407a;
}

.org {
  background-color: #e67e22;
}
.org:hover {
  background-color: #d35400;
}

.darkblue {
  background-color: #2C3E50;
}
.darkblue:hover {
  background-color: #34495e;
}

/* Links */
a {
  text-decoration: none;
  color: #003366; /* Matching professional dark navy */
  font-weight: 600;
  overflow-wrap: break-word;
}
a:link,
a:visited {
  color: #003366;
  text-decoration: none;
}

/* About Text */
.about {
  font-size: 15px;
  margin: 0;
  padding: 0 10px 10px 10px;
}

/* Text Alignment */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left !important;
}

/* Responsive Images */
.responsive-img {
  max-width: 100%;
  height: auto;
}

/* Responsive Blocks */
.responsive-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.responsive-blocks .block {
  flex: 1 1 calc(20% - 20px);
  background-color: #f2f2f2;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: center;
}
@media (max-width: 768px) {
  .responsive-blocks .block {
    flex: 1 1 calc(50% - 25px);
  }
}
@media (max-width: 480px) {
  .responsive-blocks .block {
    flex: 1 1 100%;
  }
}

/* Table Styling */
table {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 0;
  border-width: 1px 0 0 1px;
}
th {
  text-align: left;
  font-weight: 600;
  color: #fff;
  padding: 8px;
  background-color: #003366; /* Updated for consistency */
}
td {
  text-align: left;
  font-weight: 600;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Headings */
h1 {
  font-size: 28px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
h2 {
  font-size: 22px;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 5px;
}
h3 {
  font-size: 20px;
  margin: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Images */
img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
@media (min-width: 768px) {
  img {
    width: 90%;
  }
}
@media (min-width: 768px) {
  .title {
    font-size: 35px;
  }
}
@media (min-width: 768px) {
  h2 {
    font-size: 28px;
  }
}
@media (max-width: 767px) {
  img {
    width: 90%;
  }
}

/* Highlight Box */
.highlight-box {
  background-color: #FFEBD6;
  border: 2px solid #C50202;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.highlight-box h2 {
  margin-bottom: 10px;
  color: #C50202;
  font-weight: 600;
  font-size: 20px;
}

/* District Select */
.district-select {
  width: 80%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 18px;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.district-select:focus {
  border-color: #ff944d;
  outline: none;
}

/* Cookie Consent */
#cookieConsent {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  display: none;
  z-index: 1000;
}
#cookieConsent button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
}

/* Search Container */
.search-container {
  margin: 5px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.search-container .gcse-search {
  width: 100%;
}

/* Header Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #003366; /* Updated header color */
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.header-left {
  flex: 1;
}
.header-right {
  display: flex;
  align-items: center;
}
.nav-toggle {
  display: none;
  font-size: 25px;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  margin: 0;
  font-size: 15px;
  background-color: #2C3E50; /* Updated nav item background */
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}
.nav-menu li:hover {
  background-color: #34495e; /* Updated hover effect */
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #077aa2;
    padding: 10px;
    border-radius: 5px;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
/* Calculator Styles */
.calc-tabs {
  display: flex;
  margin-bottom: 10px;
}

.calc-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.calc-tabs button.active,
.calc-tabs button:hover {
  background: #0066cc;
  color: #fff;
}

.calc-content {
  display: none;
}

.calc-content.active {
  display: block;
}

.calculator {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.display-input {
  width: 100%;
  padding: 15px;
  font-size: 2rem;
  font-weight: bold;
  text-align: right;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.buttons button {
  padding: 15px;
  font-size: 1rem;
  border: none;
  background: #0066cc;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Operator Buttons Styling */
.buttons button.operator {
  background: #ffcc00;
  color: #333;
}

.buttons button.cancel {
  background: #e74c3c;
  color: #fff;
}

.buttons button.equal {
  background: #27ae60;
  color: #fff;
}

.buttons button:hover {
  background: #003366;
}
/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease;
}

#scrollToTop:hover {
  background: #003366;
}