/* Modern Layout Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Breadcrumb */
.modern-breadcrumb {
    background: linear-gradient(135deg, #d13250 0%, #3b3b79 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.modern-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.breadcrumb-wrapper {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb li a:hover {
    color: #ffd700;
    text-decoration: none;
}

.breadcrumb li.active {
    color: #ffd700;
    font-weight: 600;
}

/* Main Layout */
.main-content.modern-layout {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c83252, #30306e);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #c83252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 300;
}

.stats-summary {
    text-align: center;
}

.stat-item {
    background: linear-gradient(90deg, #c83252, #30306e);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Enhanced Pagination Info */
.pagination-info-modern {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #c83252;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #30306e;
    font-size: 14px;
}

.info-content i {
    color: #30306e;
}

.highlight {
    color: #30306e;
    font-weight: 600;
}

.page-indicator {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #30306e;
}

/* Content Layouts */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card Styles */
.program-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    backface-visibility: hidden;
}

.program-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(59 59 121 / 52%), rgb(209 50 80 / 64%));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover .image-overlay {
    opacity: 1;
}

.view-link {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.program-card:hover .view-link {
    transform: translateY(0);
}

.view-link i {
    font-size: 2rem;
}

.date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 0.8rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    min-width: 60px;
}

.date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #c83252;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.date-badge .year {
    display: block;
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin-top: 0.1rem;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    /* font-size: 1.1rem; */
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c83252;
    text-decoration: none;
    font-weight: 600;
    /* font-size: 0.9rem; */
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--info-color);
    transform: translateX(5px);
}

/* Sidebar Styles */
.sidebar-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.widget-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.widget-header {
    background: linear-gradient(90deg, #c83252, #30306e);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    padding: 1.5rem;
}

/* Event Items */
.event-item-modern {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.event-item-modern:last-child {
    margin-bottom: 0;
}

.event-item-modern:hover {
    background: var(--light-color);
    border-color: rgba(200, 50, 82, 0.3);
    transform: translateX(8px);
}

/* No Results Styles */
.no-results-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-results-content {
    text-align: center;
    max-width: 500px;
}

.no-results-icon {
    margin-bottom: 24px;
}

.no-results-icon i {
    font-size: 64px;
    color: #e9ecef;
    transition: var(--transition);
}

.no-results-modern:hover .no-results-icon i {
    color: linear-gradient(90deg, #c83252, #30306e);
}

.no-results-modern h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.no-results-modern p {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 32px;
    line-height: 1.6;
}

.no-results-action {
    margin-top: 24px;
}

.no-results-modern .btn-primary {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #c83252, #30306e);
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.no-results-modern .btn-primary:hover {
    background: linear-gradient(90deg, #c83252, #30306e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 95, 43, 0.2);
}

.no-results-modern .btn-primary i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content.modern-layout {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .page-title {
        font-size: 2rem;
    }

    .pagination-info-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .no-results-modern {
        min-height: 300px;
        padding: 32px 16px;
    }

    .no-results-icon i {
        font-size: 48px;
    }

    .no-results-modern h3 {
        font-size: 20px;
    }

    .no-results-modern p {
        font-size: 14px;
    }

    .no-results-modern .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .card-content {
        padding: 1rem;
    }

    .event-item-modern {
        flex-direction: column;
        text-align: center;
    }

    .event-date-modern {
        align-self: center;
    }
}

/* Print Styles */
@media print {

    .sidebar-modern,
    .pagination-wrapper-modern {
        display: none;
    }

    .program-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Pagination Card Styles */
.pagination-wrapper-modern {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.pagination-summary {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.pagination-summary p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-modern {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-modern .page-item {
    margin: 0;
}

.pagination-modern .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 500;
}

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

.pagination-modern .page-link:hover:not(.dots) {
    background: #e9ecef;
    color: #c83252;
    border-color: #c83252;
    transform: translateY(-2px);
}

.pagination-modern .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-modern .dots {
    background: transparent;
    cursor: default;
}

.pagination-modern .page-link i {
    font-size: 0.875rem;
}