/* ========================================
   CUSTOM STYLES FOR TAHSIN KKSS THEME
   ======================================== */

/* Header & Navigation */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding .site-title {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-branding h1,
.site-branding .site-title-text {
    color: #ff1a1a;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background-color: rgba(255,255,255,0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.85), rgba(30, 58, 95, 0.85));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.slider-prev,
.slider-next {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.5);
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    justify-content: center;
    background: var(--bg-light);
}

.about-content-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.about-card {
    padding: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
}

.about-card-header h2 {
    margin-bottom: 5px;
}

.about-card-subtitle {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.about-card-body {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 25px;
}

.about-card-body h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card-body p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.about-highlights {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.highlight-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.highlight-label {
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.highlight-description {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Instructor Section */
.instructor-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.instructor-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    aspect-ratio: 4 / 5;
    background-color: #f7f7f7;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: var(--transition);
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}


.instructor-position {
    color: var(--accent-color);
    font-weight: 600;
    margin: 10px 0;
}

.instructor-bio {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Program Section */
.programs-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    text-align: center;
    padding: 30px;
}

.program-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.program-day {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Article Section */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.article-image img {
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: darkblue;
    font-weight: 700;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--secondary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding-top: 15px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Video Section */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.video-link {
    position: relative;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}

.video-link:hover .video-play-overlay {
    color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.2);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Video section – vertical scroll (2 baris terlihat) */
.videos-scroll-wrapper {
    max-height: 820px;  /* ~2 baris kartu (gambar 250px + body + gap 30px) */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.videos-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.videos-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.videos-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color, #1e3a8a);
    border-radius: 4px;
}

.videos-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color, #3b82f6);
}

/* Footer */
.site-footer {
    color: var(--text-light);
    margin-top: 60px;
}

.footer-content {
    padding: 60px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget-title {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget p {
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 3px;
}

.contact-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-content p {
    margin: 5px 0;
    color: rgba(255,255,255,0.7);
}

.server-time {
    font-size: 0.9rem;
    margin-top: 10px !important;
}

/* Single Post */
.single-post-area,
.page-area {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: darkblue;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-meta a {
    color: darkblue;
    text-decoration: none;
    transition: var(--transition);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.tags-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-links i {
    color: var(--accent-color);
}

.tags-links a {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tags-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: white;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.post-navigation a:hover .nav-subtitle {
    color: rgba(255,255,255,0.8);
}

.nav-title {
    font-weight: 600;
    color: var(--primary-color);
}

.post-navigation a:hover .nav-title {
    color: white;
}

.nav-next a {
    text-align: right;
}

/* Sidebar */
.widget-area {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #eee;
}

.comments-title {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form {
    margin-top: 40px;
}

.comment-form label,
.comment-notes,
.comment-form p {
    color: darkblue;
    font-weight: 700;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.3);
}

/* Pagination */
.pagination {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--secondary-color);
}

/* 404 Page */
.error-404-area {
    padding: 100px 0;
    text-align: center;
}

.error-404-icon {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 8rem;
    color: var(--primary-color);
    margin: 0;
}

.error-404-subtitle {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 20px 0;
}

.error-404-text {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.error-404-actions {
    margin: 40px 0;
}

.error-404-search {
    max-width: 500px;
    margin: 40px auto 0;
}

.error-404-search h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-navigation.active {
        max-height: 500px;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card[style*="grid-column"] {
        grid-column: 1 / -1 !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next a {
        text-align: left;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .error-404-title {
        font-size: 5rem;
    }
    
    .error-404-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-left"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Komunitas Tahsin - Members Table Styles */
.komunitas-tahsin-page .members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.komunitas-tahsin-page .members-table thead {
    background: #2c5530;
    color: #fff;
}

.komunitas-tahsin-page .members-table th {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #1e3d22;
    font-weight: 600;
}

.komunitas-tahsin-page .members-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.komunitas-tahsin-page .members-table tbody tr:nth-child(odd) {
    background: #fff;
}

.komunitas-tahsin-page .members-table tbody tr:hover {
    background: #e8f5e9;
    transition: background 0.3s ease;
}

.komunitas-tahsin-page .members-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.komunitas-tahsin-page .members-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    .komunitas-tahsin-page .members-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .komunitas-tahsin-page .members-table {
        min-width: 600px;
    }
    
    .komunitas-tahsin-page .members-table th,
    .komunitas-tahsin-page .members-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Modal Mutiara Hikmah */
.mutiara-hikmah-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mutiara-hikmah-modal.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.mutiara-hikmah-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mutiara-hikmah-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mutiara-hikmah-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--primary-color, #1e3a8a);
    background: linear-gradient(135deg, var(--primary-color, #1e3a8a), var(--secondary-color, #3b82f6));
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.mutiara-hikmah-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.mutiara-hikmah-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
}

.mutiara-hikmah-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mutiara-hikmah-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.mutiara-hikmah-content {
    line-height: 1.8;
    color: var(--text-color, #333);
    font-size: 1rem;
}

.mutiara-hikmah-content p {
    margin-bottom: 15px;
}

.mutiara-hikmah-content p:last-child {
    margin-bottom: 0;
}

/* Mutiara Hikmah – WYSIWYG (bold, italic, underline, color) */
.mutiara-hikmah-content strong,
.mutiara-hikmah-content b {
    font-weight: 700;
}

.mutiara-hikmah-content em,
.mutiara-hikmah-content i {
    font-style: italic;
}

.mutiara-hikmah-content u {
    text-decoration: underline;
}

/* Button spacing */
.video-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-card .card-body .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.video-card .card-body .mutiara-hikmah-btn {
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .mutiara-hikmah-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .mutiara-hikmah-modal-header {
        padding: 15px 20px;
    }
    
    .mutiara-hikmah-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .mutiara-hikmah-modal-body {
        padding: 20px;
    }
}