/* =======================================================
   FINAL COLOR SYSTEM – SAFE MAPPING
======================================================= */
:root {
  /* ===== NEW BRAND COLORS ===== */
  --primary: #1A535C;        /* main brand (navbar, headings) */
  --secondary: #4ECDC4;      /* accent / hover */
  --accent: #FFE66D;         /* highlight */
  --danger-main: #FF6B6B;    /* CTA / delete / alert */

  /* ===== BACKGROUNDS ===== */
  --bg-main: #e1eaeb;        /* page background */
  --bg-card: #FFFFFF;       /* cards */
  --bg-dark: #1A535C;        /* footer / dark areas */


  /* ===== TEXT ===== */
  --text-dark: #1A535C;
  --text-muted: #5F7C80;
  --text-light: #FFFFFF;

  /* ===================================================
     OLD VARIABLES → NEW COLORS (NO BREAK GUARANTEE)
  =================================================== */

  /* Theme based */
  --theme-blue: #1A535C;
  --theme-gold: #FFE66D;
  --theme-text-dark: #1A535C;
  --theme-bg: #F7FFF7;

  /* Primary system */
  --color-primary: #1A535C;
  --color-primary-light: rgba(26, 83, 92, 0.15);
  --color-primary-variant: #4ECDC4;

  /* Grays */
  --color-gray-900: #1A535C;
  --color-gray-700: #5F7C80;
  --color-gray-300: rgba(0, 0, 0, 0.12);
  --color-gray-200: rgba(0, 0, 0, 0.35);

  /* Basics */
  --color-white: #FFFFFF;
  --color-bg: #F7FFF7;

  /* Status */
  --color-red: #FF6B6B;
  --color-red-light: rgba(255, 107, 107, 0.18);
  --color-green: #4ECDC4;
  --color-green-light: rgba(78, 205, 196, 0.18);

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.18);
  --shadow-lg: 0 20px 45px rgba(0,0,0,0.25);

  /* ===== TRANSITION ===== */
  --transition: 0.35s ease;

  /* ===== RADIUS (OLD SUPPORT) ===== */
  --card-radius-1: 0.3rem;
  --card-radius-2: 0.5rem;
  --card-radius-3: 0.8rem;
  --card-radius-4: 2rem;
  --card-radius-5: 5rem;

  /* ===== LAYOUT ===== */
  --container-width-lg: 95%;
  --container-width-md: 95%;
  --form-width: 40%;
}


/* =======================================================
   RESET + GLOBAL
======================================================= */
* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  /*list-style: none;*/
  text-decoration: none;
  box-sizing: border-box;
}

nav ul,
.nav__items,
.footer__container ul {
  list-style: none;
  padding-left: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--theme-text-dark);
  background: var(--theme-bg);
  font-size: 0.9rem;
  overflow-x: hidden;
  padding-top: 4.5rem;
}

.container {
  width: var(--container-width-lg);
  max-width: 1800px;
  margin-inline: auto;
}

section {
  margin-top: 3rem;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--theme-text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

h2 {
  font-size: 1.7rem;
  margin: 1rem 0;
}

h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.5rem;
}

h4 {
  font-size: 1rem;
}

