* {
  margin: 0%;
  padding: 0%;
  font-family: 'Cabin', sans-serif;
}

body {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
}

@font-face {
  font-family: 'CeraPro';
  src: url("{% static 'fonts/CeraPro-Regular.woff2' %}") format("woff2"),
       url("{% static 'fonts/CeraPro-Regular.woff' %}") format("woff");
  font-weight: normal;
  font-style: normal;
}

@media (max-width: 768px) {
  .col-md-4 {
      flex: 0 0 auto;
      width: 50%;
  }
}

@media (max-width: 576px) {
  .col-md-4 {
      flex: 0 0 auto;
      width: 100%;
  }
}

/************************* Overall Styling **************************/
p {
  font-size: 1.05rem !important;
}

.btn {
  background-color: #7f2729;
  color: #ffffff;
  border: none;
  padding-left: 1rem;
  padding-right: 1rem;
  outline: none;
}

.btn:focus{
  outline: none;
  box-shadow: none;
}

.btn-custom:hover {
  background-color: #f1f1f1;
  color: #1c355e;
}

.btn:hover {
  background-color: #1c355e;
  color: #ffffff;
}

.custom-btn {
  background-color: #7f2729;
  color: #ffffff;
  border-radius: 5px;
  border: none;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  outline: none;
  text-decoration: none;
  font-size: 1.2rem;
}

/* .custom-btn:hover {
  background-color: #f1f1f1;
  color: #1c355e;
} */

.consultation-btn {
  background-color: #1c355e;
  font-size: 16px;
  color: #ffffff;
  border: none;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  outline: none;
  margin-left: 2rem;
  text-decoration: none;
}

.consultation-btn:hover {
  background-color: #7f2729;
  color: #ffffff;
}

.book-consultation-btn {
  background-color: #7f2729;
  color: #ffffff;
  border-radius: 5px;
  border: none;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  outline: none;
  text-decoration: none;
  font-size: 1.2rem;
  width: 12rem;
}

.book-consultation-btn:hover {
  background-color: #f1f1f1;
  color: #1c355e;
}

.redirect-back-btn {
  color: #f1f1f1;
  font-size: 1.5rem;
}
.redirect-back-btn:hover {
  color: #ffd0f7;
}

.responsive-text {
  font-size: 40px;
}

@media (max-width: 768px) {
  .responsive-text {
      font-size: 30px;
  }
}

@media (max-width: 576px) {
  .responsive-text {
      font-size: 24px;
      width: 90%;
  }
}

.blue-title {
  font-size: 1.4rem;
  color: #1c355e;
}

.blue-text {
  font-size: 1.2rem;
  color: #1c355e;
}

.practicearea-title {
  font-size: 2rem;
  color: #1c355e;
}


.test-css {
  color: #7f2729;
  font-size: 800;
}


/*********************** Header section *************************/


.section-header {
  text-align: center;
  font-weight: bolder;
  font-size: 12px;
  padding-top: 2rem;
}

.logo {
  margin: 0.5rem;
  width: 20%;
  height: auto;
}

@media (max-width: 576px) {
  .logo {
      margin: 0.5rem;
      width: 20%;
  }
}

nav {
  margin: 0 !important;
}

.navbar {
  background-color: #ffffff;
  padding-top: 0%;
  padding-bottom: 0%;
  color: #ffffff;
  border: none;
}

.navbar-short {
  border: none;
}

.nav-container {
  margin-right: 2rem;
}

.navbar-light .navbar-toggler.custom-toggler {
  border: none;
}

.navbar-light .navbar-toggler.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-title {
  color: #000000;
  font-size: 16px;
}

.nav-title:hover {
  color: #7f2729;
}

