
/* Sticky Header */
#header {
    position: fixed; /* Ensures the header is always fixed at the top */
    top: 0; /* Aligns it to the top of the viewport */
    left: 0; /* Ensures it starts from the left edge */
    width: 100%; /* Stretches the header to the full width */
    z-index: 9999; /* Places the header above all other elements */
    background-color: #ffffff; /* White background to ensure visibility */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a shadow for depth */
 /* Adds padding for better spacing */
}

#header.scrolled {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Deeper shadow for emphasis */
    border-bottom: 8px solid; /* Increased border height */
    border-image: linear-gradient(to right, rgba(0, 51, 102, 0.8), rgba(255, 165, 0, 0.8)); /* Navy blue to orange gradient */
    border-image-slice: 1; /* Ensures the gradient fills the entire border */
    transition: box-shadow 0.5s ease, border-bottom 0.5s ease; /* Smooth animation */
}

/* Small devices (phones, less than 768px) */



/* Adjust Body Padding Dynamically */
body {
    padding-top: calc(var(--header-height, 80px)); /* Dynamically adjust for header height */
}

/* Optional: Set a Custom Property for Header Height */
:root {
    --header-height: 80px; /* Update this value based on your actual header height */
}



#header .header-main .header-contact * {
    color: #100000;
}
.header-contact a {
    font-size: 16px !important;
    font-weight: bold;
}
#header.header-corporate:not(.header-10) .header-left .block-inline > * {
    margin: -10px 13px 0 -10px;
}
.mega-menu > li.menu-item > a, .mega-menu > li.menu-item > h5 {
    font-weight: bold !important;
}

    #main-menu .mega-menu > li.menu-item > a, #main-menu .mega-menu > li.menu-item > h5 {
        color: black;
        font-size: 14px;
        line-height: 20px;
    }
#main-menu .mega-menu .narrow .popup li.menu-item > a, #main-menu .mega-menu .narrow .popup li.menu-item > h5 {
    color: black;
    border-bottom-color: #e95c01;
    font-weight: bold;
}
a.fixed {
position: fixed;
right: 0;
top: 0;
width: 260px;
}
#header .header-top .header-contact a {
    display:none;
}
#header .header-top .header-contact {
    margin: 0;
    font-size: 1.15em;
    display: none;
}


#bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-standard-thumbnails .bwg-thumb-description span {
    font-family: 'Opensans';
    font-size: 14px;
    max-height: 100%;
    font-weight: bold;
}

    .table-container {
      width: 100%;
      max-width: 1000px;
      margin: 20px auto;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background-color: #fff;
      border-radius: 5px;
      overflow-x: auto; /* Ensure scrolling if the table overflows */
    }

    /* Table styling */
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 16px;
      min-width: 600px; /* Ensure the table keeps structure even on small screens */
    }

    /* Header styling */
    th, td {
      padding: 12px 10px; /* Reduced padding for closer content */
      text-align: left;
      border-bottom: 1px solid #ddd;
      white-space: nowrap; /* Prevent text from wrapping */
      text-overflow: ellipsis; /* Truncate text with ellipsis if too long */
      overflow: hidden; /* Hide overflowing text */
    }

    th {
      background-color: #04488e;
      color: white;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Hover effect on rows */
    tr:hover {
      background-color: #f1f1f1;
    }

    /* Alternating row colors */
    tr:nth-child(even) {
      background-color: #f9f9f9;
    }

    /* Style for table links */
    a {
      color: #007bff;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    /* Responsive table for mobile screens */
    @media (max-width: 768px) {
      table, thead, tbody, th, td, tr {
        display: block;
      }

      th {
        display: none; /* Hide table headers on small screens */
      }

      td {
        padding-left: 35%; /* Reduced padding to bring text closer */
        padding-right: 10px; /* Padding on the right for alignment */
        position: relative;
        text-align: left; /* Align text to left */
        border: none;
        border-bottom: 1px solid #ddd;
      }

      td:before {
        content: attr(data-label); /* Use data-label to show the header content */
        position: absolute;
        left: 10px; /* Reduced left padding to bring it closer */
        font-weight: bold;
        text-align: left;
        color: #4CAF50;
      }

      tr {
        margin-bottom: 8px; /* Reduced gap between rows */
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }

      /* Slightly smaller font size for mobile */
      table {
        font-size: 14px;
      }
    }

    /* Scrollbar styling (optional) */
    .table-container::-webkit-scrollbar {
      width: 8px;
    }

    .table-container::-webkit-scrollbar-track {
      background: #f1f1f1;
    }

    .table-container::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
      background: #555;
    }

.main-content {
    padding-top: 35px;
    padding-bottom: 6px;
}
h3 {
    font-family: Open Sans;
    font-weight: bold;
    font-size: 25px;
    line-height: 32px;
    color: #ffffff;
}
h4 {
    font-family: Open Sans;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #ffffff;
}
.content-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
}
p {
    line-height: 24px;
    margin: 0 0 20px;
    color: black;
}
li {
    color:#555;
}
.overview-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}
.calculator-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
}

