/* Basic Reset and Font */
body, h1, h2, p, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Bengali', sans-serif;
}

body {
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #68a8d5;
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.nav-menu a {
    color: #facc15;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #fde68a;
}

.mobile-inline-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    white-space: nowrap;
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.social-icons a {
    color: #facc15;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #fde68a;
}

/* Main */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Footer */
.footer {
    background-color: #f3f4f6;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Beautified for Mobile */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
        background-color: #f9fafb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .site-title {
        font-size: 1.8rem;
        font-weight: 700;
        margin: 0.75rem 0;
        color: #333;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-menu a {
        font-size: 1rem;
        color: #216373;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background-color: #e6f2f1;
        transition: background-color 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: #cfe9e7;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #216373;
        color: white;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .social-icons a:hover {
        background-color: #1a4f50;
    }
}

.hidden {
    display: none;
}

.rotate-180 {
    transform: rotate(180deg);
}

body {
    background-image: url('/static/images/your-image.jpg');
    background-size: contain;
    background-repeat: repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: #000;
    color: white;
    min-height: 100vh;
    filter: brightness(1.3);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* Light mode text colors */
.text-dark {
    color: #333 !important;
}

/* Dark mode text colors */
.dark .text-light {
    color: #f3f4f6 !important;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.location-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2px 8px;
    transition: all 0.3s ease;
}

.location-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.prayer-time-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prayer-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.date-display {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.news-item:hover {
    background-color: #f3f4f6; /* light ash */
}

.card-logo-force-white {
  background-color: white !important;
}
/* Enhanced Dark Mode Styles */

.dark .news-item:hover {
    background-color: #1f2937; /* dark gray */
}
.dark body {
    background-color: #0f172a;
    color: #f3f4f6;
}

.dark .bg-white {
    background-color: #1e293b !important;
    color: #f3f4f6 !important;
}

.dark .bg-green-50 {
    background-color: #0f172a !important;
}

.dark .bg-green-100 {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
}

.dark .bg-gray-50 {
    background-color: #1e293b !important;
    color: #f3f4f6 !important;
}

.dark .text-gray-800 {
    color: #f3f4f6 !important;
}

.dark .text-green-800 {
    color: #86efac !important;
}

.dark .text-green-700 {
    color: #4ade80 !important;
}

.dark .text-green-700:hover {
    color: #a7f3d0 !important;
}

.dark .bg-green-800,
.dark .bg-[#157f3d] {
    background-color: #0c4a6e !important;
}

.dark .bg-gradient-to-r {
    background-image: linear-gradient(to right, #0c4a6e, #0c4a6e) !important;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

.dark .date-display,
.dark .prayer-time-display {
    color: #f3f4f6 !important;
}

.dark .prayer-highlight {
    background: rgba(255, 255, 255, 0.25);
    color: #f3f4f6;
}

.dark footer {
    color: #f3f4f6;
}

.dark footer a {
    color: #86efac;
}

.dark footer a:hover {
    color: #a7f3d0;
}

.dark .fa-twitter,
.dark .fa-facebook,
.dark .fa-youtube {
    color: #a7f3d0;
}

.dark .fa-twitter:hover,
.dark .fa-facebook:hover,
.dark .fa-youtube:hover {
    color: #dcfce7;
}

.dark .location-badge {
    background: rgba(255, 255, 255, 0.25);
}

.dark .location-badge:hover {
    background: rgba(255, 255, 255, 0.35);
}

.dark .fa-location-dot {
    color: #fca5a5;
}

.dark .fa-moon {
    color: #fcd34d;
}

.dark .fa-calendar-day {
    color: #93c5fd;
}

.dark .border-green-700 {
    border-color: #0ea5e9 !important;
}

.dark *,
.dark .text-dark {
    color: #f3f4f6 !important;
}

.dark a {
    color: #93c5fd;
}

.dark a:hover {
    color: #bfdbfe;
}

.dark .text-black {
    color: #f3f4f6 !important;
}

/* Schema.org structured data */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll-horizontal {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  pointer-events: auto;
  z-index: 10;
}
.always-black {
    color: black !important;
}