/*
Theme Name: Borrow Child
Theme URI: http://demowp.vegatheme.com/borrow/
Template: borrow
Author: OceanThemes
Author URI: https://oceanthemes.site/
Description: Are you small and local loan company and looking for a design and redesign your loan website. Borrow is specially designed to demonstrate your company’s loan product service online.
Tags: one-column,two-columns,right-sidebar,custom-header,custom-menu,editor-style,featured-images,microformats,post-formats,sticky-post,translation-ready
Version: 1.7.0.1747216488
Updated: 2025-05-14 15:54:48
*/

/*Home Page Logo Styles*/
.logo {
  height: auto; 
  width: 255px;
}

@media (max-width: 767px){
  .logo {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -40px;
  }
}

/*Home Page Menu Header Styles*/
@media (min-width: 1200px){
.container, .container-lg, .container-md, .container-sm, .container-xl {
	max-width: 1400px;
  }
}

.header{
  padding-top: 0px;
  padding-bottom: 5px;
}
#navigation li.current-menu-ancestor > a {
  color: #339933;
}
#navigation li.current-menu-parent > a {
  color: #339933;
}
#navigation li.current-menu-item > a {
  color: #339933;
}

/*Near Footer Service Partners Styles*/
.wpb_single_image img {
  height: 100px;
  max-width: 100%;
  vertical-align: top;
  width: 100px;
}

/* Home Page Our Services Styles */
/* Apply rounded corners to all elements initially */
#home-our-services-row-1 .wpb_wrapper, #home-our-services-row-1 .outline,
#home-our-services-row-2 .wpb_wrapper, #home-our-services-row-2 .outline {
  border: none;
  font-size: 13px;
  border-radius: 15px; /* Set rounded corners initially */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Keep transition for transform and box-shadow */
}

#home-our-services-row-1 .wpb_wrapper:hover, 
#home-our-services-row-2 .wpb_wrapper:hover {
  transform: scale(1.1); /* Scale up by 10% */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
  /* No need to change border-radius on hover, it stays rounded */
}

#home-our-services-row-1 .mb40, #home-our-services-row-2 .mb40 {
  margin-bottom: 0px;
}

/* #home-our-services-row-1 .pinside40, #home-our-services-row-2 .pinside40 {
  padding: 20px;
} */

#home-our-services-row-1 p img, #home-our-services-row-2 p img {
  height: 40px;
  width: auto;
}

/*Board Page Styles*/
#board-card-row-1 .wpb_wrapper, #board-card-row-2 .wpb_wrapper, #board-card-row-3 .wpb_wrapper{
	width: 350px;
	margin: 0 auto;
  opacity: 1;
}

#board-card-row-1 .card, .wpb_wrapper:hover, #board-card-row-2 .card, .wpb_wrapper:hover, #board-card-row-3 .card, .wpb_wrapper:hover{
  border: none !important;
}

/*Board Image Styles*/
#board-card-row-1 img.mb-4, #board-card-row-2 img.mb-4, #board-card-row-3 img.mb-4 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border-style: solid;
  border-width: 2px;
  border-color: #dee4ee;
  object-fit: cover;
}

/*Board Card Holder Styles*/
/*#board-card-row-1 .card, #board-card-row-2 .card, #board-card-row-3 .card {
  border-color: #3cab43;
}*/

/* Responsive: Reduce card width on mobile screens */
@media (max-width: 768px) {
  #board-card-row-1 .wpb_wrapper,
  #board-card-row-2 .wpb_wrapper,
  #board-card-row-3 .wpb_wrapper {
    width: 300px;
    margin: 0 auto 50px auto;
    display: block;
  }
}

/*Board Designation Styles*/
#board-card-row-1 p, #board-card-row-2 p, #board-card-row-3 p {
  margin-bottom: 0px;
}

/*Managment Page Styles*/
#mgmt-card-row-1 .wpb_wrapper, #mgmt-card-row-2 .wpb_wrapper, #mgmt-card-row-3 .wpb_wrapper{
	width: 350px;
	margin: 0 auto;
}

