/* Breadcrumbs styling */
.breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

/* Custom styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --light-bg: #ffffff;
    --gray-bg: #f8f9fa;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
}

/* Navbar styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Cards styling */
/* Service cards specific styling */
.card {
    border: none;
    border-radius: 12px; /* Updated border-radius */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Updated box-shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15);
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.card .card-body {
    position: relative;
    z-index: 1;
}

.card .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.card:hover .list-unstyled li {
    transform: translateX(5px);
}

.card .list-unstyled .bi {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.card:hover .list-unstyled .bi {
    transform: scale(1.2);
    color: var(--primary-color) !important;
}

.card .card-title {
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-color);
}

.card .card-text {
    margin-bottom: 1rem;
    min-height: 3rem;
    transition: color 0.3s ease;
}

.card .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.card .btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: 0.5s;
}

.card .btn:hover::after {
    left: 100%;
}


/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 100px 0;
}

.hero .btn-light {
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
}

/* Form styling */
.form-control {
    border-radius: 8px; /* Updated border-radius */
    border: 1px solid #dee2e6;
    padding: 0.75rem; /* Updated padding */
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control-lg {
    font-size: 1rem;
    padding: 12px 16px;
}

/* Buttons */
.btn {
    border-radius: 8px; /* Updated border-radius */
    padding: 0.75rem 1.5rem; /* Updated padding */
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 14px 28px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Sections styling */
section {
    padding: 80px 0;
    background: var(--light-bg);
}

section:nth-child(even) {
    background: var(--gray-bg);
}

/* Footer styling */
.footer {
    background: var(--gray-bg);
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Social links */
.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Contact form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Map container */
.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .map-container {
        height: 300px;
    }

    .card .card-text {
        min-height: auto;
    }
}

/* Add Quill editor styling */
.ql-editor {
    min-height: 300px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1rem; /* Added padding */
}

.ql-container {
    border-radius: 0 0 12px 12px;
    background: white;
}

.ql-toolbar {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.ql-toolbar button:hover {
    color: var(--primary-color);
}

.ql-toolbar button.ql-active {
    color: var(--primary-color);
}

/* Editor styling */
.editor-container {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.quill-editor {
    min-height: 300px;
    background: white;
}

.ql-toolbar.ql-snow {
    border-radius: 12px 12px 0 0;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.ql-container.ql-snow {
    border-radius: 0 0 12px 12px;
    border: 1px solid #dee2e6;
    border-top: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 300px;
}

.ql-editor p {
    margin-bottom: 1rem;
}

/* Editor button styling */
.ql-snow .ql-toolbar button:hover,
.ql-snow .ql-toolbar button.ql-active {
    color: var(--primary-color);
}

.ql-snow .ql-stroke {
    stroke: currentColor;
}

.ql-snow .ql-fill {
    fill: currentColor;
}

.ql-toolbar.ql-snow .ql-picker-label:hover {
    color: var(--primary-color);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

/* FAQ Accordion styling */
.accordion-item {
    border: none;
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accordion-button {
    border-radius: 12px !important;
    font-weight: 500;
    padding: 1.25rem;
    color: var(--primary-color);
    background: white;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.15);
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 1.25rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-body ul li {
    margin-bottom: 0.5rem;
}

/* Stages Tabs Styling */
.stages-card {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stages-tabs-column {
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

#stagesTabs {
    border-radius: 0;
}

#stagesTabs .list-group-item {
    border-radius: 0 !important;
    border-left: 0;
    border-right: 0;
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
}

#stagesTabs .list-group-item:first-child {
    border-top: 0;
}

#stagesTabs .list-group-item:last-child {
    border-bottom: 0;
}

#stagesTabs .list-group-item.active {
    background-color: #fff;
    color: #0d6efd;
    border-color: #dee2e6;
    border-left: 4px solid #0d6efd;
    font-weight: 500;
}

#stagesTabs .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    transition: all 0.3s ease;
}

#stagesTabs .list-group-item:hover:not(.active) {
    background-color: #e9ecef;
}

#stagesTabs .list-group-item:hover .badge {
    transform: scale(1.1);
}

.stages-tab-text {
    white-space: normal;
    font-size: 0.95rem;
}

#stagesTabContent {
    background-color: #fff;
}

#stagesTabContent h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

#stagesTabContent .tab-pane {
    padding: 1.5rem;
}

.stages-icon-wrapper {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: #f8f9fa;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.stages-icon-wrapper .bi {
    font-size: 3rem;
    color: #0d6efd;
}

.stages-checklist li {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.stages-checklist li:hover {
    transform: translateX(5px);
}

@media (max-width: 767.98px) {
    .stages-tabs-column {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    #stagesTabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }
    
    #stagesTabs::-webkit-scrollbar {
        height: 5px;
    }
    
    #stagesTabs::-webkit-scrollbar-thumb {
        background-color: rgba(13, 110, 253, 0.3);
        border-radius: 10px;
    }
    
    #stagesTabs .list-group-item {
        display: inline-flex;
        align-items: center;
        border-bottom: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
        border-top: 0;
        min-width: auto;
        padding: 0.75rem 1rem;
        margin-right: 2px;
    }
    
    #stagesTabs .list-group-item.active {
        border-left: 0;
        border-bottom: 3px solid #0d6efd;
    }
    
    .stages-tab-text {
        display: inline-block;
        font-size: 0.7rem;
        margin-left: 0.3rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    #stagesTabs .badge {
        margin-right: 0 !important;
    }
    
    #stagesTabContent .tab-pane {
        padding: 1rem;
    }
    
    .stages-icon-wrapper {
        width: 70px;
        height: 70px;
        line-height: 70px;
        margin-bottom: 1rem;
    }
    
    .stages-icon-wrapper .bi {
        font-size: 2rem;
    }
}