.favorite-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(17, 24, 39, 0.95);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

.favorite-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tutor Profile View Page Styles - Card Based Layout */

/* Divider between header and page content */
.tutor-profile-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin-top: 115px;
    margin-bottom: 30px;
}

/* Adjust margin when sticky-top-bar is not present */
body:not(.has-sticky-bar) .tutor-profile-divider {
    margin-top: 70px;
}

@media (max-width: 768px) {
    .tutor-profile-divider {
        margin-top: 115px;
    }
}

.blank-portion{
    display: none;
}

/* Container with top margin */
.tutor-profile-container {
    margin-top: 0;
    margin-bottom: 50px;
    font-family: 'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif;
}
.minimum-body-height-size {
  overflow-x: initial !important;    
}

/* Apply font family to all text elements within the container, excluding icons */
.tutor-profile-container,
.tutor-profile-container p,
.tutor-profile-container span:not(.fa):not([class*="fa-"]),
.tutor-profile-container div,
.tutor-profile-container h1,
.tutor-profile-container h2,
.tutor-profile-container h3,
.tutor-profile-container h4,
.tutor-profile-container h5,
.tutor-profile-container h6,
.tutor-profile-container a:not(.fa):not([class*="fa-"]),
.tutor-profile-container button:not(.fa):not([class*="fa-"]),
.tutor-profile-container label,
.tutor-profile-container input,
.tutor-profile-container textarea,
.tutor-profile-container select {
    font-family: 'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif;
}

/* Wrapper - Single column on mobile, 2 columns on desktop */
.tutor-profile-wrapper {
    margin: 0 auto;
    padding: 0;
    font-family: 'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif;
}

/* Mobile first - single column */
.tutor-profile-left-column,
.tutor-profile-right-column {
    width: 100%;
}

/* Mobile sections - Show on mobile, hide on desktop */
.mobile-stats-row,
.mobile-action-buttons,
.mobile-video-container {
    display: flex !important;
}

/* Mobile Stats Row - Match desktop styling */
.mobile-stats-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 20px;
    gap: 25px;
}

.mobile-stats-row .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-stats-row .stat-with-icon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-stats-row .stat-with-icon .fa-star {
    color: #fbbf24;
    font-size: 22px;
}

.mobile-stats-row .stat-value {
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    color: #121117;
}

.mobile-stats-row .stat-label {
    font-size: 16px;
    color: #4d4c5c;
    line-height: 32px;
}

/* Mobile Action Buttons - Match desktop styling */
.mobile-action-buttons {
    padding: 0 !important;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-action-buttons .btn-message {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: #ffffff;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.mobile-action-buttons .btn-message:hover {
    background: #f0f7ff;
}

.mobile-action-buttons .btn-message .fa {
    font-size: 23px;
}


.mobile-video-container .video-preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* .mobile-video-container .tutor-video-iframe,
.mobile-video-container .tutor-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
} */
 .mobile-video-container .tutor-video-iframe,
.mobile-video-container .tutor-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto; /* Allow clicking on mobile */
}

.mobile-video-container .no-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.mobile-video-container .no-video-placeholder {
    text-align: center;
    color: #94a3b8;
}

.mobile-video-container .no-video-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.mobile-video-container .no-video-text {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #cbd5e1;
}

/* 2-column layout above 1024px */
@media (min-width: 1024px) {
    .tutor-profile-wrapper {
    display: flex;
        gap: 24px;
    align-items: flex-start;
}

    .tutor-profile-left-column {
    flex: 1;
    min-width: 0;
        order: 1;
    }

    .tutor-profile-right-column {
        width: 370px;
        flex-shrink: 0;
        position: sticky;
        top: 115px;
        order: 2;
    }
    
    /* Adjust top position when sticky-top-bar is not present */
    body:not(.has-sticky-bar) .tutor-profile-right-column {
        top: 80px;
    }

    /* Hide mobile sections on desktop */
    .mobile-stats-row,
    .mobile-action-buttons,
    .mobile-video-container {
        display: none !important;
    }
}

/* ====================
   RIGHT COLUMN - PROFILE CARD (Sticky)
   ==================== */

