/* Custom CSS for Arabic News Website */

/* Global Styles */
* {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.7;
    font-size: 16px;
}


 .card-container {
            display: flex;
            gap: 25px;
            justify-content: center;
        }
        
        .left-card {
            flex: 1;
            color: white;
            border-radius: 15px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            justify-content: center;

            
        }
         .right-cards {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .card2 {
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
h1
{
    text-align: center;
}
.navbar {
    background: #5b6474;
      background: rgba(90, 100, 120, 0.5); /* semi-transparent background for readability 

  /*background: rgba(0, 0, 0, 0.5); /* semi-transparent background for readability */
  border-radius: 10px;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .nav-link.active {
  color: #ffd700 !important; /* highlight active link */
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}
.my_container
{
    width:90% !important;
      margin: 0 auto; /* centers horizontally */
          margin-top: 50px;

}

.artist-profile {
    max-width: 1200px;
}



@media (max-width: 992px) {
            .card-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .left-card, .right-cards {
                width: 100%;
            }
            
            .left-column {
                padding: 15px;
            }
        }
        
        /* Responsive design for mobile devices */
        @media (max-width: 576px) {
            body {
                padding: 10px;
            }
            
            .left-card {
                width: 100% !important;
                margin: 0 auto;
            }
            
            .right-cards {
                width: 100%;
            }
            
            .left-column h2 {
                font-size: 20px;
            }
            
            .left-column .intro {
                font-size: 15px;
                line-height: 1.7;
            }
            
            .right-content h1 {
                font-size: 24px;
            }
        }
        
        

.study_abstract
{
    font-weight: 400;
    font-size: 30px;
line-height: 80px;

border-left: 5px solid #ff0000; /* 5px width, solid style, red color */
  padding-left: 15px; /* Add some padding so text doesn't touch border */
}


.artist-profile .social-links a {
    color: #6c757d;
    transition: color 0.3s ease;
}

.artist-profile .social-links a:hover {
    color: #0d6efd;
}

.artist-profile .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-profile .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.artist-profile .card-title i {
    color: #6c757d;
}

/* For the image gallery */
[data-fancybox] {
    transition: transform 0.3s ease;
}

[data-fancybox]:hover {
    transform: scale(1.03);
}


.card {
  display: flex;
  flex-direction: column;
  height: 300px; /* fixed height */
  justify-content: flex-end; /* push content to bottom */
}

.card:hover .overlay {
    opacity: 1 !important;
}


.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%; /* fill .card-body container */

    justify-content: flex-start;

}


.card-body2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%; /* fill .card-body container */


}



.card:hover .study-title {
  display: none;
}


.study-title
{
    font-size: 30px;
}
/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header-section {
    background: #FFF;
    /*background: linear-gradient(135deg, #f89819 0%, #764ba2 100%);*/
  /*  box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.header-section .navbar {
    padding: 1rem 0;
}


/* Fix image dimensions inside slider */
.slider-image-container {
    height: 500px; /* Set fixed height for all images */
    overflow: hidden;
    position: relative;
}

.slider-image-container img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Crop image to fit */
}

/* Carousel caption styling */
.carousel-caption {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    right: 0;
    left: 0;
    text-align: center !important;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 8px;
}

.slide-title {
    font-size: 1.5rem;
    line-height: 1.4;
    max-height: 3.6em; /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .carousel-caption {
        display: none; /* Hide on small screens if needed */
    }
}


.carousel-caption {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.card-title {
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-img-top {
    height: 250px;
    width: 100%;
}


.truncate-multi {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  direction: rtl;
   color: #000;
    text-decoration: none;
    text-align: center;
}


/* Slider Image Wrapper */
.slider-img-wrapper {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust based on desired height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure image fills the wrapper */
.slider-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit container */
    display: block;
}




.navbar-brand {
    font-size: 1.8rem;
    color: white !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffd700 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffd700;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Breaking News */
.breaking-news {
    overflow: hidden;
}

.breaking-text {
    font-weight: 500;
    animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Featured Article */
.featured-article {
    margin-bottom: 2rem;
}

.featured-article .card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.featured-article .card-img-top {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article .card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-article .card-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* News Cards */
.news-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.news-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card .card:hover .card-img-top {
    transform: scale(1.03);
}

.news-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.news-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
}

/* Sidebar Widgets */
.sidebar-widget .card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-widget .card-header {
    border: none;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.sidebar-widget .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    padding: 1rem 1.25rem;
    transition: background-color 0.2s ease;
}

.sidebar-widget .list-group-item:hover {
    background-color: #f8f9fa;
}

.sidebar-widget .list-group-item:last-child {
    border-bottom: none;
}

/* Weather Widget */
.weather-info i {
    margin-bottom: 1rem;
}

.weather-info h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Ad Placeholder */
.ad-placeholder {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

/* Social Media Buttons */
.social-share .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    margin-top: 3rem;
}

.footer h5, .footer h6 {
    color: white;
}

.footer .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #ffd700 !important;
}

.footer .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
}

.footer .input-group .btn {
    border-radius: 0 25px 25px 0;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-article .card-title {
        font-size: 1.3rem;
    }
    
    .news-card .card-title {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .breaking-news {
        font-size: 0.9rem;
    }
    
    .social-share {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .featured-article .card-img-top {
        height: 200px;
    }
    
    .news-card .card-img-top {
        height: 150px;
    }
    
    .footer .text-end {
        text-align: start !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
    outline: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}