/* 
    #40b968 main color
*/

/* =====================
   Global Styles
   ===================== */
.pageAll {
    background: #fff;
    min-height: 100vh;
}

.section {
    padding: 80px 0;
}

.section.grey {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* =====================
   Section Labels
   ===================== */
.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(64, 185, 104, 0.1);
    color: #40b968;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-label i {
    margin-right: 5px;
}

/* =====================
   Text Header
   ===================== */
.textHeader {
    font-family: 'nt-b' !important;
    color: #40b968 !important;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
}

/* =====================
   Header Section
   ===================== */
.header-section {
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(64, 185, 104, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 185, 104, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* =====================
   Mosque Badge (Green Badge with White Text)
   ===================== */
.mosque-badge {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mosque-badge-content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #40b968 0%, #2d8a4d 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(64, 185, 104, 0.35);
    font-family: 'nt-b' !important;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mosque-badge-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerGlow 3s infinite;
}

@keyframes shimmerGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.mosque-badge-content:hover {
    box-shadow: 0 10px 35px rgba(64, 185, 104, 0.45);
    transform: translateY(-2px);
}

.mosque-badge-content i.bi-building {
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mosque-badge-text {
    color: white;
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skeleton-text-inline {
    display: inline-block;
    height: 20px;
    width: 200px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.5) 20%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    vertical-align: middle;
}

.btn-close-badge {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    padding: 0;
    margin-left: 8px;
}

.btn-close-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.btn-close-badge i {
    line-height: 1;
}

/* Responsive Design for Mosque Badge */
@media (max-width: 768px) {
    .mosque-badge-content {
        font-size: 1rem;
        padding: 10px 20px;
        gap: 10px;
    }

    .mosque-badge-content i.bi-building {
        font-size: 1.1rem;
    }

    .mosque-badge-text {
        max-width: 250px;
    }

    .skeleton-text-inline {
        width: 150px;
    }

    .btn-close-badge {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .mosque-badge-content {
        font-size: 0.9rem;
        padding: 8px 16px;
        gap: 8px;
    }

    .mosque-badge-text {
        max-width: 180px;
    }

    .skeleton-text-inline {
        width: 120px;
    }
}

/* =====================
   Search Section
   ===================== */
.search-section {
    padding: 40px 0;
}

.search-wrapper {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-wrapper .input-group {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #40b968;
}

.search-wrapper .input-group-text {
    padding: 10px 15px;
    margin-left: 5px;
}

.search-wrapper .form-control {
    border-radius: 0 !important;
    box-shadow: none !important;
     border-left: none !important;
    border-right: none !important;
    color: #333;
    padding: 12px 15px;
}

.search-wrapper .form-control:focus {
    border-color: #40b968 !important;
    box-shadow: none !important;
}

.search-wrapper .btn-success {
    background: linear-gradient(135deg, #40b968 0%, #2d8a4d 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-wrapper .btn-success:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(64, 185, 104, 0.3);
}

/* =====================
   News Section
   ===================== */
.news-section {
    padding-bottom: 80px;
}

/* =====================
   Skeleton Loading Animation
   ===================== */
.skeleton-card {
    animation: fadeIn 0.5s ease-in;
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    width: 100%;
}

.skeleton-title.short {
    width: 60%;
}

.skeleton-date {
    height: 16px;
    width: 40%;
    margin-top: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.skeleton-card > .card {
    border: solid 1px #f3f3f3b6;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Hide skeleton when content loads */
.content-loaded .skeleton-card {
    display: none;
}

/* =====================
   News Cards
   ===================== */
.newGroup {
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.newGroup > .card {
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    background: white;
}

.newGroup > .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(64, 185, 104, 0.2);
}

.newImage {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #40b968 0%, #6bce8c 100%);
    overflow: hidden;
    position: relative;
}

.newImage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.newImage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.newGroup > .card:hover .newImage > img {
    transform: scale(1.1);
}

.newGroup .card-body {
    padding: 20px;
}

.newTitle {
    font-family: 'nt' !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: 48px;
    margin-bottom: 12px;
}

.newDate {
    font-family: 'nt' !important;
    color: #40b968 !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.newDate::before {
    content: '📅';
    font-size: 0.9rem;
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple items */
.newGroup:nth-child(1) { animation-delay: 0.1s; }
.newGroup:nth-child(2) { animation-delay: 0.2s; }
.newGroup:nth-child(3) { animation-delay: 0.3s; }
.newGroup:nth-child(4) { animation-delay: 0.4s; }
.newGroup:nth-child(5) { animation-delay: 0.5s; }
.newGroup:nth-child(6) { animation-delay: 0.6s; }
.newGroup:nth-child(7) { animation-delay: 0.7s; }
.newGroup:nth-child(8) { animation-delay: 0.8s; }
.newGroup:nth-child(9) { animation-delay: 0.9s; }
.newGroup:nth-child(10) { animation-delay: 1.0s; }
.newGroup:nth-child(11) { animation-delay: 1.1s; }
.newGroup:nth-child(12) { animation-delay: 1.2s; }

/* =====================
   Empty State
   ===================== */
#emptyState i {
    opacity: 0.3;
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 991px) {
    .textHeader {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .textHeader {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .search-section {
        padding: 30px 0;
    }
    
    .newImage {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .textHeader {
        font-size: 1.5rem;
    }
    
    .section-label {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .search-wrapper .btn-success {
        padding: 12px 20px;
    }
}