#mgmt-card-row-1 .card, .wpb_wrapper:hover, #mgmt-card-row-2 .card, .wpb_wrapper:hover, #mgmt-card-row-3 .card, .wpb_wrapper:hover{
  border: none !important;
}

/*Managment Image Styles*/
#mgmt-card-row-1 img.mb-4, #mgmt-card-row-2 img.mb-4, #mgmt-card-row-3 img.mb-4 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border-style: solid;
  border-width: 2px;
  border-color: #dee4ee;
  object-fit: cover;
}

/*Managment Card Holder Styles*/
/*#mgmt-card-row-1 .card, #mgmt-card-row-2 .card, #mgmt-card-row-3 .card {
  border-color: #3cab43;
}*/

/* Responsive: Reduce card width on mobile screens */
@media (max-width: 768px) {
  #mgmt-card-row-1 .wpb_wrapper,
  #mgmt-card-row-2 .wpb_wrapper,
  #mgmt-card-row-3 .wpb_wrapper {
    width: 300px;
    margin: 0 auto 50px auto;
    display: block;
  }
}

/*Managment Designation Styles*/
#mgmt-card-row-1 p, #mgmt-card-row-2 p, #mgmt-card-row-3 p {
  margin-bottom: 0px;
}

/*Custom Slider*/
.custom-slider {
  position: relative;
  width: 100%;
  height: 0; /* Initial height to 0 */
  padding-bottom: 32.1875%; /* 515px / 1600px * 100 = 32.1875% - To maintain the aspect ratio of the slider with change in screen size*/ 
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.slide.active {
  display: flex;
  animation: fade 1s ease-in-out;
}

.slide img {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: block;
}

.slide::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
}

/*Slider Buttons*/
.slide-buttons {
  position: absolute;
  top: 80%;
  left: 80%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.slide-buttons a {
  text-align: center;
  padding: 10px;       /* Optional: Adds spacing around the text */
  white-space: nowrap;     /* Optional: Prevents wrapping */
}

/* Center buttons on mobile screens */
@media (max-width: 768px) {
  .slide-buttons {
    top: 20%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    flex-direction: row; /* Stack buttons horizontally */
    align-items: center;
    gap: 12px;
  }

 .slide-buttons a, button {
    text-align: center;
    font-size: 10px;
    padding: 5px;       /* Optional: Adds spacing around the text */
    white-space: nowrap;     /* Optional: Prevents wrapping */
  }
}

.btn-main,
.btn-alt {
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  animation: slideInLeft 2s ease;
}

.btn-main {
  background: #339933 !important;
  color: #fff !important;
}

.btn-main:hover {
  background: #fcb714 !important;
  color: #000 !important;
}

.btn-alt {
  background: #339933 !important;
  color: #fff !important;
}

.btn-alt:hover {
  background: #fcb714 !important;
  color: #000 !important;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(247, 141, 31, 0.6); /* Orange - #f78d1f equivalent in rgb format */
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  border-radius: 5%;
  transition: background 0.3s ease;
}
.slider-arrow:hover {
  background: rgba(51, 153, 51, 0.6); /* Green - #339933 equivalent in rgb format */
}

.slider-arrow.prev {
  left: 20px;
}
.slider-arrow.next {
  right: 20px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(247, 141, 31, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
  background-color: #339933;
}

/* Animations */
@keyframes fade {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .slide-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 1;
  }

  .custom-slider {
    height: 300px;
  }

  .slide img {
    width: 90%;
    border-radius: 10px;
  }

  .slider-arrow {
    padding: 8px 10px;
  }
	
  .slider-arrow.prev {
    left: 5px;
  }
  
  .slider-arrow.next {
    right: 5px;
  }
}

/*App Banner Slider*/
.button-wrapper {
  display: flex;
  align-items: center; /* Vertical alignment */
  justify-content: center;
}

.store-button img {
  height: 40px; /* Fixed height */
  width: auto; /* Maintain aspect ratio */
  object-fit: contain;
}

/* Desktop */
@media (min-width: 769px) {
  .store-button img {
    height: 50px;
  }
}

/* Default (Desktop) Styles */
.button-wrapper.desktop-buttons {
  position: absolute;
  bottom: 80px; /* Adjust as needed */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.button-wrapper.desktop-buttons a{
  text-align: center;
  padding: 10px;       /* Optional: Adds spacing around the text */
  white-space: nowrap;
}

/* Desktop Styles (Prevent Over-Sized Buttons) */
@media (min-width: 769px) {
  .button-wrapper.desktop-buttons {
    position: absolute;
    bottom: 80px; /* Adjust distance from bottom */
    left: 50%;
    transform: translateX(-50%); /* Perfect center */
    z-index: 10;
    white-space: nowrap; /* Prevent line breaks */
  }

  .button-wrapper.desktop-buttons .store-button {
    max-width: 180px; /* Control button size */
    margin: 0 10px; /* Spacing between buttons */
    display: inline-block;
  }

  /* Hide mobile buttons on desktop */
  .button-wrapper.mobile-buttons {
    display: none;
  }
}

/* Mobile Styles (Buttons at Top Center) */
@media (max-width: 768px) {
  .button-wrapper.mobile-buttons {
    position: absolute;
    top: 20px; /* Distance from the top */
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    padding: 10px 0;
  }

  .button-wrapper.mobile-buttons .store-button {
    max-width: 150px; /* Smaller buttons on mobile */
    margin: 0 5px;
    display: inline-block;
  }

  /* Hide desktop buttons on mobile */
  .button-wrapper.desktop-buttons {
    display: none;
  }
}

/*Back to top styles*/
#to-the-top {
  position: fixed;
  bottom: 15px;
  right: 80px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6) !important;
  background-image: url('/wp-content/uploads/2025/06/logo-to-the-top-scaled.png'); /* Add your image path here */
  background-size: contain; /* Ensures image covers the circle */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  color: white;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#to-the-top.show {
  opacity: 0.6;
  visibility: visible;
}

