/* from layout.blade.php */
img.blog-thumbnail:hover {
    scale: 105%;
    transition: all 0.5s;
}

.nav-link:hover {
    color: #dc3545;
}

.dropdown-item:hover {
    color: #dc3545;
}

.dropdown-item:active {
    background: #F4F4F4;
}

.loc-item:hover {
    color: #dc3545 !important;
}

.loc-item>a:hover {
    color: #dc3545 !important;
}

.loc-item:active {
    background: #F4F4F4;
}

/* from home.blade.php and view_1.blade.php */
.custom-table th,
td {
    font-size: 16px;
}

.custom-card-title {
    font-size: 28px;
}

@media (max-width: 768px) {
    .custom-card-title {
        font-size: 24px
    }

    .custom-table a {
        font-size: 8px;

    }

    .custom-table th,
    td {
        font-size: 11px;
        line-height: 1.6;
    }

    .custom-table .btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .custom-table table {
        width: 100%;
    }


    .custom-table td[style*="font-size: 11px"] {
        font-size: 10px;
    }
}

/* from hot_news.blade.php */
.blog-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.hover-card {
    transition: all 0.3s ease;
}

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

.card-img-top {
    height: 200px;
}

.card-img-top img {
    transition: transform 0.5s ease;
}

.hover-card:hover .card-img-top img {
    transform: scale(1.05);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    color: inherit;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

#loadMoreBtn {
    position: relative;
    overflow: hidden;
}

#loadMoreBtn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#loadMoreBtn:hover::after {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .featured-image {
        height: 250px;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* from view_1.blade.php */
div#content h2 {
    font-size: 20px !important;
}

div#content h3 {
    font-size: 16px !important;
}

/* from view_2.blade.php */
.network-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.divider {
    height: 4px;
    width: 80px;
    background-color: #dc3545;
    border-radius: 2px;
}

.network-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.network-card .card-header {
    position: relative;
}

.network-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-icon i {
    font-size: 18px;
}

.toc-container .card {
    transition: transform 0.3s ease;
}

.toc-container .card:hover {
    transform: translateY(-3px);
}

.toc-container a {
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.toc-container a:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.content-styled h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.content-styled h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.content-styled p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-styled ul, .content-styled ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.content-styled li {
    margin-bottom: 0.5rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.05);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .network-container {
        padding: 1rem 0;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .info-icon {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
    }
    
    .content-styled h2 {
        font-size: 1.5rem;
    }
    
    .content-styled h3 {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Styles for Homepage Swiper */
.category-swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 40px; /* space for pagination */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    
    /* Make slides have equal height */
    height: auto;
    background: transparent; /* Make slide background transparent */
}

.swiper-slide .card {
    width: 100%;
}

.swiper-pagination-bullet-active {
    background-color: #dc3545 !important;
}

/* Styles for new, cleaner Category Header */
.category-header-link {
    text-decoration: none;
    color: inherit;
}

.category-header {
    display: flex;
    align-items: center;
    background-color: #ffffff; /* White background */
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Softer shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-thumbnail {
    width: 100px; /* Fixed width */
    height: 60px; /* Fixed height */
    object-fit: cover; /* Crop image to fit */
    border-radius: 0.375rem;
    margin-right: 1.5rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    color: #dc3545; /* Brand color for emphasis */
}

.category-title {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 600;
    margin-bottom: 0; /* Remove default margin */
    color: inherit; /* Inherit color from wrapper */
}

@media (max-width: 768px) {
    .category-header {
        padding: 0.75rem;
    }
    .category-title {
        font-size: 1.2rem; /* Even smaller on mobile */
    }
    .category-thumbnail {
        width: 80px;
        height: 50px;
        margin-right: 1rem;
    }
}

/* Styles for Blog Index Page */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-img {
    height: 200px;
    object-fit: cover;
}

.category-filter-bar .btn.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Customizing Laravel Pagination */
.pagination .page-item .page-link {
    color: #dc3545;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

.pagination .page-item:hover .page-link {
    background-color: #f8d7da;
    border-color: #dc3545;
}
