/* =======================================================
   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: #F7FFF7;        /* 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: 80%;
  --container-width-md: 92%;
  --form-width: 40%;
}


/* =======================================================
   RESET + GLOBAL
======================================================= */
* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

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;
}

.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: 7rem;
}

/* =======================================================
   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;
}



/* =======================================================
   CATEGORY BUTTON / REAL ESTATE CTA
======================================================= */
.category__button {
  background: var(--theme-gold) !important;
  color: var(--theme-blue) !important;
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.4px;
}

.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: 6rem;
  padding: 2rem;
}

.sidebar__toggle {
  display: none;
}

.dashboard__container {
  display: grid;
  grid-template-columns: 14rem auto;
  gap: 2rem;
  background: #dad8d8;
  padding: 2rem;
  margin-bottom: 5rem;
  border-radius: 2rem;
}

.dashboard aside a {
  color: #000000;
  background: #b5b7ba;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
}

.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 {
  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 th {
  background: #bfbfc5;
  padding: 0.8rem;
  color: #000000;
}

.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);
}

/* ===== ARTICLE CARD (SCREENSHOT STYLE) ===== */

.article {
  padding: 6rem 0 4rem;
  background: #f3f4fa;
}

.article-card {
  max-width: 900px;
  margin: auto;
  background: #e6e7f0;
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* TITLE */
.article-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0b1a3a;
  margin-bottom: 1.2rem;
}

/* AUTHOR */
.article-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.article-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1f36;
}

.article-author span {
  font-size: 0.8rem;
  color: #5a5f7d;
}

/* IMAGE */
.article-image {
  margin-bottom: 2.5rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* CONTENT */
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2c2f45;
}

/* MOBILE */
@media (max-width: 768px) {
  .article-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .article-title {
    font-size: 1.8rem;
  }
}


/* =======================================================
   CATEGORY TITLE / EMPTY PAGE
======================================================= */
.category__title {
  height: 11rem;
  margin-top: 4.5rem;
 background: linear-gradient( 135deg, var(--primary), #040C0D) !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: 0.6rem;
}

.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.8rem 1.4rem;
  background-color: var(--color-gray-900);
  border-radius: var(--card-radius-2);
  resize: none;
  color: #ffffff;
}

/* =======================================================
   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: #dddada;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

/* 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 #ccc;
    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;
}

/*pagination*/

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 3rem 0;
}

.pagination a {
  padding: 0.55rem 1rem;
  background: #eee;
  color: #333;
  border-radius: 6px;
  font-weight: 600;
}

.pagination a.active,
.pagination a:hover {
  background: var(--theme-blue);
  color: #fff;
}

/* ===============================
   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;
  }
}


/* ==================================================
   NEWS / PORTAL BLOG CARD – FINAL
================================================== */
.post.news-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* IMAGE */
.news-thumb img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

/* CONTENT */
.news-content {
  padding-left: 20px;
}

/* CATEGORY */
.news-category {
  display: inline-block;
  background: var(--theme-gold);
  color: var(--theme-blue);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* TITLE */
.news-title {
  font-size: 1.3rem;
  margin: 6px 0;
}

.news-title a {
  color: var(--theme-blue);
  text-decoration: none;
}

/* EXCERPT */
.news-excerpt {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* AUTHOR */
.news-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.news-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 768px) {
  .post.news-post {
    flex-direction: column !important;
  }

  .news-thumb img {
    width: 100%;
    height: 220px;
  }

  .news-content {
    padding-left: 0;
    padding-top: 14px;
  }
}
/* ==================================================
   FIXED BLOG / CATEGORY / SEARCH LAYOUT
================================================== */

/* GRID: 2 desktop, 1 mobile */
.posts__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@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;
}

/* 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 QUILL + ARTICLE LIST FIX
   =============================== */

/* ===== QUILL EDITOR ===== */
.ql-editor ol,
.ql-editor ul {
  margin-left: 1.8rem !important;
  padding-left: 0 !important;
}

.ql-editor ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}

.ql-editor ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.ql-editor li {
  margin-bottom: 0.4rem;
}

/* ===== FRONTEND ARTICLE CONTENT ===== */
.article-content ol,
.article-content ul {
  margin-left: 1.8rem !important;
  padding-left: 0 !important;
}

.article-content ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}

.article-content ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.article-content li {
  margin-bottom: 0.4rem;
}
/* =========================================
   CONTENT LIST RESTORE (SAFE OVERRIDE)
========================================= */

/* ARTICLE PAGE */
.article-content ol,
.article-content ul {
  list-style-position: outside;
  padding-left: 2rem;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content ul {
  list-style-type: disc;
}

.article-content li {
  list-style: inherit;
  margin-bottom: 0.5rem;
}

/* QUILL EDITOR */
.ql-editor ol,
.ql-editor ul {
  list-style-position: outside;
  padding-left: 2rem;
}

.ql-editor ol {
  list-style-type: decimal;
}

.ql-editor ul {
  list-style-type: disc;
}

.ql-editor li {
  list-style: inherit;
  margin-bottom: 0.5rem;
}
/*///////////////////////////*/

.views-box {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.trending-badge {
    background: #ff3b3b;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 20px;
    margin-left: 6px;
}
