/* ===================================
    Professionals Page Dark Theme - Matching Index Page Style
====================================== */

/* Using same blue color scheme from index page */

/* ===================================
    Page Title Section
====================================== */
.page-title-parallax {
    background-color: #1F2937 !important;
    background-image: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
}

.page-title-parallax h1,
.page-title-parallax h2,
.page-title-parallax span {
    color: #E2E8F0 !important;
}

.page-title-parallax .alt-font.text-yellow {
    color: #F97316 !important;
}

/* ===================================
    Main Section Background
====================================== */
section.bg-tranquil {
    background-color: #1F2937 !important;
    background-image: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
}

/* ===================================
    Mentor Cards - Exact Match from Index Page
====================================== */

/* Services box styling - matching index mentor cards */
.services-box-style-06 {
    background-color: #111827 !important;
    border: 1px solid rgb(148 163 184 / 48%) !important;
    box-shadow: 0 -1px 10px rgb(255 255 255 / 25%), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.services-box-style-06:hover {
    border-color: #4F46E5 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 70, 229, 0.2) !important;
    transform: translateY(-3px);
}

/* Mentor card image container */
.services-box-style-06 .image {
    background-color: #0F172A !important;
    border-bottom: 2px solid #4F46E5;
    overflow: hidden;
}

.services-box-style-06 .image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.services-box-style-06:hover .image img {
    transform: scale(1.05);
}

/* Mentor card content background */
.services-box-style-06 .bg-black {
    background: linear-gradient(135deg, #1E293B 0%, #111827 100%) !important;
    border-top: none !important;
}

/* Text colors in mentor cards */
.services-box-style-06 .text-white {
    color: #E2E8F0 !important;
}

.services-box-style-06 .fs-20.text-white {
    color: #60A5FA !important; /* Bright blue */
    font-weight: 600;
    letter-spacing: -0.5px;
}

.services-box-style-06:hover .fs-20.text-white {
    color: #93C5FD !important; /* Lighter bright blue on hover */
}

.services-box-style-06:hover .image {
    border-bottom-color: #6366F1;
}

.services-box-style-06 .text-light-gray {
    color: #94A3B8 !important;
}

.services-box-style-06 .fw-600.fs-15 {
    color: #E2E8F0 !important;
    opacity: 0.9;
}

.services-box-style-06 .fw-500.fs-12 {
    color: #94A3B8 !important;
    opacity: 0.8;
}

/* Degree icon styling */
.degree-icon {
    position: absolute;
    top: 10px;
    right: 35px;
    width: 50px;
    height: 50px;
    background-color: #ffffff !important;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.degree-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.degree-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -25px;
    right: 50%;
    transform: translateX(50%);
    background-color: #111827;
    color: #4F46E5;
    border: 1px solid #4F46E5;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.degree-icon:hover::after {
    opacity: 1;
}

/* Portfolio wrapper styling */
.portfolio-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Grid item styling */
.grid-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* Hide grid-sizer */
.grid-sizer {
    display: none !important;
}

/* ===================================
    Grid Layout Enhancement - 3 Columns like Index
====================================== */
/* Override the default 4-column layout */
.row.row-cols-lg-4[data-anime] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Remove Bootstrap column classes effects */
.row.row-cols-lg-4[data-anime] > .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* Responsive grid adjustments */
@media (max-width: 1199px) {
    .row.row-cols-lg-4[data-anime] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .row.row-cols-lg-4[data-anime] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .row.row-cols-lg-4[data-anime] {
        grid-template-columns: 1fr !important;
    }
}

/* Remove Bootstrap column classes interference */
.team-style-05 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* ===================================
    Additional Enhancements
====================================== */

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Image overlays for better contrast */
.team-style-05 .position-relative {
    position: relative;
    overflow: hidden;
}

.team-style-05 .position-relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-style-05:hover .position-relative::after {
    opacity: 0;
}

/* Make sure the profession text is above the overlay */
.team-style-05 .fw-600.text-dark-gray {
    position: relative;
    z-index: 2;
}

/* Loading state styling */
.spinner-grow.text-primary {
    background-color: #4F46E5 !important;
}

/* Loading message text */
.col-12.text-center p.text-muted {
    color: #94A3B8 !important;
}

/* ===================================
    Mentor Card Enhancements
====================================== */
/* Image container with border and shadow */
.mentor-image-container {
    border: 1px solid rgb(148 163 184 / 30%) !important;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important; */
    transition: all 0.3s ease;
    position: relative;
    background-color: #0F172A;
}

.mentor-image-container:hover {
    border-color: #4F46E5 !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* Mentor info section without border/background */
.mentor-info-section {
    padding: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background-color: transparent !important;
}

section.bg-tranquil .mentor-info-section .text-black {
    color: #E2E8F0 !important;
}

section.bg-tranquil .mentor-info-section .text-dark-gray {
    color: #bcd1ef !important;
}

section.bg-tranquil .mentor-info-section .text-muted {
    color: #b7b7b7 !important;
    line-height: 1.4 !important;
}

/* Ensure description stays within 2 lines */
.mentor-info-section .short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* Ensures consistent height even with 1 line */
    word-break: break-word;
}

/* Service title - ensure it doesn't overflow */
.mentor-info-section .service-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 10px;
}

/* Full name styling - bigger and fits card width */
.mentor-info-section .fw-700 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    word-break: break-word;
    hyphens: auto;
}

/* Mentor card image styling */
.mentor-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.mentor-image-container:hover img {
    transform: scale(1.05);
}

/* Focus states for accessibility */
.team-style-05 a:focus {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* Ensure all text inside cards is properly colored */
.team-style-05 a {
    text-decoration: none !important;
}

/* Override any default link colors */
.team-style-05 .position-relative a {
    color: inherit !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-style-05 {
    animation: fadeIn 0.5s ease-out;
}

/* Make the whole card clickable appearance */
.team-style-05 .position-relative {
    cursor: pointer;
}

/* Match the exact shadow and border style from index mentors */
.team-style-05 .position-relative.border {
    border-radius: 6px !important;
}

/* Ensure proper spacing */
.team-style-05.mb-45px {
    margin-bottom: 45px !important;
}

/* Override any conflicting styles */
section.overlap-height {
    background-color: transparent !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Page title improvements */
.page-title-parallax .container {
    position: relative;
    z-index: 1;
}

/* Background pattern for page title (optional) */
.page-title-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/vertical-line-bg-small.svg');
    background-position: center;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}