/* ============================================================
   index_new.css - BuildBase Premium Design
   Modern, Clean, Premium Construction Hub
   ============================================================ */

:root {
  /* Brand Colors */
  --primary-blue: #062b84;
  --primary-blue-light: #0a3b9e;
  --primary-green: #59c135;
  --primary-green-light: #6bc94c;
  --primary-green-pale: #e1f5da;
  --navy: #01266f;
  --navy-mid: #0f3b7a;
  --navy-light: #1e509a;
  --gold: #54ad34;
  --cream: #faf7f2;
  --white: #ffffff;

  /* Text Colors */
  --text-dark: #121826;
  --text-mid: #2a3a5e;
  --text-light: #6c7b98;

  /* Border & Shadow */
  --border: rgba(84, 173, 52, 0.2);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 32px -12px rgba(6, 43, 132, 0.12);
  --shadow-gold: 0 8px 32px rgba(84, 173, 52, 0.2);
  --shadow-navy: 0 8px 40px rgba(1, 38, 111, 0.18);
  --shadow-card: 0 2px 24px rgba(1, 38, 111, 0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 60px;

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", "Inter", sans-serif;
  --font-hindi: "Noto Sans Devanagari", sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --navy-gradient: linear-gradient(135deg, var(--navy), var(--navy-light));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-mid);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 100px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: 80px 0 100px;
  background: var(--navy-gradient);
  color: var(--white);
  border-bottom-right-radius: 60px;
  border-bottom-left-radius: 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(84, 173, 52, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(89, 193, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text h1 {
  color: white;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-search-box {
  background: var(--white);
  padding: 10px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-input-group {
  flex: 1;
  position: relative;
  min-width: 150px;
}

.hero-input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.1rem;
}

.hero-input-group input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  border: 1px solid transparent;
  background: var(--cream);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-input-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.hero-input-group input::placeholder {
  color: var(--text-light);
}

.hero-btn-search {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 35px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn-search:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-img {
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-badge {
  background: var(--white);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-navy);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  position: relative;
  z-index: 2;
}

.hero-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.5rem;
}

.hero-badge h6 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.hero-badge small {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Welcome Message for Logged-in Users */
.hero-welcome {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-welcome-name {
  color: var(--white);
  font-size: 3.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-welcome-name .wave {
  color: var(--gold-light);
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  40% {
    transform: rotate(0deg);
  }
}

/* ============================================================
   WORKSPACE BAR (Logged-in users)
   ============================================================ */
.workspace-section {
  background: linear-gradient(135deg, #f5f7fb 0%, #ffffff 100%);
  padding: 32px 0;
  border-bottom: 1px solid rgba(6, 43, 132, 0.08);
}

.workspace-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.workspace-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-blue), var(--primary-green));
}

.workspace-info h3 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-info p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.workspace-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-badge {
  background: var(--cream);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
}

.stat-badge i {
  color: var(--primary-green);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-workspace {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.btn-workspace.primary {
  background: var(--navy);
  color: var(--white);
}

.btn-workspace.primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.btn-workspace.success {
  background: var(--primary-green);
  color: var(--white);
}

.btn-workspace.success:hover {
  background: var(--primary-green-light);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-workspace.outline {
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}

.btn-workspace.outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-workspace .badge {
  background: #dc3545;
  color: white;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.65rem;
  margin-left: 4px;
}

.verified-pill {
  background: var(--primary-green-pale);
  color: var(--primary-green);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin: 12px auto 0;
  border-radius: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 100px 0;
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-navy);
  border-color: var(--primary-green-pale);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-box {
  width: 80px;
  height: 80px;
  background: var(--navy);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary-green);
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.more-services-container {
  text-align: center;
  margin-top: 50px;
}

.btn-custom {
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--navy);
}

.btn-outline-custom:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   MASONS / WORKERS SECTION
   ============================================================ */
.mistry-section {
  padding: 100px 0;
  background: var(--cream);
}

.scrolling-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 25px;
  padding: 20px 5px 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.scrolling-wrapper::-webkit-scrollbar {
  height: 6px;
}

.scrolling-wrapper::-webkit-scrollbar-track {
  background: rgba(84, 173, 52, 0.1);
  border-radius: 10px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 10px;
}

.mistry-card {
  min-width: 300px;
  max-width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}

.mistry-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f8;
  z-index: 2;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  display: inline-block;
}

.status-dot.green {
  background: #59c135;
  box-shadow: 0 0 0 2px rgba(89, 193, 53, 0.2);
  animation: pulse-green 2s infinite;
}

.status-dot.red {
  background: #94a3b8;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(89, 193, 53, 0.2);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(89, 193, 53, 0.05);
  }
}

.mistry-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: 8px;
}

.mistry-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green-pale);
  background: var(--cream);
}

.mistry-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.mistry-skills {
  font-size: 0.8rem;
  color: var(--text-light);
}

.mistry-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.mistry-rating i {
  color: #ffb400;
  font-size: 0.85rem;
}

.mistry-rating-num {
  color: var(--navy);
  font-weight: 600;
  margin-left: 4px;
}

.mistry-details {
  border-top: 1px solid rgba(6, 43, 132, 0.08);
  padding-top: 16px;
  margin-bottom: 8px;
}

.mistry-details p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-mid);
}

.mistry-details p i {
  color: var(--primary-green);
  font-size: 0.95rem;
  width: 18px;
}

.btn-sm-hire {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: white;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-sm-hire:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-sm-hire:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8;
}

/* ============================================================
   CONTRACTORS SECTION
   ============================================================ */
