/* InterVideo Management Flexbox Layout */

/* Full screen container - leave space for header_nav.php */
.intervideo.intervideo_outer {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/*
 * Flexbox layout: Header is natural height, bottom cards fill remaining space
 * This works on both mobile and desktop - header only takes space it needs
 */
.intervideo .intervideo_inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

/* Header: Natural height based on content */
.intervideo .card-header {
    flex: 0 0 auto;
}

/* Bottom cards wrapper: Takes all remaining vertical space */
.intervideo .cards-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
    min-height: 0;  /* Critical for flexbox scrolling */
}

/* Individual cards: Equal width, scrollable */
.intervideo .card-itemlist,
.intervideo .card-detail {
    flex: 1;
    min-height: 0;  /* Critical for flexbox scrolling */
}

/* Itemlist collapsed - narrow width */
.intervideo.layout-itemlist-collapsed .card-itemlist {
    flex: 0 0 20%;
}

.intervideo.layout-itemlist-collapsed .card-detail {
    flex: 1;
}

/* Basic card */
.intervideo .card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid #ddd;
    background: white;
    box-sizing: border-box;
    position: relative;
}

.intervideo .card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.intervideo .card .contents {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Header card - no padding in contents, no border */
.intervideo .card.card-header {
    border: none;
}

.intervideo .card.card-header .contents {
    padding: 0;
}

/* Interview name with edit icon */
.interview-name-container h2 {
    display: inline;
}

.interview-name-container .edit-name-icon {
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    color: #667eea;
    font-size: 0.7em;
    margin-left: 8px;
}

.interview-name-container:hover .edit-name-icon {
    opacity: 1;
}

.interview-name-container .edit-name-icon:hover {
    color: #5568d3;
}

/* Card controls - always inside heading-label */
.card .heading-label .controls {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.card .heading-label .controls i {
    cursor: pointer;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    color: #666;
    transition: all 0.2s;
}

.card .heading-label .controls i:hover {
    background: #667eea;
    color: white;
}

/* Darker border when hovering card */
.card:hover .heading-label .controls {
    border-color: rgba(102, 126, 234, 0.3);
}

/* Darker border and background when hovering controls directly */
.card .heading-label .controls:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header card controls - bottom right */
.intervideo .card-header .controls {
    bottom: 10px;
    right: 10px;
}

/* Itemlist and detail card controls - top right */
.intervideo .card-itemlist .controls,
.intervideo .card-detail .controls {
    top: 10px;
    right: 10px;
}

/* Modal forms */
.intervideo .card form {
    display: none;
}

.intervideo .intervideomodal-wrap>div.contents
{
    background:white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding:8px;
    max-height: 85vh;
    overflow-y:auto;
}

@media (orientation: portrait) {
    .intervideo .intervideomodal-wrap {
        padding: 0 !important; 
        top:0 !important;
        left:0 !important;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        transform: unset !important;
        min-width: unset !important;
        max-width:  unset !important;
        max-height: unset !important;
        
    }
    .intervideo .intervideomodal-wrap>div.contents {  
    }
}
.intervideo form.intervideo-modal,
.intervideo .intervideomodal-wrap {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #878787ee;
    z-index: 1001;
    padding: 100vw;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 500px;
}
 

.intervideo form.intervideo-modal h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.intervideo form.intervideo-modal .form-description {
    color: #666;
    font-size: 0.95em;
    margin: -10px 0 20px 0;
    line-height: 1.5;
}

.intervideo form.intervideo-modal .form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
}

.intervideo form.intervideo-modal .btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}

.intervideo form.intervideo-modal .btn-primary:hover {
    background: #5568d3;
}

.intervideo form.intervideo-modal .btn-secondary {
    background: #e0e0e0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.intervideo form.intervideo-modal .btn-secondary:hover {
    background: #d0d0d0;
}

.intervideo form.intervideo-modal input[type="text"],
.intervideo form.intervideo-modal input[type="email"],
.intervideo form.intervideo-modal textarea,
.intervideo form.intervideo-modal select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    background: white;
}

