/* 
 * Athar Directory Shortcode Styles
 * 
 * Colors:
 * Primary: #162922
 * Secondary: #d6de72
 */

/* Directory Container */
.athar-directory {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    padding: 20px;
}

/* Filters */
.athar-directory-filters {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.athar-filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.athar-filter-form .filter-col {
    flex: 1;
    min-width: 200px;
}

.athar-filter-form .search-col {
    flex: 2;
}

.athar-filter-form input[type="text"],
.athar-filter-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

/* Available Date Filter Styling */
.athar-filter-form input[type="date"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.athar-filter-form input[type="date"]:focus {
    border-color: #162922;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 41, 34, 0.1);
}

.available-date-col {
    position: relative;
}

.available-date-col label {
    font-weight: 400;
    color: #162922;
    margin-bottom: 5px;
    display: block;
}

/* Date input placeholder styling */
.athar-available-date-filter:invalid {
    color: #999;
}

/* Date validation error styling */
.date-validation-error {
    color: #e74c3c !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
    font-weight: 500 !important;
}

/* Date input error state */
.athar-booking-modal input[type="date"].error,
#athar-booking-modal input[type="date"].error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Loading state for date input */
.athar-booking-modal input[type="date"]:disabled,
#athar-booking-modal input[type="date"]:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom Calendar Styling */
.athar-booking-modal input[type="text"].hasDatepicker,
#athar-booking-modal input[type="text"].hasDatepicker {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.athar-booking-modal input[type="text"].hasDatepicker:focus,
#athar-booking-modal input[type="text"].hasDatepicker:focus {
    border-color: #162922;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 41, 34, 0.1);
}

/* jQuery UI Datepicker Custom Styling */
.ui-datepicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 10px !important;
    background: #fff !important;
    z-index: 10000 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: #162922 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
}