.tutor-profile-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(20, 20, 82, 0.15); /* match message history border */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Video Container - Video loads immediately */
.profile-video-container {
    position: relative;
    width: 330px;
    margin:20px !important;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 7px;
    padding-top: 56.25%; /* 16:9 Aspect Ratio - default for videos */
}

/* Remove padding when no video */
.profile-video-container:has(.video-preview-wrapper.no-video) {
    padding-top: 0;
    height: 230px; /* Fixed height for no-video placeholder */
}

.video-preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Video players - load immediately */
.tutor-video-iframe,
    .tutor-video-player {
    position: absolute;
    top: 0;
    left: 0;
        width: 100%;
        height: 100%;
        border: none;
    cursor: pointer;
    }

.tutor-video-player {
        object-fit: cover;
        cursor: pointer;
        pointer-events: auto;
}

/* Play Button Overlay - Bottom Right Corner */
.play-button-overlay-corner {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-button-corner {
    width: 60px;
    height: 60px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.5);
    transition: all 0.3s ease;
}

.play-button-overlay-corner:hover .play-button-corner {
    transform: scale(1.1);
    background: #0052a3;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
}

.play-button-corner i {
    margin-left: 3px; /* Optical centering for play icon */
}

/* Hide play button when clicked */
.play-button-overlay-corner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Play Button - Centered */
.mobile-video-container .play-button-overlay-corner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-video-container .play-button-corner {
    width: 70px !important;
    height: 70px !important;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.5);
    transition: all 0.3s ease;
}

.mobile-video-container .play-button-overlay-corner:hover .play-button-corner,
.mobile-video-container .play-button-overlay-corner:active .play-button-corner {
    transform: scale(1.1);
    background: #0052a3;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
}

.mobile-video-container .play-button-corner i {
    margin-left: 3px; /* Optical centering for play icon */
}
/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.custom-video-controls.hidden {
    opacity: 0;
}

.play-pause-btn {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    flex-shrink: 0;
    height: 40px;
    min-width: 40px;
}

.play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.play-pause-btn i {
    font-size: 18px;
}

.main-controls-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 5px;
    height: 40px;
}

.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 5px;
}

.progress-filled {
    height: 100%;
    background: #0066cc;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-filled::after {
    opacity: 1;
}

.time-display {
    position: absolute;
    bottom: 100%;
    left: 0;
    color: white;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.9);
    padding: 5px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    transform: translateX(-50%);
    margin-bottom: 6px;
    transition: left 0.1s linear;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.control-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
    opacity: 1 !important;
    visibility: visible !important;
}

.control-icon-btn:hover {
    color: #0066cc;
}