#to-the-top:hover {
  background-color:rgba(255, 255, 255, 0.3) !important;
  opacity: 0.9;
}

@media only screen and (max-width: 768px){
#to-the-top {
  bottom: 15px;
  left: 20px;
  }
}

/* Breadcrumb above post title in single custom post */
.single-blog .page-breadcrumb {
  margin-top: 40px;
}

/* Single Post Custom Style */
/* === Base Layout & Container === */
.single-blog .wrapper-content {
  background-color: #fff;
  padding: 40px;
  box-sizing: border-box;
}

.wrapper-content { 
  margin-top: -40px; 
  margin-bottom: 0px; 
  position: relative; 
}

.single-blog .container,
.single-blog .post-holder,
.single-blog .col-md-8,
.single-blog .col-md-12,
.single-blog .col-sm-12,
.single-blog .col-xs-12 {
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* === Title & Meta === */
.single-blog .post-holder h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  color: #339933;
}

.single-blog .post-holder .meta {
  font-size: 14px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

/* === Paragraphs === */
.single-blog .post-holder p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

/* === Images === */
.single-blog .post-img img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 8px;
}

/* === Quote Block === */
.quote-block {
  background: #0073aa;
  color: #fff;
  border-left: 5px solid #005f8c;
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
  text-align: center;
}

.quote-block blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
}

/* === Scrollable Tables === */
.single-blog .bg-white table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  table-layout: auto;
}

.single-blog .bg-white th,
.single-blog .bg-white td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
  word-break: break-word;
}

.single-blog .bg-white th {
  background-color: #f8f8f8;
  font-weight: 600;
}

.single-blog .bg-white tr:nth-child(even) {
  background-color: #fafafa;
}

/* Wrap all tables in a scrollable container */
.single-blog .bg-white table {
  display: table;
}

.single-blog .bg-white table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .single-blog .bg-white table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* === Lists Styling with Justified Text === */
.single-blog .bg-white ol,
.single-blog .bg-white ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.single-blog .bg-white li {
  line-height: 1.6;
  word-break: break-word;
  text-align: justify;
}

