:root {
  --blue: #004274;
  --orange: #f7941d;
  --green: #0a8f3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  background: #f4f6f8;
  padding-top: 100px;
  overflow-x: hidden;
}

/* WHATSAPP BUTTON */

.whatsapp-float{
  position:fixed;
  bottom:25px;
  left:25px;
  width:60px;
  height:60px;
  z-index:1000;
  transition:transform 0.4s ease, opacity 0.4s ease;
}

.whatsapp-float img{
  width:100%;
  height:100%;
  border-radius:50%;
  animation:shake 2s infinite;
}

/* HIDE BUTTON */
.whatsapp-hide{
  transform:translateY(100px);
  opacity:0;
}

/* SMOOTH SHAKE */

@keyframes shake{
  0% { transform: rotate(0deg); }
  25% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

/* =======================
   NAVBAR
======================= */
/* TOP CONTACT BAR */
.topbar{
  background:#0a8f3c;
  padding:6px 40px;
  display:flex;
  justify-content:flex-end; /* pushes everything to the right */
  align-items:center;
}

.topbar-right{
  display:flex;
  gap:20px; /* space between email and phone */
}

.topbar a{
  color:white;
  text-decoration:none;
  font-size:18px;
}

.topbar a:hover{
  text-decoration:none;
  color: #f7941d;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.logo {

  display: flex;
  align-items: center;
}

.logo img {
  height: 100px; /* adjust as needed */
  width: auto;
  display: block;
}


.nav-links {
  margin-left: 200px;
  margin-top: 10PX;
  display: flex;
  align-items: center;
}

/* Default link color */
.nav-links a,
.dropbtn {
  font-size: 18px;
  color: var(--green);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.3s; /* smooth hover/active transition */
}

/* Hover effect */
.nav-links a:hover,
.dropbtn:hover {
  color: var(--orange);
}

/* Active link (stays orange) */
.nav-links a.active,
.dropbtn.active {
  color: var(--orange);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  position: relative;
  padding-right: 1px;
}

.dropbtn::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--green);
  transition: 0.3s ease;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
  border-top-color: var(--orange);
}

.dropdown-content {
  margin-top:20px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
}

.dropdown-content a {
  margin-left: 10px;
  display: block;
  padding: 14px 0px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  color: var(--orange);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* =======================
   PAGE SYSTEM
======================= */
.page {
  display: none;
  min-height: calc(100vh - 100px);
  padding: 60px 40px;
}

.page.active {
  display: block;
}

/* =======================
   HERO SLIDER
======================= */
.hero-slider {
    margin-top: -30px;             /* pull up behind navbar */
    position: relative;            /* needed for absolute child elements if any */
    left: 50%;
    width: 100vw;                  /* full viewport width */
    margin-left: -50vw;            /* center hero exactly edge-to-edge */
    min-height: 80vh;              /* minimum hero height */
    display: flex;
    align-items: center;           /* vertically center content */
    justify-content: center;       /* horizontally center content */
    padding: 0 15px;               /* optional inner padding */
    overflow: hidden;              /* prevent horizontal scroll from children */
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    
}

.overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.overlay h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.overlay p {
    font-size: 20px;
    max-width: 700px;
}

/* =======================
   ONGOING PROJECTS
======================= */
.ongoing-projects {
  max-width: 1400px;
  margin: auto;
  padding: 70px 0 !important;
}

.ongoing-projects h2 {
  text-align: center;
  font-size: 50px;
  color: var(--green);
  margin-bottom: 50px;
  font-weight: 700;
}

.ongoing-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ongoing-card img {
  border-radius: 1px!important;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ongoing-card img:hover {
  transform: scale(1.05); /* slightly zoom in */
  box-shadow: 0 12px 25px rgba(0,0,0,0.2); /* subtle shadow */
  cursor: pointer;
}

/* ===============================
   SECTION
================================= */
.home-services {
  padding: 80px 8%;
}

.home-services h2 {
  text-align: center;
  font-size: 50px;
  color: var(--green);
  margin-bottom: 50px;
  font-weight: 700;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.image-scroll-wrapper {
  position: relative;
  width: 100%;
}

/* Hide buttons by default */
.prev,
.next {
  opacity: 0;
  pointer-events: none;   /* Prevent clicking when hidden */
  transition: opacity 0.3s ease;
}

/* Show buttons when hovering over the image wrapper */
.image-scroll-wrapper:hover .prev,
.image-scroll-wrapper:hover .next {
  opacity: 1;
  pointer-events: auto;
}

.image-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.image-scroll img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Hide scrollbar */
.image-scroll::-webkit-scrollbar {
  display: none;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.7);
}
.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  transition: color 0.3s ease; /* smooth color change on hover */
}

.card-content h3:hover {
  color: #f7931e; /* change to any color you like on hover */
  cursor: pointer; /* optional, indicates it's interactive */
}

/* LOCATION + CATEGORY */
.card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.location i {
  color: #999;
  font-size: 14px;
}

.category {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  letter-spacing: 1px;
}

.details-btn {
  margin-left: 70px;
  padding: 10px 20px;
  background: #f7931e;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.details-btn:hover {
  background: #e67e00;
}

/* =======================
   HOW TO OWN GRID
======================= */
.how-to-own {
  max-width: 1400px;
  margin: auto;
  padding: 70px 40px;
}

.how-to-own h2 {
  text-align: center;
  font-size: 50px;
  color: var(--green);
  margin-bottom: 50px;
}

.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* IMAGE BASE */
.own-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 1px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* HOVER EFFECT */
.own-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* =======================
   WHY INVEST SECTION
======================= */
.why-invest {
  background: #0a8f3c;
  color: #fff;
  padding: 100px 40px;
  width: 100vw;                    /* Full viewport width */
  margin-left: calc(-50vw + 50%);  /* Stretch to edges */
  box-sizing: border-box;
}

.why-invest-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
}

/* LEFT */
.why-left h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.why-item {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}

.why-item span {
  font-size: 22px;
  font-weight: bold;
  color: #f7941d;
}

.why-item p {
  line-height: 1.7;
  font-size: 15px;
}

/* FORM */
.why-right {
  background: #ffffff;
  color: #333;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  width: 100%;                /* reduced width */
  max-width: 400px;          /* max width */
  margin: auto;              /* center the form */
}

.why-right h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #0a8f3c;
  font-size: 29px;
}

/* Labels above inputs */
.inquiry-form label {
  margin-left: 40PX;
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
  color: #000000;
}