/* custom-portfolio-gallery.css */
/* Main gallery wrapper */
.custom-portfolio-gallery {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin: auto;
    padding: 20px;
    background-color: #f3f5f9;
}

/* Gallery Title */
.custom-portfolio-title {
    font-size: 2.5rem;
    justify-content: center!important;
    text-align: center!important;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px; /* Slight letter spacing for readability */
    font-family: 'Opensans';
}

/* Grid layout */
.custom-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

/* Individual gallery item styling */
.custom-gallery-item {
    background-color: #ffffff;
    height: 380px;
    border-radius: 12px;
    border: 2px solid #007bff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: Open Sans; /* Apply specific font to all items */
}

.custom-gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 2px solid #007bff;
}

/* Content below each image */
.custom-gallery-item-content {
    padding: 20px; /* Enhanced padding for balanced space */
    text-align: left;
    color: #333;
}

/* Title styling */
.custom-gallery-item-title {
    font-size: 1.3rem;
    font-weight: 700; /* Ensures bold title */
    color: #222;
    margin-bottom: 8px;
    letter-spacing: 0.5px; /* Slight letter spacing */
    text-transform: capitalize; /* Capitalize for professional look */
    font-family: Open Sans;
}

/* Description styling */
/* Description styling with larger font size */
.custom-gallery-item-description {
    font-size: 1.3rem; /* Increased font size for better readability */
    color: #555; /* Softer color for balance with title */
    line-height: 1.6; /* Balanced line spacing for readability */
    font-weight: 600; /* Normal weight for a professional look */
    font-family: Opensans;
}


/* Hover effects */
.custom-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.custom-gallery-item:hover .custom-gallery-item-title {
    color: #007bff; /* Accent color for title on hover */
}

/* Overlay styles */


.custom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-overlay-content {
    width: 80%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.4s ease;
}

.custom-overlay-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.custom-overlay-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: #ffffff;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}
.custom-overlay-close-btn:hover {
    background: #0056b3;
}

/* Keyframe animation for overlay */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .custom-gallery-item {
        width: 45%; /* Adjusts for smaller screens */
    }
}

@media (max-width: 480px) {
    .custom-gallery-item {
        width: 100%; /* Single column for mobile */
    }
}


.career-page-container {
    background-color: #f4f7f6;
    color: #333;
    overflow-x: hidden;
}

.career-page-header {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #004aad, #005bb5, #0073e6, #003580);
    color: #fff;
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    margin-top: -15px
}

/* Custom classes */
.career-page-header.margin-top-large {
    margin-top: 20px;
}

.career-page-header.margin-top-negative {
    margin-top: -30px;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.career-page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
	color: white;
}

.career-page-description {
    font-size: 1.6rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 2rem;
	color: white;
	text-align: center;
}

.career-page-why-join {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #f7f9fc;
}

.career-page-why-join-title {
    font-size: 2.6rem;
    color: #004aad;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.career-page-benefits-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.career-page-benefit-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 1 1 30%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.career-page-benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.career-page-benefit-icon {
    font-size: 4.5rem;
    color: #004aad;
    margin-bottom: 1.0rem;
}

.career-page-benefit-title {
    font-size: 1.8rem;
    font-weight: bolder;
    color: #333;
    margin-bottom: 0.8rem;
}

.career-page-benefit-description {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 600;
    max-width: 90%;
}

