/* Sponsor Images Consistency */
.td-brands-item {
    overflow: hidden;
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-image-speaker {
    object-fit: cover;
    height: 600px;
    width: 100%;
}

.td-brands-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.td-brands-item a,
.td-brands-item > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    border-radius: 15px;
    line-height: 1;
}

/* Override the gray background from td-brands-2-wrap */

.td-brands-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.td-brands-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .td-brands-item {
        height: 80px;
    }

    .td-brands-item a,
    .td-brands-item > div {
        padding: 10px;
    }
}

/* Apply Modal Custom Styles */
.apply-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.apply-modal-header {
    background: linear-gradient(135deg, #00C925 0%, #111111 100%) !important;
    color: white;
    padding: 25px 30px;
    border: none;
    position: relative;
}

.apply-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.apply-modal-title-wrapper {
    position: relative;
    z-index: 2;
}

.apply-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.apply-modal-subtitle {
    margin: 8px 0 0 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.apply-modal-close {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white !important;
    font-size: 18px;
    opacity: 1;
}

.apply-modal-close::before {
    content: '×';
    font-size: 24px;
    line-height: 1;
    color: white;
}

.apply-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: white !important;
}

.apply-modal-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: white !important;
}

.apply-modal-body {
    padding: 30px;
    background: white;
}

.apply-form-group {
    margin-bottom: 0;
}