/* INPUTS & SELECTS with GREEN BORDER */
.inquiry-form input,
.inquiry-form select {
  margin-left: 40PX;
  width: 70%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #0a8f3c; /* green border */
  font-size: 14px;
  border-radius: 4px;
  box-sizing: border-box;
}

.inquiry-form input::placeholder,
.inquiry-form select option {
  color: #000000;
}

.inquiry-form button {
  width: 100%;
  padding: 13px;
  background: #f7941d;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
}

.inquiry-form button:hover {
  background: #d97706;
}

/* VIDEO SECTION */
.why-video {
  max-width: 1000px;
  margin: 80px auto 0;
  text-align: center;
}

/* VIDEO BOX */
.video-box {
  margin: 30px auto;
  width: 900px;
  max-width: 1000px;
  height: 420px;
  background: url("https://img.youtube.com/vi/WF01yygZ9ZQ/maxresdefault.jpg") center/cover no-repeat;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.required {
  color: red;
  margin-left: 2px;
}

/* BOOK APPOINTMENT ON VIDEO */
.video-cta {
  position: absolute;
  bottom: 20PX;
  left: 20px!important;
  background: #f7941d;
  color: #fff;
  padding: 10px 22px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 25px;
  z-index: 3;
  transition: 0.3s ease;
}

.video-cta:hover {
  background: #d97706;
}

/* PLAY OVERLAY */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.play-btn {
  font-size: 60px;
  color: #ffffff;
}

/* REAL VIDEO (HIDDEN UNTIL PLAYED) */
.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  z-index: 1;
}

/* =======================
   WHY INVEST â€“ EXTRA CONTENT
======================= */
.why-extra {
  margin-top: 100px;
  text-align: center;
}

/* TITLES */
.extra-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.extra-subtitle {
  max-width: 760px;
  margin: 0 auto 60px;
  font-size: 15px;
  line-height: 1.6;
}

/* STATS */
.extra-stats {
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;   /* ðŸ‘ˆ pulls them together */
  gap: 120px;
}


.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ICON BOX ONLY */
.stat-icon {
  background: rgba(255, 255, 255, 0.18);
  padding: 30px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.stat-icon i {
  font-size: 36px;
  color: #ffffff;
}

/* TEXT OUTSIDE */
.stat-item h3 {
  color: #f7941d;
  font-size: 32px;
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 14px;
}

/* PARTNERS */
.partners-heading {
  font-size: 30px;
  margin-bottom: 40px;
}

.partners-row {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.partner-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 4px;
}

.partner-box img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* =======================
   MOBILE RESPONSIVE FIX
   (KEEP GREEN FULL WIDTH)
======================= */
@media (max-width: 768px) {

  /* SECTION (DO NOT TOUCH WIDTH) */
  .why-invest {
    padding: 60px 20px;
  }

  .why-invest-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* LEFT CONTENT */
  .why-left h2 {
    font-size: 26px;
    text-align: center;
  }

  .why-item {
    gap: 12px;
  }

  .why-item span {
    font-size: 18px;
  }

  .why-item p {
    font-size: 14px;
  }

  /* FORM (ONLY THING SHRINKING) */
  .why-right {
    max-width: 300px;   /* reduced width */
    width: 100%;
    margin: 0 auto;     /* centered */
    padding: 20px;
  }

  .why-right h3 {
    font-size: 22px;
    text-align: center;
  }

  /* FIX FORM INPUTS */
  .inquiry-form label,
  .inquiry-form input,
  .inquiry-form select {
    margin-left: 0;
    width: 100%;
  }

  /* VIDEO */
  .video-box {
    width: 100%;
    height: 220px;
  }

  .video-cta {
    font-size: 14px;
    padding: 8px 16px;
    bottom: 10px;
    left: 10px !important;
  }

  .play-btn {
    font-size: 40px;
  }

  /* EXTRA TEXT */
  .extra-title {
    font-size: 26px;
  }

  .extra-subtitle {
    font-size: 14px;
    padding: 0 10px;
  }

  /* STATS (HORIZONTAL) */
  .extra-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
  }

  .stat-item {
    text-align: center;
  }

  .stat-item h3 {
    font-size: 20px;
  }

  .stat-item span {
    font-size: 12px;
  }

  .stat-icon {
    padding: 15px;
  }

  .stat-icon i {
    font-size: 22px;
  }

  /* PARTNERS */
  .partners-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
    .partners-row {
    grid-template-columns: repeat(2, 1fr); /* 2 boxes per row */
    gap: 20px; /* spacing between boxes */
  }

  .partner-box {
    max-width: 200px; /* optional: smaller width for mobile */
    margin: 0 auto;   /* center each box in its cell */
  }
}

/* ABOUT SECTION */
#page-about {
  padding: 80px 20px;
  background: #f4f6f8;
  font-family: 'Poppins', sans-serif;
}

.about-wrapper {
  max-width: 1200px;
  margin: auto;
}

.about-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--green);
}

.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 16px;
}

/* GRID */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* CARD */
.process-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: 0.3s ease;
}

.process-card:hover {
  transform: translateY(-8px);
}

/* STEP NUMBER */
.step-number {
  position: absolute;
  top: -15px;
  right: 20px;
  background: #f7941d; /* premium gold accent */
  color: white;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

/* CARD TITLE */
.process-card h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--green);
}

/* CARD TEXT */
.process-card p {
  color: #000000;
  font-size: 16px;
  line-height: 1.6;
}

/* COMMITMENT BOX */
.commitment-box {
  margin-top: 70px;
  padding: 40px;
  text-align: center;
  background: #fff;
  color: rgb(0, 0, 0);
  border-radius: 12px;
}

.commitment-box h3 {
  color: var(--green);
  margin-bottom: 15px;
  font-size: 22px;
}
/* CONTACTS */
.dashboard-section {
    margin-top: -50px;
    padding: 60px 20px;
    background: #f4f6f8;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #0a8f3c;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin-top: 40px;
    align-items: start;
    position: relative;
}

/* CONTACT INFO */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-items: center;
}

.contact-info-item i {
    font-size: 28px;
    color: #0a8f3c;
    width: 40px;
    text-align: center;
}

.contact-info-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #333;
}

.contact-info-item p {
    margin: 0;
    color: #555;
}

/* CONTACT MAP */
.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
}

/* =========================
   APPOINTMENT FORM CARD
========================= */
.appointment-form-card {
  margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    position: relative;
    top: -40px; /* float above the grid */
    z-index: 10;
}

