/* ===========================
   GLOBAL & RESET
   =========================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fdf8f2;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

/* ===========================
   NAVIGATION
   =========================== */
.navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #FDAE44;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navigation img {
  height: 50px;
}

nav.desktop-nav {
  flex: 1;
  color: #FAB972;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: 50px;
}

nav.desktop-nav a {
  color: #222;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav.desktop-nav a:hover {
  color: #fff;
  background-color: #FAB972;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav.desktop-nav .dropdown > a {
  cursor: default;
  pointer-events: none;
  color: #222;
}

nav.desktop-nav .dropdown > a:hover {
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #FAB972;
  min-width: 280px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 999;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a.active {
  background-color: #222;
  color: #fff;
  font-weight: bold;
}

/* ===========================
   HAMBURGER MENU (Mobile)
   =========================== */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 30px;
  padding: 15px;
  position: fixed;
  right: 20px;
  z-index: 1100;
  background: none;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: orange;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: #fff;
  padding: 30px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-menu a {
  display: block;
  margin-bottom: 20px;
  margin-top: 50px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.side-menu.active {
  transform: translateX(0);
}

/* ===========================
   BUTTON STYLE
   =========================== */
.btn {
  display: inline-block;
  background-color: #FDAE44;
  color: #222;
  padding: 12px 28px;
  margin: 15px 10px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #FAB972;
  color: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* ===========================
   HEADER
   =========================== */
header {
  background: transparent;
  color: #222;
  padding: 60px 20px 20px;
  text-align: center;
}

header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  margin-top: 300px;
}

header p {
  margin-top: 50px;
  font-size: 1.2em;
  font-style: italic;
}

/* Container styling */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 25px;
    background: #FFF8F0; /* soft cream */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Heading */
.container h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #FF7F50; /* warm orange */
    margin-bottom: 20px;
}

/* Paragraph */
.container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 30px;
}

/* Post form */
.post-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.post-form input,
.post-form textarea {
    padding: 12px 15px;
    border: 1px solid #FFB380; /* lighter orange */
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.post-form input:focus,
.post-form textarea:focus {
    border-color: #FF7F50;
    box-shadow: 0 0 8px rgba(255, 127, 80, 0.3);
}

.post-form button {
    padding: 12px;
    background-color: #FF7F50;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.post-form button:hover {
    background-color: #FF6333;
    transform: translateY(-2px);
}

/* Posts feed */
#postsFeed .post {
    background: #FFF5EB;
    border-left: 5px solid #FF7F50;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-header strong {
    color: #FF7F50;
    font-size: 1.1rem;
}

.post-menu div {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #FFE6D1;
    transition: background 0.2s;
}

.post-menu div:hover {
    background-color: #FFE6D1;
}

.post small {
    display: block;
    margin-top: 10px;
    color: #999;
}

/* Reactions */
.reactions span {
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 8px;
    border-radius: 20px;
    background-color: #FFDAB3;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.9rem;
}

.reactions span:hover {
    background-color: #FFB380;
    transform: translateY(-2px);
}


