/********** Template CSS **********/
:root {
    --primary: #1363C6;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
    
    
    --primary-white: #ffffff;
    --primary-dark: #212529;
    
    
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --primary-blue: #1a4b8c;
    --secondary-blue: #2d6ec4;
    --light-blue: #e0e8f5;
    --milky-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    backdrop-filter: blur(8px); /* This creates the blur effect */
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-content {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.spinner-grow {
    width: 4rem;
    height: 4rem;
    color: #6a11cb;
}

.spinner-text {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Adjust position for mobile */
@media (max-width: 767px) {
  .back-to-top {
    position: fixed;
    display: none;
    right: 65px;
    bottom: 45px;
    z-index: 99;  /* raise slightly if footer overlaps */
  }
}

/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 2;
    color: rgba(255, 255, 255, .7);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    background:#6fa9ef;
}

.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    border-bottom: 3px solid #e9ecef;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown-divider {
    border-top: 2px solid var(--medium-gray); 
    margin: 0.5rem 0.5rem; 
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--primary);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}



/* Sticky Header */

/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}
@media (max-width: 992px) {
    .sticky-top {
        top: -10px;
        transition: .5s;
    }
}

.header .container-fluid.sticky-top {
  position: sticky !important; /* bootstrap already does this, but explicit is OK */
  box-shadow: 0 2px 10px var(--primary-blue);
}

/* ensure brand title doesn't wrap too tall on narrow viewports */
@media (max-width: 992px) {
  .header .navbar-brand span { display: none; } /* hide tagline to save vertical space on tiny screens */
  
  .header .container-fluid.sticky-top {
    position: sticky !important;
    box-shadow: 0 2px 10px var(--primary-blue);
    display: block;
    visibility: visible;
  }
  
}


/*********** Get Start ************/
.get-start {
    max-width: 100%; 
    width: 100%; 
    position: sticky; 
    top: 0; 
    background: rgba(20,24,62,0.1); 
    z-index: 5; 
    padding: 0.25rem 0.25rem; 
    border-radius: 5px;
}

@media (max-width: 992px) {
    .get-start {
        max-width: 100%; 
        width: 100%; 
        top: 0; 
        position:relative;
        background: rgba(20,24,62,0.1); 
        border-radius: 5px;
        margin-top: 0.5rem;
    }
}

.getstart-editor{
    height: 12rem; 
    overflow-y: auto;
}

@media (max-width: 992px) {
    .getstart-editor{
        height: 7rem; 
        top: 0;
        overflow-y: auto;
    }
}

.getstart-container {
    border: 2px solid lightgray; 
    border-radius: 10px; 
    max-width: 50%; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.2); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 992px) {
    .getstart-container {
        border: 2px solid lightgray; 
        border-radius: 10px; 
        max-width: 100%; 
        width: 100%; 
        background: rgba(255, 255, 255, 0.2); 
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
    }
}

/*** Hero Header ***/
.hero-header {
    margin-top: -75px;
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;*/
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    color: var(--primary);
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-icon {
    background: #FFFFFF;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: var(--light);
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Feature ***/
.feature {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Case Study ***/
.case-item img {
    transition: .5s;
}
  
.case-item:hover img {
    transform: scale(1.2);
}
  
.case-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(20, 24, 62, 0), var(--dark));
    z-index: 1;
}

.case-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: #FFFFFF;
    background: rgba(20, 24, 62, .7);
    border-radius: 25px;
    margin-bottom: 15px;
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
}

/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 40px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: #FFFFFF;
    cursor: pointer;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    cursor: pointer;
}

/* Red border for required fields */
/*
input:required, textarea:required {
    border-left: 3px solid #ff0000; 
}
*/

.error-message {
    color: red;
    font-size: 0.875em;
    display: none;
}

input:invalid + .error-message,
textarea:invalid + .error-message {
    display: block;
}

/* Style valid fields (when filled) */
input:not(:focus):valid,
textarea:not(:focus):valid {
  border-left: 2px solid #4CAF50; /* Green border */
  transition: border-color 0.3s ease;
}

/* Style invalid fields (when empty) after user interaction */
input:not(:focus):invalid,
textarea:not(:focus):invalid {
  border-left: 2px solid #ff0000; /* Red border */
  transition: border-color 0.3s ease;
}

