/*
Theme Name: Maroja Theme (Full v1.0)
Theme URI: https://example.com/
Description: A minimal wireframe theme for Mazhet.com
Author: Mazhet Team
Version: 1.8
*/

body {
  font-family: system-ui, sans-serif;
  background: #fafafa;
  margin: 0;
  padding: 0;
  color: #333;
}
header, section, nav, main, footer {
  border-bottom: 1px solid #ddd;
  background: #fff;
  padding: 10px 15px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
header .icons span { margin-left: 10px; cursor: pointer; }







/* Search Bar */
.search-bar { width: 100%; padding: 10px 15px; background: #fff; box-sizing: border-box; }
.search-bar form { display: flex; align-items: center; width: 100%; }
.search-bar input[type="search"] { flex: 1; width: 100%; padding: 12px; font-size: 16px; border: 2px solid #28a745; border-radius: 4px 0 0 4px; }
.search-bar button { background: #28a745; color: #fff; border: 2px solid #28a745; border-radius: 0 4px 4px 0; padding: 12px 20px; font-size: 16px; cursor: pointer; transition: background 0.2s ease-in-out; }
.search-bar button:hover { background: #218838; }
.search-bar .mic { margin-left: 8px; font-size: 20px; cursor: pointer; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 10px; }
.category-grid div { padding: 15px 0; border-radius: 10px; color: #fff; font-weight: bold; border: 2px solid transparent; }

/* Footer */
.site-footer { text-align: center; padding-bottom: 20px; }
.site-footer .copyright { margin-top: 12px; font-size: 13px; color: #666; }

/* Page & Single */
.single-post h1, .page-content h1 { font-size: 26px; margin-bottom: 15px; }
.single-post img, .page-content img { max-width: 100%; border-radius: 8px; }
.post-content { font-size: 16px; line-height: 1.6; }


/* 🎨 Category Grid Colors */
.category-grid div:nth-child(1) {
  background: #007bff; /* Blue */
  border-color: #0069d9;
}
.category-grid div:nth-child(2) {
  background: #28a745; /* Green */
  border-color: #1e7e34;
}
.category-grid div:nth-child(3) {
  background: #ffc107; /* Yellow */
  border-color: #e0a800;
  color: #333;
}
.category-grid div:nth-child(4) {
  background: #17a2b8; /* Cyan */
  border-color: #117a8b;
}
.category-grid div:nth-child(5) {
  background: #fd7e14; /* Orange */
  border-color: #e8590c;
}
.category-grid div:nth-child(6) {
  background: #dc3545; /* Red */
  border-color: #bd2130;
}
.category-grid div:nth-child(7) {
  background: #6f42c1; /* Purple */
  border-color: #59359c;
}
.category-grid div:nth-child(8) {
  background: #20c997; /* Teal */
  border-color: #199e78;
}


/* 📰 Latest Post List Style */
.news-feed article {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 10px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.news-feed article img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.news-feed article div {
  flex: 1;
}

.news-feed article h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.news-feed article p {
  margin: 0;
  font-size: 14px;
  color: #555;
}


/* 📰 Scrollable Sub-Category Bar */
.sub-category-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
  padding: 12px 10px;
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  scrollbar-width: none; /* Firefox */
}
.sub-category-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari #f8f9fa-grey FFC107-orange*/
}

.sub-category-bar button {
  flex: 0 0 auto;
  background: #FFF;
  border: 3px solid #28a745;
  border-radius: 15px;
  padding: 12px 12px;
  font-size: 16px;
  cursor: pointer;
  color: #000;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
}

.sub-category-bar button:hover {
  background: #28a745;
  color: #FFF;
  border-color: #28a745;
}

.sub-category-bar button.active {
  background: #fff;
  color: #28a745;
  border-color: #28a745;
}

/* 🌿 Normal active state */
.sub-category-bar button.active {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* 🌳 Darker hover for all buttons */
.sub-category-bar button:hover {
  background: #1e7c32;  /* deeper green */
  color: #fff;
  border-color: #1e7c32;
  transition: all 0.25s ease;
}

/* 🌲 Even darker hover for active button */
.sub-category-bar button.active:hover {
  background: #166228;  /* darkest tone for hover on active */
  border-color: #166228;
}







/* ✅ 3 Buttons in One Row, Equal Width, Balanced Padding */
.sub-category-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px auto;
  padding: 0 8px;
  max-width: 100%;
}

.sub-category-bar button {
  flex: 1;
  padding: 8px 0; /* reduced padding for better fit */
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #28a745;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.sub-category-bar button.active {
  background: #28a745;
  color: #fff;
}

.sub-category-bar button:hover {
  background: #28a745;
  color: #fff;
}

/* ✅ Slight font tweak for very small screens */
@media (max-width: 420px) {
  .sub-category-bar button {
    font-size: 14px;
    padding: 7px 0;
  }
}







/* HEADER TEXT Style */

.site-title {
  font-weight: 700;
  font-size: 20px;
  color: #28a745;     /* same green as search button */
  text-decoration: none;
}
.site-title:hover {
  color: #218838;
  text-decoration: underline;
}


.icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.login-link:hover {
  color: #28a745;  /* same green accent as your theme */
  text-decoration: underline;
}


/* 🔗 Latest Posts Link Colors */
.news-feed article h4 a {
  color: #000000 !important;   /* same green as search button */
  text-decoration: none;
}

.news-feed article h4 a:hover {
  color: #218838 !important;   /* darker green on hover */
  text-decoration: underline;
}




/* SINGLE POST /* 
 
/* Main gallery wrapper */
.property-gallery {
  text-align: center;
  margin-bottom: 25px;
}

/* Main large image */
.property-gallery img:first-child {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Thumbnail row container */
.property-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}




/* XTRA THUMBNAIL CSS */

/* Thumbnail row */
.property-gallery-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px auto 25px auto;
  text-align: center;
}

/* Thumbnails */
/* Thumbnails - smaller and neat */
.property-gallery-thumbs img {
  width: 65px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Hover + active effects remain */
.property-gallery-thumbs img:hover {
  transform: scale(1.05);
  border-color: #81c784; /* soft green */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.property-gallery-thumbs img.active-thumb {
  border-color: #2e7d32; /* dark green outline */
  box-shadow: 0 0 0 2px #a5d6a7 inset;
  transform: scale(1.05);
}

/* Mobile view - smaller still */
@media (max-width: 600px) {
  .property-gallery-thumbs img {
    width: 65px;
    height: 50px;
  }
}




/* IMPORTANT FOR SINGLE */
.property-content script {
  display: none !important;
}



/* Sticky Contact Bar */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff7f00; /* Orange */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* Email Button */
.contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.contact-btn:hover {
  background: #e96f00;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-btn {
    font-size: 15px;
    padding: 12px 0;
  }
}



/* Fix for sticky Email Seller bar on mobile */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff7f00;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  z-index: 99999; /* very high to stay above footer, popups, etc. */
  padding-bottom: env(safe-area-inset-bottom); /* iPhone safe area fix */
}

/* Email button */
.contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background-color: #ff7f00;
  transition: background 0.3s ease, opacity 0.3s ease;
  line-height: 1.4;
}

.contact-btn:hover {
  background-color: #e96f00;
}

/* Make sure body content never overlaps it */
body {
  padding-bottom: 70px; /* prevents overlap of content by sticky bar */
}

/* Slightly smaller button for mobile screens */
@media (max-width: 600px) {
  .contact-btn {
    font-size: 15px;
    padding: 14px 0;
  }
}


/* EXTRA FORCE FOR ORANGE EMAIL BAR ON MOBILE */

/* FORCE sticky bar visible on all mobile browsers */
.sticky-contact-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: auto !important;
  background-color: #ff7f00 !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  z-index: 999999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px 0 env(safe-area-inset-bottom) 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Button text inside bar */
.sticky-contact-bar .contact-btn {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  font-size: 17px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Prevent overlap with footer or content */
html, body {
  padding-bottom: 90px !important;
  overflow-x: hidden;
}

/* On mobile Safari (iPhones with notch) */
@supports (padding: max(0px)) {
  .sticky-contact-bar {
    padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
  }
}



/* CSS for popup MAil styling */


/* Sticky email bar */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff7f00;
  z-index: 999999;
  text-align: center;
}
.contact-btn.email {
  display: block;
  width: 100%;
  padding: 5px 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  background: transparent;
}

/* Popup overlay */
.contact-popup {
  display: none;
  position: fixed;
  z-index: 1000000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* Popup content */
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.popup-content input, .popup-content textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.popup-content button {
  background: #ff7f00;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}



.city-dropdown option {
  color: #000; /* normal options */
}
.city-dropdown option[value=""] {
  color: #888; /* lighter hint for placeholder option */
}





.maroja-breadcrumbs {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}
.maroja-breadcrumbs a {
  color: #e67e22;
  text-decoration: none;
}
.maroja-breadcrumbs a:hover {
  text-decoration: underline;
}
.maroja-breadcrumbs span {
  color: #222;
  font-weight: 500;
}


/* Breadcrumbs on CityTemplate page */
#breadcrumbs {
  font-size: 14px;
  margin: 2px 0 2px;
  color: #666;
}
#breadcrumbs a {
  color: #1a73e8;
  text-decoration: none;
}
#breadcrumbs a:hover {
  text-decoration: underline;
}


.floating-post-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #28a745;
    color: #fff !important;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
    z-index: 9999;
}
.floating-post-btn:hover {
    transform: scale(1.06);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.3);
}