.control-icon-btn i {
    font-size: 16px;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.volume-btn,
.volume-btn i {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* No video fallback */
.video-preview-wrapper.no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

/* Hide play button overlay when no video */
.video-preview-wrapper.no-video .play-button-overlay-corner {
    display: none !important;
}

.no-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    z-index: 2;
}

.no-video-icon-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.no-video-icon {
    font-size: 64px;
    color: #6b7280;
    position: relative;
    z-index: 3;
}

.pulse-ring {
    display: none;
}

.pulse-ring-delay {
    display: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.no-video-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.no-video-subtext {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 20px; /* reduced to tighten spacing */
    gap: 25px;
}

.stats-row .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-with-icon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-with-icon i {
    color: #121117;
    font-size: 26px;
}

.stats-row .stat-value {
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    color: #121117;
}

.stats-row .stat-label {
    font-size: 16px;
    color: #4d4c5c;
    line-height: 32px;
}

/* Action Buttons */
.action-buttons {
    padding: 12px 16px 16px 16px; /* reduced top spacing */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-buttons button,
.action-buttons a {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.action-buttons .fa {
    font-size: 23px;
}

.btn-primary,
a.btn-primary {
    background: #0066cc;
    color: white;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    color: white;
    text-decoration: none;
}

/* Free Call Button - Beautiful Live Gradient with Website Colors */
.tutor-live-btn,
a.tutor-live-btn {
    background: linear-gradient(135deg, #0066cc 0%, #3399ff 20%, #0099ff 40%, #3399ff 60%, #0066cc 80%, #004d99 100%);
    background-size: 400% 400%;
    color: white !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.5);
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tutor-live-btn::before,
a.tutor-live-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.tutor-live-btn:hover::before,
a.tutor-live-btn:hover::before {
    left: 100%;
}

.tutor-live-btn::after,
a.tutor-live-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tutor-live-btn:hover::after,
a.tutor-live-btn:hover::after {
    width: 300px;
    height: 300px;
}

.tutor-live-btn:hover,
a.tutor-live-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 153, 255, 0.6);
    background: linear-gradient(135deg, #0066cc 0%, #3399ff 20%, #0099ff 40%, #3399ff 60%, #0066cc 80%, #004d99 100%);
    background-size: 400% 400%;
    animation: gradientShift 1.5s ease-in-out infinite;
}

.tutor-live-btn:active,
a.tutor-live-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.5);
}

/* Icon animation in Free Call button */
.tutor-live-btn .fa-phone,
a.tutor-live-btn .fa-phone {
    animation: phoneRing 2s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-12deg);
    }
    20%, 40% {
        transform: rotate(12deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Send Message Button - Website Color */
.btn-secondary {
    background: white;
    color: #0066cc !important;
    border: 2px solid #0066cc !important;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc !important;
    border-color: #0052a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.btn-secondary .fa,
.btn-secondary span,
.btn-secondary i {
    position: relative;
    transition: all 0.3s ease;
}

.btn-secondary .fa,
.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover .fa-comment {
    transform: translateX(3px);
}

.btn-secondary:hover .fa-heart,
.btn-secondary:hover .fa-heart-o {
    transform: scale(1.1);
}

/* Mobile Bottom Bar - Hidden on Desktop */
.mobile-bottom-bar {
    display: none;
}

/* ====================
   LEFT COLUMN - TUTOR INFO HEADER & SECTIONS
   ==================== */

/* Tutor Info Header */
.tutor-info-header {
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    overflow: visible; /* Allow tooltip to show */
}

.tutor-header-left {
    flex-shrink: 0;
    position: relative;
    overflow: visible; /* Allow tooltip to show */
}

.tutor-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* Status indicator square in bottom right corner - green when online */
.tutor-header-left {
    position: relative;
}

.tutor-header-left .tutor-online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #10b981; /* Default green when online */
    border: 2px solid white;
    border-radius: 4px;
    z-index: 2;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    /* Remove text styles */
    color: transparent;
    padding: 0;
    text-indent: -9999px;
    overflow: visible !important; /* Ensure tooltip is visible */
    line-height: 1;
    font-size: 0;
}

/* Specific hidden class for badge - overrides general hidden class */
.tutor-header-left .tutor-online-badge.hidden {
    display: block !important;
    background: #9ca3af !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Custom beautiful tooltip for online status indicator */
.tutor-header-left .tutor-online-badge::before {
    content: attr(data-online-status);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
    text-transform: capitalize;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    text-indent: 0;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tutor-header-left .tutor-online-badge:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 12px);
}

/* Beautiful tooltip arrow */
.tutor-header-left .tutor-online-badge::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9998;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tutor-header-left .tutor-online-badge:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 4px);
}

.tutor-header-right {
    flex-grow: 1;
}

.tutor-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    flex-wrap: wrap;
}

.tutor-name-row h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.tutor-name-row .verified-badge {
    color: #0066cc;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
}

.tutor-name-row .country-flag {
    display: inline-flex;
    align-items: center;
}