a {
  color: var(--theme-text-dark);
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* extra margin section (old logic) */
.section__extra-margin {
  margin-top: 2rem;
}

/* =======================================================
   NAVBAR – BLUE + GOLD THEME
======================================================= */
nav {
  background: var(--theme-blue) !important;
  width: 100%;
  height: 4.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav__container {
  height: 100%;
  width: var(--container-width-lg);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 45px !important;
  width: auto !important;
  object-fit: contain !important;
}

.nav__items {
  display: flex;
  align-items: center;
  gap:1rem;
}

.nav__items a,
.nav__profile a,
.nav__logo a {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.5px;
}

.nav__items a:hover {
  color: var(--theme-gold) !important;
  transition: var(--transition);
}

.nav__profile {
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.3rem solid var(--color-bg);
}

/* dropdown */
.nav__profile ul {
  position: absolute;
  top: 140%;
  right: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.nav__profile:hover > ul {
  visibility: visible;
  opacity: 1;
}

.nav__profile ul li a {
  padding: 1rem;
  display: block;
  width: 100%;
  background: #fdf2d0 !important;
  color: #000 !important;
  border-bottom: 1px solid #d1b16a;
}

.nav__profile ul li:last-child a {
  background: #8c7026 !important;
  color: #fff !important;
}

/* ===== NAV CITY DROPDOWN ===== */

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 140%;
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 999;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 120%;
}

.nav__dropdown-menu li {
  list-style: none;
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #1A535C !important;
  font-weight: 600;
}

.nav__dropdown-menu a:hover {
  background: #f4f7fb;
  color: #000 !important;
}

/* =======================================================
   CATEGORY BUTTON / REAL ESTATE CTA
======================================================= */
.category__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:auto;
  max-width:max-content;

  background:linear-gradient(135deg,#FFE66D,#ffd23f);
  color:#1A535C !important;

  padding:6px 14px;
  border-radius:30px;

  font-size:12px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;

  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 4px 12px rgba(0,0,0,.15);

  white-space:nowrap;
}
/*.category__button:hover{*/
/*  background: var(--theme-blue);*/
/*  color:#fff !important;*/
/*  transform: translateY(-2px);*/
/*  box-shadow: 0 8px 18px rgba(0,0,0,0.18);*/
/*}*/

.realestate-btn {
  background: #000 !important;
  color: var(--theme-gold) !important;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
}

.realestate-btn:hover {
  background: #222 !important;
  color: #e5c171 !important;
}


/* =======================================================
   FEATURED POST
======================================================= */
.featured {
  margin-top: 8rem;
}

.featured__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.featured .post__thumbnail {
  height: fit-content;
}

/* =======================================================
   POSTS GRID – HOME / CATEGORY
======================================================= */

/* category buttons bar */
.category__buttons {
  padding: 4rem 0;
  border-top: 2px solid var(--color-gray-900);
  border-bottom: 2px solid var(--color-gray-900);
}

.category__buttons-container {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =======================================================
   FOOTER
======================================================= */
footer {
  background: var(--color-gray-900);
  /*padding: 5rem 0 0;*/
  box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.footer__socials {
  margin-inline: auto;
  width: fit-content;
  margin-bottom: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer__socials a {
  background: #ffffff !important;
  border-radius: 50%;
  height: 2.3rem;
  width: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000000 !important;
}

.footer__socials a i {
  color: #000000 !important;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

footer li {
  padding: 0.4rem 0;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 0.6rem;
}

footer ul a {
  color: #ffffff !important;
  opacity: 0.75;
}

footer ul a:hover {
  letter-spacing: 0.1rem;
  opacity: 1;
  transition: var(--transition);
}

.footer__copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 2px solid var(--color-bg);
  margin-top: 4rem;
}

/* =======================================================
   SEARCH BAR (BLOG)
======================================================= */
.search__bar {
  margin-top: 7rem;
}

.search__bar-container {
  position: relative;
  width: 30rem;
  max-width: 100%;
  background: var(--theme-blue);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0.6rem 1rem;
  border-radius: var(--card-radius-2);
  color: #ffffff;
}

.search__bar-container > div {
  width: 100%;
  display: flex;
  align-items: center;
}

.search__bar input {
  background: transparent;
  margin-left: 0.7rem;
  padding: 0.5rem 0;
  width: 100%;
  color: #ffffff;
}

.search__bar input::placeholder {
  color: var(--color-gray-200);
}

/* SEARCH BUTTON (if used as .btn-search) */
.btn-search {
  background: var(--theme-gold) !important;
  color: var(--theme-blue) !important;
  font-weight: 700;
}

/* =======================================================
   BUTTONS
======================================================= */
.btn {
  display: inline-block;
  width: fit-content;
  padding: 0.6rem 2.2rem;
  background-color: var(--color-primary);
  border-radius: var(--card-radius-2);
  cursor: pointer;
  transition: var(--transition);
  color: #000000;
}

.btn.sm {
  padding: 0.3rem;
  font-size: 0.8rem;
}

.btn.danger {
  background-color: red;
}

/*.btn:hover {*/
/*  background: #ffffff;*/
/*  color: var(--color-bg);*/
/*}*/

/* =======================================================
   DASHBOARD
======================================================= */
.dashboard {
  margin-top: 0rem;
  padding: 2rem;
}

.sidebar__toggle {
  display: none;
}

.dashboard__container {
  display: grid;
  grid-template-columns: 15rem auto;
  gap: 5rem;
  background: transparent;
  padding: 0rem;
  margin-bottom: 5rem;
  border-radius: 2rem;
}

.dashboard aside {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dashboard aside a {
  color: var(--primary);
  background: transparent;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.25s;
}

/* hover */
.dashboard aside a:hover {
  background: linear-gradient(135deg,#1A535C,#4ECDC4);
  color: #fff;
  transform: translateX(6px);
}

/* active */
.dashboard aside a.active {
  background: linear-gradient(135deg,#1A535C,#4ECDC4);
  color: #fff;
}

.dashboard aside ul li:not(:last-child) a {
  border-bottom: 1px solid #000000;
}

.dashboard aside a:hover {
  background: var(--color-gray-700);
}

.dashboard aside a.active {
  background-color: #b5b7ba;
}

.dashboard main {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.dashboard main {
  margin-left: 1.5rem;
}

.dashboard main h2 {
  margin: 0 0 2rem 0;
  line-height: 1;
}

.dashboard main table {
  width: 100%;
  text-align: left;
}

.dashboard main table {
  border-collapse: collapse;
}

.dashboard main table th {
  background: #1A535C;
  color: #fff;
  padding: 14px;
  font-weight: 700;
}

.dashboard main table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.dashboard main table tr:hover {
  background: #f4f7fb;
}

.dashboard main table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.dashboard main table tr:hover {
  background-color: var(--color-bg);
  color: var(--theme-text-dark);
  cursor: default;
  transition: var(--transition);
}
.dashboard table td a:hover{
  text-decoration: underline;
  color:#4ECDC4;
}


/* =======================================================
   CATEGORY TITLE / EMPTY PAGE
======================================================= */
.category__title {
  height: 11rem;
  margin-top: 4.5rem;
 background: linear-gradient(135deg, #ffffff, #ffffff) !important;
  display: grid;
  place-items: center;
  color: #ffffff;
  
}

.empty__page {
  height: 70vh;
  text-align: center;
  display: grid;
  place-content: center;
}

/* =======================================================
   FORMS
======================================================= */
.form__section {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 5rem 0;
}

.form__section-container {
  width: var(--form-width);
  max-width: 500px;
}

.alert__message {
  padding: 0.8rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: var(--card-radius-2);
}

.alert__message.error {
  background: var(--color-red-light);
  color: var(--color-red);
}

.alert__message.success {
  background: var(--color-green-light);
  color: var(--color-green);
}

.alert__message.lg {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;   /* 🔥 spacing fix */
}
.form__control.inline {
  flex-direction: row;
  align-items: center;
}

.form__section small {
  margin-top: 1rem;
  display: block;
}

.form__section small a {
  color: var(--color-primary);
}

input,
textarea,
select {
  padding: 0.9rem 1rem;
  background-color: #f8f9fb;
  border-radius: 10px;
  border: 1px solid #ddd;
  color: #000;
  width: 100%;
}

.addpost-card .btn {
  margin-top: 10px;
  align-self: flex-start;
  padding: 10px 24px;
  border-radius: 8px;
}
#editor {
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
}
/* =======================================================
   MEDIA QUERIES – TABLET
======================================================= */
@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-md);
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 0.8rem;
  }


  .nav__items li {
    width: 100%;
    height: 4.5rem;
    display: flex;
    align-items: center;
    box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.7);
    border-top: 1px solid var(--color-bg);
    background: var(--color-gray-900);
  }

  .nav__items a {
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
  }

  .nav__profile {
    background: var(--color-gray-900);
  }

  .nav__profile ul {
    top: 100%;
    width: 100%;
  }

  .nav__profile ul li a {
    padding: 0 2rem;
  }

  .featured__container {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .posts__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .search__bar-container {
    width: 60%;
  }

  .form__section-container {
    padding: 3rem;
  }

  .dashboard__container {
    grid-template-columns: 4.5rem auto;
  }

  .dashboard main table thead {
    display: none;
  }

  .dashboard main table tr {
    display: flex;
    flex-direction: column;
  }

  .dashboard main table tr:nth-child(even) {
    background: var(--color-gray-900);
  }

  .dashboard main table tr:hover td {
    background: transparent;
  }
}

/* =======================================================
   MEDIA QUERIES – MOBILE
======================================================= */
@media screen and (max-width: 600px) {
  section {
    margin-top: 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .featured {
    margin-top: 6rem;
  }

  .featured__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .posts__container {
    grid-template-columns: 1fr;
  }

  .category__buttons-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .search__bar-container {
    width: var(--container-width-md);
  }

  .singlepost__container {
    width: 92%;
    padding: 1.5rem;
    box-shadow: none;
    background-color: #e0e0ec;
  }

  .form__section-container {
    padding: 0;
  }

  .dashboard {
    margin-top: 5rem;
  }

  .dashboard__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard main {
    margin: 0;
  }

  .dashboard main h2 {
    margin-top: 1rem;
  }

  .dashboard aside {
    position: fixed;
    left: 0;
    z-index: 2;
    height: 25vh;
    background: var(--color-primary);
    box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0.4);
  }

  .dashboard .sidebar__toggle {
    display: inline-block;
    background: var(--color-primary-variant);
    color: #ffffff;
    position: fixed;
    right: 0;
    bottom: 14rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50% 0 0 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0.4);
  }
}

/* ============================
   ADD POST CARD DESIGN
============================ */
.addpost-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 750px;
    width: 100%;
}

/* Card heading */
.addpost-card h2 {
    color: #0d1440 !important;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

/* Inputs inside card */
.addpost-card input,
.addpost-card textarea,
.addpost-card select {
    background: #f3f4ff;
    color: #0d1440;
    border: 1px solid #ddd;
    font-size: 0.90rem;
}

.addpost-card input:focus,
.addpost-card textarea:focus,
.addpost-card select:focus {
    border-color: #5854c7;
    box-shadow: 0 0 0 2px rgba(88,84,199,0.25);
}

/* Featured checkbox text color fix */
.addpost-card label {
    color: #0d1440 !important;
}

/* ===============================
   ADMIN DASHBOARD BUTTON HOVER FIX
=============================== */

/* Hover for EDIT button */
.dashboard main table .btn.sm:hover {
    background: var(--theme-blue) !important;
    color: #ffffff !important;
}

/* Hover for DELETE button */
.dashboard main table .btn.sm.danger:hover {
    background: #ff2e2e !important;
    color: #ffffff !important;
    border-color: #ff2e2e !important;
}

/* When row hover happens, button colors remain visible */
.dashboard main table tr:hover .btn {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.dashboard main table tr:hover .btn.danger {
    background: #d90000 !important;
    color: #ffffff !important;
}




/* ===============================
   ABOUT PAGE – FINAL CLEAN CSS
================================ */

.about-section {
  margin-top: 6rem;
  padding: 3rem 0;
}

.about-card {
  background: #ffffff;
  padding: 3.5rem 4rem;
  border-radius: 1.6rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  max-width: 1100px;
  margin: auto;
}

/* Main Heading */
.about-card h1 {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--theme-blue);
  margin-bottom: 1.2rem;
}

/* Intro / Lead */
.about-card .lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto 2.8rem;
  color: #333;
  line-height: 1.85;
}

/* Content Wrapper */
.about-full {
  text-align: justify;
  text-justify: inter-word;
}

/* Paragraphs */
.about-full p {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.6rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .about-card {
    padding: 2.2rem 1.6rem;
  }

  .about-full {
    text-align: left;
  }

  .about-card h1 {
    font-size: 1.85rem;
  }

  .about-card .lead {
    font-size: 1rem;
  }
}

/* ===============================
   CONTACT PAGE
=============================== */
.contact-section {
    margin-top: 6rem;
    padding: 2rem 0;
}

.contact-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    max-width: 600px;   /* 👈 ideal width */
    margin: auto;
}

.contact-card h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-blue);
}

.contact-card .lead {
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #000000;
    background: #f5f6ff;
    font-size: 1rem;
}

.contact-form textarea {
    resize: none;
}

/* ===============================
   GLOBAL PREMIUM BUTTON HOVER FIX
=============================== */

/* Normal primary button */
.btn:hover {
    background: var(--theme-gold) !important;
    color: var(--theme-blue) !important;
    border-color: var(--theme-gold) !important;
    transition: 0.25s ease-in-out;
}

/* Small button (like Edit) */
.btn.sm:hover {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

/* Delete / danger button */
.btn.danger:hover {
    background: #ff1f1f !important;
    color: #fff !important;
    border-color: #ff1f1f !important;
}

/* Category buttons */
.category__button:hover {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

/* Real estate CTA buttons */
.realestate-btn:hover {
    background: var(--theme-gold) !important;
    color: var(--theme-blue) !important;
}

/* Search button */
.btn-search:hover {
    background: #ffffff !important;
    color: var(--theme-blue) !important;
}

/* Dashboard table row hover button fix */
.dashboard main table tr:hover .btn {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

.dashboard main table tr:hover .btn.danger {
    background: #d90000 !important;
    color: #fff !important;
}

* {
  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
/* =======================================================
   FINAL MODERN PROPERTY CARD – STABLE & FIXED
======================================================= */



/* TITLE */
.post__title {
  margin-bottom: 0.6rem;
}

.post__title a {
  color: var(--primary) !important;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  transition: color 0.25s ease;
}


/* DESCRIPTION (EQUAL HEIGHT) */
.post__body {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 70px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* AUTHOR FOOTER (ALWAYS BOTTOM) */
.post__author {
  margin-top: auto !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(26,83,92,0.12);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post__author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--secondary);
}

.post__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__author-info h5 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.post__author-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .post__title a {
    font-size: 1.1rem;
  }
}



.post__link {
  display: flex;
  flex-direction: column;
  /*height: 100%;*/
  text-decoration: none;
  color: inherit;
}

.post__link:hover {
  text-decoration: none;
}
/* ===== FIX SPACE BETWEEN IMAGE & CATEGORY ===== */


/* Optional: center category nicely */
.post__info {
  align-items: flex-start; /* left aligned like modern cards */
}

/* ===== FINAL FIX: CATEGORY BELOW IMAGE ===== */

.post__info {
  padding-top: 0.6rem !important;
}

.post__info .category__button {
  display: inline-block;
  margin: 0.4rem 0 0.6rem 0 !important;
  padding: 0.45rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
}

/* Remove fake gap */
.post__thumbnail {
  margin-bottom: 0 !important;
}

/* ===============================
   BUILDERS LOGO SLIDER – PERFECT LOOP
=============================== */

.builders-slider {
  background: #ffffff;
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid #eee;
}

.builders-track {
  display: flex;
  align-items: center;
  width: fit-content;
  animation: builders-scroll 22s linear infinite;
}

.builders-track img {
  height: 70px;
  width: auto;
  margin-right: 4rem;   /* spacing between logos */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.3s ease;
  flex-shrink: 0;       /* 🔥 VERY IMPORTANT */
}

.builders-track img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* PERFECT LOOP */
@keyframes builders-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .builders-track img {
    height: 55px;
    margin-right: 2.5rem;
  }
}


/* =======================================================
   NAV TOGGLE — FINAL WORKING FIX
======================================================= */

/* DESKTOP DEFAULT */
#open__nav-btn,
#close__nav-btn {
  display: none;
}

/* MOBILE & TABLET */
@media screen and (max-width: 1024px) {

  /* show hamburger */
  #open__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.9rem;
    color: #ffffff;
  }

  #close__nav-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.9rem;
    color: #ffffff;
  }

  /* menu hidden by default */
  .nav__items {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-gray-900);
    z-index: 9999;
  }

  /* when open */
  nav.open .nav__items {
    display: flex;
  }

  nav.open #open__nav-btn {
    display: none;
  }

  nav.open #close__nav-btn {
    display: inline-flex;
  }
}