.intervideo form.intervideo-modal input[type="text"]:focus,
.intervideo form.intervideo-modal input[type="email"]:focus,
.intervideo form.intervideo-modal textarea:focus,
.intervideo form.intervideo-modal select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.intervideo form.intervideo-modal .field-help {
    font-size: 0.85em;
    color: #888;
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.intervideo form.intervideo-modal .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Question list item configuration icons */
.intervideo .question-config-icons {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
    font-size: 0.9em;
}

.intervideo .question-config-icons i {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.intervideo .question-config-icons i.active {
    opacity: 1;
}

.intervideo .question-config-icons i.config-collab-enabled {
    color: #4caf50;
}

.intervideo .question-config-icons i.config-collab-single {
    color: #667eea;
}

.intervideo .question-config-icons i.config-collab-no {
    color: #f44336;
}

.intervideo .question-config-icons i.config-pending {
    color: #ffc107;
}

.intervideo .question-config-icons i.config-published {
    color: #4caf50;
}

/* Setup Wizard */
.setup-wizard {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-step {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center;
    transition: all 0.3s;
}

.wizard-step.completed {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.wizard-step.pending {
    background: #f5f5f5;
    border-left: 4px solid #e0e0e0;
}

.wizard-step.ready {
    background: #e3f2fd;
    border-left: 4px solid #667eea;
}

.wizard-step.locked {
    background: #fafafa;
    border-left: 4px solid #e0e0e0;
    opacity: 0.6;
}

.wizard-step .step-icon {
    font-size: 2.5em;
    text-align: center;
}

.wizard-step.completed .step-icon {
    color: #4caf50;
}

.wizard-step.pending .step-icon {
    color: #bdbdbd;
}

.wizard-step.ready .step-icon {
    color: #667eea;
}

.wizard-step.locked .step-icon {
    color: #e0e0e0;
}

.wizard-step .step-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2em;
}

.wizard-step .step-content p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.wizard-step .step-content .step-status {
    margin-top: 8px;
    color: #555;
    font-size: 0.9em;
}

.wizard-step .step-action button {
    padding: 10px 24px;
    min-width: 100px;
}

/* Generic Reusable Components */

/*
 * Form Section - UNIVERSAL container for all forms and info displays
 *
 * Use .form-section to wrap ANY form or information display (settings, modals, landing pages, etc.)
 * Structure: .form-section > div (field rows) > label + input/select/textarea/span
 *
 * Before customizing for specific contexts, consider if the change should apply globally.
 * Use modifier classes (.form-section-large, div.inline, div.actions) for variations.
 */
.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Headings inside form-section */
.form-section > h2,
.form-section > h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-section > h4 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

/* Form description/instructions */
.form-section .form-description {
    color: #666;
    font-size: 0.95em;
    margin: -10px 0 20px 0;
    line-height: 1.5;
}

/* Base row styling - all direct child divs */
.form-section > div {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Labels */
.form-section > div > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #666;
    font-size: 0.95em;
}

/* Editable fields */
.form-section > div > input[type="text"],
.form-section > div > input[type="email"],
.form-section > div > select,
.form-section > div > textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    background: white;
}

.form-section > div > input:focus,
.form-section > div > select:focus,
.form-section > div > textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-section > div > select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Read-only values */
.form-section > div > span {
    display: block;
    padding: 8px 0;
    color: #333;
    font-size: 1em;
}

.form-section > div > span strong {
    color: #667eea;
    font-weight: 600;
}

.form-section > div > span.value-none {
    color: #999;
    font-style: italic;
}

/* Field help text */
.form-section .field-help {
    font-size: 0.85em;
    color: #888;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Form buttons - inherits row styling, overrides what it needs */
.form-section .form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    border-bottom: none;
    padding-bottom: 0;
}

.form-section .form-buttons .btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}

.form-section .form-buttons .btn-primary:hover {
    background: #5568d3;
}

.form-section .form-buttons .btn-secondary {
    background: #e0e0e0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.form-section .form-buttons .btn-secondary:hover {
    background: #d0d0d0;
}

/* Form footer - notes/info at bottom */
.form-section .form-footer {
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
    padding-top: 15px;
    padding-bottom: 0;
    margin-top: 5px;
    color: #999;
    font-size: 0.9em;
}

.form-section .form-footer strong {
    color: #333;
}
 
 
.form-section > div.inline > label,
.form-section-inline > div > label {
    margin-bottom: 0;
    padding-top: 8px;
    white-space: nowrap;
    padding-right:8px;
}
 
 
 
.form-section > div.inline > * {
    display:revert;
}
 
 
.form-section.form-section-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px;
    row-gap: 0;
    align-items: start;
} 
.form-section.form-section-inline > div {
    display: grid;
    grid-template-columns: subgrid; /* Inherit parent's column sizing */
    grid-column: 1 / -1; /* Span all parent columns */
}
 