/* Required fields not filled yet */
.rr-form input:required:invalid,
.rr-form textarea:required:invalid,
.rr-form select:required:invalid {
  border: 2px solid #d00 !important;
  background-color: #fff5f5 !important;
}

/* Required fields once valid */
.rr-form input:required:valid,
.rr-form textarea:required:valid,
.rr-form select:required:valid {
  border: 2px solid #28a745 !important;
  background-color: #f6fff8 !important;
}

/* Optional fields always neutral */
.rr-form input:not(:required),
.rr-form textarea:not(:required),
.rr-form select:not(:required) {
  border: 1px solid #d1d5db !important;
  background-color: #fff !important;
}


        /* Always highlight empty required fields */
        .rr-form [required]:invalid {
            border:2px solid #d00 !important;
            background:#fff5f5;
        }







.filter-bar {
  text-align: center;
  margin: 15px 0 25px;
}

/* 🔹 Filter buttons: 10px padding + 10px radius */
.filter-bar a {
  display: inline-block;
  padding: 10px 20px; /* increased padding */
  margin: 0 6px;
  border: 1px solid #ccc;
  border-radius: 10px; /* smoother round corners */
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* ✅ Active and hover = green like header */
.filter-bar a:hover,
.filter-bar a.active {
  background: #28a745 !important; /* same green as header */
  color: #fff !important;
  border-color: #28a745 !important;
}




/* Styles for page ID 881 (Terms of Use & User Agreement) */
.page-id-881 .entry-content,
.page-id-881 .post-content,
.page-id-881 {
  max-width: 900px;       /* readable width */
  margin: 0 auto;         /* center horizontally */
  padding: 20px 25px;     /* space around content */
  line-height: 1.7;       /* better line spacing */
  font-size: 16px;        /* comfortable font size */
}

/* Optional: match Mazhet.com brand styling */
.page-id-881 .entry-content a,
.page-id-881 .post-content a {
  color: #fff;            /* link color (e.g., white) */
  background-color: #007b33; /* Mazhet green */
  padding: 2px 4px;
  border-radius: 4px;
  text-decoration: none;
}

.page-id-881 .entry-content h1,
.page-id-881 .post-content h1 {
  font-size: 2.2em;
  margin-bottom: 0.8em;
}

/* Optional: improve readability on mobile */
@media (max-width: 768px) {
  .page-id-881 .entry-content,
  .page-id-881 .post-content {
    padding: 15px 18px;
    max-width: 100%;
  }
}





/* --- Make header same as city pages --- */
header {
  width: 100%;
  background: #28a745; /* Mazhet green */
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Header links */
header a, header span {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
}
header .site-title {
  font-size: 22px;
  font-weight: 600;
}

/* --- Centered content card (same feel as city pages) --- */
.page-container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 25px;
}

.page-heading {
  background: #fafafa;
  border-bottom: 2px solid #e5e5e5;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
}

/* Breadcrumb alignment below header */
nav.breadcrumbs {
  margin: 15px auto;
  max-width: 900px;
  padding: 0 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-container {
    padding: 15px;
    border-radius: 6px;
  }
  .page-heading {
    font-size: 20px;
  }
}



/* Make the main page title stand out like other headings */
.page-heading {
  background: #fafafa;
  border-bottom: 2px solid #e5e5e5;
  padding: 10px 20px;
  font-size: 28px;       /* 🔺 increased from 22px */
  font-weight: 700;      /* same boldness as section headings */
  margin-bottom: 20px;
  color: #111;
  text-align: center;
}





/* --- Single post consistent layout --- */
.single-container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 25px;
}