/* ==================================================
   FIXED BLOG / CATEGORY / SEARCH LAYOUT
================================================== */

/* GRID: 2 desktop, 1 mobile */
/*.posts__container{*/
/*display:grid;*/
/*grid-template-columns:repeat(2,1fr);*/
/*gap:2rem;*/
/*margin-bottom:60px;*/
/*}*/

@media (max-width: 768px) {
  .posts__container {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.post.news-post {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  height: 100%;
}

/* CONTENT ALIGN */
.news-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-author {
  margin-top: auto;
}

/* MOBILE CARD */
@media (max-width: 768px) {
  .post.news-post {
    flex-direction: column;
  }

  .news-thumb img {
    max-width: 100%;
    height: 220px;
  }
}



/* Force Quill editor white background */
.ql-container {
  background: #ffffff;
}

.ql-editor {
  background: #ffffff;
  min-height: 250px;
}
/* =========================================
   AUTH (SIGNIN + SIGNUP) – FINAL FIXED
   NO OVERFLOW, NO BREAK
========================================= */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A535C, #4ECDC4);
  padding: 1.5rem;
  margin-top: -4.5rem;
}

/* CARD */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 2.4rem 2.2rem;   /* ⬅️ slightly reduced */
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  overflow: hidden;        /* 🔥 MOST IMPORTANT */
}

