
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/********** Template CSS **********/


:root {
    --primary: #ffa24c;
    --secondary: #f3672b;
    --light: #2bb7f9;
    --dark: #000000;
    --new: #ffa24c;
    --border-color: #ffa24c;
    --white:#fff; 
    --bg-primary: var(--primary);
}

/* Apply Smooth Fonts */
body {
 font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

a,.text-primary {
    color: var(--secondary) !important;
}
a:hover,.text-primary:hover {
    color: var(--secondary) !important;
}

/*** Button ***/
.btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
    background: #f3672b;
}





.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    margin-right: 35px;
    padding: 25px 0;
    color: var(--bs-dark);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #c86e1e;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    background: rgba(0, 0, 0, .7);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }
    
    .carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 500px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 9rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 7rem;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/banner/businessman-analyzing-financial-data-tablet.jpg) center center no-repeat;
    background-size: cover;
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}

@media (max-width: 767px) {
    .about-img::before {
        display: none !important; /* hide rectangle */
    }
    
    .about-img {
        padding-left: 0 !important; /* center the image */
    }
}
/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
    background: #f3672b;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    /*background: var(--bs-secondary);*/
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.5rem;     /* optional rounded corners */
    background: #fff;
}

.service .service-inner {
    position: relative;
    height: 100%;
  
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    
    text-align: center;
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--secondary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
   display: block;           /* remove inline gap */
    width: 100%;
    height: 200px;             /* keep all same height */
    object-fit: cover;         /* crop nicely */
    margin: 0;                 /* remove top/bottom gap */
    padding: 0;
    vertical-align: middle;    /* extra safety */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/banner/financial-analyst-analyzing-stock-market-data.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {

    color: var(--bs-white);
    /* font-size: 45px;
    transition: .5s; */
}

/* .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
} */


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/banner/business-person-futuristic-business-environment.jpg) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}


/*new code*/


.nav__list {
  display: flex;
  align-items: baseline;
  column-gap: 20px;
}



.nav__link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;  position: relative;
  padding: 7px 14px;
  background-color: rgba(255, 255, 255, 0);
}

.nav__link:hover,
.nav__link:focus,
.dropdown:hover .nav__link {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: relative;
  font-size: 14px;
}

.dropdown:hover .dropdown__list {
  display: block;
}

.dropdown__list,
.submenu__list {
  display: none;
  position: absolute;
  
  
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
   top: 0;
  left: auto;
  right: 100%;
}