.career-page-testimonials {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffecd2, #fcb69f, #f6d365, #fda085);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.career-page-testimonials-title {
    font-size: 2.9rem;
    margin-bottom: 2rem;
    color: #004aad;
    font-weight: 600;
}

.career-page-testimonial-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    justify-content: center;
}

.career-page-testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border: 2px solid #004aad;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.career-page-testimonial-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.career-page-testimonial-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0073e6;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.career-page-testimonial-card:hover .career-page-testimonial-photo {
    transform: scale(1.1);
}

.career-page-testimonial-quote {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
    max-width: 90%;
}
.career-page-testimonial-name {
    font-size: 1.rem;
    color: #004aad;
    font-weight: bold;
    margin-top: 0.5rem;
}
.career-page-positions {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #f9f9f9;
}

.career-page-positions-title {
    font-size: 2.rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 700;
}

.career-page-positions-table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.career-page-positions-header {
    background-color: #004aad;
    color: #fff;
    font-weight: 600;
	cursor:normal;
}

.career-page-icon {
    margin-right: 8px;
    color: #0073e6;
}

.career-page-position-row:hover {
    background-color: #f1f5ff;
}


.career-page-details-btn,
.career-page-apply-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #004aad, #0073e6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3);
    text-decoration: none;
    margin: 5px 0; /* Space between buttons */
    text-align: center;
    width: 100px; /* Consistent button width */
}

.career-page-details-btn:hover,
.career-page-apply-btn:hover {
    color: white; /* Keep font color white */
    background: linear-gradient(135deg, #003580, #005bb5);
    box-shadow: 0 4px 10px rgba(0, 91, 181, 0.5); /* Slight glow effect */
    transform: translateY(-2px);
    text-decoration: none;
}

.row h2 {
    font-weight: bold;
    color: #004aad; /* Meridian Finance Official Blue for the title */
    margin-bottom: 20px;
    font-size: 3rem; /* Make the section heading larger */
	text-align: center;
}

/* Grid Background */
.report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #e6f0fa; /* Light blue background for the grid */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Card Styling */
.report-card {
    background-color: #003275; /* Meridian Finance Official Darker Blue for the card */
    color: white; /* White text for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 25px;
    width: 100%;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

/* Hover Animation */
.report-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15); /* Soft white overlay on hover */
    transition: all 0.6s ease;
    transform: rotate(45deg);
    z-index: 1;
}

.report-card:hover::before {
    top: 0;
    left: 0;
}

/* Enlarge and Shadow on Hover */
.report-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Image Styling */
.report-img {
    width: 220px; /* Increased image size */
    height: 220px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.4s ease;
    z-index: 2;
    position: relative;
    background-color: white; /* White background for the image container */
    padding: 10px; /* Padding around image for contrast */
}

/* Title Styling */
.report-title {
    font-weight: bold;
    color: white; /* White text for contrast */
    font-size: 1.4rem; /* Larger font size */
    z-index: 2;
    position: relative;
    text-transform: uppercase; /* Modern uppercase styling */
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #b3c6e0); /* Subtle gradient for title */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.3s ease;
	text-align: center;
}

.report-card:hover .report-title {
    color: #ffeb3b; /* Highlight title on hover */
}

/* Image Animation */
.report-card:hover .report-img {
    transform: scale(1.08);
}

@media (min-width: 992px) {
    .report-card {
        flex: 0 0 30%; /* 3 columns on large screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .report-card {
        flex: 0 0 45%; /* 2 columns on medium screens */
    }
}

@media (max-width: 767px) {
    .report-card {
        flex: 0 0 100%; /* 1 column on small screens */
    }
}

.rating-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rating-header h2 {
    font-family: Opensans;
    font-size: 2rem;
    color: #004aad;
    text-align: center;
    margin-bottom: 20px;
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.rating-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    animation: zoomIn 1.2s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.credit-rating {
    background-color: #003275;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: Opensans;
    font-weight: bold;
    font-size: 2.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: normal;
}

p {
    line-height: 24px;
    margin: 0 0 20px;
    color: black;
    text-align: justify;
}
.credit-rating:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Bottom-Right Validity Section */
.rating-validity {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #4a4a4a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.rating-description strong {
    color: #003275;
    font-weight: 600;
}

@media (max-width: 768px) {
    .rating-box {
        flex-direction: column;
        align-items: center;
    }

    .credit-rating {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        margin: 5px 0;
    }

    .rating-validity {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
    }
}

.tree-container {
  display: grid;
  gap: 6px;
  justify-items: center;
}

/* Level Style */
.tree-level {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Card Style */
.card {
  width: 320px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  text-align: center;
  position: relative;
}

/* Geometric Overlay */
.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('path-to-islamic-pattern.html') center/cover;
  opacity: 0.1;
  pointer-events: none;
  border-radius: 12px;
}

/* Smooth Hover Animation */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Profile Image */
.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 20px;
  background: #fff;
}