/* Heading */
.auth-card h2 {
  text-align: center;
  font-size: 1.9rem;
  color: #1A535C;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.auth-sub {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.6rem;
}

/* Alerts */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.auth-alert.success {
  background: #e6fff4;
  color: #0f7b5a;
}

.auth-alert.error {
  background: #ffe6e6;
  color: #c40000;
}

/* =========================
   INPUTS – HARD FIX
========================= */

.auth input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ===== SIGNUP GRID ===== */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 600px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

/* INPUT LOOK */
.auth-grid input,
.auth-group input {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

/* Focus */
.auth input:focus {
  outline: none;
  border-color: #4ECDC4;
  box-shadow: 0 0 0 2px rgba(78,205,196,0.25);
}

/* ===== PASSWORD EYE ===== */
.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 46px;
}

.password-wrap i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #777;
  cursor: pointer;
}

.password-wrap i:hover {
  color: #1A535C;
}

/* ===== AVATAR ===== */
.compact-upload {
  margin: 0.6rem 0 1rem;
}

.compact-upload input {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
}

/* BUTTON */
.auth-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #1A535C;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.auth-btn:hover {
  background: #4ECDC4;
  color: #1A535C;
}

/* Footer */
.auth-footer {
  display: block;
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.9rem;
}

.auth-footer a {
  color: #1A535C;
  font-weight: 600;
}
/* =====================================
   FINAL CLEAN ARTICLE PAGE DESIGN
===================================== */

/*.article {*/
/*  padding: 0rem 0 4rem;*/
/*  background: var(--bg-main);*/
/*}*/

/*.article-card {*/
/*  max-width: 820px;*/
/*  margin: auto;*/
/*  background: #ffffff;*/
/*  padding: 3rem;*/
/*  border-radius: 24px;*/
/*  box-shadow: 0 25px 60px rgba(0,0,0,0.08);*/
/*}*/

/*.article-title {*/
/*  font-size: 2.4rem;*/
/*  font-weight: 800;*/
/*  line-height: 1.3;*/
/*  margin-bottom: 1rem;*/
/*  color: var(--primary);*/
/*}*/

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article-image {
  margin-bottom: 2rem;
  border-radius: 18px;
  overflow: hidden;
}