.apply-form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.apply-form-label i {
    color: var(--td-theme-gray-black);
    font-size: 16px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.apply-form-input,
.apply-form-select,
.apply-form-textarea {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.apply-form-input:focus,
.apply-form-select:focus,
.apply-form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

.apply-form-textarea {
    resize: vertical;
    height: calc(1.5em * 5);
}

.apply-form-select {
    cursor: pointer;
}

.apply-file-upload {
    position: relative;
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: all 0.3s ease;
}

.apply-file-upload:hover {
    border-color: #764ba2;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.apply-form-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}

.apply-file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 500;
}

.apply-file-info i {
    font-size: 32px;
    opacity: 0.8;
}

.apply-modal-footer {
    padding: 25px 30px;
    background: #f8f9fa;
    border: none;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.apply-btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.apply-btn-cancel:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.apply-btn-submit {
    background: linear-gradient(135deg, #00C925 0%, #111111 100%) !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.apply-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.apply-btn-submit:hover::before {
    left: 100%;
}

.apply-btn-submit:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.apply-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Phone input group styling */
.apply-phone-prefix {
    background: #222222;
    color: white;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 15px 15px;
    font-weight: 600;
    font-size: 16px;
}

.apply-phone-input {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

.apply-phone-input:focus {
    border-left: 2px solid #667eea !important;
}

.input-group:focus-within .apply-phone-prefix {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Schedule Room Styles */
.td-room-header {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
    margin: 0 10px 20px 10px;
    padding: 15px;
    border-bottom: 3px solid #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px 8px 0 0;
}

.td-room-event {
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
}

.td-room-event > h6 {
    color: #00C925 !important;
}

.td-event-desc {
    color: white !important;
}

/* Mobile Column-based Scroll */
.td-schedule-mobile-wrapper {
    position: relative;
}

.td-schedule-mobile-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
    scroll-snap-type: x mandatory;
}

.td-schedule-mobile-scroll::-webkit-scrollbar {
    height: 6px;
}

.td-schedule-mobile-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.td-schedule-mobile-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.td-schedule-mobile-scroll::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.td-mobile-room-column {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    padding: 0 15px;
}

.td-mobile-event-item {
    margin-bottom: 20px;
}

.td-mobile-event-time {
    background: var(--td-theme-gray-black);
    color: white;
    padding: 8px 15px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

/* Scroll Indicator Styles */
.td-scroll-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--td-theme-gray-black);
    border-radius: 15px;
    margin-bottom: 20px;
    animation: scrollHint 3s ease-in-out infinite;
}

.td-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--td-theme-primary);
    font-size: 13px;
    font-weight: 600;
}

.td-scroll-hint i {
    font-size: 16px;
    animation: pointLeft 2s ease-in-out infinite;
}

.td-room-dots {
    display: flex;
    gap: 8px;
}

.td-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.td-dot.active {
    background: var(--td-theme-primary);
    transform: scale(1.2);
}

.td-dot.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pointLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

/* Session Matrix Styles */
.apply-session-matrix {
    margin-top: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.matrix-header {
    display: flex;
    background: #222222;
    color: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.matrix-corner {
    min-width: 140px;
    padding: 20px 15px;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.matrix-col-header {
    flex: 1;
    min-width: 150px;
    padding: 20px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.matrix-col-header:last-child {
    border-right: none;
}

.matrix-row {
    display: flex;
    border: 1px solid #e9ecef;
    border-top: none;
    background: white;
}

.matrix-row:last-child {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.matrix-row-header {
    min-width: 140px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-right: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.apply-session-item {
    position: relative;
    border-right: 1px solid #e9ecef;
    flex: 1;
    min-width: 150px;
}

.apply-session-item:last-child {
    border-right: none;
}

.apply-session-empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 12px;
}

.apply-session-radio,
.apply-session-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.apply-session-label {
    display: block;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    border-radius: 0;
}

.apply-session-label:hover {
    background: rgba(102, 126, 234, 0.1);
}

.apply-session-radio:checked + .apply-session-label,
.apply-session-checkbox:checked + .apply-session-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.apply-session-radio:checked + .apply-session-label::before,
.apply-session-checkbox:checked + .apply-session-label::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-code {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.apply-session-radio:checked + .apply-session-label .session-code,
.apply-session-checkbox:checked + .apply-session-label .session-code {
    color: white;
}

.session-name {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    margin-bottom: 3px;
}

.apply-session-radio:checked + .apply-session-label .session-name,
.apply-session-checkbox:checked + .apply-session-label .session-name {
    color: rgba(255, 255, 255, 0.9);
}

.session-time {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

.apply-session-radio:checked + .apply-session-label .session-time,
.apply-session-checkbox:checked + .apply-session-label .session-time {
    color: rgba(255, 255, 255, 0.8);
}

.td-mobile-room-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    margin: 0 0 15px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
}

.td-room-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #00C925;
}

.td-event-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.td-speaker {
    color: #00C925 !important;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.td-speaker {
    display: flex;
    align-items: center;
    gap: 10px; /* space between avatar and name */
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.td-speaker .avatar {
    width: 75px;
    height: 75px;
    background: var(--td-theme-primary);
    overflow: hidden;   /* crop image to circle */
    flex-shrink: 0;
}

.td-speaker .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps proportions while filling */
}

.td-speaker i {
    color: #00C925;
    margin-right: 5px;
}

.td-event-details-btn {
    background: #667eea;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.td-event-details-btn:hover {
    background: #764ba2;
    color: white;
    transform: scale(1.05);
}

.td-break {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-style: dashed;
    border-color: #dee2e6;
}

.td-break .td-event-title {
    color: #6c757d;
    font-size: 14px;
}

.td-break .td-speaker {
    color: #6c757d;
    justify-content: center;
    margin-bottom: 0;
}

/* Speaker Image Fix */
.td-team-thumb .speaker-image {
    width: 400px;
    max-width: 100%;
    height: 100%;
}

/* Speaker Cards Design */
.td-team-item {
    background: #3D3D3D;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    min-height: 420px;
}

.td-team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.td-team-thumb {
    position: relative;
    overflow: hidden;
    height: 350px;
    flex-shrink: 0;
}

.td-team-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.td-team-item:hover .td-team-thumb img {
    transform: scale(1.05);
}

.td-team-content {
    padding: 25px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    min-height: 120px;
}

.td-team-member-name {
    color: var(--td-common-white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.td-team-member-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.td-team-member-name a:hover {
    color: #667eea;
}

.td-team-member-position {
    color: var(--td-theme-primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
    height: 30px;
    display: block;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.td-team-social-wrap {
    margin-top: auto;
}

.td-team-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.td-team-social ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.td-team-social ul li a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.td-team-social ul li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.td-team-social ul li a svg {
    width: 16px;
    height: 16px;
}

/* Speaker Cards Layout Fix */
.td-team-area .row > [class*='col-'] {
    display: flex;
    margin-bottom: 30px;
}

/* Add gradient overlay for better text readability */
.td-team-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 201, 37, 0.3), transparent);
    z-index: 1;
}

/* Form validation styles */
.apply-form-input:invalid:not(:focus):not(:placeholder-shown),
.apply-form-select:invalid:not(:focus),
.apply-form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.apply-form-input:valid:not(:focus),
.apply-form-select:valid:not(:focus),
.apply-form-textarea:valid:not(:focus) {
    border-color: #27ae60;
    background-color: #f2fdf5;
}

/* Animation for modal */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translate3d(0, -50px, 0) scale(0.9);
}

.modal.show .modal-dialog {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Full-Width Events & Session Styles */
.td-full-width-event {
    color: white !important;
    padding: 15px 10px !important;
    border-radius: 5px;
    border: none !important;
}

.td-full-width-event .td-event-title {
    color: white !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.td-full-width-event .td-speaker,
.td-full-width-event .td-event-desc,
.td-full-width-event .td-session-type {
    color: rgba(255, 255, 255, 0.9) !important;
}

.td-session-type {
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 5px;
}

.td-room-event .badge {
    font-size: 10px;
    padding: 3px 8px;
}

/* Session Matrix Mobile Scrolling */
@media (max-width: 768px) {
    .apply-session-matrix {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #667eea #f1f1f1;
    }

    .apply-session-matrix::-webkit-scrollbar {
        height: 6px;
    }

    .apply-session-matrix::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .apply-session-matrix::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 10px;
    }

    .apply-session-matrix::-webkit-scrollbar-thumb:hover {
        background: #764ba2;
    }

    .matrix-header {
        min-width: max-content;
    }

    .matrix-row {
        min-width: max-content;
    }

    .matrix-corner {
        min-width: 100px;
        flex-shrink: 0;
    }

    .matrix-col-header {
        min-width: 120px;
        flex-shrink: 0;
    }

    .matrix-row-header {
        min-width: 100px;
        flex-shrink: 0;
    }

    .apply-session-item {
        min-width: 120px;
        flex-shrink: 0;
    }

    /* Mobile Schedule Full-Width Events */
    .td-schedule-mobile-view .td-full-width-event {
        margin: 10px 0;
        width: 100%;
        background: var(--td-theme-gray-black) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .thumb-image-speaker {
        height: 250px;
        width: 100%;
    }
    .apply-modal-header,
    .apply-modal-body,
    .apply-modal-footer {
        padding: 20px;
    }

    .apply-modal-title {
        font-size: 24px;
    }

    .apply-modal-subtitle {
        font-size: 14px;
    }

    .apply-file-upload {
        padding: 20px;
    }

    .apply-file-info i {
        font-size: 24px;
    }

    .modal-lg {
        max-width: 95%;
    }

    .matrix-corner,
    .matrix-col-header,
    .matrix-row-header {
        padding: 10px 8px;
        font-size: 12px;
        width: 120px;
    }

    .apply-session-label {
        padding: 15px 8px;
        width: 120px !important;
    }

    .session-code {
        font-size: 13px;
    }

    .session-name {
        font-size: 10px;
    }

    .td-mobile-time-col {
        flex: 0 0 80px;
        min-width: 80px;
    }

    .td-mobile-room-col {
        flex: 0 0 calc(100vw - 100px);
        min-width: calc(100vw - 100px);
    }

    .td-room-event {
        margin: 8px 0;
        padding: 15px;
        min-height: 90px;
    }

    .td-mobile-room-header {
        font-size: 12px;
        padding: 8px;
        background: var(--td-theme-gray-black);
    }

    .td-event-title {
        font-size: 12px;
    }

    .td-speaker {
        font-size: 11px;
    }

    .td-event-details-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .td-team-item {
        min-height: 380px;
    }

    .td-team-thumb {
        height: 400px;
    }

    .td-team-content {
        padding: 20px 15px 15px;
    }

    .td-team-member-name {
        font-size: 18px;
    }
}

/* Desktop - 4 cards per row */
@media (min-width: 1200px) {
    .td-team-area .row > [class*='col-']:not(.col-lg-12) {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Large tablets - 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
    .td-team-area .row > [class*='col-']:not(.col-lg-12) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .td-schedule-mobile-view {
        display: block;
    }

    .td-room-event {
        margin: 10px 0;
        min-height: 100px;
    }

    .td-event-title {
        font-size: 13px;
    }

    .td-schedule-mobile-scroll {
        padding-bottom: 10px;
    }
}

/* Medium tablets - 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .td-team-area .row > [class*='col-']:not(.col-lg-12) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile - 1 card per row */
@media (max-width: 767px) {
    .td-team-area .row > [class*='col-']:not(.col-lg-12) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* About page speaker images consistency */
.td-team-3-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.td-team-3-thumb {
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 25px;
}

.td-team-3-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.td-team-3-wrap:hover .td-team-3-thumb img {
    transform: scale(1.05);
}

/* Mobile responsive improvements for speakers */
@media (max-width: 767px) {
    .td-team-3-thumb {
        height: 250px;
        margin: 0 auto 20px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .td-team-3-wrap {
        margin-bottom: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .td-team-3-content {
        padding: 0 10px;
        width: 100%;
    }

    .td-team-3-content .td-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .td-team-3-content .td-position {
        font-size: 14px;
    }

    /* Ensure consistent centering in grid */
    .td-team-area .row > [class*="col-"] {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .td-team-3-thumb {
        height: 220px;
        margin: 0 auto 15px auto;
        max-width: 220px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .td-team-3-wrap {
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .td-team-3-content .td-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .td-team-3-content .td-position {
        font-size: 13px;
    }

    .td-team-3-social {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }

    .td-team-3-social span {
        margin: 0 8px;
    }

    /* Force equal spacing for mobile grid */
    .td-team-area .row {
        justify-content: center;
    }

    .td-team-area .row > [class*="col-"] {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
}

.td-team-3-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure consistent heights for speaker cards */
@media (min-width: 768px) {
    .td-team-3-wrap {
        min-height: 420px;
    }
}

/* Responsive adjustments */
@media (min-width: 993px) {
    .td-schedule-mobile-view {
        display: none;
    }
}

@media (max-width: 992px) {
    .td-schedule-desktop-view {
        display: none !important;
    }

    .td-schedule-mobile-view {
        display: block;
    }

    .td-room-event {
        margin: 10px 0;
        min-height: 100px;
        background: var(--td-theme-gray-black) !important;
    }

    .td-event-title {
        font-size: 13px;
    }

    .td-schedule-mobile-scroll {
        padding-bottom: 10px;
    }

}

.bottom-rectangle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--td-theme-primary);
    z-index: 2;
}

.color-icon {
    font-size: 24px !important;

    color: var(--td-theme-primary) !important;
}

.td-contact-form-area {
    margin-top: 25px;
}

.contact-area-container {
    background-color: var(--td-theme-background);
}

.about-area-container {
    background-color: var(--td-theme-background);
}

.td-lang-switcher .dropdown-menu {
    z-index: 2000;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--td-theme-primary) !important;
}

.dropdown-menu {
    background-color: var(--td-theme-background);
}

.dropdown-item {
    color: var(--td-common-white);
}

