:root {
            --yellow: #ffd600;
            --red: #e53935;
            --blue: #1976d2;
            --button:rgb(6, 6, 125);
            --button-green: green;
            --light-yellow: #fffbe5;
            --border-radius: 8px;
        }


/* * {
            box-sizing: border-box;
        } */

/* FLASH MESSAGE*/
.flash-message{
    display: block;
    width: 100%;
    background-color: gold;
    color: #000;
    font-style: italic;
    font-size: 1rem;
    padding: 10px;
}
/* Profile Photo */
.profile-photo-and-username{
    width: 100%;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.flash-message ul li {
    list-style: none;
}

.welcome-new-user-main-base-html{
    width: 100%;
    text-align: center;
}
.login-name{
    color: var(--red);
    font-style: oblique;
    font-weight: 700;
    font-size: 1rem;
}
/*contact form*/  
.body-around-form{ width: 50%;
                  margin-left: auto;
                  margin-right: auto;


}
  .contact-form-h1{
     text-align: center;
     font-style: italic;
     font-weight: 700;
}

label{
    font-weight: 700;
   
}


form {
    background-color: var(--yellow);
     display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: solid 4px blue;
    border-radius: 2rem;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}
/*ALL BUTTONS */
.btn-bg-blue{
    background-color: var(--button);
    color: #fff;
    padding: 7px;
    border-radius: 1rem;
    border: solid 1px var(--red);

}
.btn-bg-green{
    background-color: var(--button-green);
    color: #fff;
    padding: 7px;
    border-radius: 1rem;
    border: solid 1px var(--red);
}

/*Welcome user buttons*/
.aut-buttons-login{
    background-color: var(--button-green);
     border: solid 1px red;
    border-radius: 1rem;
    padding: 5px;
    font-weight: 700;

}
.aut-buttons-register{
     background-color: var(--yellow);
     border: solid 1px red;
    border-radius: 1rem;
    padding: 5px;
    font-weight: 700;

}
.contact-submit-button{
    width: 100%;
    max-width: 40%;
    font-size: 1.5rem;
   font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 900;
    border: solid 8px red;
    border-radius: 2rem;
    padding: 8px;
    margin-top: 5px;
}

/* Get advise buttons */
.advise-list-button{
    border: solid 1px var(--red);
    border-radius: 1rem;
    background-color: var(--yellow);
    padding: 5px;
}

.create-advise-list-button{
    background-color: #fff;
    color: #000;
    font-size: 1.5rem;
    border-radius: 1rem;
    padding: 8px;
}

.get-advice-group-buttons{
    margin-top: 5px;
    padding: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 1rem;
    border: solid 1px --red;
}
.p-buttons-center{
    max-width: 50%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.p-buttons-center{ text-align: center;}
/*Read more button */
 .read-more-home-page{
    background-color: blue;
    color: #fff;
    border: solid 1px gold;
    border-radius: 1rem;
    padding: 5px;
 }

/*LOGOUT FOR BUTTON*/
.login-form-button{
    background-color: transparent;
    border: none;
    padding: 2px;
}
.login-form-button button{
    background-color: var(--yellow);
    width: 70px;
    height: 30px;
    font-size: 1rem;
    font-style: normal;
    border-radius: .5rem;
    border: solid 1px --red;
}

.login-register-button{
     background-color: var(--yellow);
    height: 30px;
    font-size: 1rem;
    font-style: normal;
    border-radius: .5rem;
    border: solid 1px --red;

}

nav .aut-buttons {
    margin: 1px;
    padding: 0;

}
/*NEWS LIST*/
.back-to-news-list-button{
    margin-top: 10px;
    background-color: var(--yellow);
    font-weight: 700;
    border-radius: .5rem;
    border: solid 1px red;
    padding: 7px;
}

/* New List*/
.new-lis-ul li{
    margin-top: 10px;
}

form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-weight: 400;
    border: solid 1px red;
    border-radius: 1rem;
   
}

form .contact-card{
    margin-bottom: 30px;
}
 .You-can-get-int-touch-with-us{
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
 }
textarea{
    width: 100%;
    border: solid 1px red;
    border-radius: 1rem;
    padding: 10PX;
}
 .create-an-account-heading{
    text-align: center;
 }
 .create-an-account-heading{
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 50%;
 }
 
 .content-center h1{
    text-align: center;
 }
 .farm-news{
    text-align: center;
    margin-bottom: 10px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
  .farm-news-button{
     text-align: center;
     background-color: var(--button-green);
     font-size: 1.5rem;
     border-radius: 1rem;
     border: solid 5px gold;
     padding: 10px;
     font-weight: 700;
    }

section li {
    padding-top: 15px;
    line-height: 1.5rem;
    
}

section p {
    line-height: 1.6rem;

}
/* photo album  */
/* Album list grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.album-card {
    background: #fffdf2;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 0.75rem;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.album-cover img,
.album-cover-placeholder {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}

.album-cover-placeholder {
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
    font-size:0.9rem;
}

.album-card h2 {
    margin: 0.6rem 0.75rem 0.25rem;
    font-size: 1.05rem;
}

.album-description {
    margin: 0 0.75rem 0.25rem;
    font-size: 0.9rem;
    color: #444;
}

.album-meta {
    margin: 0 0.75rem;
    font-size: 0.8rem;
    color: #777;
}

/* Photo grid (album detail) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.photo-card {
    background:#fffdf2;
    border-radius:8px;
    border:1px solid rgba(0,0,0,0.1);
    padding:0.5rem;
    text-align:center;
    box-shadow:0 2px 4px rgba(0,0,0,0.04);
}

.photo-card img {
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:5px;
    cursor:pointer;
}

.photo-card h3 {
    margin:0.4rem 0 0.2rem;
    font-size:0.95rem;
}

.photo-caption {
    margin:0;
    font-size:0.8rem;
    color:#555;
}

/*Mew light box*/
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto; /* allow scrolling if image is tall */
  padding: 24px;
  z-index: 9999;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
}

#lightbox-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Keep controls visible even if the overlay scrolls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: sticky; /* key: stays visible during scroll */
  top: 200px;
  z-index: 2;
}