/*.article-content {*/
/*  font-size: 1.05rem;*/
/*  line-height: 1.9;*/
/*  color: #2c2f45;*/
/*}*/

.article-content h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.article-content img {
  margin: 1.5rem 0;
  border-radius: 12px;
}
/* ==================================================
   BLOG CARD SIZE FIX
================================================== */

/*.post.news-post{*/
/*  display:flex;*/
/*  gap:18px;*/
/*  padding:18px;*/
  background:#ffffff;   /* 🔥 clean white */
/*  border-radius:18px;*/
/*  box-shadow:0 10px 25px rgba(0,0,0,.08);*/
/*  min-height:210px;*/
/*  transition:0.25s ease;*/
/*}*/

.post.news-post:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 45px rgba(0,0,0,.15);
}

/* IMAGE */
.news-thumb img{
  width:260px;
  height:170px;
  object-fit:cover;
  border-radius:14px;
  flex-shrink:0;
}

/* CONTENT */
/*.news-content{*/
/*  display:flex;*/
/*  flex-direction:column;*/
/*  justify-content:space-between;*/
/*  height:100%;*/
/*  padding-left:20px;*/
/*}*/

/* TITLE LIMIT */
.news-title{
  font-size:1.25rem;
  margin:6px 0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.news-title a{
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}

.news-title a:hover{
  color: var(--secondary);
}

/* DESCRIPTION LIMIT */
.news-excerpt{
    /*display: -webkit-box;*/
    /*-webkit-line-clamp: 3;*/
    /*-webkit-box-orient: vertical;*/

    /*overflow: hidden;*/
    text-overflow: ellipsis;

    line-height: 1.7;
    max-height: 5rem;

    color: #555;
    font-size: 15px;

    margin-top: 10px;
    margin-bottom: 0;

    position: relative;
    z-index: 1;
}
/* AUTHOR */
.news-author{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.85rem;
}

.news-author img{
    width:40px !important;
    height:40px !important;

    min-width:40px;
    min-height:40px;

    max-width:40px;
    max-height:40px;

    border-radius:50%;

    object-fit:cover;

    display:block;
}

/* MOBILE */
@media(max-width:768px){

  .post.news-post{
    flex-direction:column;
    height:auto;
  }

  .news-thumb img{
    width:100%;
    height:220px;
  }

  .news-content{
    padding-left:0;
    padding-top:14px;
  }

}/* =============================
   RELATED ARTICLES
============================= */

.related-articles{
margin-top:60px;
padding-top:20px;
padding-left: 23px;
    padding-right: 23px;
border-top:1px solid #eaeaea;
}

.related-articles h3{
font-size:24px;
margin-bottom:20px;
font-weight:600;
}

/* GRID */

.related-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

/* CARD */

.related-card{
display:block;
text-decoration:none;
background:#fff;
border-radius:8px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
transition:all 0.3s ease;
}

/* IMAGE */

.related-card img{
width:100%;
height:170px;
object-fit:cover;
}

/* TITLE */

.related-card h4{
font-size:16px;
font-weight:600;
padding:15px;
line-height:1.4;
color:#222;
}

/* HOVER */

.related-card:hover{
transform:translateY(-5px);
box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

.related-card:hover h4{
color:#0073e6;
}

/* =============================
   MOBILE RESPONSIVE
============================= */

@media (max-width:900px){

.related-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:600px){

.related-grid{
grid-template-columns:1fr;
}

.related-card img{
height:200px;
}

}
/* =====================================
   PREMIUM ARTICLE HEADER
===================================== */

.article-header{
margin-bottom:30px;
}

.article-title{
font-size:2.6rem;
font-weight:800;
line-height:1.25;
color:var(--primary);
margin-bottom:1.4rem;
}

/* AUTHOR BLOCK */

.article-meta{
display:flex;
align-items:center;
gap:14px;
margin-bottom:16px;
}

.author-avatar{
width:46px;
height:46px;
border-radius:50%;
object-fit:cover;
border:2px solid var(--secondary);
}

.meta-text{
display:flex;
flex-direction:column;
}

.author-name{
font-size:0.95rem;
font-weight:700;
color:var(--primary);
}

.meta-info{
font-size:0.8rem;
color:var(--text-muted);
margin-top:3px;
}

/* CATEGORY */

.article-category{
display:inline-block;
background:linear-gradient(135deg,#FFE66D,#ffd23f);
color:#1A535C;
font-weight:800;
padding:6px 14px;
border-radius:30px;
font-size:12px;
letter-spacing:.5px;
margin-bottom:12px;
}

/* TAGS */

.top-tags{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-bottom:25px;
}

.tag-pill{
background:#f1f3f7;
padding:6px 12px;
border-radius:20px;
font-size:12px;
font-weight:600;
color:#333;
text-decoration:none;
transition:.2s;
}

.tag-pill:hover{
background:var(--primary);
color:#fff;
}

/* ARTICLE IMAGE */

.article-cover{
margin-top:20px;
border-radius:16px;
overflow:hidden;
box-shadow:0 20px 40px rgba(0,0,0,.18);
}

/* MOBILE */

@media(max-width:768px){

.article-title{
font-size:1.9rem;
}

.article-meta{
flex-direction:row;
}

}
/* ======================================
ARTICLE PAGE RESPONSIVE FIX
====================================== */

/* Tablet */

@media (max-width:1024px){

.article-card{
padding:2rem;
}

.article-title{
font-size:2rem;
}

.article-meta{
flex-wrap:wrap;
gap:10px;
}

.related-grid{
grid-template-columns:repeat(2,1fr);
}

}

/* Mobile */

@media (max-width:768px){

.article{
padding:2rem 0 3rem;
}

.article-card{
padding:1.5rem;
border-radius:16px;
}

.article-title{
font-size:1.6rem;
line-height:1.4;
}

.article-meta{
flex-direction:row;
align-items:center;
}

.author-avatar{
width:38px;
height:38px;
}

.meta-info{
font-size:.75rem;
}

.article-category{
font-size:11px;
padding:5px 12px;
}

.top-tags{
gap:6px;
}

.tag-pill{
font-size:11px;
padding:5px 10px;
}

.article-image img{
border-radius:12px;
}

.article-content{
font-size:.95rem;
line-height:1.8;
}

/* RELATED POSTS */
.related-grid{
grid-template-columns:1fr;
gap:16px;
}

.related-card img{
height:200px;
}

}

/* Small Mobile */

@media (max-width:480px){

.article-title{
font-size:1.4rem;
}

.article-content{
font-size:.9rem;
}

}
/* ======================================
   FIX QUILL ORDERED + BULLET LIST
====================================== */

.ql-editor ol {
  list-style: decimal !important;
  padding-left: 1.6rem;
}

.ql-editor ul {
  list-style: disc !important;
  padding-left: 1.6rem;
}

.ql-editor li {
  margin-bottom: 6px;
}

/* nested list fix */

.ql-editor ol li {
  list-style-type: decimal;
}

.ql-editor ul li {
  list-style-type: disc;
}
/* ======================================
ARTICLE SIDEBAR LAYOUT
====================================== */

/* Sidebar scroll but hide scrollbar */

/*.article-sidebar{*/
/*position:sticky;*/
/*top:100px;*/
/*height:calc(100vh - 120px);*/
/*overflow-y:auto;*/
/*scrollbar-width:none; */
/*width: 100%;*/
/*}*/

/* Chrome / Edge / Safari */

/*.article-sidebar::-webkit-scrollbar{*/
/*display:none;*/
/*}*/


.article-sidebar{
position:static;
height:auto;
overflow:visible;
width:100%;
}
/* SIDEBAR BOX */

.sidebar-widget{
background:#ffffff;
padding:22px;
border-radius:16px;
box-shadow:0 12px 35px rgba(0,0,0,0.08);
border:1px solid rgba(0,0,0,0.04);
transition:all .3s ease;
}

.sidebar-widget:hover{
transform:translateY(-4px);
box-shadow:0 20px 45px rgba(0,0,0,0.15);
}

/* TITLE */

.sidebar-widget h3{
font-size:18px;
font-weight:800;
color:var(--primary);
margin-bottom:18px;
position:relative;
padding-left:12px;
}

/* LEFT BORDER ACCENT */

.sidebar-widget h3:before{
content:"";
position:absolute;
left:0;
top:2px;
height:18px;
width:4px;
background:var(--secondary);
border-radius:2px;
}

/* LIST */

.sidebar-widget ul{
list-style:none;
padding:0;
margin:0;
}

/* ITEM */

.sidebar-widget li{
margin-bottom:10px;
}

/* LINK STYLE */

.sidebar-widget a{
display:block;
padding:10px 14px;
border-radius:8px;
background:#f4f7fb;
color:#333;
font-size:14px;
font-weight:500;
transition:all .25s ease;
}

/* HOVER */

.sidebar-widget a:hover{
background:linear-gradient(135deg,var(--primary),var(--secondary));
color:#fff;
transform:translateX(6px);
box-shadow:0 6px 15px rgba(0,0,0,0.15);
}
/* =====================================================
   GOD LEVEL ARTICLE PAGE UI
===================================================== */

/* LAYOUT */

/*.article-layout{*/
/*display:grid;*/
/*grid-template-columns:2.2fr 1fr;*/
/*gap:40px;*/
/*max-width:1400px;*/
/*margin:auto;*/
/*padding:110px 20px 60px;*/
/*align-items:start;*/
/*}*/


/* ARTICLE CARD */

.article-card{
background:#ffffff;
padding:40px;
border-radius:22px;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
transition:all .3s ease;
}

.article-card:hover{
transform:translateY(-3px);
box-shadow:0 28px 70px rgba(0,0,0,0.12);
}

/* TITLE */

.article-title{
font-size:2.6rem;
font-weight:800;
line-height:1.25;
color:var(--primary);
margin-bottom:18px;
letter-spacing:-0.3px;
}

/* AUTHOR */

.article-author{
display:flex;
align-items:center;
gap:12px;
margin-bottom:20px;
}

.article-author img{
width:44px;
height:44px;
border-radius:50%;
border:2px solid var(--secondary);
object-fit:cover;
}

.article-author small{
font-size:13px;
color:var(--text-muted);
}

/* CATEGORY */

.category__button{
margin-bottom:16px;
}

/* TAGS */

.top-tags{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-bottom:26px;
}

.tag-pill{
background:#eef2f7;
padding:7px 13px;
border-radius:20px;
font-size:12px;
font-weight:600;
color:#444;
transition:.25s;
}

.tag-pill:hover{
background:var(--primary);
color:#fff;
}

/* ARTICLE IMAGE */

.article-image{
border-radius:18px;
overflow:hidden;
margin-bottom:28px;
box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.article-image img{
width:100%;
display:block;
}

/* CONTENT */

.article-content{
font-size:1.08rem;
line-height:1.9;
color:#2c2f45;
}

.article-content h2{
margin-top:35px;
margin-bottom:15px;
font-size:1.6rem;
color:var(--primary);
}

.article-content p{
margin-bottom:18px;
}

.article-content ul{
margin-left:22px;
margin-bottom:18px;
}

.article-content li{
margin-bottom:6px;
}


/* ====================================
RELATED POSTS
==================================== */

.related-articles{
margin-top:60px;
padding-top:30px;
border-top:1px solid #eaeaea;
}

.related-articles h3{
font-size:24px;
margin-bottom:24px;
color:var(--primary);
}

.related-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:28px;
}

.related-card{
display:block;
background:#fff;
border-radius:14px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:.3s;
}

.related-card img{
width:100%;
height:180px;
object-fit:cover;
}

.related-card h4{
padding:16px;
font-size:15px;
font-weight:600;
color:#222;
}

.related-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 50px rgba(0,0,0,0.18);
}

.related-card:hover h4{
color:var(--primary);
}

/* ====================================
SCROLL FEEL
==================================== */

html{
scroll-behavior:smooth;
}

/* ====================================
RESPONSIVE
==================================== */

@media(max-width:1024px){

/*.article-layout{*/
/*grid-template-columns:1fr;*/
/*gap:40px;*/
/*}*/

.related-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.article-title{
font-size:1.7rem;
}

.article-card{
padding:24px;
}

.related-grid{
grid-template-columns:1fr;
}

.related-card img{
height:200px;
}

}/* ================================
   FEATURED SLIDER FIX
================================ */

/*.featuredSlider{*/
/*  width:100%;*/
/*  height:450px;*/
/*  border-radius:20px;*/
/*  overflow:hidden;*/
/*  position:relative;*/
/*}*/

/*.featuredSlider .swiper-wrapper{*/
/*  height:100%;*/
/*}*/

/*.featuredSlider .swiper-slide{*/
/*  height:100%;*/
/*  position:relative;*/
/*}*/

/*.featuredSlider img{*/
/*  width:100%;*/
/*  height:100%;*/
/*  object-fit:cover;*/
/*}*/

/* text overlay */

.featuredSlider .slide-content{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:2rem;
  color:#fff;
  background:linear-gradient(to top,rgba(0,0,0,.8),transparent);
}
.lead-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.6);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
opacity:0;
visibility:hidden;
transition:.3s;
}