.tutor-name-row .country-flag img {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tutor-tagline {
    font-size: 16px;
    color: #121117;
    margin: 16px 0 20px 0;
    line-height: 1.5;
}

/* Tutor Badges */
.tutor-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.badge-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.badge-item i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.certified-badge {
    color: #0066cc;
}

.certified-badge i {
    color: #0066cc;
}

.certified-badge span {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
}

.teaches-badge {
    color: #0066cc;
}

.teaches-badge i {
    color: #0066cc;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-label {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
}

.badge-value {
    font-size: 14px;
    color: black;
    font-weight: 600;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 60px;
}

/* Add extra space before About section */
.about-section {
    margin-top: 70px;
}

/* About text clamped to 3 lines by default */
.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.about-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.about-expanded {
    display: block;
}

.about-toggle-btn {
    display: block; /* always on next line */
    margin-top: 12px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: black;
    text-decoration: underline;
}

.profile-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-section h2 i {
    font-size: 20px;
}

.profile-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 16px 0;
}

.profile-section p:last-child {
    margin-bottom: 0;
}

.profile-section .no-content {
    color: #9ca3af;
    font-style: italic;
}

/* Education Section */
/* Skills - beautiful chips */
.skills-section .skills-content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-section .skills-content a,
.skills-section .skills-content span,
.skills-section .skills-content .skill-tag,
.skills-section .skills-content .skill-chip,
.skills-section .skills-content li,
.skills-section .skills-content div {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 9999px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.skills-section .skills-content a:hover,
.skills-section .skills-content span:hover,
.skills-section .skills-content .skill-tag:hover,
.skills-section .skills-content .skill-chip:hover,
.skills-section .skills-content li:hover,
.skills-section .skills-content div:hover {
    background: #f5f5f5;
    border-color: #000000;
    color: #000000;
    text-decoration: none;
}

/* Hidden skills - show only 5 by default */
.skill-hidden {
    display: none !important;
}

.skill-visible {
    display: inline-flex !important;
}

.skills-toggle-btn {
    display: block;
    margin-top: 20px;
    background: transparent;
    color: black;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.education-item {
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: 3px solid #0066cc;
    margin-bottom: 0;
}

.education-item-spacing {
    margin-top: 40px;
}

.education-item .university-name {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-item .university-name i {
    color: #0066cc;
    font-size: 16px;
}

.education-item .education-location {
    font-weight: 400;
    color: #6b7280;
    font-size: 15px;
}

.education-item .degree-info {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.education-item .degree-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.education-item .degree-separator {
    color: #1f2937;
}

.education-item .degree-name {
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
}

.education-item .education-duration {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-item .education-duration i {
    color: #9ca3af;
    font-size: 13px;
}

.education-item .duration-text {
    font-style: italic;
}

/* Resume Section with Tabs */
.resume-section {
    margin-bottom: 60px;
}

.resume-section h2 {
    margin-bottom: 24px;
}

.resume-tabs {
    display: flex;
    gap: 45px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.resume-tab {
    background: none;
    border: none;
    padding: 12px 0;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    font-family: 'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resume-tab i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.resume-tab:hover {
    color: #1f2937;
}

.resume-tab:hover i {
    transform: scale(1.1);
}

.resume-tab-active {
    color: #1f2937;
    font-weight: 700;
}

.resume-tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: #0066cc;
}

.resume-tab-content {
    position: relative;
}

.resume-tab-panel {
    display: none;
}

.resume-tab-panel-active {
    display: block;
}

.resume-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 0;
}

.resume-item-spacing {
    margin-top: 32px;
}

.resume-item-left {
    padding-top: 2px;
}

.resume-duration {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.resume-item-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
}

.resume-subtitle {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.resume-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
    margin-top: 4px;
    cursor: pointer;
    position: relative;
}

.resume-verified i {
    font-size: 14px;
    margin-top: -3px;
}

.resume-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 8px;
}

.resume-certificate-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.certificate-number {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: fit-content;
}

.certificate-number:before {
    content: "📜";
    font-size: 16px;
    line-height: 1;
}

.certificate-number:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.certificate-score {
    font-size: 13px;
    color: #065f46;
    font-weight: 600;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #a7f3d0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
    width: fit-content;
}

.certificate-score:before {
    content: "🏆";
    font-size: 16px;
    line-height: 1;
}

.certificate-score:hover {
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
    border-color: #86efac;
}

.certificate-year {
    font-size: 13px;
    color: #6b7280;
}

/* Empty State for Resume Sections */
.resume-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.resume-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resume-empty-icon i {
    font-size: 36px;
    color: #9ca3af;
}

.resume-empty-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

@media (min-width: 768px) {
    /*.navbar-custom.affix .nav li a {*/
    /*    color: white !important;*/
    /*}*/
    
    .navbar-custom:not(.affix) .nav li a {
        color: black !important;
    }
}

/* Tooltip for Degree Verified */
.resume-verified::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.resume-verified::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 12px;
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 101;
}

.resume-verified:hover::before,
.resume-verified:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Reviews Section */
.reviews-section {
    margin-top: 0;
}


.reviews-overall-rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 50px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 56px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.rating-star-large {
    width: 50px;
    height: 50px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-star-large svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rating-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
}

.review-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0;
    padding: 0;
    align-items: start;
}

.review-item-full-width {
    grid-column: 1 / -1;
}

.review-avatar {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    background: #e5e7eb;
    align-self: start;
}

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

.review-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #121118 !important;
    border-radius: 5px;
    font-size: 20px;
}

