/* --- Image Styling Enhancements --- */
.salvation.prayer1-image img,
.responsive-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(74, 67, 112, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.salvation.prayer1-image img:hover,
.responsive-image-wrapper img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(74, 67, 112, 0.35);
}


/* ========================================= */
/* Base Layout and Reset Styles              */
/* ========================================= */

/* Ensure html and body take full height of the viewport */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Set up body as a vertical flex container */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ======================================== */
/* Weekly Teaching Image - Responsive Style */
/* ======================================== */

.teaching-image {
  max-width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.teaching-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* optional for rounded corners */
}

/* ======================================== */
/* Responsive Image Wrapper for Partnership */
/* ======================================== */

.responsive-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin: 20px 0;
}

.responsive-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* optional */
}


/* Header Styling                            */
/* ========================================= */
html, body {
  margin: 0;
  padding: 0;
  height: auto;
}

.header {
  position: relative;
  height: 400px;
  background-image: url('Images/koinonia logo option4.jpeg');
  background-size: cover;
  background-position: center 55%;  /* Moved up */
  background-repeat: no-repeat;
  overflow: visible;

}

.fly-in {
  animation: flyInRight 1.2s ease-out forwards;
  position: absolute;
  top: 20px;
  right: 1%;
  z-index: 2;
}

.fly-in-logo {
  max-width: 450px;
  height: auto;
}

@keyframes flyInRight {
  from {
    right: -500px;
    opacity: 0;
  }
  to {
    right: 1%;
    opacity: 1;
  }
}

.header h1 {
  color: white;
  font-size: 2.5rem;
  margin-top: 200px;
  text-align: center;
  z-index: 3;
  position: relative;
}


/* Make h2 headings visually match h1 style */
h2 {
  font-size: 3.5rem;         /* Slightly smaller than h1 */
  font-weight: 700;          
  margin-top: 20px;
  margin-bottom: 20px;
  color: black;
}



/* ========================================= */
/* Main Content Section                      */
/* ========================================= */

nav {
  width: 100%;
  background-color: #2c2c2c;
  z-index: 1000;
  height: 60px;
}

ul.navbar {
  margin: 0;
  padding: 0;
}

/* Restore article centering */
  .main-content {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.main-content article {
  max-width: 800px;
  width: 100%;
}

.navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #2c2c2c;
  position: relative;
}

.navbar > li {
  display: flex;
  align-items: center;
  height: 60px;

  position: relative;
}

.navbar > li > a,
.dropbtn {
  text-decoration: none;
  color: #ddd;
  padding: 14px 20px;
  display: block;
  font-weight: 600;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.navbar > li > a:hover,
.dropbtn:hover {
  background-color: #b22222;
  color: white;
}

/* Dropdown Styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  flex-direction: column;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content li a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  border-radius: 0;
  transition: background-color 0.3s;
}

.dropdown-content li a:hover {
  background-color: #ddd;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: flex;
}

/* Existing nav styles above... */

/* --- Spacing fix starts here --- */
nav,
ul.navbar,
.navbar > li,
.navbar > li > a {
  margin: 0;
  padding: 0;
}

body,
html,
section,
.main-content {
  margin: 0;
  padding: 0;
}

.element {
  width: 100%;
}

.main-content article {
  margin: 0;
  padding: 20px; /* Keep this so your content isn't flush against the edge */
}


/* --- Navigation Link Hover Effect --- */
.navbar a {
  color: #4a4370; /* Deep purple from your palette */
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.navbar a:hover,
.navbar a:focus {
  color: #6a5d8f; /* Slightly lighter purple for hover */
  border-bottom: 2px solid #6a5d8f;
}



/* ========================================= */
/* Article Content Area                      */
/* ========================================= */

article {
  width: 70%;
  padding: 20px;
  background-color: #f1f1f1;
  min-height: 300px;
}

/* Headings inside articles */
article h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Paragraphs inside articles */
article p {
  font-size: 1.2rem;
  line-height: 1.6;
}


/* ==========================
   ABOUT US PAGE STYLES
   ========================== */
/* ==========================
   ABOUT US PAGE STYLES
   ========================== */

/* == ABOUT PAGE SECTION BLOCK STYLING == */

/* Container for each about section */
.about-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Enables wrapping on small screens */
}

/* Image container */
.about-image,
.miracles,
.ministry,
.mentoring {
  flex: 1 1 300px; /* Flexible basis with a min width */
  max-width: 400px;
}

/* Images inside the blocks */
.about-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Text container */
.about-text,
.ministry.channels-text {
  flex: 2 1 500px;
}

/* Headings */
.about-text h1,
.about-text h3,
.ministry.channels-text h3 {
  margin-top: 0;
  color: #4a4370;
}

/* Paragraph text spacing */
.about-text p,
.ministry.channels-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* == Responsive layout for smaller screens == */
@media (max-width: 768px) {
  .about-block {
    flex-direction: column;
  }

  .about-image,
  .miracles,
  .ministry,
  .mentoring {
    max-width: 100%;
  }

  .about-text,
  .ministry.channels-text {
    flex: 1 1 100%;
  }
}


/* ===============================
   ABOUT PAGE BLOCK STYLING
   =============================== */

/* ==========================
   ABOUT US PAGE STYLES
   ========================== */

/* == ABOUT PAGE SECTION BLOCK STYLING == */

/* Container for each about section */
.about-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Enables wrapping on small screens */
}