.lead-popup.active{
opacity:1;
visibility:visible;
}

.lead-box{
background:#fff;
width:90%;
max-width:420px;
padding:28px;
border-radius:16px;
position:relative;
box-shadow:0 25px 70px rgba(0,0,0,.35);
}

.lead-box input,
.lead-box select,
.lead-box textarea{
width:100%;
padding:10px;
margin-bottom:10px;
border:1px solid #000000;
border-radius:6px;
}

.lead-btn{
width:100%;
padding:12px;
background:#1A535C;
color:#fff;
border:none;
border-radius:6px;
font-weight:700;
cursor:pointer;
}

.lead-close{
position:absolute;
top:10px;
right:12px;
font-size:22px;
background:none;
border:none;
cursor:pointer;
}

/* PAGINATION */

.pagination{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin:40px 0;
flex-wrap:wrap;
}

.pagination-btn{
padding:8px 14px;
border:1px solid #ddd;
text-decoration:none;
color:#333;
border-radius:6px;
font-size:14px;
transition:all .2s;
}

.pagination-btn:hover{
background:#1A535C;
color:#fff;
border-color:#1A535C;
}

.pagination-btn.active{
background:#1A535C;
color:#fff;
border-color:#1A535C;
font-weight:bold;
}

/*==========tag======*/
/* TAG PAGE BANNER */