.subsubmenu__list {
  display: none;
  position: absolute;
  top: 125%;
  left: 0;
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


.dropdown__item,
.submenu__item {
  padding: 10px 15px;
  cursor: pointer;
}

.subsubmenu__item {
  padding: 10px 15px;
  cursor: pointer;
}

.dropdown__item:hover,
.submenu__item:hover {
  background-color: rgb(234, 234, 234);
}

.subsubmenu__item:hover {
  background-color: rgb(234, 234, 234);
}


.submenu {
  position: relative;
}

.subsubmenu {
  position: relative;
}

.submenu:hover .submenu__list {
  display: block;
}

.subsubmenu:hover .subsubmenu__list {
  display: block;
}

.submenu__list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.subsubmenu__list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


/* MEDIA QUERIES */
@media (max-width: 1470px) {
  .dropdown__list {
    left: initial;
    right: 0;
  }

  .submenu__list {
    left: initial;
    right: 100%;
  }

  .subsubmenu__list {
    left: initial;
    right: 100%;
  }
}

@media (max-width: 650px) {
  .header__content {
    padding: 25px 0;
    flex-direction: column;
    row-gap: 18px;
    align-items: center;
    position: relative;
  }

  .nav__list {
    column-gap: 10px;
  }

  .nav__item {
    position: initial;
  }

  .dropdown__list {
    top: 100%;
    width: 100%;
    text-align: center;
  }

  .submenu__list {
    right: initial;
    left: 0;
    top: 100%;
    width: 100%;
  }

    .subsubmenu__list {
    right: initial;
    left: 0;
    top: 100%;
    width: 100%;
  }
}

/* Remove bullet points and default padding from all dropdown lists */
.dropdown__list,
.submenu__list,
.subsubmenu__list {
  list-style: none;     /* remove bullets */
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  top: 125%;
  left: 0;
  background-color: #fff;
  min-width: 200px;     /* set proper width */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;         /* make sure menu comes above banner */
}

/* Each item design */
.dropdown__item,
.submenu__item,
.subsubmenu__item {
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown__item a,
.submenu__item a,
.subsubmenu__item a {
  display: block;
  text-decoration: none;
  color: #333;          /* text color */
  font-size: 14px;
  font-weight: 500;
}

/* Hover effect */
.dropdown__item:hover,
.submenu__item:hover,
.subsubmenu__item:hover {
  background-color: #f5f5f5;
}

/* Submenu position (right side) */
.submenu__list {
  top: 0;
  left: auto;
  right: 100%;
}

.subsubmenu__list {
  top: 0;
  left: auto;
  right: 100%;
}

/* Show dropdowns on hover */
.dropdown:hover > .dropdown__list {
  display: block;
}

.submenu:hover > .submenu__list {
  display: block;
}

.subsubmenu:hover > .subsubmenu__list {
  display: block;
}
.container-flex {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    height: fit-content;
}

.sidebar ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background: #000000;
    color: #fff;
}
.content {
    width: 60%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
     padding: 15px;
    overflow: hidden;
}

/* Iframe */
.content iframe {
    width: 100%;
    height: 600px;
    border: none;
}


    
    
    .sidebar button {
      width: 100%;
      padding: 12px;
      margin-bottom: 10px;
      border: none;
      border-radius: 8px;
      background: #f45a1d;
      color: white;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s;
      
    }
    .sidebar button:hover { background: #ffffff; color:#f45a1d ; border: 2px solid #f45a1d;
  border-radius: 12px;}
    .content {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }
    .calc-section { display: none; }
    .calc-section.active { display: block; }

    .sidebar ul {
    list-style: none;   /* bullets hat jayenge */
    padding: 0;         /* default padding bhi remove */
    margin: 0;          /* default margin bhi remove */
}

/* Service row me sab column equal height */
.service .row {
  display: flex;
  flex-wrap: wrap;
}

/* Column full height le */
.service .col-lg-3,
.service .col-md-6 {
  display: flex;
}

/* Service item ko stretch karna */
.service-item {
  flex: 1;
  display: flex;
}

.service-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* content + button ka gap equal */
  width: 100%;
}

/* Desktop grid (6 columns) */
.link-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  width: 100%;
}

/* Common box styles */
.link-box {
  display: flex;          
  flex-direction: row; 
  gap: 10px;
 
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #f45a1d;
  border-radius: 10px;
 padding: 10px 12px; 
  text-align: left;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  min-width: 140px; /* so that carousel items don't shrink too much */
}

.link-box:hover {
  background: #f45a1d;
  color: #fff;
  transform: translateY(-5px);
}

.link-box i {
  font-size: 22px;
  color: #f45a1d;
  margin-bottom: 0px;
  transition: 0.3s;
}

.link-box:hover i {
  color: #fff;
  
}

.link-box:hover p {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  color: #fff;
  
}

.link-box p {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  
}
.app-buttons {
    display: flex;
    gap: 20px;                  /* space between buttons */
    justify-content: center;    /* center align */
    align-items: center;
    flex-wrap: wrap;            /* agar jagah kam ho to neeche aajaye */
    margin-top: 20px;
}

.app-buttons img {
     max-width: 180px;     /* button ke liye fixed max width */
  height: auto !important;   /* force proportional height */
  width: auto !important;    /* avoid stretch */
  object-fit: contain !important; /* crop hone se bachega */
  display: block;
}



