body{
    margin:0;
    padding:0;
    background:#f4f6f9;
    font-family:Arial, Helvetica, sans-serif;
    color:#333;
}

.mobile-container{
    max-width:500px;
    margin:auto;
    background:white;
    min-height:100vh;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
}

.header{
    background:#116530;
    color:white;
    padding:20px;
    position:relative;
}

.header h1{
    margin:0;
    font-size:22px;
}

.header p{
    margin-top:5px;
    font-size:14px;
}

.quran-icon{
    position:absolute;
    right:20px;
    top:20px;
}

.quran-icon img{
    width:60px;
    border-radius: 50%;
}

.content{
    width:100%;
    padding:20px;
    border:2px solid #ccc;
    box-sizing:border-box;
}

.select-surah{
    width:100%;
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:16px;
}

.info-box{
    background:#f7f7f7;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
    text-align: justify;
}

.ayat-card{
    background:white;
    border-radius:15px;
    padding:15px;
    margin-bottom:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.teks-arab{
    direction: rtl;          /* Arabic direction */
    text-align: right;
    font-size: 32px;
    line-height: 2;
    font-family: 'Amiri', 'Scheherazade New', serif;
}

.teks-melayu{
    font-size:15px;
    line-height:1.8;
    color:#444;
    margin-bottom:15px;
    text-align: justify;
}

.ayah-number{
    position:relative;
    display:inline-block;
    width:40px;
    height:40px;
    text-align:center;
    line-height:40px;
    font-size:16px;
    margin-right:8px;
}

.ayah-number::before{
    content:"۝";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    font-size:30px;      /* asal 40px */
    line-height:30px;    /* asal 40px */
}

.grid-3{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

@media(min-width:768px){
    .grid-3{
        grid-template-columns:1fr 1fr 1fr;
    }
}

.grid-box{
    background:#f5f5f5;
    border-radius:5px;
    padding:5px;
    text-align: justify;
}

.grid-box h4{
    margin-top:0;
    color:#116530;
}

.button-group{
    margin-top:15px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.button-group a{
    flex:1;
    text-align:center;
    text-decoration:none;
    background:#116530;
    color:white;
    padding:5px;
    border-radius:10px;
    font-size:14px;
}
.button-group{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
/*.button-group a{
    padding:12px 20px;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    transition:0.3s;
}*/

/* Different color for each button */
.button-group a:nth-child(1){
    background:#2e7d32;
}
.button-group a:nth-child(2){
    background:#1565c0;
}
.button-group a:nth-child(3){
    background:#ef6c00;
}
.button-group a:nth-child(4){
    background:#8e24aa;
}

/* Hover effect */
.button-group a:hover{
    opacity:0.85;
    transform:translateY(-2px);
}
.btn-papar{
    width:100%;
    background:#116530;
    color:white;
    border:none;
    padding:14px;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
}
.nav-bar{
    display:flex;
    justify-content:center;
    align-items: center;
    gap:5px;
}
.latar-text{
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:10;
    -webkit-box-orient:vertical;
    line-height:1.2;
    text-align:justify;
}

.latar-text.show{
    -webkit-line-clamp:unset;
}

.btn-expand{
    margin-top:10px;
    background:#116530;
    color:white;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}
.senarai-ayat {
    max-width: 800px;
    margin: auto;
}
.kotak-ayat {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #0d6efd;
}
.rujukan {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 12px;
}
.rujuklain {
    font-weight: bold;
    color: #FF0000;
    margin-bottom: 12px;
}
.teks-arab {
    font-size: 28px;
    line-height: 2.2;
    direction: rtl;
    text-align: right;
    font-family: 'Amiri', 'Scheherazade New', serif;
    margin-bottom: 15px;
}
.makna {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: #333;
}
.maknalain {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: #333;
}
.error {
    border-left-color: red;
    color: red;
}