/* Detail Pages Responsive Design */

/* Two-Column Detail Wrapper */
.detail-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 3rem;
}

/* Service Detail Layout - 50-50 Split */
.detail-wrapper.service-layout {
    align-items: stretch;
}

.detail-wrapper.service-layout .detail-content-column {
    flex: 0 0 50%;
    min-width: 0;
}

.detail-wrapper.service-layout .detail-image-column {
    flex: 0 0 50%;
    min-width: 0;
}

/* Left Column - Image/Video */
.detail-image-column {
    flex: 0 0 50%;
    min-width: 0;
    height: 100%;
}

.detail-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 331px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.detail-image-container.img-error {
    display: none;
}

.detail-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-height: 375px;
}

/* Video Wrapper */
.detail-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.detail-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Right Column - Content */
.detail-content-column {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Header */
.detail-header {
    margin-bottom: 1rem;
}

.about-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9b118c;
    margin-bottom: 10px;
    font-weight: 600;
    display: inline-block;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Metadata Box */
.detail-metadata-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #9b118c;
    margin-bottom: 2rem;
}

.metadata-item {
    margin: 10px 0;
    font-size: 15px;
    color: #555;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-item strong {
    color: #9b118c;
    font-weight: 600;
    margin-bottom: 5px;
}

.metadata-item i {
    color: #9b118c;
    margin-right: 8px;
}

/* Description */
.detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    overflow: visible;
    pointer-events: auto;
}

.detail-description p {
    margin-bottom: 15px;
}

.detail-description strong {
    color: #9b118c;
    font-weight: 600;
}

.detail-description em {
    color: #666;
    font-style: italic;
}

.detail-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    display: block;
}

/* Responsive Iframe Styling */
.detail-description iframe {
    max-width: 600px;
    width: auto;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    min-height: 250px;
    pointer-events: auto;
}

.detail-description .iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: visible;
    border-radius: 8px;
    margin: 20px 0;
    pointer-events: auto;
}

.detail-description .iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    margin: 0;
    pointer-events: auto;
}

.detail-description ul,
.detail-description ol {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.detail-description li {
    margin-bottom: 10px;
}

/* Image Description */
.detail-image-description {
    font-size: 14px;
    font-style: italic;
    color: #999;
}

/* Action Buttons */
.detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-actions-bottom {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #9b118c;
    white-space: nowrap;
}

.btn-primary {
    background: #9b118c;
    color: white;
}

.btn-primary:hover {
    background: #7a0d6a;
    border-color: #7a0d6a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 17, 140, 0.3);
}

.btn-secondary {
    background: white;
    color: #9b118c;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #7a0d6a;
    color: #7a0d6a;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Social Media Share */
.detail-social-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    font-size: 16px;
    color: #333;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #ddd;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-facebook {
    background: white;
    color: #1877f2;
    border-color: #1877f2;
}

.btn-facebook:hover {
    background: #1877f2;
    color: white;
}

.btn-twitter {
    background: white;
    color: #1da1f2;
    border-color: #1da1f2;
}

.btn-twitter:hover {
    background: #1da1f2;
    color: white;
}

.btn-linkedin {
    background: white;
    color: #0a66c2;
    border-color: #0a66c2;
}

.btn-linkedin:hover {
    background: #0a66c2;
    color: white;
}

.btn-whatsapp {
    background: white;
    color: #25d366;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: white;
}

.btn-email {
    background: white;
    color: #9b118c;
    border-color: #9b118c;
}

.btn-email:hover {
    background: #9b118c;
    color: white;
}

/* Full-Width Layout When No Image */
.detail-wrapper.no-image {
    display: block;
}

.detail-wrapper.no-image .detail-image-column {
    display: none;
}

.detail-wrapper.no-image .detail-content-column {
    width: 100%;
}

/* Share Popup Modal */
.share-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.share-popup-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease;
    position: relative;
}

.share-popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.share-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.share-popup-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.share-option:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    border-color: #9b118c;
}

