
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Arial', sans-serif;
            background: white;
            min-height: 100vh;
        }
        
        /* Green background only on mobile */
        @media (max-width: 768px) {
            body {
                background: linear-gradient(135deg, #2c5530 0%, #1a3d1e 50%, #0f2411 100%);
            }
        }

        .header {
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
            padding: 10px;
            text-align: center;
            color: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .header h1 {
            font-size: 2.3rem;
            margin-bottom: 10px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            width: 100%;
        }
        
        /* Green background with padding on desktop */
        @media (min-width: 769px) {
            .container {
                background: #2c5530;
                padding: 30px;
                border-radius: 10px;
                 padding-top: 10px;
            padding-bottom: 10px;
            }
        }
        .contact {
    text-align: center; /* center the whole contact block */
}

.contact-line {
    display: block;      /* each contact on its own line */
           /* spacing between lines */
}
th:first-child {
    border-right: none !important;
}

@media (min-width: 992px) {
    .service-card-2 {
        padding-left: 0px !important;
        text-align: center;
    }
}


        @media (max-width: 768px) {
            .container {
                padding: 10px;
                width: 100%;
            }
            .mobile-logo-1 {
                    top: 10px !important;
    left: -13px !important;
            }
            .mobile-logo-2 {
                    top: 14px !important;
    left: -6px !important;
            }
            .card-head-2 {
padding-left: 50px !important;
           }
           .inner-card h2.ml-55 {
            padding-left: 50px !important;
            color: #2c5530;
           }
            .header-hide {
                display: none;
            }
            .ml-50{
                margin-left: 45px !important;
                margin-top: 7px !important;
            }
           .contact {
        text-align: left; /* align left on mobile for readability */
    }
    .contact-line {
        display: inline;      /* name and phone on one line */
        font-size: 0.85em;    /* smaller text */
           /* spacing between contacts */
    }
            #monthTitle {
                left: 29% !important;
            }
            .main-logo {
                width: 200px !important;
            }
            .urdu-logo{
                width: 100px !important;
            }
            .mobile-br{
                display: block !important;
            }
                .header strong {
                font-size: 0.8rem !important;
                }
                .mobile-address {
                    font-size: 0.8rem !important;
                }
                
                /* Hide Next Salaah card on mobile */
                #nextSalaahCard {
                    display: none !important;
                }
                
                /* Highlight active prayer row in LED card on mobile */
                .led-line.active-prayer {
                    background: #ffeb3b;
                    border-radius: 8px;
                
                    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
                }
                
                .led-line.active-prayer .led-name {
                    color: #000;
                    font-weight: 900;
                }
                
                .led-line.active-prayer .led-time {
                    color: #2c5530;
                    font-weight: 900;
                    font-size: 32px;
                }
                
                /* Show mobile-only elements */
                .mobile-sunrise-jumah {
                    display: none !important;
                }
                
                .mobile-sunrise-jumah-inline {
                    display: block !important;
                }
                
                .mobile-month-buttons {
                    display: block !important;
                }
                
                .mobile-prayer-table {
                    display: none !important; /* Hidden by default */
                    position: relative; /* For close button positioning */
                }
                
                .mobile-prayer-table.active {
                    display: block !important; /* Show when active */
                    background-color: #fffaf0;
                    position: relative; /* For close button positioning */
                }
                
                .mobile-services-card {
                    display: block !important;
                }
                
                /* Hide desktop-only elements */
                .desktop-only {
                    display: none !important;
                }
                
                /* Compact Ramadan card on mobile */
                #ramadanCard {
                    padding: 0 !important;
                    margin-bottom: 10px !important;
                }
                
                #ramadanCard .ramadan-header {
                    padding: 10px !important;
                    margin: 0 !important;
                    border-radius: 10px 10px 0 0 !important;
                    transition: transform 0.2s;
                }
                
                #ramadanCard .ramadan-header:active {
                    transform: scale(0.98);
                }
                
                #ramadanCard .ramadan-header strong {
                    font-size: 18px !important;
                    color: white !important;
                }
                
                #ramadanCard .ramadan-content {
                    padding: 2px 10px !important;
                }
                
                #ramadanCard #daysUntilRamadan {
                    font-size: 50px !important;
                    line-height: 1 !important;
                    margin: 0 !important;
                }
        }

        /* Hide mobile-only elements on desktop */
        .mobile-sunrise-jumah,
        .mobile-sunrise-jumah-inline,
        .mobile-month-buttons,
        .mobile-prayer-table,
        .mobile-services-card {
            display: none;
        }

        /* Messages Ticker */
        .messages-container {
            margin-bottom: 20px;
        }

        .message-item {
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            font-weight: 600;
            text-align: center;
        }

        .message-priority-important {
            border: 3px solid #ff9800;
        }

        .message-priority-warning {
            border: 3px solid #f44336;
        }

        .message-priority-urgent {
            border: 3px solid #d32f2f;
            font-size: 1.2rem;
        }
        .title-row {
            display: flex;
            align-items: center;      /* vertically center the items */
            justify-content: space-between; /* title on left, button on right */
            margin-bottom: 15px;
        }
        .title-row h3 {
            margin: 0;                /* remove default margin */
            font-size: 1.5rem;
        }
        .calendar-btn {
            padding: 8px 15px;
            background-color: #8B4513;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
        }
        .calendar-btn:hover {
            background-color: #a76f1c;
        }


        /* Animations */
        @keyframes blink {
            0%, 50%, 100% { opacity: 1; }
            25%, 75% { opacity: 0.3; }
        }

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

        @keyframes fade {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes slide {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(-10px); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .animate-blink { animation: blink 2s infinite; }
        .animate-marquee { animation: marquee 15s linear infinite; white-space: nowrap; }
        .animate-fade { animation: fade 3s infinite; }
        .animate-slide { animation: slide 2s infinite; }
        .animate-pulse { animation: pulse 2s infinite; }

        /* Ramadan Calendar Section */
        .ramadan-calendar-toggle {
    width: 200px; /* fixed width looks better than % for centering */
    text-align: center;
    margin: 0 auto 20px auto; /* centers horizontally and keeps bottom margin */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #2c5530;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

/* Modal base */
.ramadan-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.ramadan-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.ramadan-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* Modal box */
.ramadan-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Top bar */
.calendar-top-bar {
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
}

/* Buttons */
.calendar-actions button {
    background: #334155;
    color: #fff;
    border: none;
    padding: 6px 12px;
    margin-left: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-actions button:hover {
    background: #1e293b;
}

.close-btn {
    background: #dc2626 !important;
}

/* Image container */
.calendar-image-wrapper {
    flex: 1;
    overflow: auto;
    padding: 12px;
    text-align: center;
}

/* Image sizing FIX */
.calendar-image-wrapper img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 640px) {

    .calendar-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .calendar-title {
        font-size: 15px;
        width: 100%;
    }

    .calendar-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .calendar-actions button {
        font-size: 13px;
        padding: 6px 10px;
    }
}

        .ramadan-calendar-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }

        .ramadan-calendar-content {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            display: none;
        }

        .ramadan-calendar-content.active {
            display: block;
        }

        .calendar-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .calendar-btn {
            background: #2c5530;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .calendar-btn:hover {
            background: #DAA520;
            transform: translateY(-2px);
        }

        /* Eid Theme */
        .eid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        .eid-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #FFD700, #FFA500);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            text-align: center;
            z-index: 10000;
            max-width: 90%;
            animation: eidPop 0.5s ease-out;
        }

        @keyframes eidPop {
            0% { transform: translate(-50%, -50%) scale(0); }
            100% { transform: translate(-50%, -50%) scale(1); }
        }

        .eid-message h2 {
            font-size: 2.5rem;
            color: #8B4513;
            margin-bottom: 15px;
        }

        .eid-message p {
            font-size: 1.3rem;
            color: #333;
        }

        .close-eid {
            position: absolute;
            top: 10px;
            right: 15px;
            background: #8B4513;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
        }

        /* Fireworks Animation */
        .firework {
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            animation: fireworkAnim 1s ease-out infinite;
        }

        @keyframes fireworkAnim {
            0% {
                transform: translate(0, 0);
                opacity: 1;
            }
            100% {
                transform: translate(var(--x), var(--y));
                opacity: 0;
            }
        }

        /* Ramadan Specific Styling */
        .ramadan-mode .info-card {
            border: 3px solid #DAA520;
            
        }

        .ramadan-sehr-iftar {
            display: none;
            background: linear-gradient(135deg, #6B46C1 0%, #7C3AED 50%, #A855F7 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            text-align: center;
            border: 3px solid #DDD6FE;
            box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
        }

        .ramadan-mode .ramadan-sehr-iftar {
            display: block;
        }

        /* Ramadan Countdown Mode */
        .ramadan-countdown-container {
            background: linear-gradient(135deg, #6B46C1 0%, #7C3AED 50%, #A855F7 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            text-align: center;
            border: 3px solid #DDD6FE;
            box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
        }

        .ramadan-countdown-container h2 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #FFD700;
        }

        .countdown-timer {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 10px;
            margin: 20px 0;
        }

        .countdown-item {
            background: rgba(255,255,255,0.2);
            padding: 15px;
            border-radius: 8px;
            border: 2px solid #DAA520;
        }

        .countdown-item span {
            display: block;
            font-size: 2rem;
            font-weight: bold;
            color: #FFD700;
        }

        .countdown-item small {
            font-size: 0.8rem;
            color: #fff;
            display: block;
            margin-top: 5px;
        }

        .ramadan-countdown-mode .info-card {
            border: 3px solid #DAA520;
        }

        .ramadan-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .ramadan-info-item {
            background: rgba(255,255,255,0.2);
            padding: 15px;
            border-radius: 8px;
        }

        .ramadan-info-item strong {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .ramadan-info-item span {
            font-size: 1.8rem;
            font-weight: bold;
        }

        /* Download Template Styling */
        .download-template {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .template-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .template-title {
            font-size: 2rem;
            color: #8B4513;
            margin-bottom: 10px;
        }
      table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #FFF9E6;
    border: 2px solid #5C4033; /* outer border */
}

th, td {
    border: 1px solid #5C4033; /* inner grid lines */
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* Header style */
th {
    background-color: #FFE08A;
    font-weight: 600;
    color: #5A3A00;
    border: 1px solid #5C4033;
}

th.jamat-header {
    background-color: #B8E6B8;
    color: #0B2B0B;
}



        table {
            border-collapse: collapse;
            width: 100%;
        }

       th, td {
    padding: 6px 4px;
}


       tbody tr:nth-child(odd) {
    background-color: #FFFDF4; /* very light yellow */
}

tbody tr:nth-child(even) {
    background-color: #F5F5F5; /* soft yellow */
}

        /* Ramadan Column - Narrow width */
        th.ramadan-col,
        td.ramadan-col {
            width: 60px;
            max-width: 60px;
            min-width: 60px;
            padding: 6px 2px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #c41e3a;
        }

        th.ramadan-col {
            /* background-color: #FFE08A; */
            color: yellow;
        }

        /* Hide Ramadan column when not needed */
        table.hide-ramadan-column th.ramadan-col,
        table.hide-ramadan-column td.ramadan-col {
            display: none;
        }


        .info-card {
            background: white;
            border-radius: 10px;
            padding: 10px 10px 10px 10px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            width: 100%;
        }
        

        @media (max-width: 768px) {
            .info-card {
                padding: 10px 10px 10px 10px;
                width: 100%;
            }
            .mobile-img{
                height: 20vh !important;
            }
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
            /* margin-top: 20px; */
        }

        .info-item {
            background: #f5f5f5;
            padding: 5px 10px 5px 10px;
            border-radius: 8px;
            text-align: center;
        }

        .info-item strong {
            color: #8B4513;
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        .info-item span {
            font-size: 1.4rem;
            font-weight: 600;
        }

        .next-prayer {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #333;
            font-weight: bold;
        }

        .countdown {
            font-size: 0.85rem;
            color: #666;
            margin-top: 5px;
        }

        .month-buttons {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .month-btn {
            background: #2c5530;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .month-btn:hover, .month-btn.active {
            background: #DAA520;
            transform: translateY(-2px);
        }

        /* Mobile Jump Button */
        .mobile-jump-row {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
}

.mobile-jump-btn {
    padding: 14px;
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    letter-spacing: 0.4px;
    width: 100%;
}
        .mobile-jump-btn:hover {
            background: linear-gradient(135deg, #1a3d1e 0%, #0d2411 100%);
            box-shadow: 0 6px 16px rgba(44, 85, 48, 0.4);
            transform: translateY(-2px);
        }

        .mobile-jump-btn:active {
            background: linear-gradient(135deg, #2c5530 0%, #1a3d1e 100%);
            transform: scale(0.98);
            box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
        }

        @media (max-width: 768px) {
    .mobile-jump-row {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .mobile-jump-btn {
        flex: 1;          /* 2 buttons in one row */
        display: block;
    }
}
.title-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.card-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


#monthTitle {
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
    color: #8B4513;
    margin: 0;
}

.calendar-btn {
    margin-left: auto;
}

        .table-container {
    overflow: visible;      /* allow content to expand */
    background: #2c5530;
    width: 100%;
    height: auto;           /* grow with content */
    max-height: none;       /* remove height constraint */
    border: none !important;
    border-radius: 10px;
    display: block;         /* flex can cause width issues */
}


        table {
    width: 800px;
    border-collapse: collapse;
    table-layout: auto;
}

        th {
            background: #8B4513;
            color: white;
            padding: 12px 8px;
            text-align: center;
            font-size: 1rem;
          font-weight:600;
            position: sticky;
            top: 0;
            z-index: 3;
            white-space: nowrap;
        }

        /* Date column - small width */
        th:nth-child(1), td:nth-child(1) {
            width: 50px;
        }

        /* Sunrise and Maghrib columns - max content width */
        th:nth-child(3), td:nth-child(3),  /* Sunrise */
        th:nth-child(6), td:nth-child(6) { /* Maghrib */
            width: 100px;
            border-left: 0px;
        }

        /* All other columns - equal width */
        th:nth-child(2), td:nth-child(2),  /* Fajr */
        th:nth-child(4), td:nth-child(4),  /* Zuhr */
        th:nth-child(5), td:nth-child(5),  /* Asr */
        th:nth-child(7), td:nth-child(7),  /* Isha */
        th:nth-child(8), td:nth-child(8),  /* Jamat Fajr */
        th:nth-child(9), td:nth-child(9),  /* Jamat Zuhr */
        th:nth-child(10), td:nth-child(10), /* Jamat Asr */
        th:nth-child(11), td:nth-child(11) { /* Jamat Isha */
            width: 80px;
        }

        td {
            padding: 10px 5px;
            text-align: center;
            border: 1px solid #5C4033;
            font-size: 0.95rem;
          font-weight: bold;
            white-space: nowrap;
        }

        /* Red color for Jamat columns */
        td.jamat-time {
            color: #FF0000;
            font-weight: 600;
        }

        /* Red color for Maghrib column */
        td.maghrib-time {
            color: #FF0000
;
            font-weight: 600;
        }

        tr:hover {
            background: #f0f8ff;
        }

        .today-row td {
            background: #ffeb3b !important;
            font-weight: 900;
          font-size: 16px;
        }

        .next-prayer-cell {
            background: #90EE90;
            font-weight: bold;
        }
        /* Prayer Layout - Two Column Design */
.prayer-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Mobile Sidebar (duplicate) - Hidden on desktop */
.mobile-sidebar {
    display: none;
}

/* Left Sidebar */
.prayer-info-sidebar {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    background: #2c5530;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: fit-content;
    /* position: sticky; */
    top: 20px;
    color: white;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
    overflow: hidden;
    margin-top: 50px;
}

.sidebar-content {
    text-align: center;
}

.sidebar-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
}

/* Right Table Wrapper */
.prayer-table-wrapper {
    flex: 1;
    min-width: 0;
}

/* Table Header Labels */
.table-header-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.label-beginning {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
    margin-left: 180px;
}

.label-jamat {
    flex: 0 0 320px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
}


.led-card {
    background: #000;
    padding: 7px;
    border-radius: 10px;
    /* font-family: 'Courier New', monospace; */
}

.led-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: yellow;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.led-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin: 6px 0;
}

.led-name {
    color: #000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
      font-family: Arial, sans-serif;
}

.led-time {
    color: #8B4513;
    font-size: 42px;
    text-align: center;
    font-weight: 600;
}

.led-time.jam {
    color: #8B4513;
}

/* Highlight active prayer - Desktop & Mobile */
.led-line.active-prayer {
    background: #ffeb3b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.led-line.active-prayer .led-name {
    color: #000;
    font-weight: 900;
}

.led-line.active-prayer .led-time {
    color: #2c5530;
    font-weight: 900;
}

.two-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.inner-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    min-height: 120px;
}

.inner-card h2 {
    color: #2c5530;
    margin-bottom: 12px;
    margin-top: 0;
    padding-left: 385px;
}

.inner-card p {
    color: #000;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
}

.inner-card .contact {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c5530;
    text-align: left;
}

.inner-card .contact a {
    color: #2c5530;
    text-decoration: none;
}

.inner-card.highlight {
    border: 2px solid #DAA520;
    background: #fffaf0;
}

.inner-card .subtitle {
    font-weight: 600;
    margin-bottom: 10px;
}

.inner-card .events {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.inner-card .cta {
    font-weight: bold;
    color: #8B4513;
}

/* Mobile */
@media (max-width: 768px) {
    .two-card-grid {
        grid-template-columns: 1fr;
    }
    #nextPrayerTime {
        font-size: 37px!important;
}
}
.beginning-group {
    background: #8B4513;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.jamat-group {
    background: #bfeec7;
    color: #000;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.jamat-header {
    background: #bfeec7;
}
.prayer-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    text-align: left;
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.6;
}

/* Card headings */
.prayer-card h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.prayer-card p {
    color: #000000 !important;
    /* margin: 0 0 8px 0; */
}

.prayer-card a {
    color: #0b0a70 !important;
    text-decoration: none;
    font-weight: bold;
}

.prayer-card a:hover {
    text-decoration: underline;
}

.card-quran {
    background: #fffaf0 !important;
        border: 3px solid #DAA520;
    font-size: 15px !important;
    color: #000000 !important;
}

.card-quran h3 {
    color: #2c5530 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-quran p {
    color: #000000 !important;
}

.card-quran a {
    color: #2c5530 !important;
    font-weight: bold;
}

/* ⚫ 2️⃣ Ders e Quran – Blue */
.card-ders {
    background: #fffaf0;
        border: 3px solid #DAA520;
    font-size: 15px !important;
}

.card-ders h3 {
    color: #2c5530;
    text-transform: uppercase;
    font-size: 20px;
}

.card-ders p {
    color: #2c5530 !important;
}

.card-ders a {
    color: #2c5530;
    font-weight: bold;
}

/* 🟡 3️⃣ Friday Prayers – Purple */
.card-friday {
    background: #fffaf0 !important;
        border: 3px solid #DAA520;
    font-size: 15px !important;
}

.card-friday h3 {
    color: #2c5530 !important;
    text-transform: uppercase;
}

.card-friday p {
    color: #000000 !important;
}

.card-friday a {
    color: #0b0a70 !important;
    font-weight: bold;
}

/* 🟤 4️⃣ Women's Programmes – Cyan */
.card-women {
    background: linear-gradient(135deg, #06B6D4, #0891B2) !important;
        border: 3px solid #DAA520;
}

.card-women h3 {
    color: #FFFFFF !important;
    text-transform: uppercase;
}

.card-women p {
    color: #FFFFFF !important;
}

.card-women a {
    color: #FFFFFF !important;
    font-weight: bold;
}

/* Highlight phone links */
.prayer-card a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.prayer-card a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .prayer-layout {
        flex-direction: column;
    }

    /* Left Sidebar */
.prayer-info-sidebar {
    flex: 0 0 300px; /* Increased from 280px */
    
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: fit-content;
    max-height: 90vh; /* Add max height */
    overflow-y: auto; /* Add scroll if content is too long */
    /* position: sticky; */
    top: 20px;
}

.sidebar-logo {
    width: 120px; /* Reduced from 150px to save space */
    height: 57px;
    margin: 0 auto 15px auto;
    display: block;
}

/* Custom scrollbar for sidebar */
.prayer-info-sidebar::-webkit-scrollbar {
    width: 8px;
}

.prayer-info-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.prayer-info-sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 10px;
}

.prayer-info-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

    .prayer-table-wrapper {
        width: 100%;
    }

    .table-header-labels {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .label-beginning {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .label-jamat {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    /* Show mobile sidebar (duplicate) */
    .mobile-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    /* Hide original sidebar in prayer-layout */
    .prayer-layout .prayer-info-sidebar:not(.mobile-sidebar) {
        display: none !important;
    }

    .sidebar-logo {
        width: 100px;
    }

    .sidebar-content h2 {
        font-size: 1.2rem !important;
    }

    .table-header-labels {
        font-size: 0.9rem;
        gap: 20px;
    }

    .label-beginning,
    .label-jamat {
        font-size: 0.9rem !important;
    }
}

/* Update title row for better alignment */
.title-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.title-row h3 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.title-row .calendar-btn {
    position: absolute;
    right: 0;
}

        .ramadan-day-row {
            background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(103, 58, 183, 0.1)) !important;
        }

        .ramadan-day-row:hover {
            background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.2)) !important;
        }

        .ramadan-start-day {
            position: relative;
            background: linear-gradient(135deg, #DAA520, rgba(218, 165, 32, 0.3)) !important;
            font-weight: bold;
        }

        .ramadan-start-day:hover {
            background: linear-gradient(135deg, #DAA520, rgba(218, 165, 32, 0.5)) !important;
        }

        .ramadan-start-day::before {
            /*content: '🌙 Ramadan Starts';*/
            /*position: absolute;*/
            /*bottom: 100%;*/
            /*left: 0;*/
            /*background: #DAA520;*/
            /*color: white;*/
            /*padding: 5px 8px;*/
            /*border-radius: 4px;*/
            /*font-size: 0.75rem;*/
            /*white-space: nowrap;*/
            /*opacity: 0;*/
            /*transition: opacity 0.3s;*/
            /*z-index: 10;*/
            /*margin-bottom: 5px;*/
            /*font-weight: bold;*/
        }

        .ramadan-start-day:hover::before {
            opacity: 1;
        }

        .footer {
            background: rgba(0,0,0,0.8);
            color: white;
            text-align: center;
            padding: 20px;
            /* margin-top: 40px; */
        }
        .header-email{
            font-size: 1rem;
        }

        @media (max-width: 768px) {
            .header {
                padding: 10px;
            }
            .margin-top-mobile-5{
                margin-top: 24px ;
            }
             .header-email{
            font-size: 0.8rem;
        }

            .header h1 { 
                font-size: 1.5rem; 
            }

            /* Header images responsive */
            [style*="max-width: 200px"] {
                max-width: 150px !important;
            }

            [style*="max-width: 500px"] {
                max-width: 100% !important;
            }

            /* Month buttons - 3 per row */
            .month-buttons { 
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .month-btn {
                padding: 10px;
                font-size: 0.9rem;
            }
            
            .month-btn.ramadan-btn {
                background: linear-gradient(135deg, #8B4513, #A0522D);
                color: #FFD700;
                font-weight: 900;
                border: 2px solid #DAA520;
                box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
            }
            
            .month-btn.ramadan-btn:active {
                transform: scale(0.98);
            }

            /* Pray actions responsive */
            .prayer-actions {
                flex-wrap: wrap;
            }

            .prayer-actions button {
                font-size: 0.9rem;
                padding: 8px 12px;
            }

            /* Table responsive - Full width */
            table {
                width: 100%;
                table-layout: auto;
                overflow-x: auto;
            }

            .table-container {
                width: 100% !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            th, td { 
                font-size: 0.8rem; 
                padding: 6px 3px; 
            }

            .info-grid { 
                grid-template-columns: 1fr; 
                margin-top: 0px;
                gap: 0px;
            }

            .hide-mobile { 
                display: none !important; 
            }

            .title-row h3 {
                font-size: 1.2rem;
            }

            .sec-mobile{
                display: none;
            }

            #fridayTime { 
                padding-top: 0; 
                padding-bottom: 0; 
                font-size: 1.4rem;
            }

            /* Sidebar responsive - Full width */
            .prayer-info-sidebar {
                flex: 100%;
                width: 100%;
                padding: 15px;
                position: relative;
                top: auto;
                margin-bottom: 20px;
                max-height: none;
            }

            .sidebar-logo {
                width: 100px;
            }

            .prayer-layout {
                flex-direction: column-reverse;
                gap: 10px;
            }

            /* Prayer cards responsive - Full width */
            /* .prayer-card {
                margin-top: 12px;
                padding: 12px;
                width: 100%;
            }

            .prayer-card h3 {
                font-size: 0.95rem;
            }

            .prayer-card p,
            .prayer-card a {
                font-size: 0.8rem;
            } */

            /* Info card responsive */
            .info-card {
                /* padding: 15px; */
                margin-bottom: 15px;
                background-color: #2c5530;
            }
            .info-card.mobile-month-buttons {
                background-color: #fffaf0;
            }

            .info-card h2 {
                font-size: 1.2rem;
                color: #2c5530;
            }

            /* Two card grid responsive */
            .two-card-grid {
                grid-template-columns: 1fr;
            }

            .inner-card {
                padding: 10px;
            }

            .inner-card h2 {
                font-size: 1.2rem;
            }

            .inner-card p {
                font-size: 0.9rem;
            }

            /* LED card responsive */
            .led-card {
                padding: 12px;
            }

            .led-time {
                font-size: 32px;
            }

            .led-name {
                font-size: 16px;
            }

            /* Ramadan section responsive */
            .ramadan-sehr-iftar {
                padding: 15px;
            }

            .ramadan-info-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .ramadan-info-item {
                padding: 10px;
            }

            .ramadan-info-item span {
                font-size: 1.4rem;
            }

            /* Container responsive */
            .container {
                padding: 10px;
            }

            /* Countdown timer responsive */
            .countdown-timer {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .countdown-item {
                padding: 10px;
            }

            .countdown-item span {
                font-size: 1.5rem;
            }

            .countdown-item small {
                font-size: 0.7rem;
            }

            /* Message item responsive */
            .message-item {
                padding: 10px;
                font-size: 0.9rem;
            }

            /* Modal responsive */
            .ramadan-modal-content {
                width: 95%;
                max-width: 95%;
                height: 95vh;
            }

            .calendar-image-wrapper img {
                max-height: calc(95vh - 60px);
            }

            .calendar-top-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .calendar-title {
                width: 100%;
                font-size: 14px;
            }

            .calendar-actions {
                width: 100%;
                display: flex;
                justify-content: flex-end;
                gap: 6px;
                flex-wrap: wrap;
            }

            .calendar-actions button {
                font-size: 12px;
                padding: 5px 10px;
            }

            /* Footer responsive */
            .footer {
                padding: 15px;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 8px;
            }

            /* Super small header */
            [style*="max-width: 200px"] {
                max-width: 100px !important;
            }

            [style*="max-width: 500px"] {
                max-width: 100% !important;
            }

            /* Address text smaller */
            .header p {
                font-size: 0.8rem;
            }

            .header strong {
                font-size: 1rem;
            }

            /* Month buttons */
            /* .month-buttons { 
                grid-template-columns: 1fr; 
            } */

            /* Table sizing */
            th, td { 
                font-size: 1rem; 
                padding: 4px 2px; 
            }
            .led-line {
                margin: 0;
            }

            table {
                width: 100%;
            }

            /* Title responsive */
            #monthTitle {
                font-size: 1rem;
            }

            /* Prayer actions */
            .prayer-actions button {
                font-size: 0.8rem;
                padding: 6px 10px;
            }

            /* Sidebar more compact */
            .prayer-info-sidebar {
                padding: 10px;
                    border: 3px solid #DAA520;
            }

            .sidebar-logo {
                width: 100%;
            }

            /* Cards smaller padding */
            /* .prayer-card {
                margin-top: 8px;
                padding: 8px;
            }

            .prayer-card h3 {
                font-size: 0.85rem;
            }

            .prayer-card p {
                font-size: 0.7rem;
            } */

            /* LED display smaller */
            .led-time {
                font-size: 28px;
            }

            /* .led-name {
                font-size: 14px;
            } */

            /* Info items smaller */
            .info-item strong {
                font-size: 0.8rem;
            }

            .info-item span {
                font-size: 1.2rem;
            }

            /* Next prayer card */
            #nextPrayer {
                font-size: 1.5rem;
            }

            #nextPrayerTime {
                font-size: 2rem;
            }

            /* Container */
            .container {
                padding: 8px;
            }
        }

        #fridayTime {
            font-size: 1.8rem;
            
            display: block;
        }

        #nextPrayerTime {
            color: #2c5530;
        }

        /* Print Styles - Force Sidebar Height to Match Table */
        @media print {
            .prayer-layout {
                display: grid;
                grid-template-columns: 280px 1fr;
                gap: 20px;
                margin-top: 20px;
                align-items: stretch;
            }

            .prayer-info-sidebar {
                flex: none !important;
                width: 280px !important;
                height: 100% !important;
                position: relative !important;
                top: auto !important;
                display: flex !important;
                flex-direction: column !important;
                background: linear-gradient(135deg, #6B46C1 0%, #4C1D95 100%) !important;
                min-height: 100% !important;
            }

            .sidebar-content {
                flex-grow: 1 !important;
                display: flex !important;
                flex-direction: column !important;
            }

            .prayer-table-wrapper {
                flex: 1;
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .table-container {
                width: 100%;
                overflow: visible !important;
                flex-grow: 1;
            }

            table {
                width: 100%;
            }
        }