/* Image container */
.about-image,
.miracles,
.ministry,
.mentoring {
  flex: 1 1 300px; /* Flexible basis with a min width */
  max-width: 400px;
}

/* Images inside the blocks */
.about-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Text container */
.about-text,
.ministry.channels-text {
  flex: 2 1 500px;
}

/* Headings */
.about-text h1,
.about-text h3,
.ministry.channels-text h3 {
  margin-top: 0;
  color: #4a4370;
}

/* Paragraph text spacing */
.about-text p,
.ministry.channels-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* == Responsive layout for smaller screens == */
@media (max-width: 768px) {
  .about-block {
    flex-direction: column;
  }

  .about-image,
  .miracles,
  .ministry,
  .mentoring {
    max-width: 100%;
  }

  .about-text,
  .ministry.channels-text {
    flex: 1 1 100%;
  }
}


/* ===============================
   ABOUT PAGE BLOCK STYLING
   =============================== */

/* Container for each About Us section block */
.about-block {
  display: flex;                /* Side-by-side layout */
  align-items: flex-start;     /* Align top edges */
  gap: 20px;                    /* Space between image and text */
  margin: 40px 0;               /* Spacing between blocks */
  flex-wrap: wrap;             /* Stack on small screens */
  border-bottom: 1px solid #eee; /* Optional visual divider */
  padding-bottom: 30px;
}

/* Image wrapper: limits image size */
.about-image {
  flex: 1 1 250px;              /* Shrinks/grows as needed, min 250px */
  max-width: 300px;
}

/* Image styling */
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Text wrapper */
.about-text {
  flex: 2 1 500px;              /* Takes more space than image */
}

/* Heading inside about section */
.about-text h3 {
  color: #5d5387;               /* Consistent purple tone */
  margin-top: 0;
  font-size: 1.4em;
}

