﻿/* Hide the caret that .dropdown-toggle adds */
.form-select.dropdown-toggle::after {
    display: none !important;
}

/* Make header-elements sticky when the sticky class is applied */
.header-elements.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    padding: 10px 0;
}

/* Add padding to the body when header is sticky to prevent content jump */
body.has-sticky-header {
    padding-top: 80px; /* Adjust this value based on your header height */
}

/* Profile Page Responsive Styles */
.responsive-heading {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .responsive-heading {
        font-size: 2rem;
    }
    
    .hero-inner-section-area-sidebar {
        position: relative;
    }
    
    .hero-inner-section-area-sidebar .hero-img1 {
        height: 200px;
        object-fit: cover;
    }
    
    .hero-header-area {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .responsive-heading {
        font-size: 1.5rem;
    }
    
    .hero-inner-section-area-sidebar .hero-img1 {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Improve form control appearance on all devices */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Add spacing between form sections */
.form-group {
    margin-bottom: 1rem;
}

/* Make labels more visible */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Improve button appearance */
.btn-primary {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* Profile Page Begins */
.select2-container .select2-selection--single {
    height: 38px; /* match Bootstrap 4 form-control */
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

/* Control the opened dropdown height */
.select2-container .select2-results__options {
    max-height: 250px;
    overflow-y: auto;
}
/* Profile Page Ends */