* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Segoe UI', sans-serif;
    padding: 0;
    background: #f5f5f5;
    direction: rtl;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Container for better spacing */
.container {
    padding: 20px;
}

/* Header */
header {
    background: white;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 4px solid #4A90E2;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .logo {
    max-width: 150px;
    margin-bottom: 20px;
}

header h1 {
    color: #4A90E2;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

header h2 {
    color: #333;
    font-size: 1.6em;
    margin-bottom: 20px;
    font-weight: 600;
}

header p {
    color: #666;
    font-size: 1em;
    margin: 5px 0;
    line-height: 1.6;
}

/* Sections */
section {
    background: white;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #4A90E2;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4A90E2;
    font-weight: bold;
}

section h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

section ul {
    margin: 15px 0 15px 30px;
    line-height: 2;
}

section li {
    margin-bottom: 8px;
    color: #555;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.card {
    border: 2px solid #4A90E2;
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.2);
}

.card h3 {
    font-size: 1.05em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.big-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 8px;
    line-height: 1;
}

.subtitle {
    color: #999;
    font-size: 0.95em;
}

/* Charts */
.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.charts > div {
    border: 1px solid #ddd;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.charts h3 {
    color: #4A90E2;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.85em;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
}

th {
    background: #4A90E2;
    color: white;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

tbody tr:hover {
    background: #f0f7ff;
}

/* Events Styling */
.event {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border-right: 5px solid #4A90E2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event h3 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.event p {
    margin-bottom: 12px;
    line-height: 1.9;
}

.event ul {
    margin: 15px 0 15px 25px;
}

.event strong {
    color: #333;
}

/* Event Images */
.event-images {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.event-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Achievements Styling */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.achievement-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #4A90E2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.achievement-item h3 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.achievement-item ul {
    list-style-position: inside;
    line-height: 2.2;
}

.achievement-item li {
    padding: 8px 0;
    color: #555;
}

/* Footer */
footer {
    background: #4A90E2;
    color: white;
    padding: 30px;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Mobile - Small screens */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    header {
        padding: 25px 15px;
    }

    header .logo {
        max-width: 100px;
    }

    header h1 {
        font-size: 1.6em;
    }

    header h2 {
        font-size: 1.2em;
    }

    header p {
        font-size: 0.85em;
    }

    section {
        padding: 20px 15px;
    }

    section h2 {
        font-size: 1.4em;
    }

    .dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .big-number {
        font-size: 2.5em;
    }

    .charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .charts > div {
        padding: 15px;
        min-width: unset;
    }

    table {
        font-size: 0.75em;
    }

    th, td {
        padding: 8px 5px;
        font-size: 0.85em;
        white-space: normal;
    }

    th {
        font-size: 0.9em;
    }

    .event {
        padding: 20px 15px;
    }

    .event h3 {
        font-size: 1.2em;
    }

    .event-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-img {
        height: 220px;
    }

    .achievements {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .achievement-item {
        padding: 20px 15px;
    }

    footer {
        padding: 20px 15px;
    }

    footer p {
        font-size: 0.85em;
    }
}

/* Tablet screens */
@media (min-width: 769px) and (max-width: 1023px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Very small screens */
@media (max-width: 480px) {
    header {
        padding: 20px 10px;
    }

    header .logo {
        max-width: 80px;
    }

    header h1 {
        font-size: 1.2em;
    }

    header h2 {
        font-size: 1em;
    }

    header p {
        font-size: 0.75em;
    }

    section {
        padding: 15px 10px;
    }

    section h2 {
        font-size: 1.1em;
    }

    .big-number {
        font-size: 2em;
    }

    .card {
        padding: 15px;
    }

    table {
        font-size: 0.65em;
    }

    th, td {
        padding: 6px 3px;
    }

    .event {
        padding: 15px 10px;
    }

    .event h3 {
        font-size: 1.05em;
    }

    .event-img {
        height: 180px;
    }

    .achievement-item {
        padding: 15px 10px;
    }
}

/* Desktop - Large screens */
@media (min-width: 1024px) {
    body {
        padding: 30px;
    }

    header {
        border-radius: 12px 12px 0 0;
        padding: 50px 30px;
    }

    section {
        padding: 35px;
    }

    .dashboard {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .charts {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        border-radius: 0 0 12px 12px;
    }
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: white;
        padding: 0;
        max-width: 100%;
    }

    header, section, footer {
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }

    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .charts > div {
        page-break-inside: avoid;
    }

    .event {
        page-break-inside: avoid;
    }

    .event-img {
        page-break-inside: avoid;
        max-height: 250px;
    }

    .achievement-item {
        page-break-inside: avoid;
    }

    /* Force color printing */
    header, th, footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