.contractor-section {
  padding: 100px 0;
  background: var(--white);
}

.contractor-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: block;
}

.contractor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-navy);
}

.contractor-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  background: var(--cream);
}

.contractor-card:hover .contractor-img-top {
  transform: scale(1.05);
}

.contractor-img-wrapper {
  overflow: hidden;
}

.contractor-body {
  padding: 24px;
}

.contractor-body h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contractor-location {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contractor-location i {
  color: var(--primary-green);
}

.contractor-desc {
  color: var(--text-mid);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.contractor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-projects {
  background: var(--primary-green-pale);
  color: var(--navy);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.contractor-rating {
  color: #d97706;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contractor-rating i {
  color: #f59e0b;
}

.contractor-tag {
  background: rgba(6, 43, 132, 0.08);
  color: var(--primary-blue);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  position: relative;
  flex-wrap: wrap;
  gap: 30px;
}

@media (min-width: 992px) {
  .steps-container::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--primary-green-pale);
    border-top: 2px dashed var(--primary-green);
    z-index: 0;
  }
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.step-icon-box {
  width: 100px;
  height: 100px;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 25px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.step-item:hover .step-icon-box {
  background: var(--navy);
  color: var(--primary-green);
  transform: scale(1.05);
  box-shadow: var(--shadow-navy);
}

.step-number {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-green);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.step-title {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--navy);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   GUEST CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: var(--navy-gradient);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(89, 193, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-cta {
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-cta.primary {
  background: var(--primary-green);
  color: var(--white);
}

.btn-cta.primary:hover {
  background: var(--primary-green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-cta.outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta.outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
/* .fade-up {
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
} */

/* .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
} */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-section {
    text-align: center;
    padding: 60px 0 80px;
  }

  .hero-search-box {
    margin: 30px auto;
    flex-direction: column;
  }

  .hero-input-group {
    width: 100%;
  }

  .hero-btn-search {
    width: 100%;
    justify-content: center;
  }

  .hero-img {
    margin-top: 40px;
    max-width: 100%;
  }

  .hero-welcome-name {
    font-size: 2.5rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .steps-container::before {
    display: none;
  }

  .workspace-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-actions {
    width: 100%;
  }

  .btn-workspace {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .hero-section {
    border-radius: 0 0 30px 30px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .mistry-card {
    min-width: 270px;
    max-width: 270px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.featured-img {
  min-height: 350px;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
  display: block;
}

.featured-card {
  overflow: hidden;
  border-radius: 16px;
}

@media (max-width:768px) {
  .featured-img {
    height: 220px;
    border-radius: 16px 16px 0 0;
  }
}

/* ============================================================
   otp.css – OTP Verification Page
   BuildBase Premium Design – standalone styles
   ============================================================ */

/* ============================================================
   OTP CARD – premium container
   ============================================================ */
.otp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-navy);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.otp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green), var(--gold-light));
  border-radius: 4px 4px 0 0;
}

/* ============================================================
   OTP HEADER
   ============================================================ */
.otp-header {
  text-align: center;
  margin-bottom: 32px;
}

.otp-icon {
  width: 72px;
  height: 72px;
  background: var(--navy-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: var(--primary-green);
  box-shadow: 0 8px 24px rgba(1, 38, 111, 0.15);
}

.otp-header h2 {
  font-size: 2rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.otp-header .sub {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
}

.otp-header .sub strong {
  color: var(--navy);
  font-weight: 600;
}

.otp-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin: 12px auto 0;
  border-radius: 10px;
}

/* ============================================================
   OTP INPUTS
   ============================================================ */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 28px;
  flex-wrap: wrap;
}

.otp-box {
  width: 54px;
  height: 62px;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  caret-color: var(--primary-green);
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(89, 193, 53, 0.15), var(--shadow-sm);
  transform: translateY(-2px);
}

.otp-box::placeholder {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 1.2rem;
}

/* ============================================================
   VERIFY BUTTON
   ============================================================ */
.btn-verify {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--navy-gradient);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(1, 38, 111, 0.2);
  margin-top: 8px;
}

.btn-verify:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(1, 38, 111, 0.25);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.btn-verify:active {
  transform: translateY(0);
}

.btn-verify i {
  font-size: 1.1rem;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.message-box {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlide 0.35s ease;
}

.message-box.success {
  background: var(--primary-green-pale);
  color: var(--primary-green);
  border-left: 4px solid var(--primary-green);
}

.message-box.error {
  background: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid #dc2626;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TIMER & RESEND
   ============================================================ */
.otp-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

#timer {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

#timer #countdown {
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

#resendBtn {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-green);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
}

#resendBtn:hover {
  background: var(--primary-green-pale);
  color: var(--navy);
  transform: translateY(-2px);
}

#resendBtn i {
  font-size: 0.9rem;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--navy);
  gap: 10px;
}

.back-link i {
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE – OTP page only
   ============================================================ */
@media (max-width: 540px) {
  .otp-card {
    padding: 32px 20px 28px;
    border-radius: var(--radius-md);
  }

  .otp-header h2 {
    font-size: 1.6rem;
  }

  .otp-box {
    width: 44px;
    height: 52px;
    font-size: 1.3rem;
  }

  .otp-inputs {
    gap: 8px;
  }

  .btn-verify {
    font-size: 0.9rem;
    padding: 14px;
  }

  .otp-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .otp-box {
    width: 38px;
    height: 46px;
    font-size: 1.1rem;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-card {
    padding: 24px 14px 20px;
  }
}