.tag-banner{
position:relative;
width:100%;
height:260px;
margin-top:4.5rem;
overflow:hidden;
}

.tag-banner-img{
width:100%;
height:100%;
object-fit:cover;
}

.tag-banner-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;

background:rgba(0,0,0,0.35);

display:flex;
align-items:center;
justify-content:center;
}

.tag-banner-overlay h1{
color:#fff;
font-size:2.4rem;
font-weight:800;
letter-spacing:.5px;
}

/* ===============================
   VERTICAL SIDE ENQUIRY BUTTON
=============================== */

.enquiry-side-btn{
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;

  z-index: 9999;

  background: #1A535C;
  color: #fff;

  padding: 12px 22px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;

  border-radius: 8px 8px 0 0;

  box-shadow: 0 6px 20px rgba(0,0,0,0.25);

  cursor: pointer;
  border: none;

  transition: all 0.3s ease;
}

/* hover */
.enquiry-side-btn:hover{
  background: #4ECDC4;
  color: #1A535C;
  transform: translateY(-50%) rotate(-90deg) translateX(5px);
}
/* ===============================
   FINAL ARTICLE SPACE FIX (ULTIMATE)
=============================== */

/*.article-layout{*/
/*  width: 95% !important;*/
/*  max-width: 1600px !important;*/
/*  margin: auto !important;*/
  padding: 110px 10px 60px !important; /* 👈 side gap kam */
/*  gap: 40px;*/
/*}*/

/*.article-card{*/
/*  width: 100% !important;*/
  max-width: 100% !important;  /* 👈 sabse important */
/*  margin: 0 !important;*/
/*  padding: 40px;*/
/*}*/

/* =========================================
   FINAL FEATURED SECTION (REPLACE VERSION)
========================================= */

.featured-section {
  margin-top: 7rem;
}

/* GRID */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* SLIDER */
.featuredSlider {
  width:100%;
  height:clamp(240px, 40vw, 450px);
  border-radius:20px;
  overflow:hidden;
}

.featuredSlider img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000; /* optional */
}

/* RIGHT POSTS */
.side-posts {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.side-post {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 140px;
}

.side-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT OVERLAY */
.slide-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: #fff;
}

.slide-content h2,
.slide-content h4 {
  margin-top: 0.5rem;
}