/* === Responsive Padding === */
@media (max-width: 992px) {
  .single-blog .wrapper-content,
  .single-blog .container,
  .single-blog .post-holder,
  .single-blog .col-md-8,
  .single-blog .col-md-12,
  .single-blog .col-sm-12,
  .single-blog .col-xs-12 {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .single-blog .wrapper-content,
  .single-blog .container,
  .single-blog .post-holder,
  .single-blog .col-md-8,
  .single-blog .col-md-12,
  .single-blog .col-sm-12,
  .single-blog .col-xs-12 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .single-blog .wrapper-content,
  .single-blog .container,
  .single-blog .post-holder,
  .single-blog .col-md-8,
  .single-blog .col-md-12,
  .single-blog .col-sm-12,
  .single-blog .col-xs-12 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/*404 Page*/
.error-wrapper {
  padding: 80px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.error-wrapper .error-img img {
  max-width: 300px;
  height: auto;
  margin-bottom: 30px;
}

.error-wrapper .error-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #333;
}

.error-wrapper .msg {
  font-size: 24px;
  color: #666;
}

.error-wrapper p {
  font-size: 16px;
  color: #777;
  margin-bottom: 30px;
}

.error-wrapper .btn {
  font-size: 16px;
  padding: 12px 25px;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.error-wrapper .btn:hover {
  background-color: #0056b3;
  color: #fff;
}

/*Make all tables scroll-able irrespective of element classes*/
@media screen and (max-width: 768px) {
  table {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse; /* Keeps borders normal */
  }

  table th, table td {
    white-space: nowrap; /* Prevents content from wrapping */
  }
}

/* Footer Info and Menus*/
.footer-left-contact-text {
  margin-top: -40px;
}

/* Default (desktop) */
#reports-policies-title,
#help-support-title,
#quick-links-title,
#connect-us-title {
  font-weight: 600;
}

/*
#quick-links-title {
  padding-top: 75px;
} for footer page - OLD */

#quick-links-title strong, #reports-policies-title strong,
#help-support-title strong, #connect-us-title strong {
  color: #fcb714;
}

#quick-links-title .wpb_content_element {
  margin-bottom: -20px;
}

#reports-policies-title .listnone,
#help-support-title .listnone {
  margin-top: -20px;
}

#connect-us-title {
  padding-top: 30px;
}

#connect-us-title .widget-social {
  margin-top: 20px;
}

.quick-links-col-1 .listnone, .quick-links-col-2 .listnone, .quick-links-col-3 .listnone {
  margin-top: -20px;
}

@media screen and (max-width: 767px) {
  .quick-links-col-2 .listnone, .quick-links-col-3 .listnone {
    margin-top: -40px;
  }

  #quick-links-title strong, #reports-policies-title strong,
  #help-support-title strong, #connect-us-title strong {
  margin-top: -20px;
  }
}

/* Medium screens (tablets) */
@media screen and (max-width: 991px) {
  #quick-links-title,
  #reports-policies-title,
  #help-support-title,
  #connect-us-title {
    padding-top: 60px;
  }
}

/*Searchbar for smaller screens*/
/* Default: hide mobile search bar on large screens */
.mobile-header-search {
  display: none !important;
}

/* FLEX layout for logo + search on small screens */
@media (max-width: 768px) {
  .mobile-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo img {
    max-height: 100px;
    width: auto;
  }

  .mobile-header-search {
    display: block !important;
    flex: 1;
    margin: 10px;
    padding-top: 10px;
  }

  .mobile-header-search form {
    display: flex;
    align-items: center;
  }

  .mobile-header-search .input-group {
    display: flex;
    width: 100%;
  }

  .mobile-header-search input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
    height: 38px; /* fixed height */
    box-sizing: border-box;
  }

  .mobile-header-search .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    background-color: #fcb714;
    color: white;
    border: 1px solid #fff;
    height: 38px;  /* match input height */
    padding: 0 12px;
  }

  .mobile-header-search .btn:hover {
    background-color: #339933;
  }

  .mobile-header-search .btn i.fa-search {
    font-size: 16px;
    line-height: 1;
  }
}

/*Search page pagination*/
/* Keep this exactly as you have */
.st-pagination {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
  gap: 8px;
  padding: 10px 0;
  max-width: 100%;
  scrollbar-width: thin;
  position: relative; /* required */
}

