* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}


.navbar {
  width: 100%;
  height: 3.5rem;
  background-color: rgb(216, 230, 245);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
}

.logo {
  color: #1d848d;
  margin-left: 0.5rem;
}

.logo img{
  width: 5rem;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  color: rgb(96, 96, 96);
}

.nav-links a:hover{
  font-size: 1.2rem;
  color: #1d848d;
  transition: 0.2s ease-in-out;
}

.nav-actions i {
  font-size: 1.5rem;
  margin-right: 3rem;
}

/* Hero section */
.hero{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.frame1{
    margin-top: 3rem;
    width: 380rem;
    height: 37rem;
    background-image: url(./assets/image3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}


.frame2{
    /* background-image:linear-gradient(rgb(216, 230, 245), white); */
    background-image: url(./assets/image1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: rgb(53, 52, 52);
    width: 180rem;
    height: 40rem;
    padding-left: 2rem;
    padding-right: 2rem;

}

/* About section */
.about-content{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.about-image img{
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 500px; 
  margin-left: 4rem;
  
}

.about-text {
  max-width: 500px;
}

.about-text p {
  font-size: 1.8rem;
  margin-bottom: 1.3rem;
  color: rgb(90, 87, 87);
}

.about-text h1{
    font-size: 2rem; 
    padding-bottom: 1rem;
}

/* places section */
.places-container{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.box{
    /* background-color: green; */
    width: 20rem;
    height: 32rem;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.box1-img img{
    background-repeat: no-repeat;
    background-size: auto;
    width: 18rem;
    height: 21rem;
    margin-left: 1rem;
    margin-top: 0.5rem;
    border-radius: 1.5rem;
    box-shadow: 5px 5px 10px 1.5px lightblue;
}

.box1-text{
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.box1-text h3{
    border-bottom: 2px solid black;
    width: 15rem;
    padding-bottom: 0.5rem;
    color: #1d848d;
}

.box1-text i{
    padding-top: 0.7rem;
    color: rgb(95, 95, 95);
}

.box1-text i:hover{
  color: #1d848d;
  transition: 0.2s ease-in-out;
}

#red:hover{
  color: red;
}

.box1-text a{
  text-decoration: none;
  color: #1d848d;
}

.box1-text a:hover{
  color: grey;
  font-size: 1.1rem;
  transition: 0.2s ease-in-out;
}

.box:hover{
    transition: 0.2s ease-in;
    box-shadow: 0 4px 8px 0 rgba(33, 33, 33, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* footer section */
#footer {
  background-color: rgb(216, 230, 245);
  text-align: center;
  color: rgb(90, 87, 87);
}

.foot-head {
  line-height: 3.5rem;
}

.foot-head h1 {
  font-weight: 400;
  font-style: italic;
}

.foot-head i {
  font-size: 3rem;
  color: #1d848d;
  margin-top: 1.5rem;
}

.foot-form {
  font-family: "Poppins", sans-serif;
  margin-top: 0.8rem;
  line-height: 2.5rem;
}

.foot-form > #email {
  font-size: 1rem;
  box-sizing: border-box;
  width: 20rem;
  border: none;
  border-bottom: 2px solid rgb(90, 87, 87);
  padding: 0.8rem;
}

.foot-form button{
    background-color: rgb(216, 230, 245);
    padding: 0.5rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 0.2rem solid #1d848d;
}
.foot-form button:hover{
    background-color: #1d848d;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in;
}

.foot-links{
    display:flex;
    justify-content: center;
}

.foot-links ul{
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.foot-links a{
    color: #1d848d;
    font-size: 1.5rem;
}

.foot-links a:hover{
    font-size: 2rem;
    transition: 0.4s ease-in;
}

hr{
    width: 75rem;
    margin: 2rem auto;
    border: none;
    height: 0.2rem;
    background-color: rgb(90, 87, 87);
}

#footer p{
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* blog-heading */
.blog-head{
  padding-top: 5rem;
  margin-left: 2rem;
  margin-right: 2rem;
  text-align: center;
  line-height: 2rem;
}

.blog-head h1{
  color: #1d848d;
  padding-bottom: 1.5rem;
}

.blog-head h2{
  color: grey;
  font-style: italic;
  padding-bottom: 1rem;
}

/* blog-content */
.blog-content{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.blog-container{
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  width: 50rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  padding-left: 2.3rem;
}

/* .blog-container {
  overflow: hidden;
  transition: height 0.3s ease;
} */

.blog-container h1{
  padding: 1rem 0;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 600;
}

.blog-img img{
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.blog-text{
   padding-top: 2rem;
  color: black;
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-text h3{
  font-style: normal;
}

.blog-text ul{
  padding-left: 2.3rem;
}

.blog-links{
    display:flex;
    border-top: 2px solid gray;
}

.blog-links ul{
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.blog-links a{
    color: rgb(86, 85, 85);
    font-size: 1.2rem;
}

.blog-links a:hover{
    color: #1d848d;
}

.activity i{
  font-size: 1.3rem;
  color: rgb(86, 85, 85);
  padding-bottom: 1rem;
  padding-top: 2rem;
}

.activity i:hover{
  color: #1d848d;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

/* comment box */
.comment-box{
  border: 1px solid rgb(170, 170, 170);
  border-radius: 0.8rem;
  width: 42rem;
  padding: 0.5rem 2rem;
  display:none;
  margin-bottom: 1.5rem;
}

.comment-box h3{
  font-style: italic;
  color: black;
  border-bottom: 1px solid rgb(170, 170, 170);
  padding-bottom: 1rem;
  padding-top: 1rem;
  font-weight: 300;
}

.comment-box textarea{
  margin: 2rem;
  margin-left: 0.3rem;
  border: 1px solid rgb(170, 170, 170);
}

textarea{
  padding-left: 0.8rem;
  padding-top: 0.8rem;
  font-style: italic;
}

.comment-box textarea:hover{
  border: 1px solid rgb(56, 56, 56);
}

.comment-action{
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.comment-action a{
  text-decoration: none;
  color: black;
}

.comment-action a:hover{
  color: grey;
  font-size: 1.03rem;
}

.comment-action button{
  border: none;
  padding: 0.5rem 1.5rem;
  color: white;
  background-color: grey;
  margin-left: 0.5rem;
}

.comment-action button:hover{
  background-color: rgb(54, 54, 54);
  cursor: pointer;
}

/* login signup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  backdrop-filter: blur(8px);
  background-color: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-logo {
  width: 100px;
  margin-bottom: 1rem;
}

.form-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-toggle button {
  padding: 0.5rem 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.form-toggle button.active {
  background: #333;
  color: white;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-form input,
.auth-form button {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.auth-form button {
  background: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #555;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* personal blogs */
.personalBlogs{
  margin: 0;
  padding: 0;
  padding-top: 5rem;
}

.personalBlogs h1{
  text-align: center;
}
.userBlogsSection {
  margin-left: 12rem;
  max-width: 60rem;
  margin: 2rem;
}

.userBlogsSection p{
  padding-bottom: 1rem;
}

.userBlogsSection h2,h3{
  color: #1d848d;
}
 
#blogForm input,
#blogForm textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.publish{
    background-color: rgb(216, 230, 245);
    padding: 0.3rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 0.2rem solid #1d848d;
}
.publish:hover{
    background-color: #1d848d;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in;
}

#blogList .blog-card {
  background: #fff;
  margin-top: 1rem;
  padding: 1rem;
  border-left: 5px solid #009688;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-card button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#writing-tips{
  text-align: center;
  font-size: 1.2rem;
  line-height: 3rem;
  padding: 2rem 0;
}

#writing-tips h2{
  color: #1d848d;
  font-style: italic;
  font-weight: 500;
}

/* CRUD  */
.blog-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.blog-actions button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #1d848d;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.blog-actions button:hover {
  background-color: #155c63;
}