.form-section.form-section-compact {
    padding: 10px;
    margin-bottom: 10px;
}
 
.form-section > div.compact,
.form-section.form-section-compact > div {
    margin-bottom: 0;
    padding-bottom: 0;
}
 
.form-section.form-section-compact h2,
.form-section.form-section-compact h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Modifier: actions - button/link row without label */
.form-section > div.actions {
    text-align: right;
    border-bottom: none;
    padding-bottom: 0;
}

.form-section > div.actions.left {
    text-align: left;
}

.form-section > div.actions.center {
    text-align: center;
}

/* Modifier: large - bigger inputs and labels for public-facing forms */
.form-section-large > div > label {
    font-size: 1.1em;
}

.form-section-large > div > input[type="text"],
.form-section-large > div > input[type="email"],
.form-section-large > div > textarea {
    padding: 20px;
    font-size: 1.3em;
    border: 2px solid #ddd;
}

.form-section-large > h2,
.form-section-large > h3 {
    font-size: 1.8em;
}

/* Card label heading - subtle context indicator */
.card-label-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0; 
}

.card-label-heading .icon {
    font-size: 1em;
    color: #999;
}

.card-label-heading .label {
    font-size: 0.9em;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card heading label - flexible container for labels, controls, or both, right-aligned */
.card .heading-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Header card - no vertical margin/padding on heading-label */
.card.card-header .heading-label {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.card .heading-label .icon {
    font-size: 1em;
    color: #999;
}

.card .heading-label .label {
    font-size: 0.9em;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .heading-label .controls {
    display: flex;
    gap: 15px;
    margin-left: 15px;
}

/* Instruction text - guidance that can appear in any context */
.instruction {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.instruction i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

.instruction h3 {
    font-size: 1.5em;
    margin: 20px 0 10px 0;
    color: #333;
}

.instruction p {
    font-size: 1em;
    line-height: 1.6;
    margin: 10px 0;
}

.instruction small {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

/* Primary CTA - main action we want user to take */
.cta-primary {
    text-align: center;
    padding: 20px;
}

.cta-primary i {
    font-size: 3em;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-primary i:hover {
    color: #5568d3;
    transform: scale(1.1);
}

/* Secondary CTA - alternative actions */
.cta-secondary {
    text-align: center;
    padding: 15px;
}

.cta-secondary i {
    font-size: 2em;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-secondary i:hover {
    color: #667eea;
}

/* Mobile: stack vertically, header is natural height */
@media (max-width: 767px) {
    .intervideo .cards-wrapper {
        flex-direction: column;
    }

    .intervideo .card-itemlist,
    .intervideo .card-detail {
        width: 100%;
    }
}

/* ===== HEADER TOOLBAR & ICONS ===== */

/* Toolbar positioning */

/* ===== HEADER CONTENT CARD ===== */

/* Header content layout */
.header-content {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.interview-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #667eea;
    flex-shrink: 0;
}

.interview-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.interview-details {
    flex: 1;
}

.interview-name {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

.interview-name .edit-icon {
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    font-size: 0.7em;
    margin-left: 10px;
}

.header-content:hover .edit-icon {
    opacity: 0.8;
}

.interview-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.95;
}

.meta-item i {
    font-size: 12px;
}

/* ===== LANDING PAGE STYLES ===== */

.interview-landing .interview-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.interview-landing .interview-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.interview-landing .interview-hero p {
    font-size: 1.2em;
    margin-bottom: 0;
    opacity: 0.95;
}

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

.interview-landing .interview-cta-section {
    background: white;
    padding: 60px 20px;
    text-align: center;
}

.interview-landing .interview-cta-box {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.interview-landing .interview-cta-box h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

.interview-landing .interview-cta-box p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #666;
}

.interview-landing .interview-benefits {
    padding: 80px 20px;
    background: #f8f9fa;
}

.interview-landing .interview-benefits h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #333;
}

.interview-landing .interview-benefits-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.interview-landing .interview-benefit-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.interview-landing .interview-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.interview-landing .interview-benefit-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
}

.interview-landing .interview-benefit-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #667eea;
}

.interview-landing .interview-benefit-card p {
    color: #666;
    line-height: 1.8;
}

.interview-landing .interview-features {
    padding: 80px 20px;
    background: white;
}

.interview-landing .interview-features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #333;
}

.interview-landing .interview-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.interview-landing .interview-feature-item {
    text-align: center;
    padding: 30px;
}

.interview-landing .interview-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
}

.interview-landing .interview-feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}

.interview-landing .interview-feature-item p {
    color: #666;
}

.interview-landing .interview-final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.interview-landing .interview-final-cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2em;
}