/* ===========================
   FLIP CARDS
   =========================== */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(253, 174, 68, 0.2);
  transition: box-shadow 0.3s ease;
  user-select: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 15px;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.flip-card-back {
  background: linear-gradient(135deg, #FDAE44 0%, #FFBF60 100%);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 15px;
}

/* Flip card hover effect */
.flip-card:hover {
  box-shadow: 0 12px 30px rgba(253, 174, 68, 0.5);
}

/* ===========================
   MOBILE RESPONSIVENESS
   =========================== */
@media (max-width: 768px) {
  .flip-card { width: 100%; height: 350px; }
  .flip-card-back { font-size: 1rem; padding: 15px; }

  .post-form input, .post-form textarea { font-size: 0.95rem; }
  .post-form button { padding: 8px 15px; font-size: 0.95rem; }

  .post { padding: 12px; }
  .reactions span { font-size: 0.8rem; padding: 4px 6px; }
}

@media (max-width: 400px) {
  .flip-card { height: 300px; }
  .flip-card-back { font-size: 0.95rem; padding: 10px; }

  .post-form input, .post-form textarea { font-size: 0.9rem; }
  .post-form button { padding: 6px 12px; font-size: 0.9rem; }

  .post { padding: 10px; }
  .reactions span { font-size: 0.75rem; padding: 3px 5px; }
}


/* ===========================
   SLIDESHOW
   =========================== */
.slideshow-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slide {
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

/* ===========================
   MISSION PAGE DESIGN (DESKTOP)
   =========================== */
.the-about {
  max-width: 900px;
  margin: 120px auto;
  background-color: #fff;
  padding: 60px 70px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  font-size: 1.15rem;
  line-height: 1.9;
  letter-spacing: 0.4px;
  animation: fadeInMission 1.5s ease-in-out;
}

.the-about b {
  display: block;
  font-size: 2.5rem;
  color: #4e2a84;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ===========================
   BRANDING
   =========================== */
.branding {
  height: 50vh;
  background-color: #fdf8f2;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.branding h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.branding p {
  font-size: 1.2em;
  font-style: italic;
}

/* ===========================
   IMAGE GRID
   =========================== */
.desktopt td img {
  width: 300px;
  height: 500px;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
}

.desktopt td {
  padding: 10px;
  border-radius: 10px;
  height: 500px;
}

.gallery img {
  margin: 20px;
}

/* ===========================
   FOOTER
   =========================== */
#site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ===========================
   ABOUT PAGE SPECIFIC UPDATES
   =========================== */
.about-grid h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #8e44ad;
  text-align: center;
  font-weight: 700;
}

.the-about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 80px 80px 80px;
}

.about-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
  max-width: 600px;
}

.about-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ===========================
   ZANELE RADEBE ABOUT-ME PAGE
   =========================== */
.about-me {
  max-width: 800px;
  margin: 60px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.about-me h2 {
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}

.about-me .me-header {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 25px;
  text-align: center;
  color: #666;
}

.about-me h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 15px;
  text-align: center;
}

.about-me p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.about-me strong {
  color: #222;
  font-weight: 600;
}
/* ===========================
   MOBILE RESPONSIVENESS
   =========================== */
@media (max-width: 768px) {
  .desktopt {
    display: none;
  }

  .mobilet {
    display: block;
    padding: 20px;
  }

  .mobilet table {
    width: 100%;
    border-collapse: collapse;
  }

  .mobilet img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .mobilet h3 {
    font-size: 20px;
    margin: 10px 0 5px;
    color: #333;
  }

  .mobilet p {
    font-size: 16px;
    color: #555;
  }

  .mobilet td {
    padding-bottom: 20px;
  }

  .hamburger {
    display: block;
  }

  .causes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cause-item img {
    height: 180px;
  }

  .cause-text {
    padding: 15px;
  }

  .causes-section h2 {
    font-size: 2em;
  }

  .branding h1 {
    font-size: 2em;
  }

  .branding p {
    font-size: 1em;
  }

  .side-menu {
    display: block;
  }

  nav.desktop-nav {
    display: none;
  }

  .navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 60px;
  }

  .navigation img {
    margin-left: 10px;
  }

  header h1 {
    font-size: 2em;
    margin-top: 150px;
  }

  header p {
    font-size: 1em;
  }

  .about-grid,
  .empowerment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .the-about img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .video-card img {
    width: 350px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 0 auto;
  }

  .video-card img:hover {
    transform: scale(1.03);
  }

  .about h2,
  .about-me h2,
  .about-me h3,
  .causes h2,
  .empowerment h2,
  .involved h2,
  .contact h2 {
    font-size: 36px;
  }

  .about p,
  .about-me p,
  .causes p,
  .empowerment p,
  .involved p,
  .contact {
    margin: 0 20px;
    text-align: left;
  }

  .causes h3 {
    margin: 0 20px;
  }

  .ef {
    width: 250px;
    height: auto;
  }

  .ef img {
    object-fit: contain; /* Shows the full image */
    height: auto;        /* Maintain correct height */
    width: 100%;         /* Take full width */
  }


  .cause-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cause-grid.reverse {
    direction: ltr;
  }

  .cause-grid .cause-image,
  .cause-grid .cause-text {
    direction: ltr;
  }

  .cause-text h3 {
    margin-top: 20px;
  }
}
/* ===========================
   SEEN & HEARD PAGE STYLES
   =========================== */
