/* Layout wrapper for full-width content */
.interests-container {
    width: 100%;
    min-height: 80vh;
}

/* Full-width content styling */
.interests-content-full {
    width: 100%;
    padding: 40px;
}

/* Font size adjustments for My Interests section */
.interests-content-full h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.interests-content-full .intro-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

/* Grid Layout for Index Page */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive */
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Compact, outlined card style for interest sub-topic grids */
.interest-card {
    border: 1.5px solid #b0b8c5 !important;
    border-radius: 10px;
}

.interest-card .card-body {
    padding: 10px 14px;
}

.interest-card .card-title {
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.interest-card .card-text {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.interest-card:hover {
    border-color: #6c757d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Navigation Style Previews */

/* Option 1: Modern Minimal Breadcrumb */
.breadcrumb-modern {
    margin: 0;
}

.breadcrumb-modern-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-modern-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-modern-list li a {
    color: #6c757d;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-modern-list li a:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.breadcrumb-modern-list .separator {
    color: #adb5bd;
    margin: 0 4px;
    font-weight: 300;
}

.breadcrumb-modern-list .current {
    color: #212529;
    font-weight: 500;
    padding: 4px 8px;
}

/* Option 2: Professional Tab-Style Navigation */
.nav-tabs-style {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.nav-tab {
    padding: 8px 16px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #0d6efd;
    background-color: #e9ecef;
}

.nav-tab.active {
    background-color: #0d6efd;
    color: white;
}

.tab-separator {
    color: #adb5bd;
    margin: 0 8px;
    font-size: 0.8rem;
}

/* Option 3: Inline Navigation Bar */
.nav-bar-style {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 2px;
}

.nav-bar-content {
    background: white;
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.nav-bar-item {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-bar-item:hover {
    color: #667eea;
}

.nav-bar-item.current {
    color: #212529;
    font-weight: 600;
}

.nav-bar-divider {
    color: #dee2e6;
    margin: 0 12px;
    font-weight: 300;
}

/* Option 4: Breadcrumb with Icons */
.breadcrumb-icons {
    margin: -3.5rem 0 2rem 0;
}

/* Move article content higher */
.breadcrumb-icons+article,
.breadcrumb-icons+.mb-5 {
    margin-top: -0.5rem !important;
}

.breadcrumb-icons-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-icons-list li {
    display: flex;
    align-items: center;
    margin-right: 24px;
}

.breadcrumb-icons-list li i {
    color: #6c757d;
    margin-right: 8px;
    font-size: 0.8rem;
}

.breadcrumb-icons-list li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-icons-list li a:hover {
    color: #0d6efd;
}

.breadcrumb-icons-list .current {
    color: #212529;
    font-weight: 500;
}

.breadcrumb-icons-list .current i {
    color: #0d6efd;
}

/* Article content fullscreen controls */
.article-fullscreen-container {
    position: relative;
}

.article-fullscreen-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-fullscreen-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1050;
}

.article-fullscreen-overlay.is-open {
    display: flex;
}

.article-fullscreen-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.article-fullscreen-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    border-radius: 999px;
}

/* Infographic Zoom Controls */
.infographic-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: grab;
    background-color: #f8f9fa;
    user-select: none;
    touch-action: none;
    min-height: 300px;
}

.infographic-zoom-container:active {
    cursor: grabbing;
}

.infographic-zoom-image {
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.infographic-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.infographic-controls .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #dee2e6;
    color: #212529;
    font-size: 1.1rem;
}

.infographic-controls .btn:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.zoom-level-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.zoom-level-badge.show {
    opacity: 1;
}