/* =========================
  Contact Page – Departments
========================= */

.contact-page{
  padding: 80px 0;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(30,198,198,.18), transparent 60%),
    linear-gradient(180deg,#f6fffb 0%, #ffffff 100%);
}

.contact-wrap{
  width: min(1200px, 92%);
  margin: auto;
}

/* Header */
.contact-head{
  text-align: center;
  margin-bottom: 34px;
}

.contact-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0c6e6d;
  background: rgba(30,198,198,.14);
  border: 1px solid rgba(30,198,198,.28);
}

.contact-title{
  margin: 14px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: #003436;
}

.contact-sub{
  max-width: 760px;
  margin: auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4b5f5f;
}

/* Grid */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 22px;
  margin-bottom: 40px;
}

/* Card */
.contact-card{
  background: #fff;
  padding: 22px 18px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.1);
  transition: transform .25s ease;
}

.contact-card:hover{
  transform: translateY(-6px);
}

.contact-photo{
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(30,198,198,.35);
}

.contact-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card h3{
  margin: 6px 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #003436;
}

.contact-role{
  font-size: 13.5px;
  color: #6b7c7c;
  margin-bottom: 10px;
}

.contact-card a{
  text-decoration: none;
  font-weight: 700;
  color: #003436;
}

.contact-card a i{
  color: #0c6e6d;
}

/* Address */
.contact-address{
  text-align: center;
  margin-bottom: 18px;
}

.contact-address h3{
  font-size: 18px;
  font-weight: 800;
  color: #003436;
}

.contact-address p{
  font-size: 14.5px;
  color: #4b5f5f;
}

/* Map */
.contact-map{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
}

.contact-map iframe{
  width: 100%;
  height: 360px;
  border: 0;
}



<!-- ===== TOP MANAGEMENT ===== -->

<!-- Managing Director -->
<div class="contact-card contact-card--top">
  <span class="top-badge">Top Management</span>

  <div class="contact-photo">
    <img src="assets/images/home/md.png" alt="Managing Director">
  </div>

  <h3>Managing Director</h3>
  <p class="contact-role">Strategic Leadership</p>

  <div class="contact-actions">
    <a href="mailto:md@unifillgroup.com"><i class="bi bi-envelope"></i></a>
    <a href="tel:+8801XXXXXXXXX"><i class="bi bi-telephone"></i></a>
    <a href="https://wa.me/8801XXXXXXXXX" target="_blank"><i class="bi bi-whatsapp"></i></a>
    <a href="https://www.linkedin.com/in/md-profile" target="_blank"><i class="bi bi-linkedin"></i></a>
  </div>
</div>

<!-- Deputy Director -->
<div class="contact-card contact-card--top">
  <span class="top-badge">Top Management</span>

  <div class="contact-photo">
    <img src="assets/images/home/deputy-director.png" alt="Deputy Director">
  </div>

  <h3>Deputy Director</h3>
  <p class="contact-role">Operations & Governance</p>

  <div class="contact-actions">
    <a href="mailto:dd@unifillgroup.com"><i class="bi bi-envelope"></i></a>
    <a href="tel:+8801XXXXXXXXX"><i class="bi bi-telephone"></i></a>
    <a href="https://wa.me/8801XXXXXXXXX" target="_blank"><i class="bi bi-whatsapp"></i></a>
  </div>
</div>

<!-- CEO -->
<div class="contact-card contact-card--top">
  <span class="top-badge">Top Management</span>

  <div class="contact-photo">
    <img src="assets/images/home/ceo.png" alt="CEO">
  </div>

  <h3>Chief Executive Officer</h3>
  <p class="contact-role">Business & Growth</p>

  <div class="contact-actions">
    <a href="mailto:ceo@unifillgroup.com"><i class="bi bi-envelope"></i></a>
    <a href="tel:+8801XXXXXXXXX"><i class="bi bi-telephone"></i></a>
    <a href="https://wa.me/8801XXXXXXXXX" target="_blank"><i class="bi bi-whatsapp"></i></a>
    <a href="https://www.linkedin.com/in/ceo-profile" target="_blank"><i class="bi bi-linkedin"></i></a>
  </div>
</div>



/* =========================
   TOP MANAGEMENT – BADGE ONLY
========================= */

.is-top{
  position: relative;
  border: 2px solid rgba(30,198,198,0.45);
  box-shadow: 0 20px 44px rgba(0,0,0,0.15);
}

