/* common_style.css */

/* Root font size */
html {
    font-size: 110%; /* Slightly larger for better scaling on WebView */
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    padding: 20px;
    background: #fff;
    color: #222;
    margin: 0;
    word-break: break-word;  /* নতুন - দীর্ঘ শব্দ ব্রেকের জন্য */
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.25rem; /* ≈ 22px */
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.15rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin: 10px 0;
}

/* Lists */
ul, ol {
    margin: 10px 0 20px 20px;
    padding: 0;
    list-style-position: inside;
}

li {
    margin-bottom: 12px;
}

/* Anchor (links) */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}

/* Button styling */
/* বাটনে হালকা শেডো */
button, .btn {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

button:hover, .btn:hover {
    background-color: #0a58ca;
    box-shadow: 0 4px 12px rgba(10, 88, 202, 0.5);
}

/* Responsive for tablet */
@media (max-width: 768px) {
    html {
        font-size: 105%;
    }

    body {
        padding: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    /* Removed table related styling here */
}

/* Responsive for mobile */
@media (max-width: 480px) {
    html {
        font-size: 100%;
    }

    body {
        padding: 12px;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3, h4 {
        font-size: 1rem;
    }

    /* Removed table related styling here */

    .btn, button {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}