.interview-landing .interview-final-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
}

.interview-landing .interview-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: #667eea;
    color: white;
}

.interview-landing .interview-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102,126,234,0.3);
}

.interview-landing .interview-btn-white {
    background: white;
    color: #667eea;
    max-width: 300px;
    margin: 0 auto;
}

.interview-landing .interview-login-info {
    margin: 30px 0;
}

.interview-landing .interview-back-link {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

.interview-landing .interview-back-link a {
    color: #667eea;
    text-decoration: none;
}

.interview-landing .interview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.interview-landing .interview-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.interview-landing .interview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.interview-landing .interview-card-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

.interview-landing .interview-card-role {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 10px;
    align-self: flex-start;
}

.interview-landing .interview-card-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.interview-landing .interview-card-code {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.interview-landing .interview-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
    margin-top: auto;
}

.interview-landing .interview-card-link:hover {
    background: #5568d3;
}

.interview-landing form input[type="text"] {
    width: 100%;
    padding: 20px;
    font-size: 1.3em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.interview-landing form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.interview-landing .interview-section-header {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.interview-landing .interview-signin-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.interview-landing .interview-signin-link p {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.interview-landing .interview-signin-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.interview-landing .interview-signin-link a:hover {
    text-decoration: underline;
}

.interview-landing form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .interview-landing .interview-hero {
        padding: 25px 15px;
    }

    .interview-landing .interview-hero h1 {
        font-size: 1.8em;
    }

    .interview-landing .interview-hero p {
        font-size: 1em;
    }

    .interview-landing .interview-benefit-card {
        flex: 0 0 280px;
    }

    .interview-landing form input[type="text"] {
        padding: 15px;
        font-size: 1.1em;
    }

    .interview-landing .interview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== RESPONSIVE HELPER CLASSES ===== */

/* Portrait/Mobile - hide on portrait */
@media (orientation: portrait) {
    .portrait-hide {
        display: none !important;
    }
}

/* Portrait/Mobile - show only on portrait */
.portrait-only {
    display: none;
}
@media (orientation: portrait) {
    .portrait-only {
        display: block;
    }
}

/* Landscape/Desktop - hide on landscape */
@media (orientation: landscape) {
    .landscape-hide {
        display: none !important;
    }
}

/* Landscape/Desktop - show only on landscape */
.landscape-only {
    display: none;
}
@media (orientation: landscape) {
    .landscape-only {
        display: block;
    }
}

/* ===== MOBILE/PORTRAIT OPTIMIZATIONS ===== */

@media (orientation: portrait) {
    /* Header content - tighter spacing */
    .header-content {
        padding: 10px;
        margin-bottom: 0;
        gap: 10px;
    }

    /* Interview name - smaller, no extra spacing */
    .interview-name {
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* Interview icon - smaller */
    .interview-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Meta items - much tighter */
    .interview-meta {
        gap: 8px;
        font-size: 12px;
    }

    .meta-item {
        gap: 4px;
    }

    /* Itemlist - compact "Add First Question" */
    .instruction {
        padding: 20px 10px;
    }

    .instruction i {
        font-size: 32px;
    }

    .instruction h3 {
        font-size: 1.2em;
        margin: 10px 0 5px 0;
    }

    .instruction p {
        font-size: 0.9em;
    }
}

/* ===== QUESTION SELECTED STATE ===== */

/* When a question is selected, .intervideo gets .question-selected class */
/* This allows us to style the entire interface based on selection state */

/* Example: Hide itemlist when question is selected on mobile */
@media (orientation: portrait) {
    .intervideo.question-selected .card-itemlist {
        display: none;
    }

    .intervideo.question-selected .card-detail {
        width: 100%;
    }
}
