/* Custom styles for the Guias y Manuales screen */

.guias-portal {
    background-color: #f7f7f7;
    padding-top: 1px;
    padding-bottom: 1px;
}

.category-nav {
    margin-bottom: 25px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.category-btn {
    font-family: var(--font-family) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #495057;
    border: none;
    background: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.category-btn:hover {
    background-color: #e9ecef;
    color: var(--base-color-brand--orange-crayola) !important;
}

.category-btn.active {
    background-color: #1e2233;
    color: #ffffff;
    font-weight: 700 !important;
}

.guide-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #1e2233;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-icon {
    font-size: 24pt;
    color: #1e2233;
    margin-bottom: 15px;
}

.guide-title {
    font-family: var(--font-family) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1e2233 !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

.guide-category {
    font-size: 8.5pt;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.guide-meta {
    font-family: var(--font-family) !important;
    font-size: 12px !important;
    color: #868e96 !important;
    margin-bottom: 15px;
}

.guide-action-btn {
    width: 100%;
    font-family: var(--font-family);
    font-size: 10pt;
    font-weight: bold;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Video Player section styling */
.player-container {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    padding: 25px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Modal and Captcha styling */
.serial-modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.serial-modal-header {
    background-color: #1e2233;
    color: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.captcha-img-box {
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
    height: 50px;
    display: inline-block;
}

.captcha-img-box img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Sidebar list items specific font styles and layout resets */
.guias-portal .custom-portal-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.guias-portal .custom-portal-sidebar ul li,
.guias-portal .custom-portal-sidebar ul li span {
    font-family: var(--font-family) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Maintain bold formatting for highlighted warnings (lblInfo3) */
.guias-portal #lblInfo3 {
    font-weight: bold !important;
}

/* Specific overrides to prevent global site.css from blowing up guide card elements */
.guias-portal .guide-card div,
.guias-portal .guide-card span,
.guias-portal .guide-card i {
    font-family: var(--font-family);
}

/* Restore FontAwesome font-family for icons inside the portal */
.guias-portal .guide-card i.fa-solid,
.guias-portal .guide-card i.fas,
.guias-portal .guide-card i.far,
.guias-portal .guide-card i.fa-regular,
.guias-portal .guide-card i.fa-brands,
.guias-portal .badge i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: inherit !important;
    display: inline-block !important;
}

/* Fix guide category size */
.guias-portal .guide-category {
    font-size: 11px !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
}

/* Fix badge font size and alignment */
.guias-portal .badge {
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

/* Fix guide icon font size and background */
.guias-portal .guide-icon {
    font-size: 20px !important;
    color: #1e2233 !important;
    margin-bottom: 0px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #f0f4f8 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

/* Fix guide action button styling */
.guias-portal .guide-action-btn {
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    background-color: var(--base-color-brand--orange-crayola) !important;
    color: #ffffff !important;
    border: 1px solid var(--base-color-brand--orange-crayola) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.guias-portal .guide-action-btn:hover {
    background-color: #1e2233 !important;
    border-color: #1e2233 !important;
    color: #ffffff !important;
}

/* Styling for card in custom portal sidebar to match the main guide card borders */
.guias-portal .custom-portal-sidebar .card {
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
}

/* Title styling overrides to match index page typography */
.guias-portal .title {
    font-family: var(--font-family) !important;
    font-size: 1.5rem !important;
    color: #1e2233;
    font-weight: 800 !important;
}

.guias-portal .custom-portal-sidebar .title {
    font-family: var(--font-family) !important;
    font-size: 1.25rem !important;
    color: #1e2233 !important;
    font-weight: 700 !important;
}

/* Remove vertical border on full-width columns on the guias page */
.guias-portal .custom-portal-col-form {
    border-right: none !important;
}

/* Styling for the validation modal to match the official design */
.serial-modal-content {
    font-family: var(--font-family) !important;
}

.serial-modal-content .modal-title {
    font-family: 'Noto Serif', serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.serial-modal-content p.normal {
    font-family: var(--font-family) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #4b5563 !important;
}

.serial-modal-content .form-label {
    font-family: var(--font-family) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1e2233 !important;
}

.serial-modal-content .form-control {
    font-family: var(--font-family) !important;
    font-size: 0.95rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
}

.serial-modal-content .form-control:focus {
    border-color: var(--base-color-brand--orange-crayola) !important;
    box-shadow: 0 0 0 0.2rem rgba(245, 96, 64, 0.25) !important;
}

.serial-modal-content .btn-link {
    font-family: var(--font-family) !important;
    font-size: 0.9rem !important;
    color: var(--base-color-brand--orange-crayola) !important;
    font-weight: 600 !important;
}

.serial-modal-content #btnModalCancelar {
    font-family: var(--font-family) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
}

.serial-modal-content #btnModalCancelar:hover {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
}

.serial-modal-content #btnModalValidar {
    font-family: var(--font-family) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background-color: var(--base-color-brand--orange-crayola) !important;
    border-color: var(--base-color-brand--orange-crayola) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.serial-modal-content #btnModalValidar:hover {
    background-color: #1e2233 !important;
    border-color: #1e2233 !important;
}