/* Name */
.card h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

/* Designation */
.card p {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 10px;
}

/* Connector Lines */
.connector {
  height: 20px;
  width: 2px;
  background-color: #ddd;
  margin: -10px auto 10px;
  position: relative;
}

.connector:before, .connector:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #ddd;
  top: 50%;
}

.connector:before { left: -30px; }
.connector:after { right: -30px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    width: 90%;
  }
  .tree-level {
    flex-direction: column;
    align-items: center;
  }
  .connector:before, .connector:after {
    width: 0;
  }
}




        .table-container {
            max-width: 800px;
            width: 100%;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            text-align: center;
        }

        .table-container h1 {
            margin-bottom: 15px;
            font-size: 1.8rem;
            color: #333;
        }

        /* Responsive Table */
        .responsive-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .responsive-table th, .responsive-table td {
            padding: 15px;
            text-align: left;
            border: 1px solid #ddd;
        }

        .responsive-table th {
            background-color: #3b5998;
            color: #ffffff;
            font-weight: bold;
        }

        .responsive-table td {
            background-color: #f9f9f9;
            color: #333;
        }

        .responsive-table a {
            color: #007bff;
            text-decoration: none;
            font-weight: bold;
        }

        /* Responsive Styling */
        @media (max-width: 768px) {
            .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr {
                display: block;
                width: 100%;
            }

            .responsive-table tr {
                margin-bottom: 15px;
                border-bottom: 2px solid #ddd;
            }

            .responsive-table td {
                text-align: right;
                padding-left: 50%;
                position: relative;
            }

            .responsive-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 15px;
                font-weight: bold;
                color: #333;
            }

            .responsive-table th {
                display: none;
            }
        }

.horizontal-layout .calculator-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.calculator-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.calculator-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.result-section {
    margin-top: 15px;
    text-align: center;
}

.loan-calculator-section button {
    padding: 8px 16px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Styling for result card */
.result-section {
    display: none; /* Ensure it is visible */
    font-size: 1.4em;
    color: #333;
    margin-top: 15px;
    padding: 20px;
    border: none; /* Remove border */
    background-color: #fff; /* White background for card effect */
    border-radius: 8px; /* Rounded corners for a professional look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    max-width: 400px; /* Optional: Limit width for centered layout */
    text-align: center; /* Center-align text */
}


/* Styles for the loan result section */
.loan-result-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    background-color: #f9f9f9 !important;
    width: max-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-top: 10px !important;
}

.loan-result-label {
    font-weight: bold !important;
    color: #00699D !important;
    margin-right: 10px !important;
    font-size: 14px !important;
}

.loan-result-value {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 16px !important;
}


.tree-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Opensans;
}

.tree-level {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.root .card {
  border: 2px solid #4CAF50;
}

.card {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 200px;
  text-align: center;
  transition: all 0.3s;
}

.card:hover {
  background-color: #e0f7fa;
  border-color: #26a69a;
}

.card-content h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.card-content p {
  margin: 5px 0 0;
  font-size: 1em;
  color: #666;
}

.connector {
  width: 2px;
  height: 20px;
  background-color: #ccc;
  margin-bottom: 20px;
}

#footer {
    background-color: #0d3762 !important;;
}

#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6, #footer .widgettitle, #footer .widget-title {
    color: #ffffff;
}

#footer .footer-bottom {
    margin-top: 41px;
}

.widget {
    margin-bottom: -33px;
}

h4 {
    font-weight: bolder;
  
}


#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6, #footer .widgettitle, #footer .widget-title {
    color: #ffffff;
    margin-top: 40px;
	font-weight:bolder;
	font-size:18px;
}

