html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* HERO SECTION BASE */
.hero {
  background-image: url('../images/jesusandislander-mobile4.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
}

/* Welcome Text 
.welcome-centered {
  position: absolute;
  top: 52%;
  left: 47%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  z-index: 10;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.welcome-centered h1 {
  color: white;
  font-size: 2.5em;
  margin: 0;
}

*/

@media (max-width: 768px) {
  .welcome-centered {
    top: 60%;
    left: 50%;
    padding: 14px 20px;
  }

  .welcome-centered h1 {
    font-size: 1.5em;
  }
}


.centered_text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translateY(-10%);
  font-size: 3em;
  font-family: 'Arial Black', sans-serif;
  color: white;
  text-shadow: 2px 10px 10px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.centered_text2 {
  position: absolute;
  top: 50%;
  left: 29%;
  transform: translateY(-10%);
  font-size: 2em;
  font-family: 'Arial Black', sans-serif;
  color: white;
  text-shadow: 2px 10px 10px rgba(0, 0, 0, 0.7);
  z-index: 2;
}


.index-bg1 {
  background-image: url('../images/jesusandislanders.png');
  background-size: cover;
  padding: 60px 20px;
  min-height: 50vh;
  color: #111;
}

/* All background variations */
.addpost-bg1,
.news-bg1,
.contact-bg1,
.register-bg1,
.family-bg1,
.donate-bg1 {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 60px 20px;
  min-height: 100vh;
  color: #111;
}

.addpost-bg1 {
  background-image: url('../images/orangebackgroundribbons.png');
}

.news-bg1 {
  background-image: url('../images/sandbackground.png');
}

.contact-bg1 {
  background-image: url('../images/announcementbackground.png');
}

.register-bg1 {
  background-image: url('../images/coconutbackground.png');
}

.family-bg1,
.donate-bg1 {
  background-image: url('../images/orangebackgroundribbons.png');
}

/* Wrapper and Card Styles */
.family-wrapper,
.register-wrapper,
.donate-wrapper {
  background-color: rgba(255, 255, 255, 0.97);
  margin: 5em auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 1200px;
  font-size: 1.2em;
}

.donate-card,
.family-card,
.contact-card {
  background-color: white;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.donate-button {
  padding: 12px 24px;
  background-color: #0070ba;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.donate-button:hover {
  background-color: #005f9c;
}

input[type="number"] {
  padding: 10px;
  width: 80%;
  max-width: 300px;
  font-size: 16px;
  margin-top: 10px;
}

/* Family Tree */
.family-tree {
  list-style: none;
  padding-left: 20px;
  max-width: 800px;
  margin: auto;
}

.family-tree li {
  list-style-type: none;
  margin: 8px 0;
  line-height: 1.5;
  position: relative;
}

.tree-node {
  cursor: pointer;
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  transition: background 0.3s;
}

.tree-node:hover {
  background: rgba(255, 255, 255, 1);
}

.arrow {
  margin-right: 6px;
}

.children {
  margin-left: 20px;
  display: none;
}

.children.open {
  display: block;
}

.spouse {
  margin-left: 20px;
  font-style: italic;
  color: #444;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.checkbox-group input[type="checkbox"] {
  margin: 0;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding: 10px 20px;
  position: relative;
  font-size: 1.5em;
}

.centered_text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translateY(-10%);
  font-size: 3em;
  font-family: 'Arial Black', sans-serif;
  color: white;
  text-shadow: 2px 10px 10px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.nav-brand {
  color: white;
  font-weight: bold;
  font-size: 1.5em;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  font-size: 2em;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* News Section */
.news-wrapper {
  padding: 5px 20px;
  max-width: 1500px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: #333;
}

.news-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #111;
}

.news-item {
  margin-bottom: 40px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.news-item h3 {
  color: #222;
  margin-bottom: 10px;
}

.news-item p {
  margin: 5px 0;
}

.news-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
}

.news-image2 {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
}

.news-image3 {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
}

.news-top-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* NEW: aligns top edges */
  flex-wrap: wrap;
}

.news-main-post {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
}

.news-side-posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.rest-posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
}

