/* Additional Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #00a85a 0%, #00a85a 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #ffd700;
}

.breadcrumb span {
    margin: 0 10px;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.content-box h2 {
    color: #00a85a;
    margin-bottom: 30px;
    font-size: 28px;
}

.content-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-text {
    line-height: 1.8;
    color: #555;
}

.content-text h3 {
    color: #00a85a;
    margin: 25px 0 15px;
}

.content-text ul, .content-text ol {
    margin: 15px 0 15px 20px;
}

.content-text li {
    margin: 10px 0;
}

.content-text p {
    margin-bottom: 15px;
}

/* Filter Kategori */
.filter-kategori {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-kategori a {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-kategori a:hover,
.filter-kategori a.active {
    background: #00a85a;
    color: #fff;
    border-color: #00a85a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover,
.pagination a.active {
    background: #00a85a;
    color: #fff;
    border-color: #00a85a;
}

/* Berita Detail */
.detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.berita-detail {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.detail-kategori {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.berita-detail h1 {
    font-size: 32px;
    color: #00a85a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.detail-meta i {
    margin-right: 5px;
}

.detail-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
}

.detail-content {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.detail-content h2, .detail-content h3 {
    color: #00a85a;
    margin: 25px 0 15px;
}

.detail-content ul, .detail-content ol {
    margin: 15px 0 15px 20px;
}

.detail-content li {
    margin: 10px 0;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-share span {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-btn.fb {
    background: #3b5998;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.wa {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    background: #f8f9fa;
    padding: 50px 40px;
    border-radius: 15px;
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #00a85a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,168,90,0.15);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.1);
}

.related-info {
    padding: 20px;
}

.related-kategori {
    display: inline-block;
    background: #00a85a;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.related-card h4 {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.5;
    margin: 12px 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

.related-date i {
    font-size: 14px;
}

/* Galeri Page */
.galeri-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.galeri-item-page {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.galeri-item-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.galeri-item-page img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeri-item-page:hover img {
    transform: scale(1.1);
}

.galeri-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 30px 20px 20px;
}

.galeri-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.galeri-info .galeri-kategori {
    font-size: 13px;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    padding: 40px 20px;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-caption {
    text-align: center;
    color: #fff;
}

.modal-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-caption p {
    font-size: 16px;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #ffd700;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Ekstrakurikuler Page */
.ekskul-intro {
    background: linear-gradient(135deg, #e7f7ee 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid #e6f0e9;
}

.intro-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00a85a;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
}

.ekskul-intro h2 {
    margin-bottom: 12px;
}

.ekskul-intro p {
    color: #555;
    margin-bottom: 20px;
    max-width: 720px;
}

.intro-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ekskul-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #00a85a;
    padding: 15px 18px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    min-height: 68px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e6f7ef;
    color: #00a85a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-number {
    font-weight: 700;
    color: #1f2933;
}

.stat-label {
    color: #69737d;
    font-size: 13px;
}

.ekskul-tabs-page {
    justify-content: flex-start;
    margin: 20px 0 16px;
    padding-bottom: 4px;
}

.ekskul-detail-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 30px 0 40px;
    border-left: 6px solid #00a85a;
}

.detail-header {
    display: flex;
    gap: 18px;
    align-items: center;
}

.detail-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00a85a, #00c968);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.detail-badge {
    display: inline-block;
    background: #e6f7ef;
    color: #00a85a;
    padding: 6px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.detail-pill {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-weight: 600;
}

.detail-list {
    margin-top: 20px;
}

.detail-list h3 {
    color: #00a85a;
    margin-bottom: 10px;
}

.detail-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list i {
    color: #00a85a;
}

.ekskul-desc {
    color: #666;
    font-size: 14px;
    margin: 6px 0 10px;
    min-height: 40px;
}

.ekskul-card.active {
    border-color: #00a85a;
    box-shadow: 0 12px 28px rgba(0, 168, 90, 0.18);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .content-box,
    .berita-detail,
    .related-posts {
        padding: 25px;
    }
    
    .berita-detail h1 {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-grid,
    .galeri-grid-page {
        grid-template-columns: 1fr;
    }
    
    .modal-content-wrapper {
        padding: 20px 10px;
    }
    
    .modal-close {
        right: 15px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ekskul-intro {
        grid-template-columns: 1fr;
    }
    
    .ekskul-stats {
        grid-template-columns: 1fr;
    }
}