/* Fix carousel caption and image for mobile */
@media (max-width: 768px) {
  .banner-carousel .carousel-item {
    min-height: 400px; /* adjust as needed */
  }

  .banner-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image fills container */
  }

  .banner-carousel .carousel-caption {
    padding: 1.5rem;          /* reduce padding */
    padding-left: 2rem;       /* no big left gap */
    text-align: center;       /* center text */
    align-items: center;      /* vertically center */
    justify-content: center;  /* horizontally center */
  }

  .banner-carousel .carousel-caption h1,
  .banner-carousel .carousel-caption h3 {
    font-size: 1.8rem; /* responsive text size */
  }

  .banner-carousel .carousel-caption .btn {
    margin-top: 15px;
  }
}
/*
@media (max-width: 768px) {
  .app-buttons {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 0 auto;      
    text-align: center;  
  }

  .app-buttons img {
     max-width: 130px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;   
  }
}
*/
/* Fix carousel caption and image for mobile */
@media (max-width: 768px) {
  .quicklinks-carousel .carousel-item {
    min-height: 100px; /* adjust as needed */
  }

  .quicklinks-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image fills container */
  }

  .quicklinks-carousel .carousel-caption {
    padding: 1.5rem;          /* reduce padding */
    padding-left: 2rem;       /* no big left gap */
    text-align: center;       /* center text */
    align-items: center;      /* vertically center */
    justify-content: center;  /* horizontally center */
  }

  .quicklinks-carousel .carousel-caption h1,
  .quicklinks-carousel .carousel-caption h3 {
    font-size: 1.8rem; /* responsive text size */
  }

  .quicklinks-carousel .carousel-caption .btn {
    margin-top: 15px;
  }

  .quicklinks-carousel .carousel-item .link-box {
    min-width: auto;
    width: 110px;       /* smaller width */
    padding: 8px 10px;  /* less padding */
    font-size: 12px;
  }

  .quicklinks-carousel .carousel-item .link-box i {
    font-size: 18px; /* smaller icon */
  }

  .quicklinks-carousel .carousel-item .link-box p {
    font-size: 12px; /* smaller text */
  }
}

.partner-carousel .partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.partner-carousel .partner-item img {
  max-height: 80px;     /* sabki max height fix */
  max-width: 100%;      /* box ke andar width adjust ho jaaye */
  object-fit: contain;  /* aspect ratio maintain rahe */
  display: block;
  margin: 0 auto;       /* center align */
  transition: 0.3s;
}

.partner-carousel .partner-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}


.testimonial-icon {
  width: 60px;
  height: 60px;
}

@media (max-width: 576px) {
  .testimonial-icon {
    width: 45px;
    height: 45px;
  }
  .testimonial-icon i {
    font-size: 1.2rem; /* icon chhota */
  }
}

.icon-box {
  width: 100%;
  height: 220px;           /* box height (image jaisi) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;     /* halka bg */
  border: 2px solid #f45a1d;
  border-radius: 12px;
  transition: 0.3s;
}

.icon-box i {
  font-size: 60px;
  color: #f45a1d;
  transition: 0.3s;
}

.service-item:hover .icon-box {
  background: #f45a1d;
}

.service-item:hover .icon-box i {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .icon-box {
    height: 180px;
  }
  .icon-box i {
    font-size: 45px;
  }
}

/* Desktop grid (6 columns) */
.link-boxes1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Common box styles */
.link-box1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #f45a1d;
  border-radius: 12px;
  padding: 30px 15px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  min-width: 120px; /* so that carousel items don't shrink too much */
}

.link-box1:hover {
  background: #f45a1d;
  color: #fff;
  transform: translateY(-5px);
}

.link-box1 i {
  font-size: 35px;
  color: #f45a1d;
  margin-bottom: 10px;
  transition: 0.3s;
}

.link-box1:hover i {
  color: #fff;
  
}

.link-box1:hover p {
  font-size: 16px;

  margin: 0;
  color: #fff;
  
}

.link-box1 p {
  font-size: 16px;
  color: #f45a1d;
  margin: 0;
  
}





/* --- Mutual Funds Section --- */

/* Flex row: image left, content right */
.service-flex-row {
    display: flex;
    align-items: stretch; /* image matches content height */
    gap: 30px; /* spacing between image and text */
    margin-bottom: 20px; /* spacing from below content */
}