/* Initial state (neutral border before interaction) */
input, textarea {
  border-left: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

/* Form submission, spinner, releasing spinner */
#submitBtn {
    transition: all 0.3s ease;
}
  
#submitBtn:disabled {
    opacity: 0.7;
    background-color: #cccccc;
}
  
.loading {
    position: relative;
    padding-right: 30px;
}

.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.loading-blue {
    position: relative;
    padding-right: 30px;
}

.loading-blue::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.left-border-box {
  border: 2px solid white;      /* Gray border for rest */
  border-left: 6px solid red;  /* Only left side in red */
  padding: 12px;
}

/***************************************************************************************/
/*                            Search Results Related                                   */
/***************************************************************************************/
.results-list {
    display: grid;
    gap: 20px;
}

.result-item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #5f6063;
    transition: transform 0.3s;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 1.4rem;
    color: black;
    margin-bottom: 10px;
}

.result-url {
    color: darkblue;
    font-size: 0.9rem;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    display: block;
    font-style: italic;
    text-decoration: underline;
}

.result-url:hover {
    box-shadow: 2px 8px 20px rgba(95, 94, 94, 0.1);
    background-color: lightcyan;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.result-snippet {
    color: black;
    line-height: 1.6;
}

.highlight {
    background: #fff8e1;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: black;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: black;
}

.results-section {
    border: 1px solid gray;
    padding: 10px;
    border-radius: 4px; /* optional */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/****************************************************************************************/
/*            Quill, Rich Text Editor, styles and customizations                       */
/***************************************************************************************/

/* Map Quill font classes to actual fonts */
.ql-font-roboto { font-family: 'Roboto', sans-serif; }
.ql-font-lato { font-family: 'Lato', sans-serif; }
.ql-font-open-sans { font-family: 'Open Sans', sans-serif; }
.ql-font-montserrat { font-family: 'Montserrat', sans-serif; }
.ql-font-raleway { font-family: 'Raleway', sans-serif; }
.ql-font-serif { font-family: serif; }
.ql-font-sans-serif { font-family: sans-serif; }
.ql-font-monospace { font-family: monospace; }
.ql-font-arial { font-family: Arial, Helvetica, sans-serif; }
.ql-font-verdana { font-family: Verdana, Geneva, sans-serif; }
.ql-font-times-new-roman { font-family: "Times New Roman", Times, serif; }

/* Show ALL font names in the Quill font dropdown */
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="arial"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="arial"]::before {
    content: "Arial";
    font-family: Arial, Helvetica, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="verdana"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="verdana"]::before {
    content: "Verdana";
    font-family: Verdana, Geneva, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="times-new-roman"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="times-new-roman"]::before {
    content: "Times New Roman";
    font-family: "Times New Roman", Times, serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="roboto"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="roboto"]::before {
    content: "Roboto";
    font-family: "Roboto", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="lato"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="lato"]::before {
    content: "Lato";
    font-family: "Lato", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="open-sans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="open-sans"]::before {
    content: "Open Sans";
    font-family: "Open Sans", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="montserrat"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="montserrat"]::before {
    content: "Montserrat";
    font-family: "Montserrat", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="raleway"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="raleway"]::before {
    content: "Raleway";
    font-family: "Raleway", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
    content: "Serif";
    font-family: serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="sans-serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="sans-serif"]::before {
    content: "Sans Serif";
    font-family: sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
    content: "Monospace";
    font-family: monospace;
}

/* Custom size classes */
.ql-size-extra-small {
    font-size: 10px;
}

.ql-size-small {
    font-size: 14px;
}

.ql-size-medium {
    font-size: 18px;
}

.ql-size-large {
    font-size: 24px;
}

.ql-size-extra-large {
    font-size: 32px;
}

/* Label overrides for Snow theme (size dropdown) */
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="extra-small"]::before { content: "Extra Small"; font-size: 10px; }
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { content: "Small"; font-size: 12px;}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="medium"]::before { content: "Medium"; font-size: 18px;}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { content: "Large"; font-size: 24px;}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="extra-large"]::before { content: "Extra Large"; font-size: 32px;}
.ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value])::before { content: "Normal"; font-size: 14px;}


#editor {
    height: 300px;
}