.blog-container {
    position: relative;
    padding-top: 80px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.blog-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.05) 0%, rgba(227, 24, 55, 0) 100%);
    pointer-events: none;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box .input-group:focus-within {
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
    transform: translateY(-2px);
}

.search-box .input-group-text {
    background-color: #fff;
    border-right: none;
    color: #e31837;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.search-box .form-control {
    border-left: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.search-box .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #e31837;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-box .search-btn:hover {
    background: #c31530;
    transform: translateY(-50%) scale(1.05);
}

.search-box .search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-box .search-btn i {
    transition: all 0.3s ease;
}

.search-box.loading .search-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.search-box .form-control:focus + .input-group-text {
    color: #c31530;
}

.search-box .form-control::placeholder {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.search-box .form-control:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.search-loading {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: #e31837;
    animation: spin 1s linear infinite;
}

.search-box.loading .search-loading {
    display: block;
}

.questions-list {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.question-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}

.question-item::before,
.question-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #e31837;
    transition: width 0.4s ease;
}

.question-item::before {
    top: 0;
    left: 0;
}

.question-item::after {
    bottom: 0;
    right: 0;
}

.question-item .border-left,
.question-item .border-right {
    position: absolute;
    width: 2px;
    height: 0;
    background: #e31837;
    transition: height 0.4s ease;
}

.question-item .border-left {
    top: 0;
    left: 0;
}

.question-item .border-right {
    bottom: 0;
    right: 0;
}

.question-item:hover::before,
.question-item:hover::after,
.question-item.active::before,
.question-item.active::after {
    width: 100%;
}

.question-item:hover .border-left,
.question-item:hover .border-right,
.question-item.active .border-left,
.question-item.active .border-right {
    height: 100%;
}

.question-item:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.15);
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.question-item.active {
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.2);
    animation: activeItemPulse 2s infinite;
}

@keyframes activeItemPulse {
    0% {
        box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
        border-color: rgba(227, 24, 55, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(227, 24, 55, 0.4);
        border-color: rgba(227, 24, 55, 0.8);
    }
    100% {
        box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
        border-color: rgba(227, 24, 55, 0.5);
    }
}

.question-item h6 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-right: 25px;
}

.question-item:hover h6 {
    color: #e31837;
    transform: translateX(8px);
    text-shadow: 0 2px 4px rgba(227, 24, 55, 0.1);
}

.question-item.active h6 {
    color: #e31837;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(227, 24, 55, 0.15);
}

/* Content Area Styles */
.content-area {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.question-title {
    font-size: 1.75rem;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.question-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e31837;
    border-radius: 2px;
}

.question-content {
    color: #495057;
    line-height: 1.7;
}

.question-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.question-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.question-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #e31837;
    border-radius: 50%;
}

.question-image {
    margin: 20px 0;
    cursor: pointer;
}

.question-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.question-image img:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: transparent;
    border: none;
    pointer-events: auto;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin: auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1060;
    padding: 10px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1060;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        margin-bottom: 30px;
    }
    
    .content-area {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding-top: 60px;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
}

/* Custom Scrollbar */
.questions-list::-webkit-scrollbar {
    width: 8px;
}

.questions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.questions-list::-webkit-scrollbar-thumb {
    background: #e31837;
    border-radius: 4px;
}

.questions-list::-webkit-scrollbar-thumb:hover {
    background: #c31530;
} 