/* Ensure pagination links don't shrink */
.st-pagination a,
.st-pagination span {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}

/* Highlight current page */
.st-pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
}

/* Fix the scroll hint — place outside scroll area */
@media (max-width: 767px) {
  .st-pagination::after {
    content: '← scroll →';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    text-align: center;
    font-size: 12px;
    color: #888;
    pointer-events: none;
  }
}

/*Video SLider -Overlay*/
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 100%;
  max-width: auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  width: 100%;
  height: 600px;
  display: block;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
}

/* Common button styles */
.btn-main,
button.btn-main {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  animation: slideInLeft 2s ease;
  border: none;
  cursor: pointer;
  background: #339933;
  color: #fff;
}

/* Hover effect */
.btn-main:hover,
button.btn-main:hover {
  background: #fcb714;
  color: #fff;
}

/*Footer Partners*/
.partner-logos img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}
.partner-logos a {
  display: block;
  text-align: center;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-top:-60px;
}

@media (max-width: 768px) {
	.section-title {
		margin-top: 10px;
	}
}

/*Mobile Menu Hover Color*/
#navigation.small-screen ul ul li:hover > a, #navigation.small-screen ul ul li.active > a { 
  color: #fcb714; 
}

/*Mission Vision Page*/
.mission-vision {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.responsive-image {
  max-width: 600px;     /* Limit image width on large screens */
  width: 100%;          /* Responsive scaling */
  height: auto;         /* Maintain aspect ratio */
  display: block;
}

/*Announcements Title Animation*/
/* Base styling for the title */
#home-announcements-row {
  display: block;
  text-align: center;
}

.home-announcements-title {
  position: relative;
  display: inline-block; /* Ensure we can position the pseudo-element */
}

/* Create the animated underline */
.home-announcements-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px; /* Thickness of the underline */
  background-color: #fcb714; /* Underline color */
  animation: underlineAnimation 5s ease-out infinite; /* Infinite animation every 2 seconds */
}

/* Keyframes for the underline animation */
@keyframes underlineAnimation {
  0% {
    width: 0;             /* Start with no underline width */
    left: 50%;            /* Start at the center */
  }
  50% {
    width: 100%;          /* Underline expands to full width */
    left: 0%;             /* The underline will reach both ends */
  }
  100% {
    width: 0;             /* Underline shrinks back to 0 width */
    left: 50%;            /* Ends at the center */
  }
}

#home-announcements-row h2 a.title {
  font-size: 15px;
  line-height: 15px;
  font-weight: bold;
}

/*Breadcrumb for Announcement Page*/
.page-breadcrumb.three-column-page {
  padding-top: 40px !important;
}

/*Home Loan Interest Box*/
.rate-box {
  text-align: center; /* Center the contents of the box */
  margin: 5px 0;
  margin-left: -20px;
}

.loan-rate {
  border-bottom: 2px solid #fcb714; /* Underline the loan rate */
  display: inline-block; /* So the underline doesn't stretch the full width */
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #000000;
}

.rate-title {
  display: block; /* Ensures it's on a new line */
  text-align: center;
  font-size: 12px;
  color: #000000;
}

.rate-counter-block {
  position: relative; /* Required for absolute positioning of the pseudo-element */
  border-right: none;
  padding-top: 20px;
  padding-bottom: 20px;
}

.rate-counter-block::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%; /* Start from the middle */
  height: 30%; /* Only cover half the height */
  width: 1px;
  background: #339933;
  transform: translateY(-50%); /* Center vertically */
}

.container > .rate-counter-block:last-child::after {
  display: none;
}

@media only screen and (max-width: 768px) {
  .rate-box {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -40px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%; /* full width on smaller screens */
  }

/*Apply 0px margin-bottom for last rate-box item*/
div.wpb_column:nth-child(6) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) {
  margin-bottom: 0px !important;
  }

.rate-counter-block::after {
    display: none;
  }
}

/*Category or archive Page*/
.page-breadcrumb.archive-page {
  padding-top: 40px !important;
}

