@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #1a4e8a; /* Deep Blue */
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f4f4f9;
    --white: #ffffff;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Convention Detail Content Styling (Tables, Lists, etc.) */
.convention-content {
    overflow-x: hidden; /* Prevent horizontal scroll on main body */
}

/* Make tables responsive */
.convention-content table {
    width: 100%;
    margin-bottom: 0; /* Wrapper handles margin */
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* display: block; Removed - handled by JS wrapper */
    /* overflow-x: auto; Removed - handled by JS wrapper */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* To clip corners */
}

.convention-content th,
.convention-content td {
    padding: 12px 15px;
    vertical-align: top;
    border: 1px solid #dee2e6;
    text-align: right; /* Default RTL */
}

.convention-content th {
    background-color: #D9252B; /* Primary Brand Color */
    color: white;
    font-weight: bold;
    border-color: #b31d22;
}

.convention-content tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.convention-content tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Ensure images in content don't overflow */
.convention-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
