/* message and alerts  */
.message-display {
  width: 100%;
  background-color: gold;
  color: #000;
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 10px;

 
  
}

/* all the h heading style here */
.create-new-post-h2{ text-align: center;}

.blog-post-welcome{
    color: #fff;
    font-weight: 900;
}

.login-user-on-post-create-page{
  color: greenyellow;
  text-transform: capitalize;
}

.welcome-guest{
   width: 100%;
  background-color: #2e7d32;
   color: #fff;
    font-weight: 900;
    border: solid 2px gold;
    padding: 2px 2px 2px 15px;
    margin-top: 10px;
    
}

.register-guest-button{
  background-color: gold;
  color: black;
  border-radius: 2rem;
  border: solid 2px  transparent;
  font-weight: 600;
  padding: 2px;
}

.welcome-user{
  width: 100%;
  background-color: #2e7d32;
   color: #fff;
    font-weight: 900;
    border: solid 2px gold;
    padding: 2px 2px 2px 15px;
    margin-top: 10px;
}

.welcome-user-name{
  text-transform: capitalize;
  color: gold;
}


.you-are-not-logged-in-home-page{
    font-weight: 400;
    font-size: rem;
    color: #fff;
}
/* button */
.create-account-home-page{
    background-color: gold;
    color: #000;
    border-radius: 1.5rem;
    border: solid 2px greenyellow;
}

.posted-by-name{
    font-style: oblique;
    
}


/* post page */

/* Container for all posts */
/* === BLOG GRID LAYOUT === */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  width: 90%;
}

/* Each post card */
.post-card {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2e7d32;          /* reggae green */
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Hover effect */
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
  border-color: #f9a825;              /* reggae gold on hover */
}

/* Image wrapper for uniform sizes */
.post-image-wrapper {
  width: 90%;
  height: auto;                      /* Adjust height as desired */
  overflow: hidden;
}

.post-image-wrapper img {
  width: 40%;
  height: auto;
  margin-left: 30%;
  object-fit: cover;  /* This makes images uniform & cropped nicely */
  padding-top: 10px;
}

/* Post content */
.post-content {
  padding: 1rem 1.2rem 1.4rem;
}

.post-title a {
  color: #f9a825;                     /* gold */
  text-decoration: none;
}

.post-title a:hover {
  color: #e53935;                     /* red */
}

.post-meta {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.post-excerpt {
  color: #f5f5f5;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Read More button */
.read-more-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(90deg, #e53935, #f9a825, #2e7d32); /* red-gold-green */
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.read-more-btn:hover {
  filter: brightness(1.1);
}

.email-phone-number-link-style a{
  color: #fff;

}
/* Desktops: 3 per row */
@media (min-width: 1200px) {
  .welcome-user{
    margin-bottom: 2%;
  }
  .post-card {
    flex: 0 0 calc(33.333% - 1.2rem);  /* 3 per row */
  }
}
/* === RESPONSIVE GRID BREAKPOINTS === */

/* Tablets: 2 per row */
@media (min-width: 768px) {

  .welcome-user{
    margin-bottom: 10%;
  }

  .posts-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .post-card {
    flex: 0 0 calc(50% - 1rem);   /* 2 per row */
  }
}

/* === PAGINATION STYLES === */
.pagination-wrapper {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f9a825;
  color: #f9a825;
  text-decoration: none;
  font-size: 0.9rem;
}

.pagination-btn:hover {
  background: #f9a825;
  color: #000;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.pagination-info {
  color: #f5f5f5;
  font-size: 0.9rem;
}

/* FORM STYLES */
/* === FORM CONTAINER === */
form {
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #2e7d32; /* reggae green */
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Each field wrapper */
form p {
    margin-bottom: 1.5rem;
}

/* === LABELS === */
form label {
    color: #f9a825; /* gold */
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === INPUT FIELDS === */
form input[type="text"],
form input[type="file"],
form input[type="password"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #333;
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
form input[type="text"]:focus,
form input[type="file"]:focus,
form textarea:focus {
    border-color: #f9a825;   /* gold */
    outline: none;
    box-shadow: 0 0 8px rgba(249,168,37,0.6);
}

/* Textarea size */
form textarea {
    min-height: 180px;
    resize: vertical;
}

/* === ERROR MESSAGES === */
form .errorlist,
form .errorlist li {
    color: #e53935; /* reggae red */
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0.5rem 0;
    font-weight: bold;
}

/* === SUBMIT BUTTON === */
form button[type="submit"] {
    background: linear-gradient(90deg, #e53935, #f9a825, #2e7d32); /* red-gold-green */
    color: #000;
    border: none;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: filter 0.2s ease, transform 0.2s ease;
}
/* design by */
.design-by-easybooks{
  width: 100%;
  font-size: .8rem;
  font-style: italic;
  text-align: center;
  color: greenyellow;
  border-top: solid 1px #fff;
  
}

form button[type="submit"]:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 600px) {
    form {
        padding: 1.2rem;
    }
}