.review-header-info {
    grid-column: 2;
    grid-row: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 3px;
    line-height: 1.4;
}

.review-date {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
}

.review-stars {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 2px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.review-text-wrapper {
    grid-column: 1 / -1;
    grid-row: 3;
}

.review-stars .fa-star {
    font-size: 18px;
    margin-right: 7px;
    color: #d1d5db;
}

.review-stars .fa-star.star-filled {
    color: #000000;
}

.review-text-wrapper {
    position: relative;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.review-show-more {
    background: transparent;
    border: none;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    margin-top: 0;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
}

.review-show-more:hover {
    color: #333333;
}

/* Show All Reviews Button */
.reviews-show-all-wrapper {
    margin-top: 30px;
    text-align: center;
}

.reviews-show-all-btn {
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif;
}

.reviews-show-all-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Reviews Modal */
.reviews-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.reviews-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 300px;
}

.reviews-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.reviews-modal-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 16px;
}

.reviews-modal-loading .fa {
    font-size: 26px;
    color: #0066cc;
}

.reviews-modal-error {
    margin: 16px 28px 0 28px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.reviews-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 28px 0 28px;
}

.reviews-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.reviews-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reviews-modal-close:hover {
    background: #f3f4f6;
    color: #000000;
}

.reviews-modal-content {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.reviews-modal-rating-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 32px;
}

