/**
 * Investro Frontend Styles
 * Password-protected investor materials interface
 */

/* Password Gate Styles */
.investor-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #1f4e79 0%, #0e1a2f 100%); */
    padding: 2rem 1rem;
}

.investor-gate-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(31, 78, 121, 0.1);
    position: relative;
}

.investor-gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 78, 121, 0.05), transparent);
    transition: left 0.6s ease;
    border-radius: 14px;
}

.investor-gate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(31, 78, 121, 0.2);
}

.investor-gate-card:hover::before {
    left: 100%;
}

.investor-gate-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1f4e79 0%, #0e1a2f 100%);
    color: white;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
}

.investor-gate-card:hover .lock-icon {
    opacity: 1;
    transform: scale(1.05);
    color: #0e1a2f;
}

.investor-gate-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.investor-disclaimer {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.investor-gate-body {
    padding: 2rem;
}

.investor-password-form {
    max-width: 300px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f4e79;
}

.form-control-investor {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-investor:focus {
    outline: none;
    border-color: #1f4e79;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

.form-control-investor.error {
    border-color: #dc3545;
}

.password-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-error i {
    font-size: 1.1rem;
}

.btn-investor-submit {
    width: 100%;
    background: linear-gradient(135deg, #1f4e79 0%, #2c5aa0 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-investor-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.3);
}

.btn-investor-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-investor-submit i {
    font-size: 1.1rem;
}

.investor-gate-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.investor-gate-footer p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.investor-gate-footer i {
    color: #1f4e79;
    margin-right: 0.5rem;
}

/* Documents Area Styles */
.investor-documents-area {
    padding: 2rem 0;
}

.investor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a365d 0%, #16325a 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.investor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(31, 78, 121, 0.05), transparent);
        background: linear-gradient(135deg, #1a365d 0%, #16325a 100%); */
    transition: left 0.5s ease;
}
/* 
.investor-header:hover {
    border-color: #1f4e79;
    box-shadow: 0 8px 25px rgba(31, 78, 121, 0.15);
    transform: translateY(-2px);
} */

.investor-header:hover::before {
    left: 100%;
}

.investor-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.section-icon {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.investor-header:hover .section-icon {
    color: #f0f8ff;
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.investor-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.investor-header:hover .investor-header-content h1 {
    color: #f0f8ff;
}

.investor-header-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.investor-header:hover .investor-header-content p {
    color: #f5f5f5;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-logout.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Disclaimer Banner */
.investor-disclaimer-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.investor-disclaimer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.investor-disclaimer-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    border-color: #e0a800;
}

.investor-disclaimer-banner:hover::before {
    left: 100%;
}

.investor-disclaimer-banner i {
    font-size: 1.5rem;
    color: #856404;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.investor-disclaimer-banner span {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

.investor-disclaimer-banner strong {
    color: #533f00;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Document Cards */
.document-card {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    /* Avoid full-card hover jitter from transforms */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Only the actual action buttons should look clickable */
    cursor: default;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 78, 121, 0.03), transparent);
    transition: left 0.4s ease;
    /* Prevent the animated overlay from ever capturing hover */
    pointer-events: none;
}

.document-card:hover {
    box-shadow: 0 12px 30px rgba(31, 78, 121, 0.2);
    border-color: #1f4e79;
}

/* Disable the sweeping overlay animation to avoid repaints/flicker on hover */
.document-card:hover::before { left: -100%; }

.document-card-video {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Document icons are now integrated into category labels */

.document-content {
    flex-grow: 1;
}

.document-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f4e79;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-category i {
    font-size: 1.5rem;
    color: #1f4e79;
    opacity: 0.9;
    flex-shrink: 0;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f4e79;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.document-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.document-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.document-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.btn-download {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #1f4e79;
    background: #1f4e79;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    /* Prevent any theme/global translate hover glitches */
    transform: none !important;
}

.btn-download,
.btn-download span,
.btn-download i {
    color: #ffffff !important;
}

.btn-download:hover {
    background: #163a5c;
    border-color: #163a5c;
    /* Avoid hover "jitter" from moving the hit area */
    box-shadow: 0 6px 16px rgba(31, 78, 121, 0.25);
    /* Ensure link hover styles from themes can't hide the label */
    color: #ffffff;
    /* Prevent any theme/global translate hover glitches */
    transform: none !important;
}

.btn-download:hover,
.btn-download:hover span,
.btn-download:hover i {
    color: #ffffff !important;
}

.btn-download.btn-watch {
    background: #28a745;
    border-color: #28a745;
    transform: none !important;
}

.btn-download.btn-watch:hover {
    background: #1e7e34;
    border-color: #1e7e34;
    color: #ffffff;
    transform: none !important;
}

.btn-download.btn-disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-download i {
    font-size: 1rem;
}

/* Keep original button styling */

/* Video Embed Container */
.video-embed-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder Styles */
.document-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

/* Placeholder icons are now in category labels */

.document-placeholder .document-title,
.document-placeholder .document-description {
    color: #6c757d;
}

.admin-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #856404;
    margin-top: 1rem;
}

.admin-notice i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Additional Resources */
.additional-resources {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-top: 3rem;
    position: relative; /* anchor ::before overlay to this section */
    overflow: hidden;   /* keep overlay inside section only */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.additional-resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 78, 121, 0.03), transparent);
    transition: left 0.5s ease;
    pointer-events: none; /* never steal hover/cursor */
}

.additional-resources:hover {
    border-color: #1f4e79;
    box-shadow: 0 8px 25px rgba(31, 78, 121, 0.15);
}

.additional-resources:hover::before {
    left: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.additional-resources h2 {
    font-size: 1.8rem;
    color: #1f4e79;
    margin: 0;
    transition: color 0.3s ease;
}

.additional-resources:hover h2 {
    color: #0e1a2f;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.05) 0%, rgba(31, 78, 121, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none; /* prevent hover/cursor flicker */
}

.resource-item:hover {
    box-shadow: 0 8px 25px rgba(31, 78, 121, 0.2);
    border-color: #1f4e79;
}

.resource-item:hover::before {
    opacity: 1;
}

.resource-item i {
    font-size: 2rem;
    color: #1f4e79;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.resource-item:hover i {
    color: #0e1a2f;
    transform: scale(1.1);
}

.resource-content {
    position: relative;
    z-index: 1;
}

.resource-content h4 {
    font-size: 1.1rem;
    color: #1f4e79;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.resource-item:hover .resource-content h4 {
    color: #0e1a2f;
}

.resource-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.resource-item:hover .resource-content p {
    color: #495057;
}

.resource-link {
    color: #1f4e79;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.resource-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f4e79;
    transition: width 0.3s ease;
}

.resource-link:hover {
    color: #0e1a2f;
}

.resource-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Password Gate Mobile */
    .investor-gate {
        padding: 1rem 0.5rem;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .investor-gate-card {
        margin: 0;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .investor-gate-header {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .lock-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .investor-gate-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .investor-disclaimer {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .investor-gate-body {
        padding: 1.5rem 1rem;
    }

    .investor-password-form {
        max-width: none;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control-investor {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .btn-investor-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .investor-gate-footer {
        padding: 1rem;
        text-align: center;
    }

    .investor-gate-footer p {
        font-size: 0.8rem;
    }

    /* Document Library Mobile */
    .investor-documents-area {
        padding: 1rem 0.5rem;
    }

    .investor-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .investor-header-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .investor-header-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .investor-header-content p {
        font-size: 1rem;
    }

    .btn-logout {
        align-self: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Disclaimer Banner Mobile */
    .investor-disclaimer-banner {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .investor-disclaimer-banner i {
        font-size: 1.2rem;
    }

    .investor-disclaimer-banner span {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Documents Grid Mobile */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .document-card {
        padding: 1.25rem;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .document-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .document-content {
        margin-bottom: 1rem;
    }

    .document-category {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .document-category i {
        font-size: 1.4rem;
    }

    .document-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .document-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .document-meta {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .document-size {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .document-actions {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .btn-download {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    /* Video Embeds Mobile */
    .video-embed-container {
        height: 180px;
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    /* Placeholder Cards Mobile */
    .document-placeholder {
        padding: 1.25rem;
        text-align: center;
    }

    .admin-notice {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    /* Resources Section Mobile */
    .additional-resources {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    .additional-resources h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-item {
        padding: 1.25rem;
        border-radius: 8px;
        text-align: center;
    }

    .resource-item i {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .resource-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .resource-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .resource-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Tablet Styles (between phone and desktop) */
@media (min-width: 481px) and (max-width: 767px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .investor-gate-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens (Phones) */
    .investor-gate {
        padding: 0.5rem;
        padding-top: 1rem;
    }

    .investor-gate-card {
        border-radius: 8px;
    }

    .investor-gate-header {
        padding: 1rem 0.75rem;
    }

    .lock-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .investor-gate-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .investor-disclaimer {
        font-size: 0.8rem;
    }

    .investor-gate-body {
        padding: 1rem 0.75rem;
    }

    .form-control-investor {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .btn-investor-submit {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .investor-gate-footer p {
        font-size: 0.75rem;
    }

    /* Document Library Extra Small */
    .investor-documents-area {
        padding: 0.75rem 0.25rem;
    }

    .investor-header {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.25rem;
    }

    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 2.2rem;
    }

    .investor-header-content h1 {
        font-size: 1.8rem;
    }

    .investor-header-content p {
        font-size: 0.95rem;
    }

    .btn-logout {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Disclaimer Banner Extra Small */
    .investor-disclaimer-banner {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .investor-disclaimer-banner span {
        font-size: 0.8rem;
    }

    /* Documents Grid Extra Small */
    .documents-grid {
        gap: 0.75rem;
    }

    .document-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .document-category {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        gap: 0.4rem;
    }

    .document-category i {
        font-size: 1.2rem;
    }

    .document-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .document-description {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .document-meta {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }

    .document-size {
        font-size: 0.75rem;
    }

    .document-actions {
        margin-top: 0.9rem;
        gap: 0.4rem;
    }

    .btn-download {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
        min-height: 44px; /* iOS touch target minimum */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch-friendly button spacing */
    .document-actions {
        gap: 0.6rem;
    }

    /* Ensure proper touch targets */
    .btn-logout,
    .resource-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Video Embeds Extra Small */
    .video-embed-container {
        height: 160px;
        margin-bottom: 0.75rem;
    }

    /* Resources Extra Small */
    .additional-resources {
        padding: 1.25rem 0.75rem;
        margin-top: 1.25rem;
    }

    .additional-resources h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .resource-item {
        padding: 1rem;
    }

    .resource-item i {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .resource-content h4 {
        font-size: 0.95rem;
    }

    .resource-content p {
        font-size: 0.8rem;
    }

    .resource-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

}