.textwidget.custom-html-widget {
    margin-left: 50px; /* Default left margin */

   font-size:15px;
    line-height: 2.0; /* Comfortable line spacing */
    word-wrap: break-word; /* Prevents text overflow */
}

/* Responsive Adjustments */
@media (max-width: 768px) { /* Tablets and small devices */
    .textwidget.custom-html-widget {
        margin-left: 10px; /* Reduce margin for smaller screens */
        font-size:15px;
    line-height: 2.0; /* Adjust font size */
    }
}
#footer h4 {
    margin-left: 48px; /* Adjust the value as needed */
}

@media (max-width: 480px) { /* Mobile devices */
    .textwidget.custom-html-widget {
        margin-left: 5px; /* Minimal margin for mobile */
        font-size:15px;
    line-height: 2.0; /* Further reduce font size */
    }
}





/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    .page-top .page-title {
        margin-top: -40px; /* Adjust for smaller screens */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .page-top .page-title {
        margin-top: -50px; /* Adjust for medium screens */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .page-top .page-title {
        margin-top: -6px; /* Keep the default for large screens */
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .page-top .page-title {
        margin-top: -6px; /* Keep the default for extra-large screens */
    }
}



/* General Styling */
body {
    font-family: Opensans;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* 


 Styling */

/* Sidebar Styling */
/* Sidebar Styling */
/* Sidebar Styling */
.entry-content {
    margin: 0 !important; /* Remove unwanted margin */
    padding: 0; /* Adjust padding if needed */
    overflow: visible !important; /* Ensure that overflow doesn’t interfere with sticky positioning */
 margin-top: 50px !important;

}


/*sidebar*/

.entry-content .sidebar {
    /*position: sticky !important; /* Ensure sticky positioning */
    top: 50px !important; /* Move sidebar down */
    margin-left: -152px !important; /* Adjust the margin-left to control horizontal position */
    z-index: 999; /* Ensure sidebar stays on top */
    overflow-y: auto; /* Enable scrolling in sidebar */
    margin-top: -80px;
}


/* Further margin adjustments for mobile screens (max-width: 768px) */
@media (max-width: 768px) {
    .entry-content .sidebar {
        margin-left: -28px !important; /* Remove margin for mobile devices */
        width: 100%; /* Full width on mobile */
		margin-top: -130px;
    }
}

/* Default Sidebar Styles */
.sidebar {
    width: 262px;
    position: sticky;
    top: 0;
    left: 0;
    background-color: #00457C;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100vh; /* Full viewport height */
    z-index: 999;
    overflow-y: auto;
    margin-left: -103px; /* Ensure no negative margins */
	margin-top:-50px;
}



/* Ensure buttons don't overflow */
.pro-menu-item {
    border-radius: 5px;
    background-color: #00699D; /* Ensure consistent background */
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pro-menu-item:hover {
    background-color: #003f67; /* Darker blue on hover */
}







/* Ensure Parent Container Height */
body, .sidebar-content {
    min-height: 100vh; /* Ensure the body and sidebar-content take up full height */
    margin: 0;
    padding: 0;
}

/* Footer Styling */
footer {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Sidebar Content */
.sidebar-content {
    margin-left: 300px; /* Adjust the margin for the main content to leave space for the sidebar */
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    width: calc(100% - 300px); /* Full width minus the sidebar */
    margin-top: 20px;
}


/* Main content and footer adjustments */



/* Sidebar Menu */
.pro-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-menu li {
    margin-bottom: 20px;
}


.pro-menu .pro-menu-item {
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    display: block;
    padding: 15px 20px;
    background-color: #00699D; /* Lighter blue tone */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pro-menu .pro-menu-item:hover {
    background-color: #003f67; /* Darker blue on hover */
}

/* Style for the active (selected) menu item */
.pro-menu .pro-menu-item.active {
    background-color: #003f67; /* Darker blue for the active state */
    color: #ffffff;
}




/* Main Content Styling */
#pro-main-content {
    margin-left: calc(280px + 40px); /* 280px for sidebar width, 40px for padding */
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    max-width: 800px;
    margin-top: 20px;
}


/* Content Section */
.pro-content-section {
    display: none;
}

.pro-content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Heading Styling */
h2 {
    font-size: 28px;
    color: #00457C;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Paragraph Styling */
p {
    line-height: 1.6;
    font-size: 16px;
    color: #555;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
 #pro-main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }

    .pro-menu li {
        margin-bottom: 10px;
    }

    .pro-menu .pro-menu-item {
        font-size: 16px;
        padding: 10px 15px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

/* Mobile First Approach */
@media (max-width: 768px) {

    #pro-main-content {
        margin-left: 0;
        margin-top: 10px;
        padding: 20px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
    }
}

        /* General Styling */
        body {
            font-family: Opensans;
            margin: 0;
            padding: 0;
        }

.background-section {
    width: 100%; /* Full width for responsiveness */
    max-width: 1300px; /* Limit the maximum width */
    height: 400px; /* Fixed height */
    background-size: cover; /* Cover ensures the image fills the section without distortion */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevents background image from repeating */
    position: relative;
    box-shadow: none;
    background-attachment: fixed;
    left: 50%;
    transform: translateX(-50%);
}

/* Adjusting for Smaller Screens */
@media (max-width: 768px) {
    .background-section {
        height: 250px;
        background-size: cover; /* Maintain cover for responsive scaling */
		margin-top:69px;
    }
}

@media (max-width: 480px) {
    .background-section {
        height: 200px;
        background-size: cover; /* Maintain cover for mobile screens */
    }
}

/* Individual Backgrounds for Each Section */
.section1 {
    background-image: url('../images/deposit1.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section2 {
    background-image: url('../images/deposit2.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section3 {
    background-image: url('../images/deposit3.jpg');
	width: 1026px;
    margin-left: -26px;
}


.section4 {
    background-image: url('../images/deposit4.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section5 {
    background-image: url('../images/deposit5.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section6 {
    background-image: url('../images/deposit6.jpg');
	width: 1026px;
    margin-left: -26px;
}
.section7 {
    background-image: url('../images/deposit7.jpg');
	width: 1026px;
    margin-left: -26px;
}
.section8 {
    background-image: url('../images/carloan.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section9 {
    background-image: url('../images/homeloan.html');
	width: 1026px;
    margin-left: -26px;
}

.section10 {
    background-image: url('../images/islamic/mudaraba.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section11 {
    background-image: url('../images/islamic/mudaraba1.jpg');
	width: 1026px;
    margin-left: -26px;
}

.section12 {
    background-image: url('../images/islamic/baimudaraba.jpg');
	width: 1026px;
    margin-left: -26px;
}
.section13 {
    background-image: url('../images/islamic/HPSM.jpg');
	width: 1026px;
    margin-left: -26px;
}
        .overlay h1 {
            font-size: 40px;
            text-align: center;
        }

        /* Section 2: Content Section */
        .content-section {
            padding: 20px;
            text-align: center;
        }

        .content-section h2 {
            font-size: 28px;
            margin-bottom: 15px;
        }

        /* Section 3: Tiles */
        .tiles-section {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 20px;
        }

     .tiles-section {
    display: flex;
    gap: 15px; /* Adds space between each tile */
    justify-content: center; /* Centers the tiles section */
}

.tile {
    background-color: #00457C;
    color: white;
    padding: 31px;
    border-radius: 5px;
    text-align: center;
    width: 200px;
    cursor: auto; 
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 169px; /* Ensures uniform height for tiles */
}

.tile h3 {
    margin: 0;
}

.tile h4 {
    margin: 5px 0 0 0; /* Adds a bit of spacing between h3 and h4 */
    font-size: 16px; /* Adjusts font size for better alignment */
}

        .tile:hover {
            background-color: #00699D;
        }

        /* Section 4: Overview */
        .overview-section {
            padding: 20px;
        }

        .overview-section h2 {
            text-align: center;
            margin-bottom: 20px;
        }

        .item {
            margin-bottom: 10px;
            border: 1px solid #ccc;
            padding: 10px;
            cursor: pointer;
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 18px;
            font-weight: bold;
        }

        .plus {
            font-size: 24px;
        }

        .item-description {
            display: none;
            margin-top: 10px;
        }

        .item-description.active {
            display: block;
        }

        /* Section 5: Deposit Calculator and Pie Chart */
        .calculator-section {
            padding: 20px;
            text-align: center;
        }

        .calculator-section h2 {
            margin-bottom: 20px;
            font-size: 28px;
        }

 .calculator-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    max-width: 800px;
    margin: 20px auto; /* Adds some vertical spacing */
    padding: 20px; /* Adds padding for spacing within the form */
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 8px; /* Smooth rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.calculator-form input {
    padding: 12px; /* Increased padding for comfort */
    width: 160px; /* Slightly wider for ease of input */
    border: 5px solid #b3cde0; /* Static blue border with 5px thickness */
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Inner shadow for depth */
    background-color: #000; /* Black background */
    color: #fff; /* White text for visibility */
    transition: box-shadow 0.3s ease; /* Smooth transition */
}

/* Input placeholder color for better readability */
.calculator-form input::placeholder {
    color: #bbb; /* Lighter placeholder color */
}

/* Input focus style */
.calculator-form input:focus {
    border-color: #00457C; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(0, 69, 124, 0.2); /* Glow effect */
    outline: none; /* Removes default outline */
}

        .calculator-form button {
            padding: 10px 20px;
            background-color: #00457C;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
			margin-left: -24px;
        }

        .calculator-form button:hover {
            background-color: #00699D;
        }

        /* Hide the result section until the chart is generated */
        .result-section {
            display: none;
            margin-top: 20px;
            flex-direction: column;
            align-items: center;
        }

        .result {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .chart-container {
            width: 200px;
            height: 200px;
        }

        @media (max-width: 768px) {
            .calculator-form {
                flex-direction: column;
                gap: 10px;
            }

            .result-section {
                flex-direction: column;
            }

            .chart-container {
                width: 100%;
                height: auto;
            }
        }
		






.overlay {
    
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
   
    position: relative;
	margin-top: -688px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .overlay {
        margin-top: 68px; /* Remove the negative margin on small screens to prevent overlap */
        height: auto; /* Adjust height for smaller screens */
        padding: 20px; /* Add padding for better spacing */
    }
    
    .background-section {
        height: 250px; /* Reduce the height of the background image on smaller screens */
    margin-top: -56px;
	
	
	
	}
    
    .sidebar-content {
        margin-left: 0; /* Important css Ensure the content doesn't overlap with the sidebar */
        padding: 20px; /* Adjust padding for smaller screens */
        width: 100%; /* Ensure the content takes full width on smaller screens */
    }
    
    .sidebar {
        width: 100%; /* Important css Sidebar should take full width on smaller screens */
        height: auto; /* Adjust height to prevent overflow issues */
        position: relative; /* Ensure sidebar stays in flow with content */
    margin-left: -1px;
	
	}
}

/* Adjustments for tablet-size screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .overlay {
        margin-top: 0; /* Same as mobile, no negative margin */
        height: 100%;
        padding: 20px;
    }
    
    .background-section {
        height: 300px; /* Slightly taller than mobile but smaller than desktop */
    }
    

}
#custom-heading {
    color: #00457C; /* Customize this color as needed */
    font-size: 1.5em; /* Adjusts size */
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #00457C; /* Adds a line below for emphasis */
    padding-bottom: 5px;
    text-transform: uppercase; /* Makes the text uppercase */
}
    .custom-section {
      margin-bottom: 40px;
    }

    .custom-section-title {
	  margin-top: 11px;
      font-size: 1.8em;
      font-weight: bold;
      text-align: center;
      margin-bottom: 20px;
      color: #0056b3;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .custom-section-title i {
      font-size: 1.8em;
      color: #0056b3;
    }

    .custom-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .custom-card {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      background-color: #fff;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }

    .custom-card:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .custom-card .custom-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

.custom-card .custom-product-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 86, 179, 0.9);
  color: #fff;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 50px;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.custom-card:hover .custom-product-overlay {
  transform: translateY(0);
}


  .carousel {
      position: relative;
      width: 80%;
      margin: 0 auto;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel-images {
      display: flex;
      transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel img {
      width: 100%;
      flex-shrink: 0;
    }

    .carousel-buttons {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
    }

    .carousel-buttons button {
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      border-radius: 5px;
      transition: background-color 0.3s;
    }

    .carousel-buttons button:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }


    @media (max-width: 768px) {
      .custom-section-title {
        font-size: 1.5em;
      }
    }