.single-heading {
  background: #fafafa;
  border-bottom: 2px solid #e5e5e5;
  padding: 10px 20px;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

/* Content area */
.property-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Gallery */
.property-gallery img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Meta and buttons */
.meta {
  font-size: 14px;
  color: #777;
  margin-top: 25px;
}
.rr-btn {
  background: #2271B1;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.edit-btn-container {
  margin-top: 20px;
}

/* Popup contact form styling */
.contact-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 18px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .single-container {
    padding: 15px;
  }
  .single-heading {
    font-size: 22px;
  }
}




/* --- Unified layout for single post pages --- */
.single-container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 25px;
}

.property-title {
  background: #fafafa;
  border-bottom: 2px solid #e5e5e5;
  padding: 10px 20px;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.property-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.property-gallery img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.meta {
  font-size: 14px;
  color: #777;
  margin-top: 25px;
}

/* Sticky orange contact bar */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff6600;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  z-index: 999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.15);
}
.contact-btn.email {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.contact-btn.email:hover {
  text-decoration: underline;
}

/* Popup contact form */
.contact-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.close-popup {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 18px;
}

/* Edit button styling */
.rr-btn {
  background: #2271B1;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.edit-btn-container {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .single-container {
    padding: 15px;
  }
  .property-title {
    font-size: 22px;
  }
}




