*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
}
.GoTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000; /* Ensure it stays on top */
    display: none; /* Initially hidden */
}
header {
    background-color: #cecbc7;
    display: flex;
    align-items: center;
    justify-content: space-between; /* espace entre les 3 blocs */
    padding: 25px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
:root {
    --main-color: red;
    --text-color: #000000;
}
.nav{
  display: flex;
    list-style: none;
    gap: 95px;/* espace entre les liens */
    margin: 0;
    padding: 0;

}
.nav li {
    font-weight: 500;
    cursor: pointer;
}
header .header-buttons {
    flex: 1; /* prend de la place à droite */
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}
/* Bouton Sign In */
.btn.sign-in {
  background: white;       /* fond blanc */
  color: #333;             /* texte foncé */
  border: 1px solid #ccc;  /* fine bordure grise */
}

/* Bouton + Post Listing */
.btn.post {
  background: red;         /* fond rouge */
  color: white;            /* texte blanc */
  border: none;            /* pas de bordure */
}
.btn.post:hover {
  background: darkred;
}

#MenuBar{
    display: none;
}
.logo {
  font-size: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
}

.logo .i {
  font-style: italic;   /* I en italique */
  color:mediumvioletred;         /* Vert */
}

.logo .d {
  color: green;        /* Orange */
}

.logo .a {
  color: orangered;         /* Tu peux mettre une autre couleur si tu veux */
}

.logo .k {
  color: blue;          /* Bleu */
}