.page-title.archive-page {
  margin-bottom: 20px !important;
}

/*Announcement Page*/
.page-title.three-column-page {
  margin-bottom: 20px !important;
}

/*e-Services Button Menu and search button style*/
/* === Base Flex Layout for Header === */
.header .row.align-items-center {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.header .container,
.header .row,
.header .col-md-2 {
  overflow: visible !important;
}

/* === Logo Column === */
.mobile-header-flex {
  flex: 0 0 auto;
  max-width: 25%;
}

/* === E-Services Desktop Wrapper === */
.e-services-nav-wrapper {
  max-width: 175px;
  padding-left: 0px;
}

/* === Search Field Wrapper (Mobile) === */
.mobile-header-search {
  padding-left: 10px;
}

/* === Navigation Wrapper === */
#navigation {
  flex-grow: 1;
  padding-left: 15px;
}

/* === Search Icon (Desktop only) === */
.search-nav {
  text-align: right;
  padding-left: 15px;
}

/* === Search Button Styling === */
a.search-btn {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 5px 7px 0 0;
  margin-top: 7px;
  color: #000000;
  background-color: #fcb714;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.search-btn:hover {
  color: #ffffff;
  background-color: #339933;
}

/* === Dropdown Buttons === */
.e-services-nav .dropdown-toggle {
  background-color: #fcb714;
  font-size: 14px;
  padding: 6px 12px;
  width: 100%;
  border: none;
  border-radius: 5px;
  color: #000;
  cursor: pointer;
}

.e-services-nav .dropdown-toggle:focus,
.e-services-nav .dropdown-toggle:hover {
  background-color: #fff;
  color: #339933;
}

@media (max-width: 575px) {
.e-services-nav-wrapper {
  max-width: 175px;
  padding-left: 20px;
  }
}

/* Dropdown container */
/* Style the E-Services dropdown on hover (desktop) */
@media (min-width: 992px) {
  .e-services-nav-wrapper:hover .dropdown-menu {
    display: block;
  }
}

.e-services-nav-wrapper .dropdown-menu {
  margin-top: 0; /* Add or remove gap between button and dropdown */
  border: none;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  display: none; /* Initially hide the dropdown */
  position: absolute;
  z-index: 1000;
  background-color: #fff;
  list-style: none;
  min-width: 200px;
}

.e-services-nav-wrapper .dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  clear: both;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
  color: #333;
  white-space: nowrap;
  background-color: transparent;
  border-bottom: 1px solid #f0f0f0;
}

.e-services-nav-wrapper .dropdown-menu li:last-child a {
  border-bottom: none;
}

.e-services-nav-wrapper .dropdown-menu li a:hover,
.e-services-nav-wrapper .dropdown-menu li a:focus {
  color: #339933;
  text-decoration: none;
  background-color: rgba(230, 230, 230, 0.5);
}

/* === Responsive Layout for Mobile (≤991px) === */
@media (max-width: 991px) {
  /* Hide desktop E-Services */
  .e-services-nav-wrapper {
    display: block !important; /* Show desktop version */
  }

  .e-services-nav .dropdown-toggle {
    font-size: 10px;
    padding: 3px 5px;
  }

  /* Allow wrapping and reordering */
  .header .row.align-items-center {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* Reordering based on visual priority */
  .mobile-header-flex {
    order: 0;
    max-width: 50%;
  }

  .e-services-nav-wrapper {
    order: 1;
    width: 50%;
    text-align: left;
    margin-top: 10px;
  }

  .mobile-header-search {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }

  #navigation {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .search-nav {
    order: 4;
    width: 100%;
    text-align: right;
    margin-top: 10px;
    /* display: none; */
    /* <-- REMOVE this line */
  }

  /* Show always search field on mobile */
  .mobile-header-search form {
    display: block !important;
  }

  /* Show dropdown on hover for smaller screens */
  .e-services-nav-wrapper:hover .dropdown-menu {
    display: block;
  }
}

/* === Hide search button only on smaller mobile (≤767px) === */
@media (max-width: 767px) {
  .mobile-header-flex {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .mobile-header-flex .logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
  }

  /* Hide desktop search button on small mobiles */
  .search-nav {
    display: none;
  }
}