.side-post {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-head {
    text-align: center;
    color:white;
}

.news-head2 {
    text-align: center;
}


/* Family Tree Horizontal Scroll */

.tree-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  padding-bottom: 20px;
}

.page-title {
  text-align: center;
  margin-top: 20px;
  font-size: 32px;
}


.hero-wrapper {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  text-align: center;
}

.hero-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content h1,
.hero-content .page-title {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
  margin: 0;
}

.hero-content h1 {
  font-size: 4em;
  font-weight: bold;
}

.hero-content .page-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 10px;
}




/* Contact Section */
.contact-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  color: #222;
}

/* Polished look for main post and side posts */
.news-main-post, .side-post, .news-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.side-post:hover, .news-item:hover {
  transform: translateY(-3px);
}

/* Unify image styling */
.news-image, .news-image2, .news-image3 {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}

/* Typography tweaks */
.news-main-post h3,
.side-post h4,
.news-item h4 {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 5px;
}

.news-main-post p,
.side-post p,
.news-item p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

/* Link styling */
a {
  color: #5a3ec8;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Make earlier posts section clean */
.rest-posts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #ccc;
}

/* Button enhancement */
.news-head button {
  background-color: #6e4700;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.news-head button:hover {
  background-color: #523500;
}

.latest-post-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.latest-post-content {
  flex: 2;
  min-width: 300px;
}

.latest-post-comments {
  flex: 1;
  min-width: 250px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.latest-post-comments h4 {
  margin-top: 0;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.latest-post-comments ul {
  padding-left: 20px;
  margin: 0;
}

.latest-post-comments li {
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #333;
}


.view-post {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 30px;
}

.comment-section {
  margin-top: 30px;
}

.comment-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.comment-card p {
  margin: 8px 0 0 0;
  color: #333;
}

.comment-time {
  float: right;
  font-size: 0.85em;
  color: #888;
}

.leave-comment {
  margin-top: 30px;
}

.leave-comment form input[type="text"],
.leave-comment form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.leave-comment form button {
  background-color: #6e4700;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

.leave-comment form button:hover {
  background-color: #523500;
}

.post-navigation {
  margin-top: 40px;
  text-align: center;
}

.post-navigation a {
  font-weight: bold;
  color: #5a3ec8;
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}



.dashboard-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
}

.dashboard-welcome h1 {
  margin-bottom: 10px;
  font-size: 32px;
  color: #333;
}

.dashboard-welcome p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card-link {
  text-decoration: none;
}

.dashboard-card {
  background: #007BFF;
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 150px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dashboard-card:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.logout-button {
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.logout-button:hover {
  background: #b02a37;
}


.logout-top-right {
  text-align: right;
  margin-bottom: 10px;
}











.contact-card a {
  color: #6e4700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Register */

.register-wrapper1 {
  background-color: rgba(255, 255, 255, 0.97);
  margin: 1em auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 900px;
  font-size: 1.2em;
}


.register-wrapper input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.register-wrapper select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.register-wrapper input[type=date] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}


.register-wrapper button {
  padding: 10px 20px;
  background-color: #6e4700;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

.register-wrapper button:hover {
  background-color: #523500;
}

.register-align{
    justify-content: space-between;
    padding:5px;
    margin:5px;
    
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px;
    border-radius: 8px;
    width: 60%;
    z-index: 99;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 1em;
    padding: 10px;
  }

  .centered_text {
    font-size: 2em;
    left: 30%;
  }
}

/* Responsive Hero for Mobile */
@media (max-width: 768px) {
  .centered_text {
    font-size: 1em;
    left: 30%;
    text-align: center;
  }

  .hero {
    background-image: url('../images/jesusandislander-mobile4.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: black;
  }

  .welcome-wrapper h1 {
    font-size: 2em;
    padding: 12px 20px;
  }
}
  
  @media (max-width: 768px) {
  .hero,
  .index-bg1 {
    background-image: url('../images/jesusandislander-mobile4.png');
    background-color: #fff !important; /* Change if you prefer black or another color */
  }
}

  @media (max-width: 430px) {
  .hero,
  .index-bg1 {
    background-image: url('../images/jesusandislander-mobile4.png');
    background-color: #fff !important; /* Change if you prefer black or another color */
  }
}


