html, body {
  margin: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

hr {
  width: 50%;
  border-bottom: 1px solid black;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1em;
  margin: 0 0 1em 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: none;
  border: none;
  font-family: "Oswald", sans-serif;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.75em;
  line-height: 1.5em;
  text-decoration: none;
  border: none;
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 0;
}

h3 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h4 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h5 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h6 {
  font-size: 0.7em;
  line-height: 1.5em;
}

body {
  width: 100%;
}

/* =========================
   Banner
========================= */
#banner {
  position: relative;
  width: 100%;
  height: 75vh;
  background:  no-repeat center center;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

/* Slideshow container */
#banner .slideshow {
  position: absolute; /* instead of relative */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* make sure slides sit behind content */
}

/* Each slide */
#banner .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

/* Active slide */
#banner .slide.active {
  opacity: 1;
}


.banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.banner-content {
  flex: 0 0 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
  z-index: 1;
  margin: auto;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 4rem;
  line-height: 1.2;
  margin: 0 auto 1rem auto;
}

.banner-content .subtitle {
  font-size: 1.5rem;
  margin: 2rem auto 1rem auto;
  font-weight: 550;
}

/* Apply Button */
.apply-button .button {
  background-color: #fff;
  color: #2E5A88;
  border: 1px solid #2E5A88;
  border-radius: .25rem;
  text-shadow: none;
}

.apply-button .button:hover {
  transform: translateY(-4px);
  background-color: #c2c2c2;
}

/* =========================
   Banner Buttons
========================= */
.banner-btns-section {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0 !important;
  padding-bottom: 0;
}

.banner-btns {
  flex: 0 0 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7rem;
  background-color: #1F2A44;
  color: #000;
  z-index: 1;
  padding: 2rem;
  margin: 0 auto;
}

.banner-btns .banner-button {
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  gap: .5rem;
  text-decoration: none;
  margin: 0 auto;
  padding: 0;
  transition: all 0.01s ease-out;
}

.banner-btns .banner-button i {
  font-size: 3rem;
  line-height: 1;
  transition: transform 2s ease-in-out;
}

.banner-btns .banner-button:hover {
  transform: translateY(-5px);
  color: #78B1DC;
}

/* Mobile */
@media (max-width: 768px) {
  .banner-content { padding: 1rem 1.5rem; }
  .banner-content h2 { font-size: 2rem; line-height: 1.3; }
  .banner-content .subtitle { font-size: 1rem; line-height: 1.4; margin-bottom: 1.5rem; }

  .banner-btns {
    gap: 1.5rem;
    padding-top: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
  }

  .banner-btns .banner-button {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    border: 2px solid #2E5A88;
    padding: 1rem;
    width: 12rem;
    height: 12rem;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-radius: .5rem;
  }

  .banner-btns .banner-button:hover {
    background-color: #78B1DC;
    color: #1F2A44;
  }

  .banner-btns .banner-button i { font-size: 5rem; }
}

/* Extra small mobile */
@media (max-width: 560px) {
  #banner {
    height: 60vh;
  }

  .banner-btns .banner-button {
    font-size: .9rem;
    width: 30%;
    height: auto;
  }
  .banner-btns .banner-button i { font-size: 2rem; }
}

/* =========================
   Forms & GRAMA Section
========================= */
@media (min-width: 768px) {
  #main { padding-top: 3em; }
}

.form-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  margin: 3rem auto;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.form-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

/* =========================
   Content Styles
========================= */
.style2 {
  background-color: #fff !important;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1rem;
}

.style2 .inner {
  margin-top: 0;
  padding-top: 0;
}

.top-posts {
  flex: 1 1 65%;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-left: 0;
  padding: 0 1rem 1rem;
  background-color: #fff;
  margin-top: 0;
  padding-top: 0;
}

.top-post .content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 1.5em auto 1rem;
  width: fit-content;
}

.top-post .first-h2 {
  margin-top: 0;
  padding-top: 0;
}

.top-post .content p {
  width: 75%;
  margin: 0 auto 3rem auto;
  font-size: 1.25rem;
  line-height: 1.6;
}

.top-post .content ul {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  text-align: center;
}