.ui-datepicker .ui-datepicker-title {
    color: #fff !important;
    font-weight: 600 !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    cursor: pointer !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.ui-datepicker table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

.ui-datepicker th {
    background: #f8f9fa !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 4px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

.ui-datepicker td {
    padding: 0 !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block !important;
    padding: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Default dates (no specific availability info) */
.ui-datepicker td a {
    background: #f8f9fa !important;
    color: #6c757d !important;
    cursor: pointer !important;
}

.ui-datepicker td a:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

/* Available dates - Green styling */
.ui-datepicker td.ui-datepicker-available a {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    cursor: pointer !important;
}

.ui-datepicker td.ui-datepicker-available a:hover {
    background: #c3e6cb !important;
    color: #0b2e13 !important;
    transform: scale(1.05) !important;
}

/* Unavailable dates - Red/Disabled styling */
.ui-datepicker td.ui-datepicker-unavailable a,
.ui-datepicker td.ui-datepicker-unavailable span {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

.ui-datepicker td.ui-datepicker-unavailable:hover a,
.ui-datepicker td.ui-datepicker-unavailable:hover span {
    background: #f8d7da !important;
    color: #721c24 !important;
    transform: none !important;
}

/* Unknown availability - Gray styling */
.ui-datepicker td.ui-datepicker-unknown a,
.ui-datepicker td.ui-datepicker-unknown span {
    background: #e9ecef !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Today highlight */
.ui-datepicker td.ui-datepicker-today a {
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px #162922 !important;
}

/* Selected date */
.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td.ui-state-active a {
    background: #162922 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Button panel styling */
.ui-datepicker .ui-datepicker-buttonpane {
    border-top: 1px solid #dee2e6 !important;
    padding: 10px 0 0 0 !important;
    margin-top: 10px !important;
    text-align: center !important;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    background: #162922 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    margin: 0 4px !important;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #0f1f17 !important;
}

/* Month/Year dropdowns */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 2px 4px !important;
    margin: 0 2px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ui-datepicker {
        font-size: 12px !important;
        padding: 8px !important;
    }
    
    .ui-datepicker td a,
    .ui-datepicker td span {
        padding: 6px !important;
    }
}

/* Disabled input fields styling */
.athar-booking-modal input.disabled-field,
#athar-booking-modal input.disabled-field {
    background-color: #f5f5f5 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    border-color: #dee2e6 !important;
}

.athar-booking-modal input.disabled-field:focus,
#athar-booking-modal input.disabled-field:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
    outline: none !important;
}

/* Disabled field labels styling */
.athar-booking-modal .bookly-form-group:has(input.disabled-field) label,
#athar-booking-modal .bookly-form-group:has(input.disabled-field) label {
    color: #6c757d !important;
    opacity: 0.8 !important;
}

.athar-filter-form .submit-col {
    display: flex;
    gap: 10px;
    align-items: center;
}

.athar-filter-button {
    background-color: #162922;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.athar-filter-button:hover {
    background-color: #0e1a16;
}

.athar-clear-filters {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.athar-clear-filters:hover {
    text-decoration: underline;
}

/* Language Multi-Select Styles */
.language-multiselect {
    position: relative;
    width: 100%;
}

.language-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-height: 40px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.language-toggle:hover {
    border-color: #162922;
}

.language-label {
    flex: 1;
    color: #162922;
}
div#language-toggle {
    padding: 6px 12px;
    position: relative;
    top: 0px;
}
.athar-profile-container a.athar-back-link {
    margin-bottom: 30px !important;
    display: inline-block;
}
.language-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
    margin-left: 8px;
}
.athar-profile-info-value a:hover {
    color: #d6de72;
}
.language-toggle.active .language-arrow {
    transform: rotate(180deg);
}
.athar-profile-bookly-link button.athar-book-meeting-btn {
    padding: 10px 24px;
    border-radius: 5px;
}
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-options {
    padding: 8px 0;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin: 0;
    font-weight: normal;
    line-height: 1.4;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.language-text {
    flex: 1;
    user-select: none;
}

/* Active state for language toggle when options are selected */
.language-toggle.has-selections .language-label {
    color: #162922;
    font-weight: 500;
}

/* Single Profile Styles */
.athar-directory-single-profile {
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Profile Header */
.athar-profile-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.athar-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.athar-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.athar-back-link:hover {
    color: var(--secondary-color);
}

.athar-profile-top {
    display: flex;
    align-items: center;
    gap: 30px;
}

.athar-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    flex-shrink: 0;
}

.athar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athar-profile-basic-info {
    flex: 1;
}

.athar-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.athar-profile-title {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.athar-profile-role {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.athar-profile-status {
    text-align: right;
    flex-shrink: 0;
}

.athar-profile-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.availability-text {
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Available state (default - green) */
.athar-profile-availability.available .availability-dot {
    background: #28a745;
    animation: pulse-green 2s infinite;
}

.athar-profile-availability.available .availability-text {
    color: #28a745;
}

/* Unavailable state (red) */
.athar-profile-availability.unavailable .availability-dot {
    background: #dc3545;
    animation: pulse-red 2s infinite;
}

.athar-profile-availability.unavailable .availability-text {
    color: #dc3545;
}

/* Pulse animations for availability indicators */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.athar-profile-capacity {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Profile Content */
.athar-profile-content {
    padding: 30px 0;
}

.athar-profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Profile Sidebar */
.athar-profile-sidebar {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.athar-profile-summary {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.athar-profile-summary-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid var(--primary-color);
}

.athar-profile-summary-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athar-profile-summary-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.athar-profile-summary-title {
    font-size: 0.875rem;
    color: #6c757d;
}

.athar-profile-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.athar-profile-team {
    margin-bottom: 30px;
}

.athar-profile-team-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.athar-profile-team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.athar-profile-team-member {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: transform 0.2s ease;
}

.athar-profile-team-member:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.athar-profile-team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athar-profile-team-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}

.athar-profile-company-label {
    font-size: 0.875rem;
}

.athar-profile-company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.athar-profile-company-link:hover {
    text-decoration: underline;
}

.athar-profile-company-name {
    color: #6c757d;
    font-weight: 500;
}

/* Profile Main Content */
.athar-profile-main {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.athar-profile-info-section {
    background: var(--primary-color);
    color: white;
    padding: 24px;
    margin-bottom: 0;
}

.athar-profile-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: white;
}

.athar-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.athar-profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.athar-profile-info-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.athar-profile-info-content {
    flex: 1;
}

.athar-profile-info-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.athar-profile-info-value {
    font-size: 1rem;
    font-weight: 500;
}

.athar-profile-info-value a {
    color: white;
    text-decoration: none;
}

.athar-profile-info-value a:hover {
    text-decoration: underline;
}

/* Biography Section */
.athar-profile-bio-section {
    padding: 30px 24px;
    border-bottom: 1px solid #e9ecef;
}

.athar-profile-bio-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.athar-profile-bio-content p {
    margin-bottom: 1rem;
}

.athar-profile-bio-content p:last-child {
    margin-bottom: 0;
}

/* Extended Information Section */
.athar-profile-extended-section {
    padding: 30px 24px;
    border-bottom: 1px solid #e9ecef;
}

.athar-profile-extended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.athar-profile-extended-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.athar-profile-extended-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.athar-profile-extended-value {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
}

/* Biography specific styling */
.athar-profile-biography {
    grid-column: 1 / -1; /* Full width across all columns */
    margin-bottom: 20px;
}

.athar-profile-biography-content {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: transparent;
    padding: 0;
}

.athar-profile-biography-content p {
    margin: 0 0 12px 0;
}

.athar-profile-biography-content p:last-child {
    margin-bottom: 0;
}

/* Services Section */
.athar-profile-services-section {
    padding: 30px 24px;
}

.athar-profile-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.athar-profile-service-item {
}

.athar-profile-service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.athar-profile-service-duration,
.athar-profile-service-price {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.athar-profile-service-price {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Company Section */
.athar-profile-company-section {
    padding: 30px 24px;
    border-bottom: 1px solid #e9ecef;
}

.athar-profile-company-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.athar-profile-company-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.athar-profile-company-field-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.athar-profile-company-field-value {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}

.athar-profile-company-field-value p {
    margin-bottom: 1rem;
}

.athar-profile-company-field-value p:last-child {
    margin-bottom: 0;
}

.athar-profile-company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.athar-profile-company-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .athar-profile-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .athar-profile-status {
        text-align: center;
    }
    
    .athar-profile-availability {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .athar-profile-container {
        padding: 0 15px;
    }
    
    .athar-profile-name {
        font-size: 2rem;
    }
    
    .athar-profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .athar-profile-extended-grid {
        grid-template-columns: 1fr;
    }
    
    .athar-profile-services-grid {
        grid-template-columns: 1fr;
    }
    
    .athar-profile-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Directory Grid */
.athar-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Directory Item */
.athar-directory-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.athar-directory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.athar-directory-item-image {
    height: 200px;
    overflow: hidden;
}

.athar-directory-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.athar-directory-item:hover .athar-directory-item-image img {
    transform: scale(1.05);
}

.athar-directory-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.athar-directory-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #162922;
}

.athar-directory-item-position {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    font-weight: 600;
}

.athar-directory-item-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    font-style: italic;
}

.athar-directory-item-services {
    margin: 0 0 12px;
}

.athar-directory-services-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.athar-directory-services-list {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.athar-services-more {
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
}

.athar-directory-item-location {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 15px;
}

.location-icon::before {
    content: "📍";
}

/* Directory Grid Item Availability Indicators */
.athar-directory-item-availability {
    margin: 12px 0;
}

.athar-directory-availability {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.athar-directory-availability.available {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.athar-directory-availability.unavailable {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.athar-directory-availability .availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    /* Disable animation in grid for performance */
}

.athar-directory-availability.available .availability-dot {
    background: #28a745;
}

.athar-directory-availability.unavailable .availability-dot {
    background: #dc3545;
}

.athar-directory-availability.available .availability-text {
    color: #28a745;
}

.athar-directory-availability.unavailable .availability-text {
    color: #dc3545;
}

.availability-date-info {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 400;
    margin-left: auto;
}

.athar-directory-item-social {
    display: flex;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 15px;
}

.athar-directory-item-social a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.twitter-icon::before {
    content: "𝕏";
    font-size: 16px;
}

.linkedin-icon::before {
    content: "in";
    font-weight: bold;
    font-size: 16px;
}

.athar-directory-item-link {
    display: inline-block;
    background-color: #d6de72;
    color: #162922;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s;
}

.athar-directory-item-link:hover {
    background-color: #c8d054;
}

/* No Results */
.athar-directory-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
}

/* Pagination */
.athar-directory-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 5px;
}

.athar-directory-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 5px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
}

.athar-directory-pagination .page-numbers:hover {
    background-color: #f5f5f5;
}

.athar-directory-pagination .page-numbers.current {
    background-color: #162922;
    border-color: #162922;
    color: white;
}

.athar-directory-pagination .prev,
.athar-directory-pagination .next {
    padding: 0 12px;
}

.athar-directory-pagination .dots {
    border: none;
}

/* Single Item View */
.athar-directory-single {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.athar-directory-single-header {
    margin-bottom: 30px;
}

.athar-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.athar-back-link:hover {
    text-decoration: underline;
}

.athar-directory-single-hero {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.athar-directory-single-image {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.athar-directory-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athar-directory-single-info {
    flex: 1;
}

.athar-directory-single-title {
    font-size: 32px;
    margin: 0 0 15px;
    color: var(--primary-color);
}

.athar-directory-single-position {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px;
}

.athar-directory-single-role {
    font-size: 14px;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 0 0 12px;
    font-weight: 500;
}

.athar-directory-single-company,
.athar-directory-company-info {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.athar-directory-company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.athar-directory-company-link:hover {
    text-decoration: underline;
}

.athar-directory-company-name {
    color: #555;
    margin: 0;
    font-weight: 500;
}

.athar-directory-single-location {
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 20px;
}

.athar-directory-single-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.athar-directory-single-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    transition: all 0.3s;
}

.athar-directory-single-social a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.email-icon::before {
    content: "✉";
    font-size: 16px;
}

.phone-icon::before {
    content: "📞";
    font-size: 16px;
}

.website-icon::before {
    content: "🌐";
    font-size: 16px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.athar-directory-single-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.athar-directory-single-main {
    flex: 2;
}

.athar-directory-single-sidebar {
    flex: 1;
    min-width: 250px;
}

.athar-directory-single-section {
    margin-bottom: 40px;
}

.athar-directory-section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.athar-directory-section-content {
    line-height: 1.6;
}

.athar-directory-section-content p {
    margin-bottom: 15px;
}

.athar-directory-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.athar-directory-team-member {
    text-align: center;
}

.athar-directory-team-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.athar-directory-team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athar-directory-team-member-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px;
    color: var(--primary-color);
}

.athar-directory-team-member-role {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.athar-directory-sidebar-title {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.athar-directory-single-owner,
.athar-directory-single-sectors,
.athar-directory-single-company-types {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.athar-directory-owner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.athar-directory-owner-avatar img {
    border-radius: 50%;
}

.athar-directory-owner-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px;
}

.athar-directory-owner-email {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.athar-directory-taxonomy-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.athar-directory-taxonomy-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

.athar-directory-taxonomy-list li:last-child {
    border-bottom: none;
}

.athar-profile-company-item {
    display: flex;
    flex-direction: row;
}
body .athar-profile-company-section {
    padding-top: 5px;
    padding-bottom: 50px;
}
body .athar-profile-header {
    margin-top: 25px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .athar-directory-single-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .athar-directory-single-image {
        width: 200px;
        height: 200px;
    }
    
    .athar-directory-single-content {
        flex-direction: column;
    }
    
    .athar-filter-form .filter-row {
        flex-direction: column;
    }
    
    .athar-filter-form .filter-col {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .athar-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .athar-directory-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .athar-directory-grid {
        grid-template-columns: 1fr;
    }
    
    .athar-directory-single-image {
        width: 150px;
        height: 150px;
    }
} 

/* ==========================================
   Booking Modal Styles
   ========================================== */

.athar-booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.athar-booking-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.athar-booking-modal-header {
    background: var(--primary-color, #162922);
    color: white;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.athar-booking-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.athar-booking-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    width: auto;
    height: auto;
    transition: color 0.2s ease;
}

.athar-booking-modal-close:hover,
.athar-booking-modal-close:focus {
    color: var(--secondary-color, #d6de72);
}

.athar-booking-modal-body {
    padding: 30px;
}

/* Style the Book a Meeting button */
.athar-book-meeting-btn {
    background: var(--primary-color, #162922);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.athar-book-meeting-btn:hover {
    background: #0f1e17;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 41, 34, 0.3);
}

/* Override Bookly form styles within modal */
.athar-booking-modal .bookly-custom-form-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.athar-booking-modal .bookly-custom-form {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.athar-booking-modal .bookly-custom-form h2 {
    display: none; /* Hide duplicate title */
}

.athar-booking-modal .bookly-btn-primary {
    background-color: var(--primary-color, #162922);
    border-color: var(--primary-color, #162922);
}

.athar-booking-modal .bookly-btn-primary:hover {
    background-color: #0f1e17;
    border-color: #0f1e17;
}

.athar-booking-modal .time-slot-btn.selected {
    background-color: var(--primary-color, #162922);
    border-color: var(--primary-color, #162922);
}

.athar-booking-modal .time-slot-btn:hover {
    border-color: var(--primary-color, #162922);
    color: var(--primary-color, #162922);
}

.athar-directory button.athar-filter-button {
    padding: 6px 20px;
    border-radius: 5px;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .athar-booking-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .athar-booking-modal-header {
        padding: 15px 20px;
    }
    
    .athar-booking-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .athar-booking-modal-body {
        padding: 20px;
    }
    
    .athar-book-meeting-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
} 

.bookly-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.bookly-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
} 

/* Company Details Section for Members */
.athar-profile-company-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #162922);
}

.athar-profile-company-logo {
    flex-shrink: 0;
}

.athar-profile-company-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.athar-profile-company-title {
    flex: 1;
}

.athar-profile-company-title h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: var(--primary-color, #162922);
    font-weight: 600;
}

.athar-profile-company-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.athar-profile-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.athar-profile-company-category {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.athar-profile-company-category:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.athar-profile-company-category-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color, #162922);
    border-bottom: 2px solid var(--secondary-color, #d6de72);
    padding-bottom: 8px;
}

.athar-profile-company-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.athar-profile-company-field {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.athar-profile-company-field:last-child {
    border-bottom: none;
}

.athar-profile-company-field-full {
    grid-template-columns: 1fr;
}

.athar-profile-company-field-full .athar-profile-company-label {
    margin-bottom: 5px;
    display: block;
}

.athar-profile-company-label {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.athar-profile-company-value {
    color: #666;
    line-height: 1.5;
    word-wrap: break-word;
}

.athar-profile-company-value a {
    color: var(--primary-color, #162922);
    text-decoration: none;
    font-weight: 500;
}

.athar-profile-company-value a:hover {
    text-decoration: underline;
    color: var(--secondary-color, #d6de72);
}
.athar-profile-header-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.athar-profile-info-section {
    padding-bottom: 35px;
}
/* Responsive Design for Company Details */
@media (max-width: 768px) {
    .athar-profile-company-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .athar-profile-company-logo {
        align-self: center;
    }
    
    .athar-profile-company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .athar-profile-company-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .athar-profile-company-label {
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .athar-profile-company-value {
        margin-left: 0;
    }
}

/* Enhanced styling for full-width fields */
.athar-profile-company-field-full .athar-profile-company-value {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-style: italic;
}

/* Special styling for document links */
.athar-profile-company-value a[href*=".pdf"],
.athar-profile-company-value a[href*=".doc"],
.athar-profile-company-value a[href*=".ppt"] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--secondary-color, #d6de72);
    color: var(--primary-color, #162922) !important;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.athar-profile-company-value a[href*=".pdf"]:hover,
.athar-profile-company-value a[href*=".doc"]:hover,
.athar-profile-company-value a[href*=".ppt"]:hover {
    background: var(--primary-color, #162922);
    color: var(--secondary-color, #d6de72) !important;
    transform: translateY(-1px);
} 



/* All new CSS for the booking modal */
body .athar-booking-modal-body {
    padding-top: 0;
    padding-right: 30px;
    padding-left: 30px;
}
body .athar-booking-modal-content {
    max-width: 1024px;
    width: 90%;
}
body .athar-booking-modal-header {
    background-color: #162922;
} 
body .athar-booking-modal-header h2 {
    font-size: 30px;
    font-weight: 600;
    width: 100%;
}
body .booking-summary-column label {
    color: #1a2921;
    font-size: 16px
}
body .booking-summary-column span {
    font-size: 16px;
    color: #1a2921;
}
body #bookly-custom-form {
    gap: 0 30px;
}
body .bookly-checkbox-group label {
    display: block;
    align-items: center;
    width: 100%;
}
body .bookly-form-group label {
    margin-bottom: 5px !important;
}
body .bookly-form-full-width {
    margin-top: 0;
    margin-bottom: 30px;
}
body select#bookly-time {
    padding: 13px 13px;
    font-size: 16px;
    background: #fff;
    color: rgba(0,0,0, .7);
}
body .bookly-form-group input#bookly-date{
    background: #fff !important; 
    padding: 12px 13px;
    font-size: 16px;
}
/* Placeholder while dates are loading */
body .bookly-form-group input#bookly-date.cdp-loading-date::placeholder {
    color: rgba(0,0,0,.45);
}
body .bookly-form-full-width .bookly-btn {
    background-color: #162922;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}
body .bookly-form-full-width .bookly-btn {
    font-size: 17px;
    padding: 16px 30px !important;
}
body .filter-row .filter-col.category-col {
    display: none;
}
body h3.athar-directory-item-title {
    text-transform: capitalize;
    font-size: 24px;
}
body p.athar-directory-item-position {
    font-size: 16px;
    color: #162922;
}
p.athar-directory-item-subtitle {
    font-size: 14px;
}
p.athar-directory-item-location {
    font-size: 17px;
    margin-bottom: 10px;
    margin-top: 15px;
}
body.user-registration-page .bookly-form-group input {
    font-size: 16px;
    background-color: #fff;
}
.ct-avalable-date span{
    height: 10px;
    width: 10px;
    display: inline-block;
}
.availability-date-check {
    display: none;
}
body .bookly-form-group textarea {
    background-color: #fff;
}


body .confirmation-details {
    margin: 20px 0;
    padding: 0;
    max-width: 450px;
    margin: auto;
}
body .detail-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #c8e6c9;
}

/* Company Directory Specific Filters */
.athar-company-filters {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.athar-company-filters .company-filter-row {
    display: flex;
    align-items: end;
    gap: 20px;
    margin-bottom: 0;
}

.athar-company-filters .filter-col {
    flex: 1;
    min-width: 250px;
}

.athar-company-filters .search-col {
    flex: 2;
}

.athar-company-filters .industry-col {
    flex: 1.5;
}

.athar-company-filters .submit-col {
    flex: 1;
    min-width: 200px;
}

.athar-company-filters .filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.athar-company-filters .apply-filters-btn {
    background-color: #162922;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.athar-company-filters .apply-filters-btn:hover {
    background-color: #0f1f17;
}

.athar-company-filters .clear-filters-btn {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.athar-company-filters .clear-filters-btn:hover {
    color: #495057;
    background-color: #f8f9fa;
    text-decoration: none;
}

.athar-company-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.athar-company-filters input[type="text"],
.athar-company-filters select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.athar-company-filters input[type="text"]:focus,
.athar-company-filters select:focus {
    outline: none;
    border-color: #162922;
    box-shadow: 0 0 0 2px rgba(22, 41, 34, 0.1);
}

/* Responsive Design for Company Filters */
@media (max-width: 992px) {
    .athar-company-filters .company-filter-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .athar-company-filters .filter-col {
        min-width: 200px;
    }
    
    .athar-company-filters .submit-col {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .athar-company-filters .company-filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .athar-company-filters .filter-col {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .athar-company-filters .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .athar-company-filters .apply-filters-btn,
    .athar-company-filters .clear-filters-btn {
        width: 100%;
        text-align: center;
    }
}