/* ==============================
   ✅ Responsive Gallery Styling
================================= */
.property-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.property-gallery img {
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.property-gallery img:hover {
  transform: scale(1.03);
}

/* ✅ First image (main image) larger */
.property-gallery img:first-child {
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* ✅ Thumbnails smaller on desktop */
.property-gallery img:not(:first-child) {
  width: 150px;
  height: auto;
  object-fit: cover;
}

/* ✅ Mobile layout: thumbnails smaller, wrap nicely */
@media (max-width: 768px) {
  .property-gallery img:first-child {
    width: 100%;
    max-width: 100%;
  }
  .property-gallery img:not(:first-child) {
    width: 45%;
    max-width: 160px;
  }
}




/* ✅ Strong fix for unwanted white space under footer */
html, body {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

body {
  display: flex;
  flex-direction: column;
}

#page, #content, .site, .site-content {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer {
  margin-top: auto !important;
  border-top: none;
}



/* ✅ Restore normal page width */
body {
  display: block !important;
}

/* ✅ Restore main container widths */
main,
.city-listings-container,
.site,
.site-content,
#page,
#content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ✅ Keep footer full-width */
.site-footer-wrapper {
  background: #000;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  text-align: center;
  padding: 25px 10px;
}

/* ✅ Footer links */
.site-footer-wrapper a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}

.site-footer-wrapper a:hover {
  text-decoration: underline;
}



.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 25px auto;
  max-width: 95%;
  overflow-x: auto;
  padding: 8px;
  box-sizing: border-box;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  min-width: 38px;
  text-align: center;
  border: 1px solid #28a745;
  border-radius: 6px;
  color: #28a745;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap; /* prevents text breaking */
}

.pagination a:hover {
  background: #28a745;
  color: #fff;
}

.pagination .current {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* ✅ Optional: smaller buttons on narrow phones */
@media (max-width: 500px) {
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 14px;
  }
}





/* 🔴 COMPLETED BADGE WITH WHITE CHECKMARK */
.grid-completed-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e60000;
  color: #fff;
  padding: 4px 10px 4px 24px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}





/* 🔴 COMPLETED BADGE (NO CHECKMARK) */
.grid-completed-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e60000;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



/* 🔘 Button to mark a post as completed */
.mark-completed-btn {
  display: inline-block;        /* Makes button behave like a block but stay inline */
  background: #e60000;          /* Bright red background for attention */
  color: #fff;                  /* White text for contrast */
  padding: 10px 16px;           /* Comfortable padding for touch devices */
  font-size: 14px;              /* Text size */
  font-weight: 700;             /* Bold text to show importance */
  border: none;                 /* Remove any default borders */
  border-radius: 6px;           /* Rounded corners */
  cursor: pointer;              /* Shows clickable pointer on hover */
  text-transform: uppercase;    /* Makes button text all caps */
  letter-spacing: 0.5px;        /* Slight spacing for aesthetic */
  transition: all 0.25s ease-in-out; /* Smooth hover animations */
}

/* 🔁 Hover effect for button */
.mark-completed-btn:hover {
  background: #b30000;          /* Darker red on hover */
  transform: translateY(-2px);  /* Slight lift effect for 3D feedback */
}

/* 🚫 Disabled button state (once clicked or if not allowed) */
.mark-completed-btn:disabled {
  opacity: 0.5;                 /* Reduce visibility */
  cursor: not-allowed;          /* Shows disabled cursor */
}