/* Badge (no text) */
.is-top::before{
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1ec6c6,#003436);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  border: 3px solid #fff;
  z-index: 2;
}
.is-top.gold::before{
  background: linear-gradient(135deg,#f5c16c,#b8860b);
}


/* ================= CONTACT PAGE FINAL ================= */

.contact-section-title{
  margin: 40px 0 18px;
  font-size: 22px;
  font-weight: 900;
  color:#003436;
  text-align: center;
}

.is-gold{
  position: relative;
  border: 2px solid rgba(212,175,55,.6);
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.is-gold::before{
  content:"";
  position:absolute;
  top:-10px;
  right:-10px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:linear-gradient(135deg,#f7d774,#b8860b);
  border:3px solid #fff;
  box-shadow:0 6px 14px rgba(0,0,0,.3);
}

.contact-actions{
  margin-top:10px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.contact-actions a{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(30,198,198,.15);
  border:1px solid rgba(30,198,198,.3);
  color:#003436;
  transition:.25s;
}

.contact-actions a:hover{
  background:#1ec6c6;
  color:#fff;
}

.contact-actions .bi-whatsapp{color:#25D366;}
.contact-actions .bi-linkedin{color:#0A66C2;}
.contact-actions a:hover i{color:#fff;}

/* ===============================
   TOP MANAGEMENT – HOVER BADGE
   (New unique class)
================================ */
/* ===============================
   TOP MANAGEMENT – GOLD DOT (FINAL)
   conflict-free, balanced
================================ */

/* =================================
   TOP MANAGEMENT – HOVER GOLD DOT
   bottom-center, conflict-free
================================= */

.tm-lead{
  position: relative;
  border: 2px solid rgba(212,175,55,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

/* Golden dot (hidden by default) */
.tm-lead::after{
  content:"";
  position:absolute;
  bottom:-7px;
  left:50%;
  transform:translateX(-50%) scale(.6);
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,#f7d774,#b8860b);
  border:2px solid #ffffff;
  box-shadow:0 4px 10px rgba(184,134,11,.45);
  opacity:0;
  transition: all .3s ease;
  z-index:3;
  pointer-events:none;
}

/* Show on hover */
.tm-lead:hover::after{
  opacity:1;
  transform:translateX(-50%) scale(1);
}

/* ===============================
   FACTORY GRID – 4 IN ONE ROW
================================ */

.factory-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Tablet */
@media(max-width: 1024px){
  .factory-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media(max-width: 480px){
  .factory-grid{
    grid-template-columns: 1fr;
  }
}

/* Centered grid for exact 3 and 2 cards */
.contact-grid--3{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  justify-content: center;
  gap: 22px;
}

.contact-grid--2{
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  justify-content: center;
  gap: 22px;
}

/* Person name line */
.contact-person{
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #003436;
}

/* Top management hover gold dot: bottom-center */
.tm-lead{
  position: relative;
  border: 2px solid rgba(212,175,55,.45);
}

.tm-lead::after{
  content:"";
  position:absolute;
  bottom:-7px;
  left:50%;
  transform:translateX(-50%) scale(.6);
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,#f7d774,#b8860b);
  border:2px solid #ffffff;
  box-shadow:0 4px 10px rgba(184,134,11,.45);
  opacity:0;
  transition: all .3s ease;
  z-index:3;
  pointer-events:none;
}

.tm-lead:hover::after{
  opacity:1;
  transform:translateX(-50%) scale(1);
}

/* Responsive */
@media(max-width:1024px){
  .contact-grid--3{grid-template-columns: repeat(2, 1fr);}
  .contact-grid--2{grid-template-columns: 1fr;}
}

@media(max-width:600px){
  .contact-grid--3{grid-template-columns: 1fr;}
}

/* ===============================
  color
================================ */
.contact-person{
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0c6e6d;   /* deep teal – professional & calm */
}

/* =========================
   Show number on hover/tap
========================= */

.contact-actions .c-act{
  position: relative;
  outline: none;
}

/* Tooltip bubble */
.contact-actions .c-act::after{
  content: attr(data-show);
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #003436;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 5;
}

/* Small arrow */
.contact-actions .c-act::before{
  content:"";
  position:absolute;
  left:50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(0,0,0,0.10);
  rotate: 45deg;
  opacity: 0;
  transition: .2s ease;
  z-index: 5;
}

/* Show on hover (desktop) */
.contact-actions .c-act:hover::after,
.contact-actions .c-act:hover::before{
  opacity: 1;
}

/* Show on focus (mobile tap) */
.contact-actions .c-act:focus::after,
.contact-actions .c-act:focus::before,
.contact-actions .c-act:focus-visible::after,
.contact-actions .c-act:focus-visible::before{
  opacity: 1;
}

/* Mobile: keep tooltip closer */
@media(max-width:480px){
  .contact-actions .c-act::after{
    bottom: 44px;
    font-size: 11px;
    padding: 6px 9px;
  }
}


/* ================= QUERY FORM ================= */

.query-section{
  padding: 70px 0;
  background: linear-gradient(180deg,#f6fffb 0%, #ffffff 100%);
}

.query-wrap{
  width: min(900px, 92%);
  margin: 0 auto;
}

.query-head{
  text-align: center;
  margin-bottom: 26px;
}

.query-title{
  font-size: 26px;
  font-weight: 900;
  color: #003436;
  margin-bottom: 6px;
}

.query-sub{
  font-size: 15px;
  color: #4b5f5f;
  line-height: 1.6;
}

/* Form */
.query-form{
  background: #ffffff;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.10);
}

.query-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.query-field{
  display: flex;
  flex-direction: column;
}

.query-field label{
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #003436;
}

.query-field input,
.query-field select,
.query-field textarea{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}

.query-field input:focus,
.query-field select:focus,
.query-field textarea:focus{
  border-color: #1ec6c6;
  box-shadow: 0 0 0 3px rgba(30,198,198,.18);
}

/* Button */
.query-btn{
  margin-top: 18px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg,#1ec6c6,#003436);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .25s ease;
}

.query-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Responsive */
@media(max-width:768px){
  .query-grid{
    grid-template-columns: 1fr;
  }
}


.query-status{
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0c6e6d;
}




/* ===============================
   TABLET FIX – TOP MANAGEMENT
   =============================== */
@media (min-width: 768px) and (max-width: 991px) {

  /* Force 2-column grid */
  .contact-grid--3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* 1st card full width & centered */
  .contact-grid--3 .contact-card:nth-child(1) {
    grid-column: 1 / 3;
    justify-self: center;
    max-width: 420px;
  }

  /* 2nd & 3rd cards normal */
  .contact-grid--3 .contact-card:nth-child(2),
  .contact-grid--3 .contact-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }
}


/* WIDTH FIX – TOP MANAGEMENT */
.contact-grid--2{
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
}

.contact-grid--2 .contact-card.tm-lead{
  max-width: 420px;
  width: 100%;
}

@media(max-width:768px){
  .contact-grid--2{
    grid-template-columns: 1fr;
  }
  .contact-grid--2 .contact-card.tm-lead{
    max-width: 100%;
  }
}


/* ======================================
   FIX HUGE GAP BETWEEN 2 TOP BOXES
====================================== */

.contact-grid.contact-grid--2{
  grid-template-columns: repeat(2, minmax(360px, 1fr)); /* ⬅ tighter columns */
  column-gap: 0px !important;  /* ⬅ main fix */
  row-gap: 50px;
  justify-content: center;      /* ⬅ center the pair */
}

/* Slightly wider card so gap feels natural */
.contact-grid.contact-grid--2 .contact-card.tm-lead{
  max-width: 480px;             /* ⬅ fills space better */
}





/* =========================================
   FORCE FIX – TOP MANAGEMENT GAP ISSUE
========================================= */

/* Step 1: Reduce container width ONLY for top management */
.contact-page .contact-grid--2{
  max-width: 980px !important;   /* 🔥 MAIN FIX */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Step 2: Control columns tightly */
.contact-page .contact-grid--2{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 16px !important;   /* 🔥 horizontal gap */
  row-gap: 20px !important;
}

/* Step 3: Cards fill column (no floating space) */
.contact-page .contact-grid--2 .contact-card{
  width: 100% !important;
  max-width: none !important;
}

/* =========================================
   MOBILE FORCE FIX – TOP MANAGEMENT
========================================= */

@media (max-width: 767px){

  /* Grid = single column */
  .contact-page .contact-grid--2{
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    column-gap: 0 !important;
    row-gap: 16px !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Card full width */
  .contact-page .contact-grid--2 .contact-card{
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Address card */
.contact-card--address{
  text-align: center;
  padding: 34px 28px;
}

/* Address text */
.contact-address-box h4{
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #003436;
}

.contact-address-box p{
  font-size: 14.5px;
  line-height: 1.6;
  color: #0c6e6d;
  margin-bottom: 22px;
}

/* Email + Phone row */
.contact-info-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap; /* mobile safe */
}

/* Single item */
.contact-info-item{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14.8px;
  font-weight: 700;
  color: #003436;
  white-space: nowrap; /* number break বন্ধ */
}

.contact-info-item i{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30,198,198,.18);
  color: #0c6e6d;
  font-size: 16px;
}

.contact-info-item:hover{
  color: #0c6e6d;
}

/* Mobile fine-tune */
@media(max-width:480px){
  .contact-info-row{
    gap: 14px;
  }
}

