/* ============================================
 *  MODERN PAGE STYLES FOR MEDU CONTENT PAGES
 *  Version: 2026
 * ============================================ */

/* ============================================
 *  1. MODERN SECTION CONTAINERS
 * ============================================ */
#section-contents {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%);
    /* min-height: 100vh; */
}

/* ============================================
 *  2. MODERN PAGE HEADERS
 * ============================================ */
.page-header-modern {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.page-header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00349a 0%, #0047cc 100%);
    border-radius: 2px;
}

.page-header-modern h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #393e46;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.page-header-modern h6 {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
 *  3. MODERN NEWS/CONTENT CARDS
 * ============================================ */
.news-card-modern {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    position: relative;
}

.news-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00349a 0%, #0047cc 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.news-card-modern:hover::before {
    transform: scaleX(1);
}

.news-card-modern .card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.news-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-modern:hover .card-image img {
    transform: scale(1.1);
}

.news-card-modern .card-content {
    padding: 2rem;
}

.news-card-modern .card-category {
    display: inline-block;
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 52, 154, 0.3);
}

.news-card-modern .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #393e46;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-modern .card-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-modern .card-excerpt {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-card-modern .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00349a;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-modern .read-more:hover {
    color: #0047cc;
    gap: 0.75rem;
}

/* ============================================
 *  4. MODERN CONTENT ARTICLE LAYOUT
 * ============================================ */
.article-content-modern {
    background: #ffffff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.article-content-modern h1,
.article-content-modern h2,
.article-content-modern h3,
.article-content-modern h4 {
    color: #393e46;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content-modern h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.article-content-modern h2 {
    font-size: 1.875rem;
}

.article-content-modern h3 {
    font-size: 1.5rem;
}

.article-content-modern p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.25rem;
}

.article-content-modern img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.article-content-modern ul,
.article-content-modern ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content-modern li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content-modern blockquote {
    border-left: 4px solid #00349a;
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #495057;
}

.article-content-modern a {
    color: #00349a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content-modern a:hover {
    color: #0047cc;
    border-bottom-color: #0047cc;
}

/* ============================================
 *  5. MODERN SIDEBAR
 * ============================================ */
.sidebar-modern {
    position: sticky;
    top: 100px;
}

.sidebar-widget-modern {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.sidebar-widget-modern .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #393e46;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00349a;
}

.sidebar-widget-modern ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget-modern ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-widget-modern ul li:last-child {
    border-bottom: none;
}

.sidebar-widget-modern ul li:hover {
    padding-left: 0.75rem;
    background: linear-gradient(90deg, rgba(0, 52, 154, 0.05) 0%, transparent 100%);
}

.sidebar-widget-modern ul li a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-widget-modern ul li:hover a {
    color: #00349a;
}

/* ============================================
 *  6. MODERN BREADCRUMB
 * ============================================ */
.breadcrumb-modern {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-modern .breadcrumb {
    background: rgba(0, 52, 154, 0.05);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
}

.breadcrumb-modern .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #00349a;
    font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: #00349a;
}

/* ============================================
 *  7. MODERN PAGINATION
 * ============================================ */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-modern .page-item {
    list-style: none;
}

.pagination-modern .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-modern .page-link:hover {
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 52, 154, 0.3);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 52, 154, 0.3);
}

/* ============================================
 *  8. MODERN TABLE STYLES
 * ============================================ */
.table-modern {
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.table-modern thead {
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
}

.table-modern th {
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    text-align: left;
}

.table-modern td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: rgba(0, 52, 154, 0.05);
}

/* ============================================
 *  9. MODERN TABS
 * ============================================ */
.tabs-modern {
    margin-bottom: 2rem;
}

.tabs-modern .nav-tabs {
    border: none;
    gap: 0.5rem;
}

.tabs-modern .nav-tabs .nav-link {
    border: none;
    background: #f8f9fa;
    color: #495057;
    padding: 1rem 2rem;
    border-radius: 0.75rem 0.75rem 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tabs-modern .nav-tabs .nav-link:hover {
    background: rgba(0, 52, 154, 0.1);
    color: #00349a;
}

.tabs-modern .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 52, 154, 0.3);
}

.tabs-modern .tab-content {
    background: #ffffff;
    border-radius: 0 0.75rem 0.75rem 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ============================================
 *  10. MODERN SEARCH RESULTS
 * ============================================ */
.search-results-modern {
    margin-top: 2rem;
}

.search-result-item {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(10px);
}

.search-result-item h3 {
    color: #393e46;
    margin-bottom: 0.75rem;
}

.search-result-item h3 a {
    color: #393e46;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-result-item h3 a:hover {
    color: #00349a;
}

.search-result-item .search-url {
    color: #00adb5;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.search-result-item .search-description {
    color: #6c757d;
    line-height: 1.6;
}

/* ============================================
 *  11. MODERN CONTACT PAGE
 * ============================================ */
.contact-info-modern {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(0, 52, 154, 0.05);
    transform: translateX(10px);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #00349a;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 52, 154, 0.1);
    border-radius: 50%;
}

.contact-form-modern {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form-modern .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-modern label {
    font-weight: 500;
    color: #393e46;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: none;
    border-color: #00349a;
    box-shadow: 0 0 0 3px rgba(0, 52, 154, 0.1);
}

.contact-form-modern button[type="submit"] {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #00349a 0%, #0047cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 52, 154, 0.3);
}

.contact-form-modern button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 52, 154, 0.4);
}

/* ============================================
 *  12. RESPONSIVE DESIGN
 * ============================================ */
@media (max-width: 768px) {
    .page-header-modern h1 {
        font-size: 2rem;
    }
    
    .article-content-modern {
        padding: 2rem 1.5rem;
    }
    
    .sidebar-modern {
        position: static;
        margin-top: 2rem;
    }
    
    .news-card-modern .card-image {
        height: 200px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-header-modern h1 {
        font-size: 1.75rem;
    }
    
    .article-content-modern {
        padding: 1.5rem 1rem;
    }
    
    .pagination-modern .page-link {
        width: 40px;
        height: 40px;
    }
}