.share-option-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.share-option-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #666;
}

.share-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.share-copy-url {
    display: flex;
    gap: 10px;
}

.share-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    font-family: monospace;
}

.share-copy-btn {
    padding: 12px 20px;
    background: #9b118c;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 13px;
}

.share-copy-btn:hover {
    background: #7a0d6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 17, 140, 0.3);
}

.share-copy-btn.copied {
    background: #28a745;
}

/* Default Image Placeholder */
.detail-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 331px;
    background: linear-gradient(135deg, #e6d5f0 0%, #d4a5e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-image-placeholder.service {
    background: linear-gradient(135deg, #9b118c 0%, #7a0d6a 100%);
}

.detail-image-placeholder.team-member {
    background: linear-gradient(135deg, #e6d5f0 0%, #d4a5e0 100%);
}

.placeholder-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Share Button */
.btn-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #9b118c;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share-trigger:hover {
    background: #7a0d6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 17, 140, 0.3);
}

/* Responsive Share Popup */
@media (max-width: 575px) {
    .share-popup-content {
        padding: 30px 20px;
        width: 95%;
    }

    .share-popup-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .share-option {
        padding: 15px 10px;
    }

    .share-option-icon {
        font-size: 24px;
    }

    .share-option-label {
        font-size: 11px;
    }

    .share-copy-url {
        flex-direction: column;
    }

    .share-copy-btn {
        width: 100%;
    }
}

/* Responsive Design */

/* Team Member Layout - Two Row Design */
.detail-wrapper.team-member-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-member-top-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
    overflow: visible;
    pointer-events: auto;
}

.team-member-image-section {
    flex: 0 0 50%;
    min-width: 0;
}

.team-member-details-section {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-member-bottom-row {
    width: 100%;
    overflow: visible;
    pointer-events: auto;
}

/* Service Detail Layout - Two Row Design */
.detail-wrapper.service-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail-top-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
    overflow: visible;
    pointer-events: auto;
}

