/* ============================================================
   CONTENT CONTAINER 1
   Structure: .content-container1 > .content-child1 > .child1
                                                        .child1-heading
                                                        .child1-content
                              > .content-child2 > .child2
                                                    .child2 img
   ============================================================ */

.content-container1 {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  padding: 60px 6%;
  gap: 60px;
}

.content-child1 {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.child1 {
  height: fit-content;
}

.child1-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #5c1a5a;
  margin-bottom: 20px;
}

.child1-content {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.8;
  color: #444;
}

.content-child2 {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.child2 {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 6px 6px 0px #e0d0e0;
  background: #f5f5f5;
}

.child2 img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   CONTENT CONTAINER 2
   Structure: .content-container2
                .content-container2-heading1
                .content-container2-parent
                  .content-container2-child1 > div > a  (tabs)
                  .content-container2-child2:nth-child(2) (img panel)
                    .content-child2-childinner
                      .childinner-image1 > img
                  .content-container2-child2:nth-child(3) (des panel)
                    .content-child2-childinner
                      .des-heading
                      .des-text
                      .btn-apply
   ============================================================ */

.content-container2 {
  width: 100%;
  padding: 60px 0;
}

.content-container2-heading1 {
  padding: 0 6% 24px;
  display: flex;
  align-items: center;
}

.content-container2-heading1 h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #222;
}

.content-container2-parent {
  width: 88%;
  margin: 0 auto;
  display: grid;
  grid-template-areas:
    "infor infor infor infor"
    "img   img   des   des";
  grid-template-rows: auto 1fr;
  gap: 20px 40px;
}

/* Tabs row */
.content-container2-child1 {
  grid-area: infor;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #ccc;
}

.content-container2-child1>div {
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  border: none;
}

.content-container2-child1>div::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5c1a5a;
  transition: width 0.25s ease;
}

.content-container2-child1>div:hover::after {
  width: 100%;
}

.content-container2-child1>div a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  white-space: nowrap;
}

.content-container2-child1>div:hover a {
  color: #5c1a5a;
}

/* Image panel (left) */
.content-container2-child2:nth-child(2) {
  grid-area: img;
  overflow: hidden;
  border-radius: 6px;
  min-height: 340px;
}

.content-container2-child2:nth-child(2) .content-child2-childinner {
  width: 100%;
  height: 100%;
  border: none;
}

.content-container2-child2:nth-child(2) .childinner-image1 {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #e0e0e0;
}

.content-container2-child2:nth-child(2) .childinner-image1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Description panel (right) */
.content-container2-child2:nth-child(3) {
  grid-area: des;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 10px 20px 30px;
}

.content-container2-child2:nth-child(3) .content-child2-childinner {
  border: none;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.des-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #222;
  margin: 0;
}

.des-text {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  line-height: 1.75;
  color: #555;
  margin: 0;
}

.btn-apply {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  background-color: #5c1a5a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-apply:hover {
  background-color: #7a2278;
  transform: translateY(-1px);
}

/* ============================================================
   CONTENT CONTAINER 3
   Structure: .content-container3
                .c3-image > img
                .c3-content
                  .c3-heading
                  .c3-text
                  .c3-tax-link > .c3-sars-link
                  .c3-contact  > .c3-email
                  .btn-donate
   ============================================================ */

.content-container3 {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 60px 6%;
  gap: 60px;
}

/* Image (left) */
.c3-image {
  flex: 0 0 48%;
  max-width: 48%;
  border-radius: 6px;
  overflow: hidden;
}

.c3-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Content (right) */
.c3-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.c3-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #222;
  margin: 0;
}

.c3-text {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.75;
  color: #555;
  margin: 0;
}

.c3-tax-link {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: #c07a00;
  margin: 0;
}

.c3-sars-link {
  color: #c07a00;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.c3-sars-link:hover {
  color: #a06000;
}

.c3-contact {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: #444;
  margin: 0;
}