.involved {
  max-width: 900px;
  margin: 80px auto 100px;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(253, 174, 68, 0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  text-align: center;
  line-height: 1.7;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  animation: fadeInSeenHeard 1.6s ease forwards;
}

.involved h2 {
  font-size: 3rem;
  color: #FDAE44;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-weight: 900;
  text-shadow: 1px 1px 3px rgba(253, 174, 68, 0.6);
}

.involved p {
  margin-bottom: 20px;
  font-weight: 500;
  color: #555;
}

.involved p:last-child {
  font-style: italic;
  font-weight: 600;
  color: #777;
}

@keyframes fadeInSeenHeard {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks for Seen & Heard */
@media (max-width: 768px) {
  .involved {
    margin: 50px 15px 70px;
    padding: 20px 15px;
    font-size: 1rem;
  }
  
  .involved h2 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
  }
}

/* ===========================
   EMPOWERMENT FRIDAYS PAGE STYLES
   =========================== */
.empowerment {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.empowerment h2 {
  font-size: 3rem;
  color: #FDAE44;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
}

.empowerment p {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

.empowerment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.video-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(253, 174, 68, 0.3);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 35px rgba(253, 174, 68, 0.6);
}

.video-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.video-card img:hover {
  transform: scale(1.05);
}

.video-card p {
  margin: 0 10px;
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
}

.video-card p b {
  color: #FDAE44;
  font-size: 1.2rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .empowerment {
    margin: 40px 15px 60px;
  }

  .empowerment h2 {
    font-size: 2.2rem;
  }

  .empowerment p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .video-card img {
    height: 180px;
  }
}
/* ======= Hero Banner ======= */
.hero-banner {
  background: linear-gradient(rgba(253, 174, 68, 0.85), rgba(253, 174, 68, 0.85)),
              url('images/hero-bg.jpg') center center/cover no-repeat;
  color: #fff;
  padding: 100px 20px 80px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1.1px;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.3);
}

.hero-banner h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

.hero-banner p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* ======= Causes Container ======= */
.causes-container {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* Intro Text */
.intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ======= Cause Cards ======= */
.cause-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.cause-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 12px 20px rgba(253, 174, 68, 0.3);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(253, 174, 68, 0.6);
}

.cause-card img {
  max-width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

.cause-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #FDAE44;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.cause-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  font-weight: 400;
}
/* ===========================
   CONTACT PAGE STYLES
   =========================== */
.contact {
  max-width: 900px;
  margin: 60px auto 80px;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
  line-height: 1.7;
}

.contact h2 {
  font-size: 3rem;
  color: #FDAE44;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

.contact h3, .contact h4 {
  color: #FDAE44;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.8rem;
  text-align: left;
  letter-spacing: 1.5px;
}

.contact ul, .contact ol {
  max-width: 600px;
  margin: 0 auto 40px;
  padding-left: 20px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.contact ul li, .contact ol li {
  margin-bottom: 12px;
}

.contact a {
  color: #FDAE44;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #222;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .contact h2 {
    font-size: 2.2rem;
  }

  .contact h3, .contact h4 {
    font-size: 1.4rem;
    text-align: center;
  }

  .contact p, .contact ul, .contact ol {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
  }

  .contact ul, .contact ol {
    padding-left: 0;
  }
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-banner {
    padding: 70px 15px 60px;
  }

  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .hero-banner p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .causes-container {
    margin: 30px 15px 60px;
  }

  .cause-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cause-card img {
    height: 180px;
  }
}
/* ======= Gallery Styles ======= */
#gallery {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

#gallery h2 {
  font-size: 3rem;
  color: #FDAE44;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
}

/* Gallery grid */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: linear-gradient(to bottom, #fdf8f2, #f8e8dd);
}



/* Flip card container */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(253, 174, 68, 0.2);
  transition: box-shadow 0.3s ease;
  user-select: none;
}