@media (min-width: 992px) {
  .e-services-nav.dropdown {
    padding-top: 10px;
    ;
  }
}

/* Sub-menu style*/
@media (min-width: 1009px) and (max-width: 1199px) {
  #navigation ul ul li a {
    z-index: 999999; /*Bring to top the sub-menus*/
    border-bottom: 1px solid rgba(222, 231, 242, 1); 
    padding: 15px 15px 16px 15px; 
    min-width: 200px; 
    font-size: 13px; 
    text-decoration: none; 
    color: #66707f; 
    font-weight: 500; 
    background: #fff; 
  }
}

/*Home Announcement Style*/
.meta span::before {
  content: "Posted on:";
  margin-right: 8px;
  color: #b0b0b0;
  font-weight: normal;
  font-family: 'Poppins', sans-serif;
}

.meta span:after { 
  display: none !important;
}

.meta-author {
  display: none !important;
}

#home-announcements-row h2 {
  text-align: left;
  text-transform: uppercase;
}

#home-announcements-row p {
  text-align: justify;
}

/* Services Link Buttons and Read More Link Buttons*/
.btn-link {
  position: relative;
  color: #000 !important;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid #339933 !important; /* ✅ fixed: added "solid" */
  display: inline-block;
}

.btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #fcb714;
  transition: width 0.3s ease;
  z-index: 1;
}

.btn-link:hover::after {
  width: 100%;
}

.btn-link:hover {
  color: #000 !important;
  font-weight: 500;
  text-decoration: none;
}
  
/*Announcement Title*/
.title { 
  font-size: 19px; 
}

/* Deposits and Loans Download Form Buttons*/
.vc_btn3.vc_btn3-color-primary.vc_btn3-style-modern, .vc_btn3.vc_btn3-color-info.vc_btn3-style-modern {
  color: #FFF;
  border: none !important;
  background-color: #339933 !important;
}

.vc_btn3.vc_btn3-color-primary.vc_btn3-style-modern:hover, .vc_btn3.vc_btn3-color-info.vc_btn3-style-modern:hover {
  color: #000 !important;
  border: none !important;
  background-color: #fcb714 !important;
}

/*Header Image*/
.header {
  background-color: rgb(255, 255, 255) !important;
  background-image: url("/wp-content/uploads/2025/06/bg_pattern.png");
  background-repeat: repeat;
  background-size: 500px 350px;
}

/*Footer Image*/
.footer {
  background-image: url("/wp-content/uploads/2025/06/bg_pattern.png");
  background-repeat: repeat;
  background-size: contain;
}

/* Home Submenu style*/
#navigation ul li a {
  border-radius: 5px;
  white-space: nowrap;
}

/*Logo and Mobile menu in-between border style*/
#navigation.small-screen #menu-button { 
  display: block; 
  padding: 20px 0px; 
  cursor: pointer;
  border-top: none !important;
}

/*Mobile menu border style*/
#navigation.small-screen ul li { 
  width: 100%; 
  border-top: 1px solid rgba(133, 130, 130, 0.5); 
}

/*Mobile sub-menu text style*/
#navigation.small-screen ul ul li a { 
  color: #000; 
  background: none; 
}

/*Mobile menu dropdown button style*/
#navigation.small-screen .submenu-button.submenu-opened { 
  background: #fcb714; 
}

/*Mobile sub-menu left border style*/
#navigation.small-screen .submenu-button { 
  position: absolute; 
  z-index: 99; 
  right: 0; 
  top: 0; 
  display: block; 
  border-left: 1px solid rgba(133, 130, 130, 0.5); 
  height: 46px; 
  width: 46px; 
  cursor: pointer; 
}