.appointment-form-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-form-card h3 {
    text-align: center;
    color: #0a8f3c;
    margin-bottom: 15px;
    font-size: 22px;
}

.appointment-form-card input,
.appointment-form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.appointment-form-card button {
    background: #f7941d;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
 .required {
    color: red;
  }
.appointment-form-card button:hover {
    background: #e67e00;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .appointment-form-card {
        top: 0;
        margin-top: 20px;
    }
}

/* BLOG PAGE */
.blog-page {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  font-family: 'Montserrat', sans-serif;
}

/* HEADER */
.blog-header {
  font-size: 30px;
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color:#0a8f3c;
  margin-bottom: 20px;
}

/* CONTROLS */
.blog-controls {
  display: flex;
  gap: 10px;
}

.sort-select {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

/* SUBTITLE */
.blog-subtitle {
  margin: 30px 0 20px 0;
  font-size: 20px;
  color: #0a8f3c; /* brand green */
}

.blog-grid {
  width: 950px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.blog-card {
  background: white;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.read-time {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0a8f3c; /* brand green */
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: 0.3s ease;
}

.blog-card:hover .category {
  background: #f7941d; /* orange hover */
}

/* CONTENT */
.blog-content {
  padding: 18px;
}

.blog-content h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #0a8f3c; /* brand green */
}

.blog-content p {
  color: black;
  font-size: 14px;
  line-height: 1.5;
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button to bottom */
  height: 100%; /* make all cards same height */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.blog-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* lets content fill space */
}

.read-more {
  display: inline-block;
  margin-top: auto; /* keep at bottom of card */
  text-decoration: none;
  color: #fff; /* button text white */
  background-color: #0a8f3c; /* green button background */
  padding: 10px 18px; /* space inside button */
  border-radius: 25px; /* rounded edges */
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.read-more:hover {
  background-color: #f7941d; /* orange on hover */
  transform: translateY(-2px); /* slight lift effect */
}

.blog-full h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #0a8f3c;
}

.blog-full h3 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: black;
}

.blog-full p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Back to Blogs button */
.back-btn {
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #0a8f3c;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.back-btn:hover {
  background: #f7941d; /* hover changes color to orange */
  color: white;
}

/* BLOG META (Author + Date) */
.blog-meta {
  display: flex;
  justify-content: space-between; /* author/date left, button right */
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: #555; /* subtle gray */
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  font-weight: 500;
}

.blog-meta i {
  color: #0a8f3c; /* green icons */
}

/* optional: separator between author and date */
.blog-meta span + span::before {
  content: "|";
  margin: 0 6px;
  color: #ccc;
}

/* ensure read-more stays as a button at the end */
.blog-meta a.read-more {
  margin-top: 0;
}
/* =========================
   KNOWLEDGE HUB
========================= */

.knowledge-hub{
  text-align:center;
  padding:60px 20px 40px 20px;
}

/* TITLE */

.hub-title{
  font-size:50px;
  margin-bottom:40px;
  color:#0a8f3c;
  font-weight:700;
}

.hub-title span{
  color:#f7941d;
}

/* STATS CONTAINER */
.hub-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 150px;       /* increased gap between stats */
  flex-wrap: wrap;
}

/* SINGLE STAT */
.hub-stat {
  text-align: center;
  /* slightly wider for larger icons */
}

/* ICON */
.hub-stat i {
  font-size: 40px;           /* increased icon size */
  color: white;               /* icon color */
  background: #0a8f3c;  /* gradient background */
  padding: 20px;              /* larger padding for bigger circle */
  border-radius: 25%;         /* circular shape */
  display: inline-block;
  margin-bottom: 15px;
  transition: transform 0.3s ease; /* smooth hover effect */
}

/* ICON HOVER EFFECT */
.hub-stat i:hover {
  transform: scale(1.2);      /* subtle grow on hover */
}

/* NUMBER */
.hub-stat h4 {
  font-size: 32px;             /* slightly bigger number */
  font-weight: 700;
  color: #0a8f3c;
  margin-bottom: 5px;
}

/* LABEL */
.hub-stat p {
  font-size: 14px;             /* slightly bigger label */
  color: #666;
}

.extended-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* three cards per row */
  gap: 30px; /* gap between cards */
  max-width: 1200px;
  margin: 40px auto;
}

.extended-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.extended-card h4 {
  color: #0a8f3c;
  margin-bottom: 8px;
}

.extended-card p {
  color: #555;
  font-size: 14px;
  margin-bottom: 12px;
}

.extended-card .counter {
  font-size: 28px;
  color: #f7941d;
  font-weight: 700;
  margin-bottom: 5px;
}

/* =========================
   BLOG HERO
========================= */

.blog-hero{
    margin-top:-30px;              /* pull up behind navbar */
    position:relative;
    left:50%;
    width:100vw;                   /* full viewport width */
    margin-left:-50vw;             /* full-width trick */
    min-height:80vh;
    
    display:flex;
    align-items:center;            /* vertical center */
    justify-content:flex-start;    /* align content to the left */

    padding-left:80px;             /* left spacing for content */
    padding-right:20px;

    overflow:hidden;

    background:url("blog/blog.webp") center/cover no-repeat;
}

/* GRADIENT OVERLAY (FADE EFFECT) */

.hero-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0) 100%
  );
}

/* CONTENT */

.hero-content{
  position:relative;
  max-width:600px;
  z-index:2;
}

/* SUBTITLE */

.hero-subtitle{
  color: #fff;
  font-size:14px;
  letter-spacing:2px;
  margin-bottom:10px;
  opacity:0.8;
}

/* TITLE */

.hero-title{
  font-size:42px;
  font-weight:700;
  margin-bottom:15px;
  color: #f7941d;
}

.hero-title span{
  color:#0a8f3c;
}

/* DESCRIPTION */

.hero-description{
  color: #f7941d;
  font-size:20px;
  line-height:1.6;
  margin-bottom:30px;
}

/* STATS */

.hero-stats{
  color: #0a8f3c;
  display:flex;
  gap:40px;
}

.hero-stat h3{
  font-size:24px;
  margin-bottom:5px;
}