.logo span {
    color: var(--main-color);
    font-weight: 600;
}
.Home {
    width: 100%;
    height: 100vh;
    background-image: url("bgk.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    object-fit: cover;
    background-color: #83b765;
}
.hero{
    background-color: #83b765;
}
.hero-text {
   width: 100%;
   max-width: 800px;      /* limite la largeur du texte */
   margin: 0 auto;        /* centre horizontalement */
   text-align: center;    /* centre le texte */
   padding: 60px 20px;    /* espace autour */
}

.hero-text h1{
    font-size: 2.7rem;
}
.hero-text h2{
    font-size: 0.9rem;
    margin: 20px 0;
}

.hero-text span{
    color: var(--main-color);
    
}
.buttons {
    display: flex;          /* met les boutons en ligne */
    gap: 30px;              /* espace entre les boutons */
    justify-content: center;/* centre horizontalement */
    align-items: center;    /* centre verticalement si le parent est grand */
    margin-top: 20px;       /* petit espace au-dessus */
}

.btn, .btnn, .btnnn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn { background-color: rgb(231, 124, 124); color: #fdf2f2; }
.btn:hover { background-color: rgba(199, 86, 101, 0.781); }

.btnn { background-color: rgb(209, 203, 203); color: #fff; }
.btnn:hover { background-color: white; }

.btnnn { background-color: rgb(207, 175, 175); color: #fff; }
.btnnn:hover { background-color: aliceblue; }
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  border: 1px solid #ccc;
  border-radius: 30px;
  overflow: hidden;
  width: 600px;          /* largeur totale */
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

.search-part {
  flex: 1;               /* 50% largeur */
  padding: 12px 20px;
  text-align: center;
  font-weight: 500;
  color: #444444c2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;              /* espace entre texte et icône */
}
.divider {
  width: 2px;              /* plus épais (gras) */
  background: #000;        /* couleur noire bien visible */
  height: 40px;            /* un peu plus long pour bien séparer */
  margin: 0 10px;
}

.arrow {
  font-size: 14px;
  color: #666666ce;
}
/* Titres */
.categories h1,
.listings h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.underline {
  width: 60px;
  height: 4px;
  background: red;
  border-radius: 5px;
  margin: 0 auto 30px auto;
}

/* Boutons des catégories */
.category-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.category-btn {
  padding: 12px 25px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.category-btn:hover {
  background: #f9f9f9;
  transform: scale(1.05);
}
.category-btn {
  padding: 12px 25px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.category-btn:hover {
  background: #f9f9f9;
  transform: scale(1.05);
}

/* Boutons listings */
.listing-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.listing-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #eee;
  font-size: 14px;
  transition: 0.3s;
}

.listing-btn.active {
  background: red;
  color: #fff;
}

.listing-btn:hover {
  background: #ddd;
}
.listings {
  text-align: center;
  margin: 50px auto;
  width: 100%;
}

.listings h2 {
  font-size: 28px;
  font-weight: 700;
}

.underline {
  width: 60px;
  height: 4px;
  background: red;
  border-radius: 5px;
  margin: 10px auto 30px auto;
}

/* Grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Card */
.listing-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Info inside card */
.listing-info {
  padding: 15px;
  text-align: left;
}

.listing-info h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 10px;
  color: #fff;
}

.status.new { background: green; }
.status.featured { background: orange; }
.status.sale { background: red; }

.listing-info p {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin-bottom: 10px;
}

.details {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

/* Agent */
.agent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
/* Conteneur pour centrer */
.btn-container {
  width: 100%;               /* occupe toute la largeur */
  display: flex;
  justify-content: center;   /* centre horizontalement */
  margin-top: 20px;          /* espace au-dessus */
}

.load-more {
  background-color: #ff6b6b; /* rouge clair */
  color: white;              /* texte blanc */
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.load-more:hover {
  background-color: #ff4c4c; /* rouge plus foncé au hover */
}
/* FOOTER STYLES */
.footer {
  width: 100%;
  background-color: #b6a5a5; /* marron-gris */
  color: white;
  padding: 40px 60px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-title {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.footer-boxes {
  display: flex;
  gap: 30px;
}

.footer-box {
  background-color: rgba(88, 83, 83, 0.966);
  color: white;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  min-width: 300px;
}

.footer-box h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-box p {
  font-size: 16px;
}
.featured-locations {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.underline {
  width: 60px;
  height: 4px;
  background: red;
  border-radius: 5px;
  margin: 0 auto 30px auto;
}
.featured-locations {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.underline {
  width: 60px;
  height: 4px;
  background: red;
  border-radius: 5px;
  margin: 0 auto 30px auto;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 colonnes */

  grid-template-rows: repeat(2, 200px);
  gap: 15px;
  max-width: 1200px;
  margin: 30px auto;
}

/* Style général des blocs image */
.gallery .item {
  position: relative;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.caption {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* === Positionnement précis des images === */
.kandy {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
}

.anuradhapura {
  grid-row: 1;
  grid-column: 2;
}

.badulla {
  grid-row: 1;
  grid-column: 3;
}

.gampaha {
  grid-row: 2;
  grid-column: 2;
}

.jaffna {
  grid-row: 2;
  grid-column: 3;
}

.colombo {
  grid-row: 1 / span 2;
  grid-column: 4 / 5;
}


.important-articles {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.underline {
  width: 60px;
  height: 4px;
  background: red;
  border-radius: 5px;
  margin: 0 auto 30px auto;
}

.articles {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.articles h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.articles-container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* grande image à gauche, petits articles à droite */
  gap: 20px;
}

.main-article img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease; /* animation image */
}

.main-article:hover img {
  transform: scale(1.03); /* zoom léger */
}

.article-info {
  margin-top: 10px;
}

.article-info .date {
  font-size: 0.9rem;
  color: #ff3b3b;
}

.side-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-card {
  display: flex;
  gap: 10px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer; /* curseur main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px); /* petit effet de levée */
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.article-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.05); /* zoom léger */
}

.article-card h4 {
  font-size: 1rem;
  margin: 0;
  transition: color 0.3s ease;
}

.article-card:hover h4 {
  color: #ff3b3b; /* change couleur titre */
}

.footer {
  background: #f7f7f7;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: bold;
}

.logo-red { color: #ff3b3b; }
.logo-blue { color: #4a90e2; }
.logo-green { color: #83b765; }

.footer-logo p {
  font-size: 14px;
  margin: 10px 0;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a img {
  width: 20px;
  margin-right: 10px;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 5px 0;
}

.footer-links ul li a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
}

.footer-newsletter p {
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-newsletter form {
  display: flex;
  gap: 5px;
}

.footer-newsletter input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.footer-newsletter button {
  background: #ff3b3b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}
@media (max-width: 991px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 200px;
  }

  .kandy, .colombo {
    grid-row: auto;
    grid-column: span 2;
  }

  .articles-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
    width: 90%;
    padding: 10px;
  }

  .divider {
    display: none;
  }

  .category-buttons,
  .listing-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .kandy,
  .colombo {
    grid-column: 1;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-boxes {
    flex-direction: column;
    gap: 20px;
  }
}