.flip-card:focus {
  box-shadow: 0 0 0 4px #FDAE44; /* visible focus ring for accessibility */
}

/* Flip card inner container */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 15px;
}

/* Flip when flipped */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front and back sides */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Front side */
.flip-card-front {
  background-color: #fff;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* Back side */
.flip-card-back {
  background: linear-gradient(135deg, #FDAE44 0%, #FFBF60 100%);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 15px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

/* Hover & focus shadow */
.flip-card:hover,
.flip-card:focus {
  box-shadow: 0 12px 30px rgba(253, 174, 68, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
  .flip-card {
    width: 100%;
    height: 350px;
  }
   /* ABOUT PAGE MOBILE FIX */
.the-about-flex {
  flex-direction: column;   /* stack vertically */
  text-align: center;       /* center align */
  padding: 20px;            /* less padding for mobile */
}

.about-text {
  order: 1;   /* paragraph goes first */
  width: 100%;
}

.about-image {
  order: 2;   /* image comes after */
  margin-top: 20px;
}

.about-image img {
  max-width: 90%;  /* keeps it big but not too big */
  height: auto;
}
}



/* ===========================
   CONTACT FORM STYLES
   =========================== */
.contact-form {
  max-width: 650px;
  margin: 50px auto;
  padding: 30px 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #FDAE44;
  outline: none;
  box-shadow: 0 0 8px rgba(253, 174, 68, 0.3);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 10px;
}
/* Mobile-friendly adjustments */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        margin: 20px 15px;
        padding: 20px 15px;
    }

    /* Heading size */
    .container h1 {
        font-size: 2rem;
        text-align: center;
    }

    /* Paragraph size and spacing */
    .container p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Post form inputs */
    .post-form input,
    .post-form textarea {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .post-form button {
        font-size: 0.95rem;
        padding: 10px;
    }

    /* Posts feed */
    #postsFeed .post {
        padding: 15px;
    }

    .post-header strong {
        font-size: 1rem;
    }

    /* Reactions */
    .reactions span {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 5px;
        display: inline-block;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {

    .container {
        padding: 15px 10px;
        margin: 15px 10px;
    }

    .container h1 {
        font-size: 1.7rem;
    }

    .container p {
        font-size: 0.95rem;
    }

    .post-form input,
    .post-form textarea {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .post-form button {
        font-size: 0.9rem;
        padding: 8px;
    }

    #postsFeed .post {
        padding: 12px;
    }

    .reactions span {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}
/* Mobile-only button style */
@media screen and (max-width: 768px) {
  .btn {
    display: block; /* full-width buttons for easier tapping */
    width: 90%;
    margin: 12px auto;
    padding: 14px 0;
    background: linear-gradient(135deg, #ff7f50, #fff8e7);
    color: #333
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #fff8e7, #ff7f50);
  }

  .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
}
/* Admin Login Form */
#adminLoginDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

#adminLoginDiv input[type="password"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 200px;
}

#adminLoginDiv button {
  padding: 8px 16px;
  background-color: #0077cc; /* nice blue color */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#adminLoginDiv button:hover {
  background-color: #005fa3; /* darker blue on hover */
}

/* Optional: mobile responsiveness */
@media (max-width: 500px) {
  #adminLoginDiv {
    flex-direction: column;
  }
  #adminLoginDiv input[type="password"] {
    width: 100%;
  }
  #adminLoginDiv button {
    width: 100%;
  }
}
/* Fix cover reels on smaller screens */
@media (max-width: 768px) {
  .video-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .empowerment-grid {
    grid-template-columns: 1fr; /* Stack vertically for better mobile layout */
    gap: 1.5rem;
  }

  .video-card {
    text-align: center;
  }
}
@media (max-width: 768px) {
  .move-down {
    margin-top: 25px; /* move it down on mobile */
    /* or, if it’s cropping your face */
    object-position: center 30%;
  }
}