.slide-content a {
  color: #fff;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

  .featured-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .featuredSlider {
    height: 380px;
  }

  .side-post {
    height: 120px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .side-posts {
    grid-template-columns: 1fr;
  }

  .featuredSlider {
    height: 300px;
  }

  .side-post {
    height: 180px;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

  .featuredSlider {
    height: 240px;
  }

  .side-post {
    height: 160px;
  }
}
/* ======================================
   FINAL ARTICLE RESPONSIVE (GOD FIX)
====================================== */

/* DESKTOP */
.article-layout{
  display:grid;
  grid-template-columns:2.2fr 1fr;
  gap:40px;
  max-width:1400px;
  margin:auto;
  padding:60px 20px 60px;
}

/* MAIN */
.article-main{
  width:100%;
}

/* SIDEBAR */
.article-sidebar{
  width:100%;
}

/* ================= TABLET ================= */
@media(max-width:1024px){

  .article-layout{
    grid-template-columns:1fr; /* 🔥 STACK */
    gap:30px;
    padding:100px 15px 40px;
  }

  .article-sidebar{
    position:relative;
    top:0;
    height:auto;
  }

}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .article-layout{
    padding:0px 12px 30px;
  }

  .article-card{
    padding:20px;
    border-radius:16px;
  }

  .article-title{
    font-size:1.6rem;
    line-height:1.4;
  }

  .article-author{
    flex-direction:row;
    gap:10px;
  }

  .article-author img{
    width:38px;
    height:38px;
  }

  .article-content{
    font-size:.95rem;
    line-height:1.8;
  }

}

/* ================= SMALL MOBILE ================= */
@media(max-width:480px){

  .article-title{
    font-size:1.4rem;
  }

  .article-content{
    font-size:.9rem;
  }

}


/* ======================================
   AUTHOR PAGE – PREMIUM FINAL UI
====================================== */

.author-profile {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1A535C, #4ECDC4);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-bottom: 12px;
}

.author-profile h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.95rem;
  color: #e6f7f5;
  max-width: 600px;
  margin: 0 auto 15px;
}

/* SOCIAL */
.author-social {
  margin-top: 10px;
}

.author-social a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: #1A535C;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.author-social a:hover {
  background: #FFE66D;
  color: #000;
}

/* BUTTON */
.view-posts-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  background: #FFE66D;
  color: #000;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.view-posts-btn:hover {
  background: #fff;
  color: #1A535C;
}

 /*PROFILE............................ PAGE FIX */
/* ===========================
   PROFILE PAGE FINAL DESIGN
=========================== */

.profile-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* LEFT */
.profile-left {
  flex: 1;
  text-align: center;
}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f1f1f1;
}

.profile-label {
  margin-top: 10px;
  font-size: 14px;
  color: #777;
}

/* RIGHT */
.profile-right {
  flex: 2;
}

.profile-title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}

/* FORM */
.form__control {
  margin-bottom: 15px;
}

.form__control label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.form__control input,
.form__control textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.form__control textarea {
  min-height: 90px;
  resize: vertical;
}

/* BUTTON */
.profile-btn {
  margin-top: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.profile-btn:hover {
  background: var(--secondary);
  color: #000;
}

/* MOBILE */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-right {
    width: 100%;
  }
}
/* ===========================
   PROFILE PAGE FIX (NO BREAK)
=========================== */

.profile-page {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start;
  background: transparent !important;
}

/* remove left sidebar space ONLY for profile */
.profile-page aside {
  display: none;
}

/* center card */
.profile-page main {
  margin-left: 0 !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* fix card width */
.profile-page .profile-card {
  max-width: 850px;
  width: 100%;
}
.profile-upload {
  margin-top: 15px;
}

.profile-upload input {
  width: 100%;
  font-size: 12px;
}

/*///////////////// author page/////////////////////////*/
/* CARD */
/*.post {*/
/*  background: #eae6e6;*/
/*  padding: 20px;*/
/*  border-radius: 18px;*/
/*}*/

/* FLEX LAYOUT */
.post-link {
  display: flex;
  gap: 25px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

/* IMAGE */
.news-thumb img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
}

/* CONTENT */
/*.news-content {*/
/*  flex: 1;*/
/*}*/

/* TAG */
.post-tag {
  display: inline-block;
  background: #f4c542;
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* TITLE */
.news-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #123;
}

/* DESCRIPTION */
.news-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

/* AUTHOR META */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.meta-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/*===============================
/*     breadcrumb */
/*===============================*/
.breadcrumb{
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.breadcrumb a{
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb a:hover{
  text-decoration: underline;
}
/* ===========================
   ARTICLES HERO (PREMIUM)
=========================== */

.articles-hero{
  margin-bottom: 2.5rem;
}

.articles-hero h1{
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.articles-hero p{
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}
/* ===============================
   ARTICLES HERO TITLE (PREMIUM)
=============================== */

.articles-main-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.articles-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}

/* spacing fix */
.articles-header {
  margin-bottom: 3rem;
}
/* ===============================
   PREMIUM BREADCRUMB
=============================== */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: 0.3s ease;
}

/* hover effect */
.breadcrumb a:hover {
  color: var(--secondary);
}

/* separator styling */
.breadcrumb span {
  color: #aaa;
  font-size: 12px;
}

/* last item (current page) */
.breadcrumb .active {
  color: #666;
  font-weight: 500;
}

/* subtle glow on hover */
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: 0.3s;
  border-radius: 2px;
}

.breadcrumb a:hover::after {
  width: 100%;
}

/* =========================================
   FINAL GLOBAL POSTS SYSTEM
========================================= */

.posts__container{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  margin-bottom:60px;
}

.post.news-post{
  display:flex;
  gap:18px;

  background:#ffffff;
  border-radius:18px;

  padding:18px;

  overflow:hidden;

  box-shadow:0 10px 25px rgba(0,0,0,.08);

  min-height:220px;

  transition:.3s ease;
}

.post.news-post:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(0,0,0,.14);
}

/* IMAGE */

.news-thumb{
  flex-shrink:0;
}

.news-thumb img{
  width:260px;
  height:170px;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

/* CONTENT */

.news-content{
  flex:1;

  display:flex;
  flex-direction:column;

  min-width:0;

  overflow:hidden;
}

/* TITLE */

.news-content h3{
  font-size:1.25rem;
  line-height:1.4;
  margin-bottom:10px;

  color:var(--primary);

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
}

/* DESCRIPTION */

.news-content p{

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;

  overflow:hidden;

  text-overflow:ellipsis;

  line-height:1.7;

  color:#555;

  margin-bottom:0;

  word-break:break-word;
}

/* AUTHOR */

.news-author{
  margin-top:auto;
}

/* MOBILE */

@media(max-width:768px){

  .posts__container{
    grid-template-columns:1fr;
  }

  .post.news-post{
    flex-direction:column;
  }

  .news-thumb img{
    width:100%;
    height:220px;
  }

}