.service-detail-top-row .detail-content-column {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-detail-top-row .detail-image-column {
    flex: 0 0 50%;
    min-width: 0;
}

.service-detail-bottom-row {
    width: 100%;
    overflow: visible;
    pointer-events: auto;
}

/* Ensure image fills container height */
.team-member-image-section .detail-image-column {
    height: 100%;
}

.team-member-image-section .detail-image-container {
    height: 100%;
    min-height: 331px;
}

.team-member-image-section .detail-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.team-member-image-section .detail-image-placeholder {
    height: 100%;
    min-height: 331px;
    aspect-ratio: auto;
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .detail-wrapper {
        gap: 30px;
    }

    .detail-image-column {
        flex: 0 0 50%;
    }

    .detail-content-column {
        flex: 0 0 50%;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-description {
        font-size: 15px;
    }

    .team-member-top-row {
        gap: 30px;
    }

    .team-member-image-section {
        flex: 0 0 50%;
    }

    .team-member-details-section {
        flex: 0 0 50%;
    }

    .service-detail-top-row {
        gap: 30px;
    }

    .service-detail-top-row .detail-content-column {
        flex: 0 0 50%;
    }

    .service-detail-top-row .detail-image-column {
        flex: 0 0 50%;
    }
}

/* Mobile Tablet (576px - 767px) */
@media (max-width: 767px) {
    .detail-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }

    .detail-image-column {
        flex: 0 0 auto;
        min-width: 100%;
        height: auto;
    }

    .detail-image-container {
        max-height: 400px;
        min-height: 300px;
    }

    .detail-image {
        object-fit: cover;
        height: 100%;
    }

    .detail-content-column {
        flex: 1;
        flex: 0 0 auto;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-metadata-box {
        padding: 15px;
    }

    .metadata-item {
        font-size: 14px;
    }

    .detail-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .detail-description iframe {
        aspect-ratio: 16 / 9;
        max-width: 100%;
        width: 100%;
        min-height: 280px;
        pointer-events: auto;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    /* Team Member Layout Mobile */
    .team-member-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .team-member-image-section {
        flex: 0 0 auto;
        min-width: 100%;
    }

    .team-member-details-section {
        flex: 1;
        width: 100%;
    }

    .team-member-bottom-row {
        width: 100%;
    }

    /* Service Detail Layout Mobile */
    .service-detail-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .service-detail-top-row .detail-content-column {
        flex: 0 0 auto;
        min-width: 100%;
    }

    .service-detail-top-row .detail-image-column {
        flex: 0 0 auto;
        min-width: 100%;
        height: auto;
    }

    .service-detail-bottom-row {
        width: 100%;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .detail-wrapper {
        gap: 20px;
    }

    .detail-image-column {
        min-width: 100%;
    }

    .detail-image-container {
        max-height: 300px;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .about-eyebrow {
        font-size: 12px;
    }

    .detail-metadata-box {
        padding: 12px;
        margin-bottom: 1.5rem;
    }

    .metadata-item {
        font-size: 13px;
        margin: 8px 0;
    }

    .detail-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .detail-description img {
        margin: 15px 0;
    }

    .detail-description iframe {
        aspect-ratio: 16 / 9;
        margin: 15px 0;
        max-width: 100%;
        width: 100%;
        min-height: 250px;
        pointer-events: auto;
    }

    .detail-description ul,
    .detail-description ol {
        margin-left: 20px;
    }

    .btn-action {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Team Member Layout Small Mobile */
    .detail-wrapper.team-member-layout {
        gap: 20px;
    }

    .team-member-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .team-member-image-section {
        flex: 0 0 auto;
        min-width: 100%;
    }

    .team-member-details-section {
        flex: 1;
        width: 100%;
    }

    .team-member-bottom-row {
        width: 100%;
    }

    /* Service Detail Layout Small Mobile */
    .detail-wrapper.service-layout {
        gap: 20px;
    }

    .service-detail-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .service-detail-top-row .detail-content-column {
        flex: 0 0 auto;
        min-width: 100%;
    }

    .service-detail-top-row .detail-image-column {
        flex: 0 0 auto;
        min-width: 100%;
        height: auto;
    }

    .service-detail-bottom-row {
        width: 100%;
    }
}

/* Animation for fade-in effect */
.detail-wrapper,
.detail-content-column {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy classes for backward compatibility (if needed) */
.detail-hero {
    display: none;
}

.detail-content-wrapper {
    max-width: 100%;
}

.tmd-actions,
.detail-cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== Available Time Slots Section ========== */

.available-time-slots-section {
    margin-top: 0;
    padding-top: 0;
}

.time-slots-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required-asterisk {
    color: #e74c3c;
    font-weight: 700;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 2rem;
}

.time-slot-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.time-slot-card:hover {
    border-color: #9b118c;
    box-shadow: 0 6px 20px rgba(155, 17, 140, 0.15);
    transform: translateY(-4px);
}

.time-slot-card.selected {
    border-color: #9b118c;
    background: #f9f4fb;
    box-shadow: 0 6px 20px rgba(155, 17, 140, 0.2);
}

.time-slot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.time-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #9b118c;
}

.time-range {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.time-slot-body {
    margin-bottom: 1rem;
}

.day-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.day-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b118c;
    font-size: 1rem;
}

.day-text {
    font-weight: 500;
    color: #555;
}

.time-slot-footer {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.instructor-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.instructor-link:hover {
    text-decoration: none;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.instructor-link:hover .instructor-avatar {
    border-color: #9b118c;
    box-shadow: 0 2px 8px rgba(155, 17, 140, 0.2);
}

.instructor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.time-slots-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #9b118c;
    border-radius: 4px;
}

.time-slots-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

/* Responsive: Medium Tablet */
@media (max-width: 768px) {
    .available-time-slots-section {
        margin-top: 2rem;
    }

    .time-slots-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .time-slot-card {
        padding: 1.25rem;
    }

    .time-range {
        font-size: 0.95rem;
    }

    .instructor-name {
        font-size: 0.85rem;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 575px) {
    .available-time-slots-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .time-slots-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .time-slots-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .time-slot-card {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .time-slot-header {
        margin-bottom: 0;
    }

    .time-slot-body {
        margin-bottom: 0;
    }

    .time-slot-footer {
        padding-top: 0;
        border-top: none;
        display: flex;
        justify-content: flex-end;
    }

    .instructor-link {
        gap: 8px;
    }

    .instructor-name {
        display: none;
    }

    .instructor-avatar {
        width: 36px;
        height: 36px;
    }

    .time-slots-note {
        margin-top: 1rem;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Compact Time Slots (for header area) */
.time-slots-title-small {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-slots-container-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-slot-card-compact {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-slot-card-compact:hover {
    border-color: #9b118c;
    box-shadow: 0 2px 8px rgba(155, 17, 140, 0.1);
}

.time-slot-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.time-icon-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #9b118c;
    min-width: 20px;
}

.time-slot-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-range-compact {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.day-text-compact {
    font-size: 0.8rem;
    color: #666;
}

.instructor-link-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.instructor-link-compact:hover {
    text-decoration: none;
}

.instructor-avatar-compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.instructor-link-compact:hover .instructor-avatar-compact {
    border-color: #9b118c;
    box-shadow: 0 2px 6px rgba(155, 17, 140, 0.15);
}

/* Grid Layout for Time Slots (Service Detail Page) */
.time-slots-title-grid {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-slots-container-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-slot-card-grid {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.time-slot-card-grid:hover {
    border-color: #9b118c;
    box-shadow: 0 6px 20px rgba(155, 17, 140, 0.15);
    transform: translateY(-4px);
}

.time-slot-card-grid.selected {
    border-color: #9b118c;
    background: #f9f4fb;
    box-shadow: 0 6px 20px rgba(155, 17, 140, 0.2);
}

.time-slot-header-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.time-icon-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #9b118c;
}

.time-range-grid {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.time-slot-body-grid {
    margin-bottom: 1rem;
}

.day-info-grid {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.day-icon-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b118c;
    font-size: 1rem;
}

.day-text-grid {
    font-weight: 500;
    color: #555;
}

.time-slot-footer-grid {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.instructor-link-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.instructor-link-grid:hover {
    text-decoration: none;
}

.instructor-avatar-grid {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.instructor-link-grid:hover .instructor-avatar-grid {
    border-color: #9b118c;
    box-shadow: 0 2px 8px rgba(155, 17, 140, 0.2);
}

.instructor-name-grid {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .time-slots-container-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Responsive: Medium Tablet */
@media (max-width: 768px) {
    .available-time-slots-section {
        margin-top: 2rem;
    }

    .time-slots-title-grid {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .time-slots-container-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .time-slot-card-grid {
        padding: 1.25rem;
    }

    .time-range-grid {
        font-size: 0.95rem;
    }

    .instructor-name-grid {
        font-size: 0.85rem;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 575px) {
    .available-time-slots-section {
        margin-top: 1.5rem;
        padding-top: 0;
    }

    .time-slots-title-grid {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .time-slots-container-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .time-slot-card-grid {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .time-slot-header-grid {
        margin-bottom: 0;
    }

    .time-slot-body-grid {
        margin-bottom: 0;
    }

    .time-slot-footer-grid {
        padding-top: 0;
        border-top: none;
        display: flex;
        justify-content: flex-end;
    }

    .instructor-link-grid {
        gap: 8px;
    }

    .instructor-name-grid {
        display: none;
    }

    .instructor-avatar-grid {
        width: 36px;
        height: 36px;
    }
}

.time-slots-no-data {
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #9b118c;
    border-radius: 4px;
    color: #666;
}

.time-slots-no-data p {
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* ========================================
   RESPONSIVE TIME SLOTS LAYOUT
   Dynamic Flex Layout with Instructor Info
   ======================================== */

.available-time-slots-section {
    margin-top: 1rem;
    padding-top: 0;
    margin-bottom: 1.5rem;
}

.time-slots-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Time Slot Card - Responsive Design */
.time-slot-card {
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 200px;
    max-width: 100%;
}

.time-slot-card:hover {
    border-color: #9b118c;
    box-shadow: 0 4px 12px rgba(155, 17, 140, 0.12);
    transform: translateY(-2px);
}

.time-slot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9b118c, #c44fc7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-slot-card:hover::before {
    opacity: 1;
}

/* Link overlay for clickable cards */
.time-slot-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.time-slot-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 0;
}

/* Time Display */
.time-slot-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    color: #9b118c;
    flex-shrink: 0;
}

.time-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* Days Display */
.time-slot-days {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.day-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
    color: #9b118c;
    flex-shrink: 0;
    margin-top: 1px;
}

.day-value {
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}

/* Instructor Info Section */
.time-slot-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0.65rem;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 0;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e0e0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.time-slot-card:hover .instructor-avatar {
    border-color: #9b118c;
    box-shadow: 0 2px 6px rgba(155, 17, 140, 0.15);
}

.instructor-name-short {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Desktop: 4+ cards per row */
@media (min-width: 1400px) {
    .time-slot-card {
        flex: 1 1 calc(25% - 0.6rem);
        min-width: 220px;
    }
}

/* Large Desktop/Tablet: 3+ cards per row */
@media (max-width: 1399px) and (min-width: 1024px) {
    .time-slot-card {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 200px;
    }
}

/* Tablet: 2 cards per row */
@media (max-width: 1023px) and (min-width: 768px) {
    .time-slots-container {
        gap: 0.7rem;
    }

    .time-slot-card {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 180px;
        padding: 0.8rem;
    }

    .time-value {
        font-size: 0.85rem;
    }

    .day-value {
        font-size: 0.75rem;
    }
}

/* Small Tablet: 2 cards per row, more compact */
@media (max-width: 767px) and (min-width: 576px) {
    .available-time-slots-section {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }

    .time-slots-title {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .time-slots-container {
        gap: 0.65rem;
    }

    .time-slot-card {
        flex: 1 1 calc(50% - 0.33rem);
        min-width: 160px;
        padding: 0.75rem;
    }

    .time-slot-content {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .time-icon {
        width: 22px;
        height: 22px;
        font-size: 0.95rem;
    }

    .time-value {
        font-size: 0.8rem;
    }

    .day-icon {
        width: 18px;
        height: 18px;
        font-size: 0.85rem;
    }

    .day-value {
        font-size: 0.7rem;
    }

    .time-slot-instructor {
        gap: 6px;
        padding-top: 0.55rem;
    }

    .instructor-avatar {
        width: 28px;
        height: 28px;
    }

    .instructor-name-short {
        font-size: 0.7rem;
    }
}

/* Mobile: 1 card per row (can fit 2 if content is small) */
@media (max-width: 575px) {
    .available-time-slots-section {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .time-slots-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .time-slots-container {
        gap: 0.6rem;
        flex-direction: row;
    }

    .time-slot-card {
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 140px;
        padding: 0.7rem;
    }

    .time-slot-content {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .time-icon {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }

    .time-value {
        font-size: 0.75rem;
    }

    .day-icon {
        width: 16px;
        height: 16px;
        font-size: 0.8rem;
    }

    .day-value {
        font-size: 0.65rem;
    }

    .time-slot-instructor {
        gap: 6px;
        padding-top: 0.5rem;
    }

    .instructor-avatar {
        width: 26px;
        height: 26px;
    }

    .instructor-name-short {
        font-size: 0.65rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .time-slot-card {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .time-value {
        font-size: 0.7rem;
    }

    .day-value {
        font-size: 0.6rem;
    }

    .instructor-name-short {
        font-size: 0.6rem;
    }
}
