@media (max-width:1440px) {
  .hero-section {
    height: 550px;
  }
  .contact-hero-section {
    height: 550px;
  }
  .lead {
    font-size: 1rem;
  }
  .h4, h4 {
    font-size: 1.3rem;
  }
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1200px;
  }
}
@media (max-width:1200px) {
  .card-style {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .contact-card-style {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width:991px) {
  .question {
    background-size: auto 50%;
  }
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 768px;
  }
  .h3, h3 {
    font-size: 1.4rem;
  }
  .navbar-collapse {
    padding: 20px 0;
  }
  .nav-item {
    margin: 5px 0;
  }
  .navbar-toggler {
    border: 0;
    color: #2579A8 !important;
  }
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }
  .first-column {
    padding-right: 0px;
  }
  .copyright-main {
    margin-top: 40px;
  }
  .hero-section p {
    font-size: 1.2rem;
  }
  .contact-hero-section p {
    font-size: 1.2rem;
  }
}
@media (max-width:767px) {
  .accordion-button::after {
    margin-right: 15px;
    margin-left: auto;
  }
  .services .col-lg-4 .card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .card-style {
    min-height: auto;
  }
  .contact-card-style {
    min-height: auto;
  }
  .navbar .dropdown-menu {
    position: relative;
    background-color: #2579A8;
  }
  .navbar .dropdown-menu .dropdown-item {
    color: #fff;
  }
  .navbar .dropdown-menu .dropdown-item:hover {
    color: #E9B852;
    background-color: #2579A8;
  }
  .inner-hero-section {
    height: 150px;
  }

  .faqTitle h2 {
    font-size: 1.4rem;
  }
  section {
    padding: 30px 0;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .contact-hero-section p {
    font-size: 1rem;
  }
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 568px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .contact-hero-section h1 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
  .lead.mb-5 {
    margin-bottom: 0px !important;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}
/* Custom Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Add padding for small screens */
}

.modal-content-custom {
    background: linear-gradient(to right, #cddee3 0%, #f2f1ec 50%, #fae9c3 100%);
    border-radius: 15px; /* Reduced from 20px */
    width: 95%; /* Increased from 90% for better mobile fit */
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    margin: 10px; /* Reduced from 20px */
    position: relative;
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Enable scrolling if needed */
}

.modal-header-custom {
    border-bottom: 1px solid rgba(37, 121, 168, 0.2);
    padding: 1rem 1.2rem; /* Reduced padding */
    background: rgba(255, 255, 255, 0.5);
    border-top-left-radius: 15px; /* Match reduced border-radius */
    border-top-right-radius: 15px;
}

.modal-title-custom {
    color: #2579A8;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem; /* Reduced from 1.4rem */
    margin: 0;
    line-height: 1.3;
}

.close-modal {
    position: absolute;
    top: 0.8rem; /* Adjusted position */
    right: 1.2rem; /* Adjusted position */
    background: none;
    border: none;
    font-size: 1.3rem; /* Slightly smaller */
    cursor: pointer;
    color: #2579A8;
}

.modal-body-custom {
    padding: 1.2rem; /* Reduced from 1.5rem */
}

.info-item {
    display: flex;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    padding: 0.8rem; /* Reduced from 1rem */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px; /* Slightly smaller */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 45px; /* Reduced from 50px */
    height: 45px;
    border-radius: 50%;
    background: #2579A8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Slightly smaller */
    margin-right: 0.8rem; /* Reduced from 1rem */
    flex-shrink: 0;
}

.info-item:nth-child(2) .info-icon {
    background: #E9B852;
}

.info-item:nth-child(3) .info-icon {
    background: #555555;
}

.info-content h6 {
    color: #2579A8;
    font-weight: 600;
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    font-family: "Montserrat", sans-serif;
    font-size: 1rem; /* Reduced from 1.1rem */
}

.info-content p {
    color: #333132;
    margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    line-height: 1.3; /* Slightly tighter */
}

.info-content .btn {
    border-radius: 50px;
    padding: 0.35rem 0.8rem; /* Reduced from 0.4rem 1rem */
    font-size: 0.8rem; /* Reduced from 0.85rem */
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto; /* Center buttons */
    display: block; /* Ensure centering works */
}

.info-content .btn-outline-primary {
    border-color: #2579A8;
    color: #2579A8;
}

.info-content .btn-outline-primary:hover {
    background-color: #2579A8;
    color: white;
}

/* Mobile-specific styles */
@media (max-width: 576px) {
    .modal-overlay {
        padding: 5px;
    }
    
    .modal-content-custom {
        width: 98%; /* Almost full width on very small screens */
        margin: 5px;
        border-radius: 12px;
        max-height: 95vh; /* Slightly more height on mobile */
    }
    
    .modal-header-custom {
        padding: 0.8rem 1rem;
    }
    
    .modal-title-custom {
        font-size: 1.1rem;
        padding-right: 30px; /* Make space for close button */
    }
    
    .close-modal {
        top: 0.6rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    .modal-body-custom {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.6rem;
        align-self: center;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .info-content h6 {
        font-size: 0.95rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .info-content .btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* Button style */
.btn-primary {
    background-color: #2579A8;
    border-color: #2579A8;
    color: #ffffff;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #E9B852;
    border-color: #E9B852;
    color: #333132;
}

/* Demo button styling */
.demo-button {
    margin: 50px;
    text-align: center;
}