.service-flex-img {
    flex: 0 0 45%;
    max-width: 45%;
}

.service-flex-img img {
    width: 100%;
  height: auto;       /* let image scale naturally */
  max-height: 100%;   /* image will not exceed flex row height */
  object-fit: cover;  /* crop if needed but maintain aspect ratio */
  border-radius: 8px;
}

.service-flex-content {
    flex: 1;
    max-width: 55%;
    padding: 0; /* no border box */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Content below image + text */
.service-flex-content1 {
    width: 100%;
    margin-top: 20px; /* minimal spacing */
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Link boxes inside below content */
.link-boxes1 {
    width: 100%;
    margin-top: 15px;
    gap: 20px;
}

/* --- Responsive Mobile --- */
@media (max-width: 992px) {
    .service-flex-row {
        flex-direction: column;
        gap: 15px;
    }

    .service-flex-img,
    .service-flex-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .service-flex-img img {
        height: auto; /* natural height on mobile */
    }

    .service-flex-content {
        padding: 15px 0;
    }

    .service-flex-content1 {
        margin-top: 15px;
    }
}

.highlight-box {
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f8ff, #e9f5ff);
    border-left: 4px solid #f3672b;
    transition: transform 0.3s ease;
}
.highlight-box:hover {
    transform: translateX(5px);
}


.calc-section {
    display: none;
}
.calc-section.active {
    display: block;
}

.about-text {
  text-align: justify;      /* Har line ko same width tak kheenchta hai */
  line-height: 1.8;          /* Thoda spacing deta hai */
}

.service-text {
  display: flex;
  flex-direction: column;      /* items vertically stack */
  align-items: center;         /* sab kuch horizontally center */
  text-align: center;           /* text bhi center */
}

.service-text .btn-xl-square {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;     
  align-items: center;          
  margin-bottom: 15px;          /* thoda gap heading se */
}


@media (max-width: 991px) {
    .desktop-logo-block {
        display: none !important;
    }
}

.post-entry-2 {
    display: flex;
    flex-direction: row;
    align-items: stretch;        
}

.post-entry-2 .col-md-4 {
    flex: 0 0 220px;             
    max-width: 220px;
}

.post-entry-2 .col-md-4 img {
    width: 100%;
    height: 100%;                 
    object-fit: cover;           
    border-radius: 6px 0 0 6px;   
}

.post-entry-2 .col-md-8 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;     
    padding: 15px;
}

/* 📱 Mobile view (stacked) */
@media (max-width: 767.98px) {
    .post-entry-2 {
        flex-direction: column;    /* ✅ Stack image on top */
        align-items: center;       /* ✅ Center align */
    }

    .post-entry-2 .col-md-4 {
        width: 100%;               /* ✅ Full width image */
        max-width: 100%;
    }

    .post-entry-2 .col-md-4 img {
        width: 100%;
        height: 200px;             /* ✅ Same fixed height for all images */
        object-fit: cover;         /* ✅ Crop to fit */
        margin: 0 auto;             /* ✅ Center image */
        border-radius: 8px 8px 0 0; /* Optional: top rounded corners */
    }

    .post-entry-2 .col-md-8 {
        width: 100%;
        text-align: center;         /* Optional: center text on mobile */
    }
}

/* Default: show desktop, hide mobile */
.banner-mobile { display: none; }
.banner-desktop { display: block; }

/* Mobile view */
@media (max-width: 768px) {
  .banner-desktop { display: none; }
  .banner-mobile { display: block; }

  .mobile-banner-content {
    text-align: center;
    width: 100%;
    height: 280px;
  }

  /* wrapper to hold background image */
  .mobile-banner-bg {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 260px; /* adjust height */
  }

  .mobile-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to cover */
    display: block;
  }

  /* dark overlay */
  .mobile-banner-bg .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
  }

  /* content on top */
  .mobile-banner-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 15px;
    z-index: 2;
    color: #fff;
  }

  .mobile-title {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
  }

  .mobile-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .mobile-buttons img {
    width: 100px;
    height: auto;
    display: block;
  }
}