.hero-stat p{
  color: #f7941d;
  font-size:14px;
  opacity:0.9;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #0a8f3c;
  color: #ffffff;
  padding: 80px 60px 40px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

/* BRAND */
.footer-logo {
  margin-left: -70px;
margin-top: -40px;
  width: 400px;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: #f7941d;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 22px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.95;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icons a {
  text-decoration: none !important;
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #0a8f3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: #f7941d;
  color: #ffffff;
}

/* COPYRIGHT */
.footer-bottom {
  max-width: 1400px;
  margin: 60px auto 0;
  padding-top: 25px;
  border-top: 1px solid #fff;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}


/* =========================
   FOOTER MOBILE VIEW
========================= */
@media (max-width:768px){

  .site-footer {
    padding: 50px 20px 25px;
    text-align: left; /* 🔥 align everything left */
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* LOGO */
  .footer-logo {
    width: 250px;            /* 🔥 bigger logo */
    margin-left: 50px;    /* align left */
  }
.footer-col h3 {
  font-size: 30px!important;
  color: #f7941d;
  margin-bottom: 15px;
}
  /* HEADINGS */
  .footer-col h4 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .footer-col h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  /* TEXT */
  .footer-col p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;               /* remove center spacing */
  }

  /* LINKS */
  .footer-col ul {
    padding: 0;
    list-style: none;
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }

  .footer-col ul li a {
    font-size: 13px;
    color: #fff;
    text-decoration: none;   /* 🔥 remove underline */
  }

  .footer-col ul li a:hover {
    color: #f7941d;
  }

  /* SOCIAL ICONS */
  .social-icons {
    justify-content: center; /* 🔥 align left */
    gap: 12px;
    margin-top: 15px;
  }

  .social-icons a {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0a8f3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none !important; /* 🔥 force remove underline */
    border: none;
    outline: none;
  }

  /* remove underline in ALL states */
  .social-icons a:hover,
  .social-icons a:focus,
  .social-icons a:active {
    text-decoration: none !important;
    border: none;
    outline: none;
    background: #f7941d;
    color: #fff;
  }

  /* COPYRIGHT */
  .footer-bottom {
    text-align: center;  /* 🔥 align left */
    margin-top: 35px;
    padding-top: 15px;
    font-size: 12px;
  }

}

/* =========================
   MOBILE BOTTOM NAVBAR
========================= */
.mobile-bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:65px;
  background:#ffffff;
  box-shadow:0 -2px 10px rgba(0,0,0,0.1);
  display:none;
  justify-content:space-around;
  align-items:center;
  z-index:9999;
}

.mobile-bottom-nav .nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#0a8f3c;
  font-size:12px;
  font-weight:500;
  transition:0.3s ease;
}

.mobile-bottom-nav i{
  font-size:20px;
  margin-bottom:3px;
}

.mobile-bottom-nav .nav-item:hover{
  color:#f7941d;
}

.mobile-bottom-nav .nav-item.active{
  color:#f7941d;
}


/* =====MOBILE VIEW SETTINGS================ */
@media (max-width:768px){
.mobile-bottom-nav{
  display:flex;
}
.nav-links{
  display:none;
}
.auth-buttons{
  display:none;
}
body{
  padding-bottom:80px;
}
}