.reviews-modal-overall-rating {
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.reviews-modal-overall-rating .rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.reviews-modal-overall-rating .rating-number {
    font-size: 58px;
    font-weight: 700;
    color: black;
    line-height: 1;
}

.reviews-modal-overall-rating .rating-star-large {
    width: 60px;
    height: 60px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviews-modal-overall-rating .rating-star-large svg {
    width: 100%;
    height: 100%;
    display: block;
}

.reviews-modal-overall-rating .rating-text {
    margin: 8px 0 0 0;
    font-size: 18px;
    color: #6b7280;
}

/* Rating Distribution Bars */
.rating-distribution {
    flex: 1;
    margin-bottom: 0;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.rating-bar-item:last-child {
    margin-bottom: 0;
}

.rating-bar-label {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
    margin-left: 8px;
}

.rating-bar-fill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 13px;
    color: #6b7280;
    min-width: 50px;
    text-align: left;
    margin-left: 8px;
}

.reviews-modal-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    margin-top: 8px;
}

.reviews-modal-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.review-item-modal {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0;
    padding: 0;
    align-items: start;
}

.review-item-modal .review-avatar {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    background: #e5e7eb;
    align-self: start;
}

.review-item-modal .review-header-info {
    grid-column: 2;
    grid-row: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}

.review-item-modal .review-stars {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 2px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.review-item-modal .review-text-wrapper {
    grid-column: 1 / -1;
    grid-row: 3;
}

.review-item-modal.review-item-with-divider {
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

/* Responsive: Single column on smaller screens */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reviews-overall-rating {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rating-text {
        margin-left: 0;
        width: 100%;
    }
    
    .reviews-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }
    
    .reviews-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .reviews-modal-header {
        padding: 20px;
    }
    
    .reviews-modal-content {
        padding: 20px;
    }
}

/* Skills Section */
.skills-content {
    font-size: 14px;
    line-height: 1.6;
}

.skills-content a {
    color: #0066cc;
    text-decoration: none;
}

.skills-content a:hover {
    text-decoration: underline;
}


/* ====================
   RESPONSIVE STYLES
   ==================== */

/* Offline Call Modal Styles */
.offline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.offline-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.offline-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offline-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

.offline-modal-icon {
    margin-bottom: 24px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.offline-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.offline-modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.offline-modal-message strong {
    color: #1f2937;
    font-weight: 600;
}

.offline-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
}

.offline-modal-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.offline-btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.offline-btn-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

.offline-btn-primary i {
    font-size: 15px;
}

.offline-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.offline-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .offline-modal-content {
        padding: 32px 24px;
    }
    
    .offline-modal-title {
        font-size: 24px;
    }
    
    .offline-modal-message {
        font-size: 15px;
    }
    
    .offline-modal-btn {
        width: 100%;
    }
}

/* Below 1024px - Single Column with Fixed Bottom Bar */
@media (max-width: 1023px) {
    .minimum-body-height-size{
        overflow-x: hidden !important;
    }
    
    /* Single column layout */
    .tutor-profile-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    .tutor-profile-left-column {
        order: 1 !important;
    }
    
    .tutor-info-header {
        margin-bottom: 24px !important;
    }

    /* Hide the desktop right column completely on mobile */
    .tutor-profile-right-column {
        display: none !important;
    }

    /* Show mobile sections */
    .mobile-stats-row,
    .mobile-action-buttons,
    .mobile-video-container {
        display: flex !important;
    }

    .about-section{
        margin-top: 0 !important;
}

    .tutor-name-row h1 {
        font-size: 24px !important;
    }

    /* Mobile responsive adjustments for stats */
    .mobile-stats-row {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .mobile-stats-row .stat-value {
        font-size: 24px;
    }

    .mobile-stats-row .stat-label {
        font-size: 14px;
        line-height: 20px;
    }

    .mobile-action-buttons .btn-message {
        font-size: 16px;
        padding: 12px 18px;
    }
    
    .profile-section {
        margin-bottom: 40px !important;
        margin-top: 30px !important;
    }

    /* Fixed Bottom Bar for Mobile */
    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px 20px 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 12px;
        align-items: center;
    }

    .profile-video-container{
        margin: 0 !important;
        width: 100% !important;
    }

    /* Favourite heart button */
    .mobile-bottom-bar .mobile-favourite-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid #e5e7eb;
        padding: 0;
        background: white;
        flex-shrink: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-bar .mobile-favourite-btn i {
        font-size: 24px;
        transition: all 0.3s ease;
    }

    .mobile-bottom-bar .mobile-favourite-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-color: #0066cc;
    }

    .mobile-bottom-bar .mobile-favourite-btn.active {
        border-color: #dc2626;
        background: #fef2f2;
    }

    .mobile-bottom-bar .mobile-favourite-btn:active {
        transform: scale(0.95);
    }

    /* Free Call button takes remaining space */
    .mobile-bottom-bar .mobile-call-btn {
        flex: 1;
        padding: 16px 20px;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #0066cc 0%, #3399ff 20%, #0099ff 40%, #3399ff 60%, #0066cc 80%, #004d99 100%);
        background-size: 400% 400%;
        color: white !important;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
        animation: gradientShift 3s ease-in-out infinite;
        letter-spacing: 0.5px;
        text-decoration: none;
    }

    .mobile-bottom-bar .mobile-call-btn .fa-phone {
        animation: phoneRing 2s ease-in-out infinite;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
        font-size: 20px;
    }

    .mobile-bottom-bar .mobile-call-btn:active {
        transform: scale(0.98);
    }
}