/*Mobile menu 3-lines (Hamburger) button style*/
#navigation.small-screen #menu-button.menu-opened:after { 
  top: 23px; 
  border: 0; 
  height: 2px; 
  width: 15px; 
  background: #fcb714; 
  -webkit-transform: rotate(45deg); 
  -moz-transform: rotate(45deg); 
  -ms-transform: rotate(45deg); 
  -o-transform: rotate(45deg); 
  transform: rotate(45deg); 
}

  #navigation.small-screen #menu-button.menu-opened:before { 
    top: 23px; 
    background: #fcb714; 
    width: 15px; 
    -webkit-transform: rotate(-45deg); 
    -moz-transform: rotate(-45deg); 
    -ms-transform: rotate(-45deg); 
    -o-transform: rotate(-45deg); 
    transform: rotate(-45deg); 
}

/*Board Profile Modal Box*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close {
  color: #fcb714;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* Calculators*/
/* Loan EMI Button style*/
.btn-outline-primary {
  border: none !important;
}

.btn-outline-primary.active {
  background-color: #1e73be !important;
  transition: background-color 0.3s ease !important;
}

button:focus {
  outline: none !important;
  box-shadow: none !important;
}

#calculate_emi_btn:hover {
  background-color: #0a4685;
  transition: background-color 0.3s ease;
}

/* Center positioning for the calculators*/
#loan .calculator-box, #fd .calculator-box, #rd .calculator-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* full width buttons on mobile */
@media (max-width: 768px) {
  .d-flex.flex-column button {
    width: 100%;
  }
}
/* EMI table responsive and scrollable*/
.table-responsive {
  max-height: 400px;
  overflow-y: auto;
}
.table th, .table td {
  text-align: left;
  vertical-align: middle;
}

/*Breadcrumb for Calculator Page*/
.page-breadcrumb.calculator {
  padding-top: 40px !important;
}

/* Page Header for Fixed Deposit Page*/
.page-header.fixed-deposit-page {
  padding: 40px 0px !important;
  background: none !important;
  margin-bottom: -150px;
}

@media (max-width: 991px){
  .page-header.fixed-deposit-page {
    margin-bottom: -50px;
  }
}

/*FD Calc Button Modal*/
.fd-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.fd-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.fd-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.rd-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.rd-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.rd-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Style the FD & RD Calculator button in sub-nav */
.button-calc {
  background-color: rgba(255, 255, 255, 0);
  border-top: none;
}

#button-calc .nav-link#openFdCalculator, #button-calc .nav-link#openRdCalculator {
  background-color: #339933; /* Bootstrap primary color */
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

/* Hover effect */
#button-calc .nav-link#openFdCalculator:hover, #button-calc .nav-link#openRdCalculator:hover {
  background-color: #fcb714;
  color: #000 !important;
  text-decoration: none;
}

/* Responsive tweaks if needed */
@media (max-width: 575px) {
  #sub-nav .nav-link#openFdCalculator, #sub-nav .nav-link#openRdCalculator {
    padding: 8px 16px;
    font-size: 14px;
  }
}


.emi-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.emi-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
}

.emi-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
}

.emi-close:hover,
.emi-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/*Button-like Title for deposit and loan forms page*/
#download-form-1 h5{
  display: inline-block;
  padding: 10px 20px;
  background-color: #339933;
  border: 2px solid #339933;
  border-radius: 8px; /* rounded corners */
  color: #ffffff;
  font-weight: bold;
  cursor: default; /* no pointer since it's not a link */
  text-align: center;
  font-size: 16px;
  user-select: none; /* prevents text selection */
}

/*Button-like Title for FAQs Page*/
#faq h5{
  display: inline-block;
  padding: 10px 20px;
  background-color: #fcb714;
  border: 2px solid #fcb714;
  border-radius: 8px; /* rounded corners */
  color: #000000;
  font-weight: bold;
  cursor: default; /* no pointer since it's not a link */
  text-align: center;
  font-size: 16px;
  user-select: none; /* prevents text selection */
}

/*Button for View Profile in Board Directors Page*/
.board-page-profile .open-profile {
  display: inline-block;
  background-color: #28a745;  /* Green background */
  color: #ffffff;             /* White text */
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.board-page-profile .open-profile:hover,
.board-page-profile .open-profile:focus {
  background-color: #fcb714;
  color: #000000;  /* Darker green on hover/focus */
  text-decoration: none;
}