.c3-email {
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.c3-email:hover {
  text-decoration: underline;
  color: #5c1a5a;
}

.btn-donate {
  display: inline-block;
  margin-top: 4px;
  padding: 14px 48px;
  background-color: #5c1a5a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-donate:hover {
  background-color: #7a2278;
  transform: translateY(-1px);
}

/* ============================================================
   CONTENT CONTAINER 4
   Structure: .content-container4
                .c4-overlay
                .c4-content
                  .c4-heading
                  .c4-text
                  .btn-c4
   ============================================================ */




.content-container4 {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;

  /* Replace with your actual background image path */
  background-image: url('../../images/logo/love-of-zion-logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay */
.c4-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

/* Content sits above the overlay */
.c4-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 60px 6%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c4-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #d4a017;
  margin: 0;
  line-height: 1.2;
}

.c4-text {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.8;
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.btn-c4 {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 36px;
  background-color: #5c1a5a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-c4:hover {
  background-color: #7a2278;
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   Structure: footer
                .footer-inner
                  .footer-col.footer-col--brand
                    .footer-logo > img
                    .footer-tagline
                  .footer-col
                    .footer-col-heading
                    .footer-links > li > a
                  .footer-col (x2)
                  .footer-col.footer-col--newsletter
                    .footer-col-heading
                    .footer-newsletter-text
                    .footer-newsletter-form
                      .footer-newsletter-input
                      .footer-newsletter-btn
                .footer-bottom
                  .footer-copy
                  .footer-socials > .footer-social-link > i
   ============================================================ */

footer {
  background-color: #1a0a1a;
  color: #ccc;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding: 60px 6%;
  /* padding-bottom: 5px; */
  align-items: start;
  height: fit-content;
}

/* Brand column */
.footer-col--brand .footer-logo img {
  max-width: 140px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline {
  font-size: 0.88rem;
  /* line-height: 1.7; */
  color: #aaa;
}

/* Generic column */
.footer-col-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #d4a017;
}

/* Newsletter column */
.footer-newsletter-text {
  font-size: 0.88rem;
  color: #aaa;
  margin: 0 0 16px;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-input {
  padding: 10px 14px;
  border: 1px solid #3a2a3a;
  border-radius: 6px;
  background: #2a1a2a;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-input::placeholder {
  color: #666;
}

.footer-newsletter-input:focus {
  border-color: #5c1a5a;
}

.footer-newsletter-btn {
  padding: 10px 20px;
  background-color: #5c1a5a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease;
}

.footer-newsletter-btn:hover {
  background-color: #7a2278;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  border-top: 1px solid #2e1a2e;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3a2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer-social-link:hover {
  border-color: #5c1a5a;
  color: #fff;
  background-color: #5c1a5a;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.btn-back-top {
  border: 1px solid #000;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #5c1a5a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

.btn-back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-back-top:hover {
  background-color: #7a2278;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .btn-back-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape */
@media (max-width: 900px) {
  .content-container1 {
    padding: 40px 5%;
    gap: 40px;
  }

  .content-container3 {
    padding: 40px 5%;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {

  /* Container 1 */
  .content-container1 {
    flex-direction: column;
    padding: 40px 5%;
    gap: 30px;
  }

  .content-child1 {
    flex: unset;
    width: 100%;
  }

  .content-child2 {
    flex: unset;
    width: 100%;
  }

  .child2 img {
    max-height: 320px;
  }

  /* Container 2 */
  .content-container2 {
    padding: 40px 0;
  }

  .content-container2-parent {
    width: 92%;
    gap: 16px 24px;
  }

  .content-container2-child2:nth-child(2) {
    min-height: 260px;
  }

  .content-container2-child2:nth-child(3) {
    padding: 10px 0 10px 16px;
  }

  /* Container 3 */
  .content-container3 {
    flex-direction: column;
    padding: 40px 5%;
    gap: 30px;
  }

  .c3-image {
    flex: unset;
    max-width: 100%;
    width: 100%;
  }

  .c3-image img {
    max-height: 340px;
  }

  .c3-content {
    width: 100%;
  }

  /* Container 4 */
  .content-container4 {
    min-height: 360px;
  }

  .c4-content {
    padding: 50px 5%;
  }
}

/* Mobile */
@media (max-width: 600px) {

  /* Container 1 */
  .content-container1 {
    padding: 30px 4%;
    gap: 20px;
  }

  .child1-heading {
    margin-bottom: 14px;
  }

  /* Container 2 — stack image above description */
  .content-container2-parent {
    width: 92%;
    grid-template-areas:
      "infor infor infor infor"
      "img   img   img   img"
      "des   des   des   des";
    grid-template-rows: auto auto auto;
    gap: 16px;
  }

  .content-container2-child1 {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .content-container2-child2:nth-child(2) {
    grid-area: img;
    min-height: 240px;
  }

  .content-container2-child2:nth-child(3) {
    grid-area: des;
    padding: 10px 0;
  }

  /* Container 3 */
  .content-container3 {
    padding: 30px 4%;
    gap: 20px;
  }

  .c3-image img {
    max-height: 260px;
  }

  /* Container 4 */
  .content-container4 {
    min-height: 320px;
    background-position: 60% center;
  }

  .c4-content {
    padding: 40px 4%;
    max-width: 100%;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .content-container1 {
    padding: 20px 4%;
  }

  .child1-heading {
    font-size: 1.3rem;
  }

  .child1-content {
    font-size: 0.88rem;
  }

  .child2 img {
    max-height: 220px;
  }

  .content-container3 {
    padding: 20px 4%;
  }

  .c3-image img {
    max-height: 200px;
  }

  .c4-heading {
    font-size: 1.4rem;
  }
}