.nav-title::after {
  color: #7f2729;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Updated extra-nav styles */
.extra-nav {
  background-color: #ffffff;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  min-height: 40px;
}

.extra-nav .container-fluid {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.extra-nav form input[type="text"] {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  height: 28px;
  border: none;
  margin-right: 0.5rem !important;
  border-bottom: 1px solid #ced4da;
  border-radius: 0;
  outline: #7f2729;
}

.extra-nav form button[type="submit"] {
  padding: 0;
  margin-left: -0.5rem;
  background: none;
  border: none;
}

.extra-nav .bi-search {
  font-size: 0.9rem !important;
  color: #7f2729;
}

.nav-contact {
  color: #7f2729;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-contact:hover {
  color: #530808;
}

.navbar-brand img {
  height: 3.3rem;
  width: auto;
}

.nav-link.active,
.nav-link.active:focus,
.nav-link.active:hover {
  color: #791619 !important;
  font-weight: bold;
}

.active-dropdown {
  font-weight: bold;
  background-color: #faf9f8; 
}

/* Mobile Search Panel Styles */
.mobile-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f9fa;
  padding: 0.3rem 0.5rem;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 1px solid #dee2e6;
  width: 100%;
}

.mobile-search-panel form {
  display: flex;
  align-items: center;
  width: 100%;
}

.mobile-search-input {
  flex: 1;
  padding: 0.3rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem 0 0 0.25rem;
  font-size: 0.8rem;
  height: 28px;
}

.btn-search-submit,
.btn-search-close {
  padding: 0.3rem;
  background: #791619;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
}

.btn-search-submit {
  border-radius: 0 0.25rem 0.25rem 0;
}

.btn-search-close {
  background: #6c757d;
  margin-left: 0.25rem;
  border-radius: 0.25rem;
}

/* Animation for smoother appearance */
.mobile-search-panel {
  transition: all 0.3s ease;
}

/* Make sure the search panel doesn't push content down */
@media (min-width: 768px) {
  .mobile-search-panel {
    display: none !important;
  }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
  .extra-nav {
    max-height: 2rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
  
  .extra-nav .bi-search,
  .extra-nav .bi-telephone-fill {
    font-size: 1rem !important;
  }
  
  .extra-nav .d-flex.align-items-center.justify-content-end {
    gap: 0.5rem;
  }
  
  .extra-nav .me-3 {
    margin-right: 0.5rem !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 2.5rem;
    width: auto;
  }

  .navbar-nav .nav-link {
    font-size: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .nav-title {
    font-size: 0.75rem;
  }

  .consultation-btn {
    font-size: 0.75rem;
    padding: 0.8rem;
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .navbar-toggler {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }

  .extra-nav .form-select-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  .extra-nav input[type="text"] {
    font-size: 0.7rem;
    padding: 0.25rem;
    margin-right: 0.5rem !important;
    width: 100px;
  }

  .extra-nav .bi-search,
  .extra-nav .bi-telephone-fill {
    font-size: 0.9rem !important;
  }

  .nav-contact {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    margin-right: 0.5rem;
  }

  .dropdown-menu {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .dropdown-menu .dropdown-item {
    padding: 0.3rem 0.75rem;
    font-size: 1rem;
  }
}

/* Additional styles from template */
.nav-link.nav-title {
  color: #222 !important;
}

.nav-link.nav-title:hover {
  color: #7f2729 !important;
}

.nav-link.nav-title:focus {
  color: #7f2729 !important;
}

.nav-item.dropdown.show > .nav-link.nav-title {
  color: #7f2729 !important;
}

.dropdown-menu .dropdown-item {
  color: #222;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: #7f2729;
  background-color: #f9f1f1;
}

/* Mobile Search Panel Styles */
.mobile-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  z-index: 1050; /* Above navbar */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 1px solid #dee2e6;
}

.mobile-search-panel form {
  display: flex;
  align-items: center;
  width: 100%;
}

.mobile-search-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem 0 0 0.25rem;
  font-size: 0.9rem;
}

.btn-search-submit,
.btn-search-close {
  padding: 0.5rem;
  background: #791619;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search-submit {
  border-radius: 0 0.25rem 0.25rem 0;
}

.btn-search-close {
  background: #6c757d;
  margin-left: 0.25rem;
  border-radius: 0.25rem;
}

/* Animation for smoother appearance */
.mobile-search-panel {
  transition: all 0.3s ease;
}

/* Adjust navbar when search panel is visible */
.extra-nav {
  position: relative;
}

/* Make sure the search panel doesn't push content down */
@media (min-width: 768px) {
  .mobile-search-panel {
    display: none !important;
  }
}


/*********************** Slider **************************/
/*********************** Carousel **************************/
.carousel {
  position: relative;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.carousel-inner {
  height: 100%;
}

.carousel-cap {
  position: relative;
  padding: 1.5rem;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-cap h1,
.carousel-cap h3,
.carousel-cap h6,
.carousel-cap p {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

.topsubtitle {
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.custom-btn {
  background-color: #1c355e;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  outline: none;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-block;
  margin-top: 0.5rem;
}

.custom-btn:hover {
  background-color: #7f2729;
  color: #ffffff;
}

.btn-primary {
  background-color: #1c355e;
  border-color: #1c355e;
}

.btn-primary:hover {
  background-color: #142a4d;
  border-color: #142a4d;
}

.carousel-control-prev {
  left: -25px !important;
  background: transparent !important;
}

.carousel-control-next {
  right: -25px !important;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
  .carousel-cap {
    padding: 3rem 4rem;
  }
  
  .carousel-cap h3 {
    font-size: 2.5rem;
  }
  
  .carousel-cap p {
    font-size: 1.1rem;
  }
  
  .topsubtitle {
    font-size: 1rem;
  }
  
  .custom-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }
}

@media (max-width: 1024px) {
  .carousel-item {
    height: 100vh;
  }
  
  .carousel-cap h3 {
    font-size: 2.2rem;
  }
  
  .carousel-cap p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 80vh;
  }
  
  .carousel-control-prev {
    left: -15px !important;
  }
  
  .carousel-control-next {
    right: -15px !important;
  }
  
  .carousel-cap {
    padding: 2rem;
    text-align: center;
  }
  
  .carousel-cap h3 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .carousel-cap p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .topsubtitle {
    font-size: 0.8rem;
  }
  
  .custom-btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 70vh;
  }
  
  .carousel-cap {
    padding: 1.5rem;
  }
  
  .carousel-cap h3 {
    font-size: 1.5rem !important;
  }
  
  .carousel-cap p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .topsubtitle {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }
  
  .custom-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
  }
}

@media (max-width: 400px) {
  .carousel-cap {
    padding: 1rem;
  }
  
  .carousel-cap h3 {
    font-size: 1.3rem !important;
  }
  
  .carousel-cap p {
    font-size: 0.8rem;
  }
  
  .topsubtitle {
    font-size: 0.65rem;
  }
  
  .custom-btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
}

.about-us-btn {
  background-color: #1c355e;
  color: #ffffff;
  border: none;
  padding: 0.4rem 1.2rem;
  outline: none;
  text-decoration: none;
  font-size: 0.8rem;
}

.about-us-btn:hover {
  background-color: #7f2729;
  color: #ffffff;
}


/********************* Cards ***********************/
.card {
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Initial transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease-in-out;
}

.card-overlay-content {
  opacity: 0;
  color: white;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}

.card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.card:hover .card-overlay-content {
  opacity: 1;
}

.card-details h5{
  padding: 0.5em;
  font-size: 20px;
}

.card-details p {
  padding: 0.5em;
  font-size: 14px;
}

.special-title {
  color:#7f2729;
  font-weight: 800;
}

.card-text-list {
  text-align: left;
}

.card-image {
  height: 15rem;
}

.home-card-image {
  height: 14rem;
}



/************************** Overlay  ******************************/



.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  opacity: 1;
}

.overlay h2 {
  font-weight: bold;
}

.overlay-container:hover .overlay {
  opacity: 1;
}

.overlay-service {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: left;
  margin-left: 5rem;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  opacity: 1;
}

.overlay-service h2 {
  font-weight: 800;
}





/******************* FAQ Section ************************/
.faq-btn {
  text-transform: uppercase;
}
.accordion-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}



/*************************** Newsletter ****************************/
.subscribe-card {
  width: 100%;
  max-width: 65%;
  margin-top: 2rem;
  background-color: #f1f1f1;
}

.subscribe-card .card-body {
  padding: 2rem;
}

.subscribe-card h5 {
  font-weight: bold;
}

.newsletter-section {
  margin: 3rem;
}

.email-link {
  color: #000;
}



/************************** Section Separator ****************************/
.separator-container {
  padding-top: 2rem;
  margin-top: 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-content: center;
}

.separator-line {
  border-color: rgba(17, 56, 97, 0.35);
  border: none;
  width: 40%;
}

.separator-hr {
  opacity: 0.5;
}



/********************* Forms ************************/
.custom-select {
  position: relative;
  background-color: #f8f9fa;
}

.custom-select::after {
  content: '\f078'; /* Unicode for downwards arrow */
  font-family: 'FontAwesome';
  font-size: 1rem;
  color: #6c757d;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Optional: Change the appearance of the placeholder option */
.custom-select option:first-child {
  color: #6c757d;
}

/************************************ Contact Us **************************************/
.main-contact
{
    height: 100vh;
}
.contact-us-page {
    background-color: lightgray;
}
.contact-img {
    width: auto;
    height: 30rem;
}


@media (max-width: 768px) {
  .contact-img {
    width: auto;
    height: 20rem;
  }
}


@media (max-width: 576px) {
  .contact-img {
    width: auto;
    height: 15rem;
  }
}




/***************************** Breadcrumbs  ******************************/
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-weight: 600;
}
.breadcrumb a {
  color: #7f2729;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #1c355e;
  text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff;
  content: " / ";
}

.breadcrumb-container {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: #c1c1c1;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
}
.breadcrumb-item.active {
    color: white;
}


/**************************** Articles  ********************************/

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1c355e;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.blog-excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-size: 0.9rem !important;
}

.blog-meta {
    display: flex;
    align-items: end;
    margin-top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.blog-date {
    color: #a0aec0;
    font-size: 0.875rem;
}

.blog-cat {
  padding-left: 1.5rem;
  margin-bottom: -1.2rem;
  font-size: 0.7rem !important;
  font-weight: 200;
  color: #a0aec0;
  text-transform: uppercase;
}

.read-more {
    color: #1c355e;
    font-weight: 500;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2d3748;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}


.load-more-btn {
    background: #1c355e;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(28, 53, 94, 0.3);
}

.load-more-btn:hover {
    background: #2a4a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(28, 53, 94, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
  .contact-img {
    width: auto;
    height: 15rem;
  }
  .main-blog-title {
    text-align: start;
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
}


.blog-content table,
.blog-content th,
.blog-content td {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #222 !important;
    border-collapse: collapse !important;
    padding: 6px;
}

/*App's colors*/
/*1c355e*/
/*7f2729*/