.top-post .content ul li {
  position: relative;
  width: 75%;
  margin: 0.5rem auto;
  font-size: 1.25em;
  line-height: 1.5;
}

.top-post .content ul li i {
  font-size: 1.15em;
  line-height: 1.4;
  margin-right: 2rem;
  color: #006699;
}

/* =========================
   Sheriff Card
========================= */
.meet-sheriff {
  flex: 1 1 25%;
  max-width: 75%;
  margin: 1rem auto 3rem auto;
  padding-right: 0;
  border: none;
  box-shadow: none;
}

.sheriff-card {
  width: 90%;
  margin: auto;
  transition: transform 0.3s ease, 0.3s ease;
  border: none !important;
  box-shadow: none !important;
}

/* Card title on top (already fine) */
.sheriff-card .sheriff-card-title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

/* Grid for img (1/3) and paragraph (2/3) */
.sheriff-card .card-body {
  width: 90%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); /* 1/3 : 2/3 */
  align-items: center;
  gap: 0;
  border: 0 !important;
  text-align: left; 
  margin: auto;
}

/* Image styles */
.sheriff-img {
  width: 100%;
  margin: auto;
  height: auto;
  object-fit: contain;
  border: 5px solid #f8f9fa;
  border-radius: 1rem; 
  transition: border-color 0.3s ease;
}

/* Paragraph styles */
.sheriff-card .card-body p {
  width: 75%;
  font-size: 1.25rem;
  margin: auto;
}

/* Button at bottom, centered */
.meet-sheriff-btn {
  display: block;           /* ensures margin auto centers it */
  width: 30%;
  margin: 2rem auto;
  text-decoration: none;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #2E5A88;
  background-color: #2E5A88;
  color: #fff !important;
  border-radius: 2rem;
  padding: 1rem 2rem;
  cursor: pointer;
}
.meet-sheriff-btn:hover {
  background-color: #1F2A44;
  color: #fff;
  transform: translateY(-5px);
}

/* Optional: responsive stack on small screens */
@media (max-width: 768px) {
  .sheriff-card .card-body {
    grid-template-columns: 1fr;
    text-align: left;
  }
}


/* =========================
   Responsive Layout
========================= */

/* Tablet breakpoint (1024px) */
@media (max-width: 1024px) {
  .sheriff-and-posts {
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .top-posts {
    flex: 1 1 100%;
    max-width: 100%;
    gap: 2rem;
    padding: 0 1rem 2rem;
    order: 1; /* Always on top */
  }

  .meet-sheriff {
    flex: 1 1 100%;
    max-width: 60%;
    margin: 1rem auto;
    padding: 0 1rem;
    order: 2; /* Always below */
  }

  .top-post .content p,
  .top-post .content ul li {
    width: 90%;
  }
}

/* Mobile breakpoint (768px) */
@media (max-width: 768px) {
  .sheriff-and-posts {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .top-posts {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem 1.5rem;
    order: 1; /* Ensure it's first */
  }

  .meet-sheriff {
    max-width: 100%;
    padding: 1rem;
    order: 2; /* Ensure it stays below */
  }

  .top-post .content h2 {
    font-size: 1.5rem;
    margin: 1rem auto;
  }

  .top-post .content p {
    font-size: 1rem;
    width: 100%;
    margin: 1rem auto;
  }

  .top-post .content ul li {
    font-size: 1rem;
    width: 100%;
    margin-left: 0;
  }

  .sheriff-card {
    width: 95%;
  }

  .sheriff-card .sheriff-card-title {
    font-size: 1.5rem;
  }

  .meet-sheriff-btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Extra Small Devices (480px) */
@media (max-width: 480px) {
  .top-posts {
    gap: 1.5rem;
    order: 1;
  }

  .meet-sheriff {
    order: 2;
  }

  .top-post .content h2 {
    font-size: 1.3rem;
  }

  .top-post .content p {
    font-size: 0.95rem;
  }

  .sheriff-card .card-body p {
    font-size: 0.9rem;
  }

  .meet-sheriff-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}


/* =========================
   Headlines & Interests
========================= */
.headlines-interests {
  padding: 1rem 0;
  border-radius: 0.5rem;
  margin: 3rem auto 0 auto;
  width: 90%;
}

.headlines-interests h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1F2A44;
}

.headlines-interests ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem auto;
  max-width: 800px;
}

.headlines-interests ul li {
  background: #ebedf0;
  border-left: 5px solid #2E5A88;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 0.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.headlines-interests ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.headlines-interests ul li i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2E5A88;
  font-size: 1.2rem;
}

.headlines-interests ul li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-left: 5px solid #006699;
}