/* Mobile - Below 768px */
@media (max-width: 767px) {
    .tutor-profile-divider{
        display: none;
    }
    .tutor-profile-container {
        margin-top: 85px;
    }
    
    .tutor-profile-wrapper {
        padding: 0 10px;
    }
    
    .tutor-avatar {
        width: 120px;
        height: 120px;
    }
    
    .tutor-name-row h1 {
    font-size: 20px;
}

    .tutor-name-row .verified-badge {
        font-size: 18px;
    }
    
    .tutor-name-row .country-flag img {
        width: 24px;
    }
    
    .tutor-main-skill {
    font-size: 14px;
}

    .tutor-short-description {
    font-size: 14px;
        padding-left: 10px;
    }
    
    .stats-row .stat-item {
        flex-basis: calc(33.333% - 10px);
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    font-size: 24px;
    }
    
    .profile-section h2 {
        font-size: 19px;
    }

    .resume-tabs {
        gap: 20px;
        font-size: 15px;
        text-align: left;
    }
    .resume-tab{
        text-align: left;
        font-size: 14px;
    }
}

/* Extra small - Below 480px */
@media (max-width: 479px) {
    .tutor-info-header {
        flex-direction: column;
    }

    .resume-item{
        gap: 0px;
    }

    .stats-row .stat-label{
        line-height: 20px;
        font-size: 15px;
    }
    
    .tutor-short-description {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #e5e7eb;
        padding-top: 10px;
    }
    
    .stats-row .stat-item {
        flex-basis: 100%;
    }
    
    .stats-row .stat-value {
        font-size: 16px;
    }

    .stats-row .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .mobile-stats-row {
        padding: 10px 15px;
        gap: 15px;
    }

    .mobile-stats-row .stat-value {
        font-size: 20px;
        line-height: 24px;
    }

    .mobile-stats-row .stat-label {
        font-size: 12px;
        line-height: 18px;
    }

    .mobile-stats-row .stat-with-icon .fa-star {
        font-size: 18px;
    }

    .mobile-action-buttons .btn-message {
        font-size: 15px;
        padding: 11px 16px;
    }

    .mobile-action-buttons .btn-message .fa {
        font-size: 20px;
    }
}

/* Edit Section Buttons - Only visible when tutor views their own profile */
.section-header-with-edit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-with-edit h2 {
    margin: 0;
}

.edit-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #0066cc;
    color: white !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.edit-section-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.edit-section-btn i {
    font-size: 13px;
}

/* Edit Video Button - Positioned over video */
.edit-video-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.edit-video-btn:hover {
    background: rgba(0, 102, 204, 0.9);
    transform: scale(1.1);
}

.edit-video-btn i {
    margin: 0;
}

/* Mobile adjustments for edit buttons */
@media (max-width: 768px) {
    .section-header-with-edit {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .edit-section-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   TOP SKILLS SECTION STYLES
   ======================================== */

.top-skills-section {
    margin-bottom: 30px;
}

.top-skills-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-skill-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-skill-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.top-skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.top-skill-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.top-skill-badge {
    font-size: 20px;
    color: #fbbf24;
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.top-skill-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.top-skill-item.active .top-skill-name {
    color: #1e40af;
}

.top-skill-arrow {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
}

.top-skill-item.active .top-skill-arrow {
    transform: rotate(180deg);
    color: #3b82f6;
}

.top-skill-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-skill-description p {
    margin: 0;
    padding: 0 20px 20px 52px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}
/* Responsive Design for Top Skills */
@media (max-width: 768px) {
    .top-skills-container {
        gap: 10px;
    }
    
    .top-skill-header {
        padding: 14px 16px;
    }
    
    .top-skill-title {
        gap: 10px;
    }
    
    .top-skill-badge {
        font-size: 18px;
    }
    
    .top-skill-name {
        font-size: 15px;
    }
    
    .top-skill-description p {
        padding: 12px 16px 16px 46px;
        font-size: 13px;
        line-height: 1.6;
    }
    
    .top-skill-arrow {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .top-skill-header {
        padding: 12px 14px;
    }
    
    .top-skill-badge {
        font-size: 16px;
    }
    
    .top-skill-name {
        font-size: 14px;
    }
    
    .top-skill-description p {
        padding: 10px 14px 14px 40px;
        font-size: 13px;
    }
}