@media (max-width: 768px) {
  
  .topbar {
    padding: 12px 15px;
    justify-content: center; /* center instead of pushing right */
  }

  .topbar-right {
    flex-direction: row; /* keep horizontal */
    gap: 25px; /* smaller spacing */
    flex-wrap: wrap; /* allows wrapping if screen is too small */
    justify-content: center;
  }

  .topbar a {
    font-size: 16px; /* smaller text */
    white-space: nowrap; /* prevents breaking text */
  }

/* Navbar layout */
  .nav-container {
    display: flex;               
    justify-content: space-between; /* logo left, buttons right */
    align-items: center;
    padding: 0 20px;            
  }

  /* Increase navbar height */
  .navbar {
    height: 125px; /* taller than before */
  }

  /* Logo size for mobile */
  .logo img {
    margin-left: -30px;
    height: 70px; /* slightly bigger for taller navbar */
    width: auto;
    display: block;
  }

  /* Auth buttons horizontal and smaller */
  .auth-buttons {
    display: flex;
    gap: 8px; /* reduce spacing slightly */
  }

  .auth-buttons a {
    padding: 9px 15px!important;  /* smaller buttons */
    font-size: 13px;    /* smaller font */
    border-radius: 20px; /* slightly smaller rounded corners */
    text-align: center;
    display: inline-block;
  }

  /* Optional: hide desktop nav links */
  .nav-links {
    display: none;
  }

/* Hero */
  .hero-slider {
    margin-top: -35px;
    padding: 10px 5px;
    text-align: center;
    height: 200px;
    min-height: 150px;
  }

  .slide{
    background-size: cover;      /* fills container completely */
    background-position: center;
    background-repeat: no-repeat;
  }

  .overlay h1 {
    font-size: 18px; 
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .overlay p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .cta-group .btn {
    width: 110%;
    font-size: 13px;
    padding: 8px 0;
  }

  .cta-group .btn.btn-orange {
    display: none;
  }

  .cta-group .btn.btn-green {
    display: block;
  }

  .ongoing-projects{
    padding:40px 15px !important;
  }

  .ongoing-projects h2{
    font-size:28px;
    margin-bottom:25px;
  }

  .ongoing-wrapper{
    grid-template-columns:1fr;
    gap:20px;
  }

  .ongoing-card img{
    width:100%;
    height:auto;        /* remove fixed height */
    object-fit:contain; /* show full image */
    border-radius:10px;
  }

  .home-services{
    padding:40px 15px;
  }

  .home-services h2{
    font-size:28px;
    margin-bottom:30px;
  }

  .service-cards{
    grid-template-columns:1fr; /* one card per row */
    gap:20px;
  }

  .image-scroll img{
    height:180px; /* smaller images */
  }

  .card-content{
    padding:15px;
    text-align:center;
  }

  .card-content h3{
    font-size:16px;
  }

  .card-info{
    justify-content:center;
  }

  .details-btn{
    margin-left:0;
    margin-top:10px;
    padding:8px 18px;
    font-size:14px;
  }

  .how-to-own {
    padding: 50px 5%; /* smaller padding for mobile */
  }

  .how-to-own h2 {
    font-size: 28px; /* smaller headline for mobile */
    margin-bottom: 25px;
  }

  .own-grid {
    grid-template-columns: 1fr; /* single column for mobile */
    gap: 20px;
  }

  .own-grid img {
    max-height: none;   /* remove height limit on mobile */
    height: auto;       /* keep full image visible */
    width: 100%;        /* full width */
  }
}

/* =========================
   PROJECTS PAGE
========================= */
/* Project Tabs - left-aligned, underline for active, tabs sit on a horizontal line */
.project-tabs {
  display: flex;
  justify-content: flex-start;
  border-bottom: 2px solid #ccc; /* the horizontal line under all tabs */
  margin: 30px 0 20px 0;
  gap: 40px; /* spacing between tabs */
}

.project-tabs .tab-btn {
  padding: 10px 0;
  background: none;
  border: none;
  color: #08712f;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent; /* underline appears only for active tab */
  transition: border-color 0.3s;
}

/* Active tab underline */
.project-tabs .tab-btn.active {
  border-bottom: 3px solid #e67e00; /* your orange highlight */
}

/* No hover underline */
.project-tabs .tab-btn:hover {
  border-bottom: 2px solid transparent;
}

/* =========================
   PAGE CONTENT CONTAINER
========================= */
.content {
  display: flex;
  gap: 40px; /* space between left & right */
  padding: 30px 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* =========================
   LEFT SIDE: SIDEBAR FILTERS
========================= */
.filters {
  flex: 1 1 250px;
  background: #fff;
  padding: 25px 20px;
  border-radius: 10px;
  position: sticky;
  top: 20px;
  height: fit-content;
  box-sizing: border-box;
}

/* Filters Header with Reset Button Inline */
.filters h2 {
  display: inline-block;
  color: #08712f;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.filters .reset-btn {
  float: right;
  padding: 0;
  border: none;
  background: none;
  color: #e67e00;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}

.filters .reset-btn:hover {
  color: #08712f;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 20px; /* space between filter items */
}

.filter-group label {
  display: block;
  font-weight: 600;
  color: #08712f;
  margin-bottom: 8px;
}
/* Add vertical gap between inputs in PRICE RANGE */
.filter-group input[type="number"] + input[type="number"] {
  margin-top: 10px; /* adjust spacing as needed */
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Number Selector (Bedrooms / Bathrooms) */
.number-selector {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Number selector buttons: flat, no border */
.number-selector button {
  width: 30px;
  height: 30px;
  background: #f4f4f4;       /* light grey background */
  color: #000000;             /* green text */
  border: none;               /* no border */
  border-radius: 5px;         /* optional: rounded corners */
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.number-selector button:hover {
  background: #e0e0e0;       /* slightly darker grey on hover */
  color: #08712f;             /* keep green text */
}


/* =========================
   RIGHT SIDE: PROJECT LISTING
========================= */
.projects-list {
  flex: 3 1 600px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px; /* spacing between cards */
  padding: 5px;
  box-sizing: border-box;
  align-items: start; /* prevent grid items from stretching to row height */
}

/* =========================
   PROJECT CARD (PURE IMAGE + CONTENT)
========================= */

.project-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

/* =========================
   IMAGE AREA
========================= */

.project-card .image-scroll-wrapper {
  position: relative;
  width: 270px;
  height: 290px;
  overflow: hidden;
}

.project-card .image-scroll-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   HOVER ARROWS
========================= */

.project-card .image-scroll-wrapper button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 20px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show buttons only on hover */
.project-card .image-scroll-wrapper:hover button {
  opacity: 1;
}

.project-card .prev-btn {
  left: 10px;
}

.project-card .next-btn {
  right: 10px;
}

/* =========================
   CONTENT AREA
========================= */

.card-content {
  padding: 12px;
  background: transparent !important;
  border: none;
}

.card-content h3 {
  margin: 0 0 6px 0;
  color: #08712f;
}

.card-content p {
  margin: 3px 0;
  color: #333;
}
/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */
@media (max-width: 1024px) {
  .content {
    flex-direction: column;
    gap: 30px;
  }

  .filters {
    position: relative;
    top: auto;
    width: 100%;
  }

  .filters .reset-btn {
    float: none;
    display: block;
    margin-top: 10px;
  }
}

/* =========================
   MOBILE VIEW (PROJECTS PAGE)
========================= */
@media (max-width:768px){

  /* TABS */
  .project-tabs {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }

  .project-tabs .tab-btn {
    font-size: 14px;
    flex-shrink: 0;
  }

  /* CONTENT STACK */
  .content {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }

  /* FILTERS */
  .filters {
    position: static;
    width: 100%;
    padding: 20px 15px;
  }

  .filters h2 {
    font-size: 18px;
  }

  .filters .reset-btn {
    font-size: 13px;
  }

  /* INPUTS */
  .filter-group input,
  .filter-group select {
    padding: 8px;
    font-size: 13px;
  }

  /* NUMBER SELECTOR */
  .number-selector button {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  /* PROJECT GRID */
  .projects-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* PROJECT CARD */
  .project-card {
    width: 100%;
  }

  /* IMAGE WRAPPER (UNCHANGED SIZE) */
  .project-card .image-scroll-wrapper {
    width: 100%;
    height: 260px; /* keep card size */
    overflow: hidden;
    position: relative;
  }

  /* 🔥 IMAGE (ONLY THIS IS INCREASED) */
  .project-card .image-scroll-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fills space */
    transform: scale(1.15);   /* 🔥 zoom image only */
    transition: transform 0.3s ease;
  }

  /* CONTENT TEXT */
  .card-content {
    padding: 10px 5px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .card-content p {
    font-size: 13px;
  }
}
/* =========================
   AUTH MODAL (LOGIN / REGISTER)
========================= */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeInModal 0.3s ease-in-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-box {
  background: #ffffff;
  padding: 45px 35px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  position: relative;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.auth-box.show {
  transform: translateY(0);
}

/* =========================
   HEADER (LOGO + TITLE)
========================= */
.auth-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-icon {
  width: 90px;      /* control logo size here */
  margin: 0 auto 15px;
}

.auth-icon img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.auth-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
}

.auth-header p {
  margin-top: 8px;
  font-size: 14px;
  color: #777;
}

/* =========================
   FORM STYLING
========================= */
.auth-box label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 6px;
  margin-top: 15px;
  font-weight: 500;
  color: #333;
}

.auth-box input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.auth-box input:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 12px rgba(10,143,60,0.15);
}

/* Forgot Password */
.forgot-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--orange);
  font-weight: 500;
  transition: 0.3s ease;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #e67e00;
}

/* =========================
   PRIMARY BUTTON
========================= */
.auth-box button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, var(--green), #08712f);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Bottom Switch Text */
.switch-text {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #777;
}

.switch-text a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* Close Button */
.close-modal {
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  transition: 0.3s ease;
}

.close-modal:hover {
  color: var(--orange);
  transform: rotate(90deg);
}

/* =========================
   NAVBAR AUTH BUTTONS
========================= */
.auth-buttons a {
  padding: 10px 25px;
  margin-left: 15px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.login-btn:hover {
  background: var(--green);
  color: #fff;
}

.register-btn {
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
}

.register-btn:hover {
  background: #e67e00;
  border-color: #e67e00;
}

/* =========================
   VERTICAL SCROLL FOR MODAL
========================= */
.auth-box {
  max-height: 90vh;          /* Limit modal height to 90% of viewport */
  overflow-y: auto;           /* Enable vertical scroll if content is tall */
  -ms-overflow-style: none;   /* Hide scrollbar IE/Edge */
  scrollbar-width: none;      /* Hide scrollbar Firefox */
}

.auth-box::-webkit-scrollbar {
  display: none;              /* Hide scrollbar Chrome/Safari/Opera */
}

.navbar-profile {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Avatar */
.navbar-profile .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.navbar-profile .avatar:hover {
  transform: scale(1.05);
}

/* Dropdown */
.profile-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  min-width: 250px;
  display: none;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  padding: 16px;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

/* Show Dropdown */
.profile-dropdown.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Profile Info */
.profile-info {
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.profile-info #userName {
  font-weight: 700;
  color: var(--green);
  font-size: 20px;
}

.profile-info #userEmail {
  font-size: 16px;
  color: var(--orange);
  margin-top: 3px;
}

/* Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-actions .profile-link,
.profile-actions .logout-btn {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

/* Profile Link */
.profile-actions .profile-link {
  background: linear-gradient(135deg,var(--orange), var(--green));
  color: #fff;
}

.profile-actions .profile-link:hover {
  background-color: #e2e2e2;
  padding-left: 18px; /* subtle hover effect */
}

/* Logout Button */
.profile-actions .logout-btn {
  background: linear-gradient(135deg, var(--green),var(--orange));
  color: #fff;
}

.profile-actions .logout-btn:hover {
  background-color: #e2e2e2;
  padding-left: 18px; /* subtle hover effect */
}

/* =========================
   ADMIN DASHBOARD
========================= */

.admin-dashboard-wrapper {
  padding: 50px 60px;
}

.admin-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

/* =========================
   GRID
========================= */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* =========================
   CARD
========================= */

.admin-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.admin-card h3 {
  margin-bottom: 10px;
}

.admin-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* =========================
   BUTTON
========================= */

.admin-card button {
  padding: 10px 18px;
  border: none;
  background: #0a8f3c;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.admin-card button:hover {
  background: #08712f;
}

/* =========================
   DYNAMIC CONTENT
========================= */

.admin-content {
  margin-top: 50px;
}

/* ================================================= */
/* CLIENT TABLE STYLING (NEW ADDITION) */
/* ================================================= */

.admin-table-wrapper {
  margin-top: 30px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.admin-table thead {
  background: #111;
  color: #fff;
}

.admin-table th {
  padding: 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: #f5f7fa;
  transition: 0.3s;
}

/* =========================
   STATUS BADGES
========================= */

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Approved */
.status-badge.approved {
  background: #d4f8d4;
  color: #0b6b0b;
}

/* Pending */
.status-badge.pending {
  background: #fff3cd;
  color: #8a6d00;
}

/* Rejected */
.status-badge.rejected {
  background: #ffd6d6;
  color: #b00000;
}

/* ================= CLIENT DASHBOARD CSS - COMPLETE UPDATED VERSION ================= */
.avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  cursor:pointer;
}

.client-dashboard {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px;
}

/* ================= CLIENT HERO ================= */

.client-dashboard-hero {
    margin-top: -30px;             /* pull up behind navbar */
    position: relative;            /* needed for absolute child elements if any */
    left: 50%;
    width: 100vw;                  /* full viewport width */
    margin-left: -50vw;            /* center hero exactly edge-to-edge */
    min-height: 80vh;              /* minimum hero height */
    display: flex;
    align-items: center;           /* vertically center content */
    justify-content: center;       /* horizontally center content */
    padding: 0 15px;               /* optional inner padding */
    overflow: hidden; 
}

.client-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.client-hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.client-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    
    z-index: 2;
}
.client-hero-slide.active {
  opacity: 1;
}

.client-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* ================= HEADER SECTION ================= */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.welcome-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
}

#clientName {
  color: var(--green);
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: var(--green);
}

.welcome-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

/* ================= FILTERS SECTION ================= */
.filters-section {
  margin-bottom: 25px;
  background: white;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters-left h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.projects-count {
  background: #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 30px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.filter-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.filter-btn.active:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 0 15px;
}

.search-box i {
  color: #94a3b8;
  font-size: 0.9rem;
}

.search-box input {
  border: none;
  padding: 8px 12px;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
  background: transparent;
}

/* ================= STATS CARDS ================= */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  padding-top: 10px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  border: 1px solid #edf2f7;
  transition: border 0.3s ease;
}

.stat-card:hover {
  border-color: var(--orange);
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-wrapper.total {
  background: var(--light-green);
  color: var(--green);
}

.stat-icon-wrapper.active {
  background: var(--light-orange);
  color: var(--orange);
}

.stat-icon-wrapper.budget {
  background: #e8eaf6;
  color: #3f51b5;
}

.stat-content {
  flex: 1;
}

.stat-label {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stat-value h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.stat-trend {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend.positive {
  background: var(--light-green);
  color: var(--green);
}

.stat-trend.neutral {
  background: #f1f5f9;
  color: #64748b;
}

.stat-trend.negative {
  background: #fee2e2;
  color: #dc2626;
}

/* ================= IMAGES SECTION ================= */
.images-section {
  margin-top: 40px;
  margin-bottom: 30px;
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  border: 1px solid #edf2f7;
}

.projects-section {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.section-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
}

.section-actions {
  display: flex;
  gap: 8px;
}

/* View Toggle Buttons */
.view-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-btn:hover {
  background: var(--light-orange);
  color: var(--orange);
  border-color: var(--orange);
}

.view-toggle-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Images Grid - Larger cards */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  transition: all 0.3s ease;
}

/* ================= LIMIT GRID TO 3 IMAGES ================= */

/* In GRID view show only first 3 images */
.images-grid:not(.list-view) .image-card:nth-child(n+4) {
  display: none;
}

/* ================= LIST VIEW ================= */

.images-grid.list-view {
  grid-template-columns: 1fr;
}

/* Show ALL images in list view */
.images-grid.list-view .image-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.images-grid.list-view .image-card-image-container {
  width: 200px;
  height: 150px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

/* ================= IMAGE CARD ================= */

.image-card {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.image-card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.image-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.image-card:hover .image-card-image {
  transform: scale(1.1);
}

/* Remove overlay and badge completely */
.image-card-overlay,
.image-card-badge,
.image-card-content {
  display: none;
}

/* ================= PROJECTS GRID ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 10px;
}

/* ================= PROJECT CARD ================= */
.project-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  border: 1px solid #edf2f7;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: #cbd5e1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.project-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge.ongoing {
  background: var(--light-orange);
  color: var(--orange);
}

.status-badge.completed {
  background: var(--light-green);
  color: var(--green);
}

.status-badge.delayed {
  background: #fee2e2;
  color: #dc2626;
}

.status-badge.pending {
  background: #fff3e0;
  color: #f57c00;
}

/* Project Dates */
.project-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf2f7;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.85rem;
}

.date-item i {
  color: #94a3b8;
  width: 16px;
  font-size: 0.9rem;
}

/* Project Financials */
.project-financials {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  padding: 12px 0;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.financial-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.financial-item .label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.financial-item .value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

/* Progress Bar */
.progress-wrapper {
  margin-top: auto;
  width: 100%;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 6px;
}

.progress-bar {
  height: 8px;
  background: #e9eef3;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Project Images Preview */
.project-images-preview {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #edf2f7;
}

.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--light-orange);
  padding: 6px 12px;
  border-radius: 30px;
}

.preview-label i {
  font-size: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.loading-spinner i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--orange);
}

.loading-spinner span {
  display: block;
  font-size: 1rem;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 80px 30px;
  background: white;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #94a3b8;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #334155;
}

.empty-state p {
  font-size: 1rem;
}

.empty-state.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.empty-state.error i {
  color: #ef4444;
}

/* Empty Images State */
.empty-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.empty-images i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #94a3b8;
}

.empty-images h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #334155;
}