.headlines-interests ul li:hover a {
  color: #006699;
}

hr {
  width: 90%;
  margin: auto;
}

/* =========================
   GRAMA Section
========================= */
.grama-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  margin: 2rem auto 5rem auto;
}

.grama {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.grama-text {
  width: 75%;
  margin: auto;
}

.grama-text p {
  margin-bottom: 2rem;
}

.grama-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.grama-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.grama-buttons {
  display: flex;
  flex-direction: row;
  gap: 5rem;
  justify-content: center;
}

.grama-buttons .button {
  background-color: #2E5A88;
  color: #fff !important;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  border-radius: .25rem;
}

.grama-buttons .button:hover {
  background-color: #2f373f;
  transform: translateY(-5px);
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .grama-section {
    flex-direction: column;
    gap: 40px;
    margin: 2rem auto 4rem auto;
    width: 90%;
  }

  .grama {
    flex-direction: column;
    gap: 15px;
  }

  .grama-text {
    width: 80%;
    margin: 1rem auto;
  }

  .grama-title {
    font-size: 2.5rem;
  }

  .grama-buttons {
    gap: 2rem;
    margin: auto;
  }

  .grama-buttons .button {
    width: 15rem;
    font-size: 0.9rem;
    margin: 0;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .grama-section {
    padding: 1rem;
    margin: 2rem auto;
  }

  .grama {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .grama-text {
    width: 90%;
    margin: auto;
  }

  .grama-title {
    font-size: 2rem;
  }

  .grama-buttons {
    flex-direction: column;
    gap: 1.5rem;
    margin: auto;
  }

  .grama-buttons .button {
    width: 18rem;
    font-size: 1rem;
    margin: 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .grama-section {
    padding: 1rem;
    margin: 1rem auto;
  }

  .grama-title {
    font-size: 1.5rem;
  }

  .grama-buttons .button {
    width: 100%;
    font-size: 0.9rem;
    margin: 0;
  }
}

/* =========================
   Miscellaneous
========================= */
.alert-box {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: #2f373f;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 999;
  width: 325px;
}

.alert-content { position: relative; margin-bottom: 5px; }

.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer !important;
}

.learn-more-button {
  background-color: #428bca;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
  font-weight: bold;
  font-size: 0.95em;
}

.learn-more-button:hover { background-color: #3071a9; }

.buy-crash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.buy-crash-img {
  margin-top: 3rem;
}

.buy-crash a:hover {
  transform: translateY(-5px);
}

/* =========================
   Volunteer
========================= */
.volunteer-section {
  text-align: center;
  margin: 3rem auto 5rem auto;
  padding: 2rem;
  border-radius: 8px;
}

.volunteer-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333; 
  font-weight: 600;
}

/* Button container styling */
.volunteer-buttons {
  display: flex;
  flex-direction: row;
  gap: 5rem;
  justify-content: center;
}

.volunteer-buttons .volunteer-button {
  background-color: #2E5A88;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  border: 2px solid #2E5A88;
  border-radius: 1rem;
  padding: .5rem;
  height: 3rem;
  width: 20rem;
  margin: 0 5rem;
}

.volunteer-buttons .volunteer-button:hover {
  background-color: #2f373f;
  transform: translateY(-5px);
}

.volunteer-button:active {
  transform: translateY(0); 
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .volunteer-section {
    padding: 1.5rem;
    margin: 2rem auto 4rem auto;
  }

  .volunteer-section h2 {
    font-size: 2.2rem;
  }

  .volunteer-buttons {
    gap: 2rem;
    margin: auto;
    justify-content: center; /* Centering buttons horizontally */
  }

  .volunteer-buttons .volunteer-button {
    width: 15rem;
    font-size: 0.75rem;
    margin: 0 2rem;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .volunteer-section {
    padding: 1rem;
    margin: 1rem auto 3rem auto;
  }

  .volunteer-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .volunteer-buttons {
    flex-direction: column;
    gap: 1.5rem;
    margin: auto;
    justify-content: center; /* Centering buttons vertically */
    align-items: center; /* Centering buttons horizontally */
  }

  .volunteer-buttons .volunteer-button {
    width: 18rem;
    font-size: .8rem;
    margin: 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .volunteer-section {
    padding: 1rem;
    margin: 1rem auto 2rem auto;
  }

  .volunteer-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .volunteer-section .volunteer-buttons {
    margin: auto;
    justify-content: center;
    align-items: center;
  }

  .volunteer-buttons .volunteer-button {
    width: 100%;
    font-size: 0.75rem;
    margin: 0;
  }
}

/* =========================
   Donate Section
========================= */
.donate {
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  margin: 3rem auto 0 auto;
}

.donate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.donate-inner img {
  max-width: 300px;
  height: auto;
}

.donate-inner p {
  font-size: 1.25rem;
  margin: 0;
  color: #1F2A44;
}

.donate-inner a {
  padding: 0;
  margin: 0;
  display: inline-block;
  text-decoration: none !important;
  border: none !important;
}

.donate-div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem auto;
}

/* Unified button styling for donate and store buttons */
.donate-inner .donate-btn,
.donate-inner .store-btn {
  display: inline-block;
  margin: 0 1rem;
  padding: 1rem 2rem;
  border: 2px solid #2E5A88 !important;
  background-color: #2E5A88;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.donate-inner .donate-btn i,
.donate-inner .store-btn i {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.donate-inner .donate-btn:hover,
.donate-inner .store-btn:hover {
  background-color: #1c3b5c;
  transform: translateY(-5px);
  color: #fff !important;
}

.donate p {
  font-size: 1rem;
  width: 50%;
  margin: 2rem auto 0.5rem auto;
}

/* PayPal Seal */
.donate-inner .paypal-seal:hover {
  transform: translateY(-5px);
  background-color: #fff !important;
}

.donate .content .paypal-seal img {
  width: 5rem;
  height: auto;
  margin: 1rem;
}

/* =========================
   Donate Section Responsive
========================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .donate {
    padding: 2.5rem 1.5rem;
  }

  .donate-inner p {
    font-size: 1.1rem;
    width: 70%; /* widen text slightly for readability */
  }

  .donate-inner img {
    max-width: 250px;
  }

  .donate-inner .donate-btn,
  .donate-inner .store-btn {
    font-size: 0.9rem;
    padding: 0.9rem 1.75rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .donate {
    padding: 2rem 1rem;
    margin: 2rem auto;
  }

  .donate-inner p {
    font-size: 1rem;
    width: 85%;
  }

  .donate-div {
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .donate-inner .donate-btn,
  .donate-inner .store-btn {
    width: 80%;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    padding: 1rem 2rem;
  }

  .donate-inner img {
    max-width: 220px;
  }

  .donate-inner .donate-btn i,
  .donate-inner .store-btn i {
    font-size: 1.8rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .donate {
    padding: 1.5rem 1rem;
  }

  .donate-inner p {
    font-size: 0.95rem;
    width: 100%;
  }

  .donate-inner img {
    max-width: 200px;
  }

  .donate-div {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .donate-inner .donate-btn,
  .donate-inner .store-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.9rem 1.5rem;
    margin: 0;
  }

  .donate-inner .donate-btn i,
  .donate-inner .store-btn i {
    font-size: 1.6rem;
  }
}


#two .wrapper {
  border: none;
  padding-top: 0;
}

.card {
  border: none;
  border-radius: .75rem;
  transition: transform .2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.33);
  padding: 1rem;
}

.card-title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  color: #1F2A44;
}

.features .button {
  background-color: #2E5A88;
  color: white !important;
  border-radius: 1rem;
  border: none;
}

.features .action {
  width: 100%;
}

.features .action .two-btn{
  width: 100%;
}

.features .button:hover {
  background-color: #1c3b5c;
  transform: translateY(-5px);
}


/* Extra small devices */
@media (max-width: 480px) {
  #two .card {
    box-shadow: none;
  }
}
