/* General Styles */
body {
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px; /* Counteract padding on columns */
}

.col-12, .col-6, .col-3 {
    padding: 10px;
    box-sizing: border-box;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (max-width: 768px) {
    .col-6, .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Typography */
h1, h2, h3 {
    color: #37517e;
    margin-bottom: 20px;
    text-align: center;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    line-height: 1.8;
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #e9ecef;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.9em;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb a {
    color: #6c757d;
    padding: 0 5px;
}

.breadcrumb span.gold {
    color: #d4af37;
    font-weight: bold;
}

/* Info Cards */
.info-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: right;
    border-bottom: 2px solid #37517e;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span:first-child {
    font-weight: bold;
    color: #555;
}

.info-item a {
    color: #007bff;
    font-weight: bold;
}

/* Form Section */
.form-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.form-section h2 {
    margin-top: 0;
    color: #37517e;
    margin-bottom: 25px;
}

.input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.input-container > div {
    flex: 1;
    min-width: 200px;
}

.input-container input[type="checkbox"] {
    margin-left: 10px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.flex-container > div {
    flex: 1;
    min-width: 200px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
    display: block;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #218838;
}

/* Description Section */
.description-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.description-section h2 {
    text-align: right;
    border-bottom: 2px solid #37517e;
    padding-bottom: 10px;
    margin-top: 0;
}

.description-content {
    white-space: pre-wrap; /* Preserves line breaks in description */
}

.journal-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: block; /* To center if needed */
    margin-left: auto;
    margin-right: auto;
}

/* Search Links */
.search-links {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.search-links .info {
    display: inline-block;
    margin: 0 10px 15px;
}

.search-links .info a {
    background-color: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.2s;
    font-weight: normal;
    display: block; /* Make the entire link clickable area */
}

.search-links .info a:hover {
    background-color: #5a6268;
    text-decoration: none;
}

/* Navigation */
.navigation-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: #d8d9d4;
    color: #fff;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 auto 40px;
    width: fit-content;
}

.navigation-link:hover {
    background-color: #138496;
    text-decoration: none;
}

.navigation-link svg {
    fill: #fff;
    width: 24px;
    height: 24px;
    margin-right: 10px; /* For RTL */
    transform: rotate(180deg); /* Flip arrow for RTL */
}

/* Utility Classes */
.align-center { text-align: center; }
.rdir { direction: rtl; }
.ldir { direction: ltr; }
.b { font-weight: bold; }
.capitalfl { text-transform: capitalize; }
.padding-3 { padding: 1.5rem; }
.border-radius-4 { border-radius: 0.25rem; }
.bg-white { background-color: #fff; }
.border-1-gray { border: 1px solid #ccc; }
.margin-2 { margin: 1rem; }
.margin-top-2 { margin-top: 1rem; }
.gap-10 { gap: 10px; } /* For flex/grid containers */
.w-100 { width: 100%; }
.line-height-2 { line-height: 2; }
.border-radius-5 { border-radius: 0.3125rem; }
.padding-2 { padding: 1rem; }
.margin-bottom-2 { margin-bottom: 1rem; } 