.empty-images p {
  font-size: 0.95rem;
}

/* ================= IMAGE MODAL ================= */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}

.close-modal:hover {
  color: var(--orange);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= MOBILE VIEW (FULL UPDATED) ================= */
@media (max-width: 768px) {

  .client-dashboard {
    padding: 15px;
  }

  /* ================= HERO ================= */
  .client-dashboard-hero {
    margin-top: -40px;
    padding: 10px 5px;
    text-align: center;
    height: 200px;
    min-height: 180px;
    display: block;
  }

  .client-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .client-hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .client-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .client-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 10px;
  }

  .client-hero-content h1 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .client-hero-content p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* ================= HEADER ================= */
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* ================= FILTERS ================= */
  .filters-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .filters-right {
    width: 100%;
    flex-wrap: wrap;
  }

  /* 🔍 SEARCH BIGGER */
  .search-box {
    width: 100%;
    padding: 6px 12px;
  }

  .search-box input {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }

  /* ================= STATS (1 PER ROW) ================= */
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
    gap: 12px;
  }

  .stat-icon-wrapper {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .stat-value h2 {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* ================= IMAGES ================= */
  .images-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* ================= PROJECTS LAYOUT ================= */
  /* Stack projects and description vertically */
  .projects-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Project list full width */
  .projects-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Project description full width */
  .project-description-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 15px 20px !important;
    box-sizing: border-box;
  }

  /* Optional: Adjust header and text */
  .project-description-card h3 {
    font-size: 18px !important;
  }

  .project-description-card p {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  /* ================= PROJECT CARD ================= */
  .project-card {
    padding: 15px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* FINANCIALS STACK */
  .project-financials {
    flex-direction: column;
    gap: 10px;
  }

  /* ================= IMAGE LIST FIX ================= */
  .images-grid.list-view .image-card {
    flex-direction: column;
  }

  .images-grid.list-view .image-card-image-container {
    width: 100%;
    height: auto;
  }

  /* ================= CHAT ================= */
  .chat-sidebar {
    position: fixed !important;
    bottom: 85px !important; /* above navbar */
    right: 15px;
    z-index: 99999 !important;
  }

  .chat-expanded {
    position: fixed !important;
    width: 95vw;
    height: 75vh;
    right: 2.5vw;
    bottom: 85px !important; /* match sidebar */
    z-index: 99999 !important;
  }

  .chat-icon {
    width: 55px;
    height: 55px;
  }

}

/* ================= PROJECT LAYOUT ================= */

.projects-layout {
  display: flex;
  gap: 20px; /* reduced gap to move card closer */
  align-items: flex-start;
  margin-top: 20px;
  padding-right: 70px; /* pulls layout slightly inward */
}

/* LEFT SIDE */
.projects-grid {
  flex: 2;
}

/* RIGHT SIDE – DESCRIPTION CARD */
.project-description-card {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;

  position: relative; /* removed sticky shift effect */
  transition: all 0.3s ease;
}

/* Title */
.project-description-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0a8f3c;
  margin-bottom: 12px;
}

/* Description Text */
.project-description-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;
}

