body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
    direction: rtl;
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 1.8rem;
}

h2 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    text-decoration: underline;
    font-size: 1.4rem;
}

h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    text-decoration: underline;
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
}

.contact-info {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

ol, ul {
    margin: 15px 0;
    padding-right: 20px;
}

li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.highlight {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    border-right: 4px solid #ffc107;
    margin: 15px 0;
    font-size: 1rem;
}

/* === RESPONSIVE TABLE STYLES === */
.table-wrapper {
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

table thead tr {
    background-color: #34495e;
    color: white;
}

table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}


/* === MOBILE & RESPONSIVE STYLES === */

/* Mobile styles - screens smaller than 768px */
@media screen and (max-width: 767px) {
    body {
        padding: 5px;
        font-size: 14px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.9rem; text-align: right; }
    
    /* Responsive Table Transformation */
    table thead {
        /* Hide the header, but keep it accessible */
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    table td {
        display: block;
        padding: 10px;
        padding-right: 50%; /* Make space for the label */
        text-align: left; /* Align the cell value to the left */
        position: relative;
        border-bottom: 1px solid #eee;
    }

    table td:last-child {
        border-bottom: none;
    }

    table td::before {
        content: attr(data-label); /* Use the data-label as the content */
        position: absolute;
        top: 50%;
        right: 10px; /* Position the label on the right */
        transform: translateY(-50%);
        width: 45%; /* Set a width for the label */
        padding-left: 10px;
        font-weight: bold;
        text-align: right; /* Align the label's text to the right */
        white-space: nowrap;
    }

    table tbody tr:nth-child(even) {
        background-color: transparent; /* Reset alternating background for card view */
    }
}

/* Tablet styles - screens between 768px and 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    body { padding: 15px; }
    .container { padding: 25px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    table { font-size: 0.85rem; }
    table th, table td { padding: 8px; }
}

/* Large desktop styles - screens larger than 1200px */
@media screen and (min-width: 1200px) {
    .container {
        padding: 40px;
        max-width: 900px;
    }
    p { font-size: 1.1rem; }
}