.lightbox-close {
  float: right;
  font-size: 36px;
  line-height: 1;
  padding: 6px 12px;
}

.lightbox-prev,
.lightbox-next {
  font-size: 36px;
  line-height: 1;
  padding: 6px 12px;
  margin-top: 12px;
}

.lightbox-prev {
  float: left;
   top:300px;
 margin-left: 8px;
   
}

.lightbox-next {
  float: right;
  margin-left: 8px;
  top:300px;

}

@media (max-width: 786px) {

   form {
        width: 100%;

      
    }
    .body-around-form{
        width: 100%;
    }

    .contact-submit-button{
        font-size: 1rem;
        max-width: 60%;
    }
    
}
/* Responsive tweaks */
@media (max-width: 600px) {
    .album-cover img,
    .album-cover-placeholder {
        height: 150px;
    }

    .photo-card img {
        height: 160px;
    }

    .advise-list-button,
    .btn-bg-blue,
    .btn-bg-green{
        font-size: .8rem;
    }

    
}

/* On narrow screens, make buttons easier to hit */
@media (max-width: 520px) {
  .lightbox-overlay {
    padding: 12px;
  }
  .lightbox-prev{
    font-size: 32px;
    top:400px;
    margin-left: 5px;
   
    }

    .lightbox-next{
    font-size: 32px;
    top:400px;
    margin-right: -50px;

    }
    .lightbox-close {
        font-size: 32px;
        top:260px;
        margin-right: 10px;
    }

}





@media (max-width: 400px) {

     .advise-list-button,
    .btn-bg-blue,
    .btn-bg-green{
        font-size: .6rem;
        padding-left: 3px;
        padding-right: 3;
    }

     .dashboard-group-buttons{
        width: 100%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

      .advise-list-button,
    .btn-bg-blue,
    .btn-bg-green{
        font-size: .5rem;
        
    }

    /*light-box*/
    .lightbox-prev,
    .lightbox-next{
        top:400px
    }
    .lightbox-close{
        top: 300px;
    }

}

/* @media (max-width: 350px) {
   
    

} */


/* photo album ends here*/








/*test code*/

       aside {
        margin-top: 10px;
    display: flex;
    gap: 1rem;          /* space between images */
    justify-content: center; /* centers them horizontally */
    align-items: center;
}

aside .content {
    padding: 0;         /* optional: removes padding if you want tight layout */
    background: none;   /* optional: removes background if not needed */
    border: none;       /* optional */
}

aside img {
    display: block;   /* optional: control size */
    width: 100%;
    height: auto;
}

aside .image2{
   width: 50%;
}

.threeimages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;          /* spacing between images */
    flex-wrap: wrap;    /* allows wrapping on small screens */
    text-align: center; /* ensures anchors are centered */
}

.threeimages img {
    max-width: 200px;   /* you can increase/decrease this */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;     /* centers the images */
    border-radius: 6px;
}

/* MOBILE: stack images vertically */
@media (max-width: 600px) {
    .threeimages {
        flex-direction: column;
    }

    .threeimages img {
        max-width: 280px;    /* slightly larger on mobile */
    }
}


    


       /*test code*/
@media (max-width: 700px) {
      
    aside {
        flex-direction: column;
    }

}