/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  min-height: 100%;
}

.blue-banner {
  background: #00274d !important;
  min-height: 80px;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  box-sizing: border-box; /* prevents overflow */
}

/* Header layout */
header {
  background-color: #ffffff;
  padding: 10px 20px;
  position: relative;
}

/* Main split nav */
.split-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-right: 35px !important;
  padding-left: 35px !important;
}

/* Left/Right nav sections */
.nav-left,
.nav-right {
  display: flex;
  gap: 15px;
}

/* Nav links */
.split-nav a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.split-nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  max-height: 234px;
  height: auto;
  width: auto;
}

/* Blue bar */
.blue-bar {
  background-color: #00274d;
  height: 8px;
  width: 100%;
}

/* Mobile Menu styles (initially hidden) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger img {
  width: 32px;
  height: 32px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
}

/* Hamburger button base */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

/* Size both icons the same */
.hamburger img {
  width: 32px;
  height: 32px;
}

/* Default: show hamburger, hide close */
.hamburger .icon-open {
  display: inline;
}

.hamburger .icon-close {
  display: none;
}

/* When menu is open, swap icons */
.mobile-menu.open + .hamburger .icon-open {
  display: none;
}

.mobile-menu.open + .hamburger .icon-close {
  display: inline;
}

.mobile-menu a {
  color: #000000;
  text-decoration: none;
  padding: 10px 0;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Show mobile menu when open */
.mobile-menu.open {
  display: flex;
}

/* Hero Section */
.hero {
  background-color: #f5f5f5;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  margin-top: 0;
  color: #00274d;
}

.hero p {
  font-size: 1.2em;
}

/* Content Section */
.content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Footer */
footer {
  background-color: #00274d;
  color: white;
  text-align: center;
  padding: 15px 10px;
  margin-top: 40px;
}

/* Compact desktop nav for tablets & mid-screens */
@media (min-width: 769px) and (max-width: 1600px) {
  .split-nav {
    flex-wrap: nowrap;     /* force single row */
    justify-content: space-between;
  }

  .logo-container img {
    max-height: 150px;     /* shrink logo so links fit */
    height: auto;
    width: auto;
  }

  .nav-left,
  .nav-right {
    gap: 10px;             /* tighter spacing */
    flex-wrap: nowrap;     /* no wrapping inside groups */
  }

  .split-nav a {
    padding: 6px 8px;      /* smaller padding */
    font-size: 0.9rem;     /* slightly smaller text */
    white-space: nowrap;   /* keep link labels on one line */
  }
}


/* Responsive for mobile */
@media (max-width: 768px) {
  .nav-left,
  .nav-right {
    display: none; /* hide split nav */
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo-container {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Contact page form */
.contact-section {
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #007BFF;
}

.submit-btn {
  background-color: #00274d; /* GOP Blue */
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #003580;
}


.subject-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.subject-option {
  position: relative;
  padding: 10px 18px;
  background-color: #e6e6e6;
  color: black;
  border: 0px solid transparent;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;
}

/* Hide default radio */
.subject-option input[type="radio"] {
  display: none;
}

/* Border has its own delayed transition */
.subject-option {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-width 0.25s ease 0.1s,  /* delay here */
    border-color 0.25s ease 0.1s,  /* delay here */
    box-shadow 0.3s ease,
    transform 0.15s ease;
}

/* Hover feedback */
.subject-option:hover {
  background-color: #dcdcdc;
}

/* Selected state */
.subject-option:has(input[type="radio"]:checked) {
  background-color: #b22234; /* GOP red */
  color: white;
  border-width: 3px;
  border-color: #3c3b6e; /* GOP blue */
  box-shadow: 0 0 10px rgba(60, 59, 110, 0.5);
  transform: scale(1.05);
}

/* Deselected state */
.subject-option input[type="radio"]:not(:checked) + * {
  background-color: #e6e6e6;
  color: black;
  border-width: 0px;
  border-color: transparent;
  box-shadow: none;
  transform: scale(1);
}

/* Desktop dropdown */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Submenu positioned directly below the parent link */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;        /* Places it immediately below the nav link */
  left: 50%;          /* Aligns the left edge of submenu with parent link */
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown-content a {
  color: #000;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile dropdown */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropbtn {
  font-weight: bold;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.mobile-dropdown-content a {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.mobile-dropdown.open .mobile-dropdown-content {
  display: flex;
}

.blue-bar1 {
  height: 2px;
  background-color: #00274d;
  margin: 50px auto; /* centers the bar */
  border-radius: 2px;
}

.quote-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px; /* space between quote and image */
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

.quote-block {
  flex: 1 1 60%; /* quote takes about 60% width */
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #222;
  text-align: left;
}

.quote-block span {
  font-weight: 700;
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: #0052cc;
}

.quote-image {
  flex: 0 0 35%;      /* about 35% width on desktop */
  max-width: 300px;   /* maximum width */
  max-height: 300px;  /* maximum height */
  width: 100%;        /* make it responsive within flex basis */
  height: auto;       /* maintain aspect ratio */
  border-radius: 8px;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .quote-container {
    flex-direction: column;
    text-align: center;
  }

  .quote-block {
    flex: none;
    width: 100%;
  }

  .quote-image {
    flex: none;
    width: 70%;
    margin-top: 20px;
  }
}
