body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 80px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

a:hover {
    text-decoration: none;
}

a, a:hover, a:focus {
    text-decoration: none !important;
}

.btn, .btn:hover, .btn:focus {
    text-decoration: none !important;
}

.rotate-icon {
    transition: transform 0.3s ease;
}
button[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

.movie-card-title {
    color: #007bff;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

a:hover .movie-card-title {
    color: #0056b3;
}

th {
    font-weight: 600;
    padding-right: 8px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #000;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 1px;
}

.ui-autocomplete-loading {
    background: white url('data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==') right 10px center no-repeat;
}

.ui-autocomplete ul {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ui-autocomplete li {
    font-family: inherit;
    border-bottom: 1px solid #c5c5c5;
    overflow: hidden;
}

.ui-autocomplete li a {
    display: inline-block;
    width: 100%;
}

.ui-autocomplete li a:hover {
    color: #0056b3;
}

.ui-autocomplete .thumbnail {
    width: 35px;
    height: 35px;
    border: 1px solid #c5c5c5;
    margin-right: 6px;
    float: left;
    overflow: hidden;
}

.ui-autocomplete span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

table.dataTable td {
    font-size: 12px;
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-all;
}

#subtitles-table {
    border: 2px solid #007bff !important;
    border-radius: 8px !important;
    overflow: hidden;
    border-collapse: separate !important;
}

#subtitles-table thead th {
    background-color: #f0f7ff !important;
    font-weight: 600 !important;
    border-top: none !important;
    border-left: none !important;
    border-bottom: 2px solid #007bff !important;
    border-right: 1px solid #007bff !important;
}

#subtitles-table thead th:first-child {
    border-left: none !important;
}

#subtitles-table thead th:last-child {
    border-right: none !important;
}

#subtitles-table tbody td {
    border-top: none !important;
    border-left: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-right: 1px solid #007bff !important;
}

#subtitles-table tbody td:first-child {
    border-left: none !important;
}

#subtitles-table tbody td:last-child {
    border-right: none !important;
}

.table-responsive {
    border-radius: 8px;
}

.hover-shadow:hover {
    box-shadow: 0 2px 8px rgba(0,123,255,0.25);
    transform: translateY(-1px);
    transition: all 0.2s;
}

.toolbar {
    float: left;
}

.modal-body p {
    word-wrap: break-word;
    word-break: break-all;
}

/* Blog Styles */
.blog-hero {
    position: relative;
    margin: 30px 0 40px 0;
}

.blog-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    border-radius: 0 0 8px 8px;
}

.blog-hero-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.blog-hero-excerpt {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-content {
    padding: 16px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card-title:hover {
    color: #0056b3;
    text-decoration: none;
}

.blog-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-meta {
    font-size: 12px;
    color: #999;
}

.blog-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    color: #333;
}

/* Blog Post Elements */
.blog-post {
    line-height: 1.7;
    color: #333;
    margin-top: 30px;
}

.blog-post h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
    line-height: 1.2;
}

.blog-post h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 16px 0;
    color: #333;
    border-left: 4px solid #007bff;
    padding-left: 16px;
}

.blog-post h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 12px 0;
    color: #444;
}

.blog-post h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #555;
}

.blog-post p {
    margin-bottom: 20px;
    font-size: 16px;
}

.blog-post strong {
    font-weight: 700;
    color: #222;
}

.blog-post em {
    font-style: italic;
    color: #555;
}

.blog-post a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.blog-post a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
    text-decoration: none;
}

.blog-post del {
    text-decoration: line-through;
    color: #888;
}

.blog-post u {
    text-decoration: underline;
    text-decoration-color: #007bff;
}

.blog-post blockquote {
    position: relative;
    background: #ffffff;
    border-left: 4px solid #007bff;
    margin: 32px 0;
    padding: 20px 24px 20px 32px;
    font-style: italic;
    color: #444;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 17px;
    line-height: 1.7;
}

.blog-post blockquote:before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 32px;
    color: #007bff;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.7;
}

.blog-post blockquote p:last-child {
    margin-bottom: 0;
}

.blog-post blockquote cite {
    display: block;
    text-align: right;
    margin-top: 16px;
    font-style: normal;
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

.blog-post blockquote cite:before {
    content: '— ';
    color: #666;
}

.blog-post ul, .blog-post ol {
    margin: 20px 0;
    padding-left: 24px;
}

.blog-post li {
    margin-bottom: 8px;
}

.blog-post .blog-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post .image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 24px;
}

.blog-.post code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #d63384;
}

.blog-post pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.blog-post pre code {
    background: none;
    padding: 0;
    color: #212529;
}

.blog-post .video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-post .highlight-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.blog-post .highlight-box h4 {
    color: #1976d2;
    margin-top: 0;
}

.blog-post .code-title {
    background: #212529;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

.blog-post .code-title + pre {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Excerpt/Lead Paragraph */
.blog-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin: 24px 0 32px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    font-weight: 400;
}

/* Breadcrumb Styles */
.blog-breadcrumb {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 14px;
}

.blog-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #0056b3;
}

.blog-breadcrumb .separator {
    margin: 0 8px;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    padding-top: 30px;
}

.post-nav-link {
    display: block;
    padding: 16px 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.post-nav-link:hover {
    border-color: #007bff;
    text-decoration: none;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.post-nav-direction {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.post-nav-title {
    font-weight: 600;
    margin: 0;
}

/* Categories Page */
.category-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--category-color);
    transition: width 0.3s ease;
}

.category-card:hover {
    border-color: var(--category-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.category-card:hover:before {
    width: 8px;
}

.category-name {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.category-description {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.category-count {
    font-size: 14px;
    color: var(--category-color);
    font-weight: 500;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

.dataTables_filter input {
    border: 2px solid #007bff !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}
/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile Offcanvas Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #343a40;
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #212529;
    border-bottom: 1px solid #495057;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-nav-close:hover {
    color: #ffe100;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #495057;
}

.mobile-nav-list > li > a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li.active > a {
    background-color: #495057;
    color: #ffe100;
}

.mobile-nav-list > li > a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.mobile-nav-divider {
    height: 1px;
    background-color: #495057;
    margin: 0.5rem 0;
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
    position: relative;
}

.mobile-nav-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-nav-dropdown > a:hover {
    background-color: #495057;
    color: #ffe100;
}

.mobile-nav-dropdown-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.85rem;
}

.mobile-nav-dropdown.active .mobile-nav-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-nav-dropdown-content {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #2c3136;
    transition: max-height 0.3s ease;
}

.mobile-nav-dropdown.active .mobile-nav-dropdown-content {
    max-height: 500px;
}

.mobile-nav-dropdown-content li {
    border-bottom: 1px solid #495057;
}

.mobile-nav-dropdown-content li:last-child {
    border-bottom: none;
}

.mobile-nav-dropdown-content li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.mobile-nav-dropdown-content li a:hover {
    background-color: #495057;
    color: #ffe100;
    padding-left: 1.75rem;
}

/* Hide mobile nav on desktop */
@media (min-width: 992px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}
