html {
  scroll-behavior: smooth;
}

text {
  font-size: 22px;
}

body {
  background-color: rgb(252, 255, 245);
  color: black;
  margin: 0;
}

.Title-Segment {
  background-color: rgb(252, 255, 245);
  width: 100%;
  height: 140px;
  margin-top: 0px;
  margin-bottom: 0px;
  right: 0px;
  position: relative;
}

.button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
}

.button:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: rgb(181, 160, 255);
  align-items: center;
}

.button:hover .svgIcon {
  /* width: 20px; */
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.button::before {
  position: absolute;
  bottom: -20px;
  content: 'Back to Top';
  color: white;
  /* transition-duration: .3s; */
  font-size: 0px;
}

.button:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  /* transform: translateY(-30px); */
  transition-duration: 0.3s;
}

.image-btn {
  background: none;
  border: none;
  padding: 0;
}
.image-btn img {
  display: block; /* to remove extra space below image */
  object-fit: contain;
}

.center {
  display: grid;
  place-items: center;
  width: 100%;
}

.address-block {
  background-color: #343a40;
  padding: 20px 0 40px;
  color: white;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 35px;
}

.address-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 225px;
  text-align: right;
  padding-left: 20px;
}

.address-links a {
  color: #f2e8d5;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.5px;
  display: inline-block;
  width: fit-content;
}

.address-links a:hover {
  opacity: 0.8;
}

.contact-info {
  width: 225px;
  text-align: left;
  padding-left: 20px;
}

.contact-info span {
  font-size: 16px;
  letter-spacing: 0.5px;
  display: block;
  color: #f2e8d5;
}

.footer-divider {
  width: 1px;
  background-color: rgba(242, 232, 213, 0.3);
  margin: 0;
  align-self: stretch;
  min-height: 120px;
  position: relative;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    min-height: auto;
  }
}

.content-block {
  background-color: #f2e8d5;
  padding: 50px 0px;
  width: 100%;
  margin: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.content-block .content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.aim-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.aim-image {
  flex: 0 0 320px;
}

.circular-image {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #800000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.aim-text {
  flex: 1;
}

.aim-text p.aim-paragraph {
  font-size: 22px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

.aim-heading {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #6b4226;
}

@media (max-width: 768px) {
  .aim-container {
    flex-direction: column;
  }

  .aim-image {
    margin-bottom: 20px;
  }

  /* Fix circular image sizing on mobile */
  .circular-image {
    width: 280px;
    height: 280px;
    max-width: 100%;
  }

  /* Improve content spacing on mobile */
  .content-block {
    padding: 30px 0px;
    min-height: auto;
  }

  .content-block .content-wrapper {
    padding: 0 15px;
  }

  /* Better text sizing on mobile */
  .aim-text p.aim-paragraph {
    font-size: 18px;
    line-height: 1.6;
  }

  .aim-heading {
    font-size: 32px;
  }

  /* Fix hero section on mobile */
  .hero {
    height: 60vh;
  }

  .hero-img {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .about-slider .slider {
    height: 250px; /* Smaller height on very small screens */
  }

  /* Extra mobile optimizations */
  .circular-image {
    width: 240px;
    height: 240px;
  }

  .aim-heading {
    font-size: 28px;
  }

  .aim-text p.aim-paragraph {
    font-size: 16px;
  }

  .hero {
    height: 50vh;
  }

  .news-section h2 {
    font-size: 24px;
  }

  .news-section p {
    font-size: 15px;
  }

  /* Better form handling on mobile */
  .form-group {
    flex-direction: column;
  }

  .form-group input[type='email'] {
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .subscribe-btn {
    border-radius: 4px;
    width: 100%;
  }
}

.content-block h3 {
  color: #800000;
  margin-top: 0;
  font-size: 42px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.content-block p {
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.content-block.alt {
  background-color: #e8d5c5;
}

.content-block.alt h3 {
  color: #6b4226;
}

.history-container {
  flex-direction: row-reverse;
  text-align: right;
}

.history-container .aim-text {
  text-align: right;
}

@media (max-width: 768px) {
  .history-container {
    flex-direction: column;
    text-align: left;
  }

  .history-container .aim-text {
    text-align: left;
  }
}

.news-section {
  background-color: #800000;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-section h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.news-section p {
  color: #f2e8d5;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.news-button {
  display: inline-block;
  background-color: #f2e8d5;
  color: #800000;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #f2e8d5;
}

.news-button:hover {
  background-color: #800000;
  color: #f2e8d5;
}

@media (max-width: 768px) {
  .news-section h2 {
    font-size: 26px;
  }

  .news-section p {
    font-size: 16px;
  }
}

.newsletter-section {
  background-color: #343a40;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  margin: 0;
}

.newsletter-section:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: rgba(242, 232, 213, 0.4);
  max-width: 1000px;
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 10px;
}

.newsletter-content h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter-content p {
  color: #f2e8d5;
  font-size: 16px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.form-group input[type='email'] {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  outline: none;
}

.subscribe-btn {
  background-color: #800000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #a00000;
}

.privacy-note {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.form-message {
  display: none;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.form-message.success {
  display: block;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.form-message.error {
  display: block;
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

/* ─── Hero image / parallax ────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* one full viewport height            */
  overflow: hidden; /* hide the extra image around edges   */
}

.hero-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 120vh; /* a little taller so we can move it   */
  max-width: none; /* don't let it shrink                 */
  transform: translateX(-50%); /* centre horizontally  */
  object-fit: cover;
  will-change: transform; /* performance hint     */
}

/* Optional overlay styling */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none; /* overlay text not clickable        */
}
.hero-overlay h1 {
  font-size: clamp(32px, 6vw, 72px);
  margin: 0;
}
.hero-overlay p {
  font-size: clamp(16px, 2.5vw, 28px);
  margin: 0.5em 0 0;
}
/* ──────────────────────────────────────────────────────────────────────── */

/* ─── Contact Page Style ───────────────────────────────────────────────── */
.contact-heading {
  font-style: 36px;
  font-weight: bold;
  color: #6b4226;
  text-align: center;
  margin-bottom: 20px;
}

.contact-description {
  font-size: 18px;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}

.contact-item h4 {
  font-size: 20px;
  font-weight: bold;
  color: #6b4226;
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.contact-item a {
  color: #800000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #a00000;
}
/* ──────────────────────────────────────────────────────────────────────── */

/* ─── About Page Style ─────────────────────────────────────────────────── */
.contact-button {
  display: inline-block;
  background-color: #800000;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #800000;
}

.contact-button:hover {
  background-color: white;
  color: #800000;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.about-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  min-width: 0;
}

.about-text p {
  margin-bottom: 20px;
}

.about-slider {
  flex: 0 0 450px;
  min-width: 300px;
}

.about-slider .slider {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-slider .slide img {
  border-radius: 10px;
}

.about-container + .center {
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .about-container {
    gap: 30px;
  }

  .about-slider {
    flex: 0 0 400px;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 30px;
  }

  .about-slider {
    margin-top: 20px;
    flex: none;
    width: 100%;
  }

  .about-text {
    text-align: justify; /* Better text flow on mobile */
  }
}

@media (max-width: 480px) {
  .about-slider .slider {
    height: 250px; /* Smaller height on very small screens */
  }
}
/* ──────────────────────────────────────────────────────────────────────── */

/* Add these styles to your CSS */
.text-button {
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.text-button:hover {
  color: #004080;
}

#unsubscribe-form {
  margin-top: 10px;
}

.unsubscribe-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.unsubscribe-btn:hover {
  background-color: #d32f2f;
}
