/* Palestine Theme Styles for Menu and Footer */

/* Navbar Palestine Theme */
.navbar-palnus {
    background-color: #000000; /* Black background */
    border-bottom: 3px solid #007a3d; /* Green border bottom */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-palnus .navbar-brand img.logo {
    max-height: 60px;
    filter: drop-shadow(0 0 2px #a82020); /* subtle red shadow */
}

.navbar-palnus .navbar-nav .nav-link {
    color: #ffffff; /* White text */
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-palnus .navbar-nav .nav-link:hover,
.navbar-palnus .navbar-nav .nav-link.active {
    color: #d62e2e; /* Red on hover and active */
    text-decoration: underline;
}

.navbar-palnus .navbar-nav .nav-link i {
    color: #7bbf8a; /* Light green icons */
    margin-right: 5px;
}

.navbar-palnus .navbar-nav .nav-item.dropdown .dropdown-menu {
    background-color: #007a3d; /* Dark green background */
    border: none;
    min-width: 180px;
}

.navbar-palnus .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item {
    color: #ffffff;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.navbar-palnus .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #a33a3a; /* Red hover */
    color: #ffffff;
}

/* Navbar toggler icon color */
.navbar-palnus .navbar-toggler {
    border-color: #7bbf8a;
}

.navbar-palnus .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%237bbf8a' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Footer Palestine Theme */
.palestine-footer {
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 4px solid #a33a3a; /* Red border top */
}

.palestine-footer .footer-logo img {
    filter: drop-shadow(0 0 3px #7bbf8a); /* green glow */
}

.palestine-footer p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.palestine-footer .social-icons a {
    color: #7bbf8a; /* Light green icons */
    transition: color 0.3s ease;
}

.palestine-footer .social-icons a:hover {
    color: #a33a3a; /* Red on hover */
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #a33a3a; /* Red background */
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px #a33a3a;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn:hover {
    background-color: #7bbf8a; /* Green on hover */
    color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-palnus .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    .palestine-footer p {
        font-size: 0.85rem;
    }
}

/* Palestine style for main container for better readability */
main.container {
    background-color: #f9f9f9; /* Light background for reading */
    color: #222222; /* Dark text for contrast */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
    max-width: 900px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Palestine style for Rekomendasi Artikel section */
.recommended-articles {
    background-color: #f5f7f6; /* Soft light background */
    border: 2px solid #a3c1a1; /* Soft green border */
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 0 12px rgba(163, 193, 161, 0.3); /* Soft green shadow */
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Palestine style for main article section to visually separate from recommended articles */
.main-article-section {
    background-color: #ffffff; /* White background */
    border: 2px solid #d6b3b3; /* Soft red border */
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 0 15px rgba(211, 161, 161, 0.3); /* Soft red shadow */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.recommended-articles h2 {
    color: #a33a3a; /* Red color for heading */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.recommended-article-card {
    background-color: #f0f8f5;
    border: 1px solid #7bbf8a; /* Light green border */
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommended-article-card:hover {
    box-shadow: 0 0 15px rgba(163, 58, 58, 0.6); /* Red glow on hover */
}

.recommended-article-title {
    color: #007a3d; /* Dark green title */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.recommended-article-intro {
    color: #555555;
    font-size: 0.95rem;
    flex-grow: 1;
}

.recommended-article-link {
    text-decoration: none;
}

.recommended-article-link:hover .recommended-article-title {
    color: #a33a3a; /* Red on hover */
}

/* Related Posts Section Styles matching https://designing-world.com/news10-v2.0/single.html */

.related-post-wrapper {
    padding: 2rem 0;
    background-color: #f9f9f9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    
}

@keyframes palestineBorderAnimation {
    0% {
        border-color: #007a3d;
    }
    33% {
        border-color: #f4d35e;
    }
    66% {
        border-color: #d62e2e;
    }
    80% {
        border-color: #007a3d;
    }
}

.content-article {  
  
    max-width: 100%;
    margin-left: auto;
    margin-right: auto; 
    padding: 0px; 
    border-radius: 8px;
    box-shadow: none;
    animation: palestineBorderAnimation 3s linear infinite;
} 

.content-article iframe {
    width: 100%;
    height: 450px;
    display: block;
    margin: 1rem 0;
    border: none;
}

.related-post-wrapper .newsten-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.single-trending-post {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.single-trending-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-trending-post.d-flex {
    display: flex;
    align-items: center;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    margin-left: 1rem;
    flex-grow: 1;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #a33a3a;
    text-decoration: underline;
}

.post-meta {
    font-size: 0.85rem;
    color: #777777;
    display: flex;
    gap: 1rem;
}

.post-meta a {
    color: #777777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #a33a3a;
    text-decoration: underline;
}

/* Optional video icon overlay if needed */
.video-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: rgba(163, 58, 58, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 10;
}

/* Highlight block background for divs with rtl direction or rtl class */
div[dir="rtl"], div.rtl {
    background-color: #FFF8DC; /* Kitab Kuning style yellow background */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.theme-quote {
    font-style: italic !important;
    border-left: 4px solid #a33a3a;
    padding-left: 1rem;
    color: #555555 !important;
    margin-bottom: 0.5rem;
    background-color: #f9f9f9;
}

.palestine-description {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
    background-color: #f0f8f5;
    border-left: 6px solid #007a3d;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 122, 61, 0.2);
}

.video-title {
    color: #a33a3a;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(163, 58, 58, 0.6);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.video-title:hover {
    color: #7bbf8a;
    text-shadow: 2px 2px 6px rgba(123, 191, 138, 0.8);
    cursor: default;
}
