:root {
            --primary: #004d40;
            --dark: #004d40;
            --accent: #fdd835;
            --bg: #f8f9fa;
            --text: #2c3e50;
        }
        #btnPrayer{
            background: #00695c!important;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { 
            font-family: 'SolaimanLipi', 'Hind Siliguri', sans-serif; 
            background: var(--bg-body); 
            color: var(--text-main); 
            font-size: 15px;
            line-height: 1.5;
        }

        .hero-section {
            background: linear-gradient(135deg, #065f46 0%, #047857 100%);
            color: #fff;
            padding: 40px 15px 60px 15px;
            text-align: center;
            border-bottom-left-radius: 30px;
            border-bottom-right-radius: 30px;
            margin-bottom: -30px;
            position: relative;
            z-index: 1;
        }

        .date-badge {
            background: rgba(255,255,255,0.2);
            padding: 5px 15px; border-radius: 50px;
            font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px;
            backdrop-filter: blur(5px); margin-bottom: 12px;
        }

        h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
        .hero-desc { font-size: 0.95rem; opacity: 0.9; max-width: 500px; margin: 0 auto; }

    
        .search-card {
            background: var(--bg-card);
            max-width: 700px; margin: 0 auto;
            padding: 20px; border-radius: 16px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            position: relative; z-index: 10;
        }

        .select-group {
            display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
        }

        select {
            padding: 12px; border: 1px solid var(--border);
            border-radius: 8px; flex: 1; min-width: 180px;
            font-size: 15px; outline: none;
            transition: border-color 0.2s;
        }
        select:focus { border-color: var(--primary); }

        
        .result-box {
            background: #f0fdf4; border: 1px solid #bbf7d0;
            margin-top: 15px; padding: 15px;
            border-radius: 12px; display: none;
            animation: slideIn 0.3s ease-out;
            text-align: center;
        }
        @keyframes slideIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }

        .location-title { 
            color: var(--primary-dark); font-weight: 700; 
            font-size: 1.1rem; display: block; margin-bottom: 12px; 
        }

        .btn-grid { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
        
        .action-btn {
            text-decoration: none; padding: 10px 15px;
            border-radius: 8px; font-size: 13px; font-weight: 500;
            display: inline-flex; align-items: center; gap: 6px;
            transition: all 0.2s; color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .action-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.15); }
        
        .btn-prayer { background: var(--blue-btn); }
        .btn-seheri { background: var(--primary); }
        .btn-ramadan { background: var(--secondary); }

       
        .container { max-width: 1100px; margin: 40px auto 20px; padding: 0 15px; }

        .section-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
        }
        .section-header h2 { font-size: 1.4rem; color: var(--text-main); border-left: 4px solid var(--primary); padding-left: 10px; }

        .search-input {
            padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border);
            width: 250px; font-size: 14px; outline: none;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }
        .search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); }

        
        .grid-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Slightly wider for 3 buttons */
            gap: 20px;
        }

        .division-card {
            background: var(--bg-card); border-radius: 12px;
            overflow: hidden; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
        }

        .div-header {
            background: #f9fafb; padding: 10px 15px;
            border-bottom: 1px solid var(--border);
            font-weight: 600; color: var(--text-main);
            display: flex; align-items: center; gap: 8px;
        }
        .div-header i { color: var(--primary); }

        .district-list { list-style: none; padding: 5px 0; }

        .district-item {
            padding: 12px 15px;
            border-bottom: 1px solid #f3f4f6;
            display: flex; flex-direction: column; 
            gap: 8px;
            transition: background 0.1s;
        }
       
        @media (min-width: 450px) {
            .district-item { flex-direction: row; justify-content: space-between; align-items: center; }
        }

        .district-item:last-child { border: none; }
        .district-item:hover { background: #f0fdf4; }

        .d-name { font-weight: 600; color: var(--text-main); font-size: 15px; }

        .chip-group { display: flex; gap: 5px; flex-wrap: wrap; }
        .chip {
            text-decoration: none; font-size: 11px; padding: 4px 8px;
            border-radius: 4px; font-weight: 500;
            display: inline-flex; align-items: center; gap: 3px;
            transition: 0.2s; border: 1px solid transparent;
        }
        
     
        .chip-prayer { color: var(--blue-btn); background: #eff6ff; border-color: #dbeafe; }
        .chip-prayer:hover { background: var(--blue-btn); color: #fff; }

        .chip-seheri { color: var(--primary); background: #ecfdf5; border-color: #d1fae5; }
        .chip-seheri:hover { background: var(--primary); color: #fff; }

        .chip-ramadan { color: var(--secondary); background: #fffbeb; border-color: #fef3c7; }
        .chip-ramadan:hover { background: var(--secondary); color: #fff; }

        @media (max-width: 600px) {
            .hero-section { padding: 30px 10px 50px 10px; }
            h1 { font-size: 1.4rem; }
            .search-card { margin: 0 10px; padding: 15px; margin-top: -15px; }
            .btn-grid { flex-direction: column; }
            .action-btn { width: 100%; justify-content: center; }
            .section-header { flex-direction: column; align-items: stretch; }
            .search-input { width: 100%; margin-top: 10px; }
            .chip-group { width: 100%; justify-content: space-between; }
            .chip { flex: 1; justify-content: center; }
        }
