/* Full background image */
/* Make sure body + html don't add extra white space */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* display: flex;
  flex-direction: column; */
}
body {
    background: url("../img/hc.jpeg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    font-family: 'EB Garamond', serif;
  }

  /* body.no-bg {
    background: none !important; 
    background-color: #f8f9fa;   
} */

.wrapper {
  min-height: 100vh;        /* takes full height */
  display: flex;
  flex-direction: column;
}

  .top-bar{
    background-color: #000 !important;
    height: 70px;
  }

  .logo-img {
    height: 50px;
  }
  
  .brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37; /* gold */
    margin: 0;
    font-family: 'EB Garamond', serif;
  }
  
  .brand-text small {
    display: block;
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 0.5px;
  }

  .main-content {
    flex: 1; /* pushes footer down if little content */
  }
  
  
 /* Hero Background */
.hero {
    position: relative;
    height: 55vh !important;    /* much shorter */
    min-height: 180px !important;  /* ensures it doesn’t become too small */
    /* background: url("../img/hc.jpeg") no-repeat center top;
    background-size: 100% auto;   */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-position: top center;
    /* background-color: #000; */
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* dark overlay */
  }
  
  .hero h1, 
  .hero p {
    position: relative;
    z-index: 2;
  }
  
  .features {
    background: #111; 
    padding: 60px 40px; /* breathing space top & bottom */
  }
  
  .features .row {
    row-gap: 40px;   /* vertical space between rows */
    column-gap: 0px; /* Bootstrap handles column spacing */
    justify-content: center;
  }
  
  .feature-item {
    background: #000;  
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    margin: 0 10px; /* horizontal breathing space between boxes */
  }
  
  /* Icon Circle */
  .feature-item i {
    font-size: 2rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;   
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  .feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
  }
  
  .feature-item p {
    font-size: 0.95rem;
    color: #bbb;
    margin: 0;
  }
  
  .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.75);
    text-decoration: none;
  }
  
  .feature-item:hover i {
    background: #d4af37;
    color: #000;
    text-decoration: none;
  }

   /*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 45px;
  margin-top: 45px;
}

.section-header h2 {
  margin: 0 auto;
  position: relative;
  font-size: 50px;
  font-weight: 700;
  display: inline-block;
  padding: 0 20px;
  background: #f8f9fa; /* match section background */
  color: #000;
  z-index: 1;
  font-family: 'EB Garamond', serif;
}

.section-header::before,
.section-header::after {
  position: absolute;
  content: "";
  width: 100%;
  left: 0;
  border-top: 1px solid #aa9166;
  border-bottom: 1px solid #aa9166;
}
.section-header::before {
  top: 21px;   /* aligns with top part of text */
  height: 7px;
}

.section-header::after {
  bottom: 20px; /* aligns with bottom part of text */
  height: 7px;
}

@media (max-width: 767.98px) {
  .section-header h2 {
      font-size: 30px;
  }
}

/********* Service Section (Light Version) *********/
/* Only widen this section */
.service-container {
  max-width: 1320px; /* adjust to your liking */
}

.service {
  position: relative;
  width: 100%;
  padding: 60px 0 30px 0;
  background: #f8f9fa; /* light background */
  flex: 1;
}
/* Equal height for district cards */
.service .row {
  display: flex;
  flex-wrap: wrap;
}

.service .col-lg-3 {
  display: flex;
}



/* Service block */
.service .service-item {
  flex: 1; /* make all items inside columns equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps image + button spaced nicely */
  position: relative;
  width: 100%;
  text-align: center;
  background: #121518;
  margin-bottom: 30px;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 15px; /* adds inner spacing so image doesn’t touch edges */
}

.service .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Thumbnail image */
.service .service-icon img {
  width: 90%;         /* prevent touching edges */
  height: 180px;      /* slightly reduced height */
  object-fit: cover;  /* neat cropping */
  border-radius: 4px; /* rounded corners for modern look */
}

/* Header */
.service .service-item h3 {
  margin: 15px 0 5px 0;
  font-size: 20px;
  font-weight: 600;
  color: #aa9166;
  font-family: 'EB Garamond', serif;
}

.service .service-item a.btn {
position: relative;
margin-bottom: 10px;
margin-top: 20px;
padding: 10px 25px;
font-size: 14px;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
color: #aa9166;
border: 2px solid #aa9166;
border-radius: 0;
background: #121518;
transition: .3s;
}

.service .service-item:hover a.btn {
color: #121518;
background: #aa9166;
}

/* Only for High Court 2-block page */
.highcourt-service .service-item {
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 40px;
}

.highcourt-service .service-icon img {
width: 100%;
height: 220px;
object-fit: contain;   /* show full logo */
display: block;
margin: 0 auto;
border-radius: 6px;
background: #121518;   /* matches card background so side gaps disappear */
padding: 5px;          /* optional: add inner spacing */
}


.highcourt-service .service-item a.btn {
margin-top: 20px;
align-self: center;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 15px 0;  /* consistent fixed height */
  margin-top: auto; /* pushes footer to bottom */
}

.footer p {
  margin-bottom: 10px; /* slight spacing between lines if more text is added */
}

.footer a {
  color: #d4af37;
  font-weight: 500;
}

.footer a:hover {
  color: #fff !important;
}

.back-to-top {
  background: #000; /* gold circle */
  border: none;
}


.btn-scroll-top {
position: fixed;
bottom: 25px;
right: 25px;
width: 45px;
height: 45px;
border-radius: 50%;
background: #d4af37; /* gold */
color: #000;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
z-index: 1050;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.btn-scroll-top:hover {
background: #000;
color: #000;
}
.btn-scroll-top.show {
opacity: 1;
visibility: visible;
}


/*********UNIT PAGES**********/
body.no-bg {
  background: none !important;
  background-color: #f8f9fa;
  min-height: 100vh;        
  /* overflow-y: scroll;       */
  -webkit-overflow-scrolling: touch;
}

body.no-bg .wrapper {
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
}

body.no-bg .main-content {
  flex: 1;
  padding-top: 20px; 
}

body.no-bg .footer {
  margin-top: auto;
}

@media (max-width: 768px) {
  body.no-bg .col-md-6 {
    margin-bottom: 20px; 
  }
}


/******FOR OTHER PAGES*******/
/* default (existing) background stays applied by the body rules you already have */
body.no-bg {
  background: none !important;
}