/* ================= CHAT SIDEBAR STYLES ================= */
.chat-sidebar {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Collapsed State - Icon Only */
.chat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.chat-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.chat-icon i {
  color: white;
  font-size: 28px;
}

.chat-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  display: none;
}

/* Expanded State */
.chat-expanded {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.chat-sidebar.expanded .chat-icon {
  display: none;
}

.chat-sidebar.expanded .chat-expanded {
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Chat Header */
.chat-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-left h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.chat-header-left h3 i {
  margin-right: 5px;
  font-size: 14px;
}

.chat-status {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  position: relative;
}

.chat-status.online::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  top: -2px;
  left: -2px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unread-badge {
  background: #ff4757;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

#chatCloseIcon {
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.3s;
}

#chatCloseIcon:hover {
  transform: translateX(-3px);
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-message {
  text-align: center;
  color: #666;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  margin: 10px;
}

.welcome-message i {
  font-size: 40px;
  color: #25D366;
  margin-bottom: 10px;
}

.welcome-message p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.welcome-message small {
  font-size: 12px;
  color: #999;
}

.message {
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

.message.client {
  align-self: flex-end;
}

.message.admin {
  align-self: flex-start;
}

.message-sender {
  font-size: 11px;
  color: #666;
  margin-bottom: 3px;
  margin-left: 10px;
}

.client .message-sender {
  text-align: right;
  margin-right: 10px;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.client .message-content {
  background: #25D366;
  color: white;
  border-bottom-right-radius: 5px;
}

.admin .message-content {
  background: white;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-time {
  font-size: 10px;
  color: #999;
  margin-top: 3px;
  margin-left: 10px;
}

.client .message-time {
  text-align: right;
  margin-right: 10px;
}

/* Communication Selector */
.communication-selector {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.selector-title {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.comm-options {
  display: flex;
  gap: 10px;
}

.comm-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.comm-option i {
  font-size: 20px;
  color: #666;
}

.comm-option span {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.comm-option small {
  font-size: 10px;
  color: #999;
}

.comm-option:hover {
  border-color: #25D366;
  background: #f0f9f4;
}

.comm-option.selected {
  border-color: #25D366;
  background: #e8f5e9;
}

.comm-option.selected i {
  color: #25D366;
}

.comm-option.selected span {
  color: #128C7E;
}

/* Chat Input Area */
.chat-input-area {
  padding: 15px;
  background: white;
}

.message-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 5px;
}

.message-input-wrapper textarea {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  resize: none;
  max-height: 100px;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.3s;
}

.message-input-wrapper textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.message-input-wrapper button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-input-wrapper button:hover {
  background: #128C7E;
  transform: scale(1.05);
}

.message-input-wrapper button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.message-input-wrapper button i {
  font-size: 16px;
}

.char-count {
  text-align: right;
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 15px;
}

.privacy-note i {
  color: #25D366;
  font-size: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-sidebar {
    right: 15px;
    bottom: 15px;
  }
  
  .chat-expanded {
    width: 300px;
    height: 450px;
  }
}

@media (max-width: 480px) {
  .chat-expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ================= PROFILE PAGE (PREMIUM PRO VERSION) ================= */
/* =========================
   PAGE WRAPPER
========================= */

.profile-page-wrapper {
  max-width: 1050px;
  margin: 60px auto;
  padding: 20px;
  animation: fadeIn 0.6s ease-in-out;
}

/* Smooth Page Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FORM CARD
========================= */

.profile-single-form {
  background: var(--card-white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

/* Hover lift effect */
.profile-single-form:hover {
  transform: translateY(-4px);
}

/* Title */
.profile-single-form h2 {
  font-size: 28px;
  margin-bottom: 35px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

/* =========================
   FORM GROUPS
========================= */

.profile-group {
  margin-bottom: 35px;
  padding: 25px;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: 0.3s ease;
}

/* Hover effect for sections */
.profile-group:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.profile-group h3 {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 600;
}

/* =========================
   LABELS
========================= */

.profile-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

/* =========================
   INPUTS (Premium Look)
========================= */

.profile-group input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #dfe5ec;
  font-size: 14px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Input Hover */
.profile-group input:hover {
  border-color: var(--orange);
}

/* Input Focus */
.profile-group input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.12);
  transform: scale(1.01);
}

/* =========================
   BUTTON (Ultra Premium)
========================= */

.profile-submit-btn {
  background: linear-gradient(135deg, var(--orange), var(--green));
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

/* Button Hover */
.profile-submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Button Active */
.profile-submit-btn:active {
  transform: scale(0.96);
}
/* =====================================================
   PREMIUM TOAST - PROFESSIONAL STYLE
===================================================== */

.profile-toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  overflow: hidden;
  z-index: 9999;
}

/* Show Animation */
.profile-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Toast Content */
.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icons */
.toast-icon {
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

/* Message */
.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Close Button */
.toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  transition: 0.3s;
}

.toast-close:hover {
  opacity: 1;
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  animation: shrink 4s linear forwards;
}

/* Progress Animation */
@keyframes shrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* =======================
   TYPE COLORS
======================= */

.profile-toast.success .toast-progress {
  background: var(--green);
}

.profile-toast.error .toast-progress {
  background: var(--orange);
}

.profile-toast.warning .toast-progress {
  background: #f4b400;
}

.profile-toast.success .toast-icon {
  color: var(--green);
}

.profile-toast.error .toast-icon {
  color: var(--orange);
}

.profile-toast.warning .toast-icon {
  color: #f4b400;
}

#profileForm input:disabled,
#profileForm textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}
/* ================= MOBILE VIEW – PROFILE PAGE ================= */
@media (max-width: 768px) {

  /* Page wrapper full width */
  .profile-page-wrapper {
    max-width: 100%;
    margin: 20px auto;
    padding: 10px 15px;
  }

  /* Form card adjustments */
  .profile-single-form {
    padding: 25px !important;
    border-radius: 18px !important;
  }

  .profile-single-form h2 {
    font-size: 20px !important;
    margin-bottom: 25px !important;
    gap: 6px;
  }

  /* Form groups */
  .profile-group {
    padding: 15px !important;
    margin-bottom: 20px !important;
    border-radius: 14px !important;
  }

  .profile-group h3 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  /* Labels */
  .profile-group label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  /* Inputs */
  .profile-group input {
    padding: 10px 12px !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }

  /* Button */
  .profile-submit-btn {
    width: 100% !important;
    font-size: 14px !important;
    padding: 12px 0 !important;
  }

  /* Toasts */
  .profile-toast {
    width: 90% !important;
    bottom: 20px !important;
    right: 5% !important;
    padding: 12px !important;
  }

  .toast-message {
    font-size: 13px !important;
  }

  .toast-icon {
    font-size: 16px !important;
    padding: 6px !important;
  }

}

/* BRAND COLORS */
:root {
  --orange: #f7941d;
  --green: #0a8f3c;
}

/* ===== FEATURED SECTION ===== */
.blog-featured {
  margin: 60px 0;
  padding: 50px 20px;
  background: #fafafa;
  border-radius: 12px;
}

/* HEADER */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--green); /* ✅ GREEN HEADING */
}

.section-header p {
  color: #666;
  font-size: 14px;
}

/* GRID */
.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD */
.featured-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
}

/* ORANGE TOP BORDER (branding touch) */
.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--orange);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* HOVER EFFECT */
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* SOURCE LABEL */
.source {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange); /* 🟠 ORANGE */
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* TITLE */
.featured-title {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0;
  line-height: 1.4;
  color: #222;
}

/* DESCRIPTION */
.featured-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* BUTTON */
.read-btn {
  text-decoration: none;
  font-weight: 600;
  color: var(--green);
  transition: 0.3s;
  display: inline-block;
}

/* BUTTON HOVER */
.read-btn:hover {
  color: var(--orange);
  transform: translateX(4px);
}
/* CENTER BUTTON */
.see-more-wrapper {
  text-align: center;
  margin-top: 25px;
}

/* BUTTON STYLE */
.see-more-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER */
.see-more-btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
}