/* Paragraphs inside about section */
.about-text p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  /* Soft purple-ish shadow */
  box-shadow: 0 6px 15px rgba(74, 67, 112, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.about-image img:hover {
  transform: scale(1.05);
  /* Slightly stronger shadow with subtle purple hue */
  box-shadow: 0 10px 25px rgba(74, 67, 112, 0.35);
}


/* ========================================= */
/* Footer Styling                            */
/* ========================================= */

footer {
  background-color: #9b9672;
  padding: 10px;
  text-align: center;
  color: white;
  flex-shrink: 0; /* Keeps footer from shrinking */
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
   =============================== */

@media (max-width: 768px) {
  .about-block {
    flex-direction: column;     /* Stack image above text on small screens */
    text-align: left;
  }

  .about-image,
  .about-text {
    max-width: 100%;            /* Full width for small devices */
  }
}



/* ========================================= */
/* Responsive Layout                         */
/* ========================================= */

/* Stack nav and article vertically on small screens */
@media (max-width: 600px) {
  nav, article {
    width: 100%;
  }
}

/* Adjust header layout for tablets and smaller */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header img {
    height: 100px;
  }

/* Heading text inside header */
header h1 {
  font-size: 4.2rem;
  color: black;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

}

/* ========================================= */
/* Flip Card Styling (Used in analysis.html) */
/* ========================================= */

/* Container holding all the flip cards */
.flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
}

/* Individual card */
.flip-card {
  background-color: transparent;
  width: 45%;
  height: 280px;  /* Slightly taller for better fit */
  perspective: 1000px;
  margin: 10px;
}

/* Inner wrapper that flips */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Flip on hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front and back of card */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

/* Front card style */
.flip-card-front {
  background-color: #f1f1f1;
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Back card style */
.flip-card-back {
  background-color: #2a2b81;
  color: white;
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.flip-card-back img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}


/* Stack cards on top of each other on mobile */
@media (max-width: 600px) {
  .flip-card-container {
    flex-direction: column;
  }

  .flip-card {
    width: 90%;
  }
}

/* ========================================= */
/* Style for the student voices carousal */
/* ========================================= */

.scrollable-text {
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

.scrollable-text::-webkit-scrollbar {
  width: 8px;
}

.scrollable-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scrollable-text::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.scrollable-text::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* Form Layout and Style */
form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin-top: 20px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

input[type="submit"],
input[type="reset"] {
  background-color: #2a2b81;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 1rem;
  margin-right: 10px;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #5566cc;
}

input:required,
textarea:required {
  border: 2px solid red;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  textarea,
  input[type="submit"],
  input[type="reset"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
  }

  label {
    font-size: 1.1rem;
  }

  form {
    padding: 0 10px;
  }
}

/* Forum Post Styling */
.forum-post h2 {
  font-size: 1.5rem; /* Previously was too large like 2rem+ */
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.post-content p {
  font-size: 1rem;
  line-height: 1.5;
}

.forum-container .forum-post h2 {
  font-size: 1.5rem;
}

/* Forum Form Styling */
.new-topic-form h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.new-topic-form label {
  font-size: 1.3rem;
}

.new-topic-form input[type="text"],
.new-topic-form textarea {
  font-size: 1.3rem;
  padding: 8px;
}

/* Focus outline for keyboard users */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #2a2b81;
}


/* Basic styles for hamburger */
/* ======================= */
/* ======================= */
/* HAMBURGER MENU STYLES   */
/* ======================= */

/* Navigation Styling (Fire-Gold Theme) */
nav {
  width: 100%;
  background-color: #1a1a1a;
  z-index: 1000;
  height: auto;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  color: #FFD700;
  background-color: #1a1a1a;
  border: none;
  outline: none;
}

.menu-toggle:hover {
  color: #fff;
  background-color: #B22222;
  transition: all 0.3s ease;
}


.nav-container {
  display: flex;
  flex-direction: column;
}

.navbar {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  flex-wrap: wrap;
}

.navbar > li {
  position: relative;
}

.navbar > li > a,
.dropbtn {
  display: block;
  text-decoration: none;
  color: #FFD700;
  padding: 14px 20px;
  font-weight: 600;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.navbar > li > a:hover,
.dropbtn:hover {
  background-color: #B22222;
  color: #fff;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c2c2c;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 999;
  flex-direction: column;
}

.dropdown-content li a {
  color: #FFD700;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
  background-color: #B22222;
  color: #fff;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: flex;
}

/* Dropdown expand for mobile */
.dropdown.active .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background-color: #1a1a1a;
  }

  .navbar li {
    width: 100%;
    text-align: left;
  }

  .navbar.show {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }
}


/* === Accessibility Styles === */

/* Skip link: hidden offscreen until focused */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4a4370;  /* your purple shade */
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px; /* slides into view */
  outline: 2px solid #fff;
}

/* Focus outline for keyboard users */
:focus-visible {
  outline: 3px solid #5d5387; /* subtle purple outline */
  outline-offset: 2px;
}







/* =============================
   Category Listing Page Styles
   ============================= */

/* Main container for the entire content area */
.main-content {
  padding: 40px 20px;             /* Adds space around the content */
  max-width: 1200px;              /* Limits the content width */
  margin: 0 auto;                 /* Centers the content horizontally */
}

/* Main heading style */
h1 {
  text-align: center;             /* Centers the heading text */
  margin-bottom: 40px;            /* Space below the heading */
  font-size: 2rem;                /* Adjusts font size */
  color: #333;                    /* Dark gray text */
}

/* Container that holds all category items in a flex row */
.category-block {
  display: flex;                  /* Uses Flexbox layout */
  flex-wrap: wrap;               /* Allows wrapping onto next lines */
  justify-content: center;       /* Centers items horizontally */
  gap: 20px;                      /* Space between items */
  margin-bottom: 40px;           /* Space below the block */
}


/* Each clickable category (image + title text) */
.category-link {
  display: flex;      /* Flex container for icon + text */
  align-items: center; /* Vertically centers image and text */
  gap: 10px;            /* Space between image and title */
  flex: 1 1 45%;         /* Responsive width for layout */
  max-width: 500px;       /* Maximum width of each link box */
  text-decoration: none;   /* Removes underline from link */
  background: #f5f5f5;   /* Light gray background */
  padding: 10px;   /* Inner spacing */
  border-radius: 8px;  /* Rounded corners */
  transition: background 0.3s ease, transform 0.3s ease;  /* Smooth hover transitions */
}


/* Category Image Styling */
.category-link img {
  width: 100px;    /* Fixed width */
  height: 100px;   /* Fixed height */
  object-fit: contain;   /* Keeps aspect ratio inside the box */
  border-radius: 5px;   /* Slightly rounded image corners */
  box-shadow: none;   /* No shadow for smaller icons */
  transition: transform 0.3s ease;  /* Smooth scaling on hover (if enabled) */
}

/* Category Title Text Styling */
.category-link span {
  font-size: 1rem;   /* Medium text size */
  font-weight: 600;  /* Slightly bold for emphasis */
  color: #333;   /* Dark text color */
}


/* Optional: Disable hover effect for small icons only */
.category-icon:hover {
  transform: none;
  box-shadow: none;
}


/* Responsive Layout: Stack on Small Screens */
@media (max-width: 768px) {
  .category-link {
    flex: 1 1 100%;  /* Makes each category take full width */
  }
}






/* =============================
   Message Details Page Styles
   ============================= */

/* Section Intro Text */
.category-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Grid Container */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Individual Video Card Block */
.video-card {
  max-width: 100%;
  text-align: center;
}

/* Embedded YouTube Video Styling */
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Video Title Styling */
.video-title {
  margin-top: 10px;
  font-weight: bold;
  color: #222;
}