/* 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;
}

/* 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;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* 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;
}

button:hover, .btn:hover {
    background-color: #0a58ca;
}

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

    body {
        padding: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    table, th, td {
        font-size: 0.95rem;
    }
}

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

    body {
        padding: 12px;
    }

    h2 {
        font-size: 1.1rem;
    }

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

    table, th, td {
        font-size: 0.9rem;
    }

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