:root {
    /* Cores inspiradas na Bandeira e Identidade Institucional de Cabo Verde */
    --cv-blue: #003893;
    --cv-red: #CE1126;
    --cv-white: #FFFFFF;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --sidebar-width: 280px;
    --primary-color: #0d6efd;
    --youtube-red: #FF0000;
    --yt-dark: #212121;
    --glass-bg: #ffffff;
}

/* Layout Structure */
#wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* Sidebar Styling */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #fff;
    color: #333;
    transition: all 0.3s;
    border-right: 1px solid #e2e8f0;
    min-height: 100vh;
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow-y: auto;
    }
    #sidebar.active { margin-left: 0; }
    #content { width: 100% !important; }
}

.nav-item-header {
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f1f3f5;
    margin-top: 10px;
}

.nav-link-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.8s;
}

.nav-link-custom:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fdfdfd;
}

.submenu-link {
    display: block;
    padding: 10px 40px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.8s;
}

.submenu-link:hover, .submenu-link.active {
    color: var(--primary-color);
    background: #f0f7ff;
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}

    /* Main Content */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.topbar {
    height: var(--topbar-height);
    background: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
}

/* Cards Modernos */
.interview-card {
    border: none;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.interview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 56, 147, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.interview-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Overlay do Botão Play */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 56, 147, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.interview-card:hover .play-overlay {
    opacity: 1;
}

.btn-play-circle {
    width: 60px;
    height: 60px;
    background-color: var(--cv-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.4);
    transition: transform 0.2s;
}

.btn-play-circle:hover {
    transform: scale(1.1);
    color: white;
}

/* Badges e Texto */
.badge-category {
    background-color: var(--cv-blue);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.0rem;
    margin-top: 10px;
    line-height: 1.4;
    /* Limitar a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Toggle Button */
#sidebarCollapse {
    display: none;
    margin-bottom: 20px;
}

@media (max-width: 991.98px) {
    #sidebarCollapse {
        display: contents;
    }
}

.cta-youtube-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.yt-card {
    background: var(--glass-bg);
    border-radius: 100px;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
}

.yt-card:hover {
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.2);
}

.yt-left-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0; /* Permite que o flex child encolha se necessário */
}

.yt-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--youtube-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.yt-text-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.yt-text-inline h3 {
    margin: 0;
    font-weight: 700;
    color: var(--yt-dark);
    font-size: 1.1rem;
    white-space: nowrap;
}

.yt-text-inline p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    border-left: 1px solid #ddd;
    padding-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-yt-subscribe {
    background: var(--yt-dark);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-yt-subscribe:hover {
    background: var(--youtube-red);
    color: white;
    transform: scale(1.03);
}

.book-content a, i {
    /* color:; */
    font-size: 13pt;
    /* font-weight: 500; */
    padding-bottom: 0px;
    padding-left: 0px;
}

/* Ajustes de Responsividade para manter a linha o máximo possível */
@media (max-width: 1200px) {
    .yt-text-inline p {
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    .yt-text-inline p {
        display: none; /* Remove a descrição em ecrãs pequenos para não quebrar a linha */
    }
}

@media (max-width: 576px) {
    .yt-card {
        padding: 8px 15px;
        gap: 10px;
    }
    .yt-text-inline h3 {
        font-size: 0.95rem;
    }
    .btn-yt-subscribe {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}