@font-face {
    font-family: 'AlKanz';
    src: url('/assets/Al-Kanz.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-blue: #174ea6;
    --primary-gold: #ffd700;
    --primary-green: #43a047;
    --background-sand: #f9f6f2;
    --text-slate: #607d8b;
    --white: #fff;
}

body {
    font-family: 'AlKanz';
    background: linear-gradient(135deg, var(--background-sand) 0%, #e0e0e0 100%);
    color: #222;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'AlKanz';
    color: #0d47a1;
    margin-bottom: 1.2rem;
}

.bayaan-block {
    background: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(23, 78, 166, 0.07);
    margin-bottom: 2.5rem;
    padding: 2.2rem 2rem 1.5rem 2rem;
}
.bayaan-block:hover {
    box-shadow: 0 8px 32px 0 rgba(13, 71, 161, 0.13), 0 2px 8px 0 rgba(44, 62, 80, 0.08);
    border: 1.5px solid #b0bec5;
}

.bayaan-title {
    color: var(--primary-blue);
    border-right: 4px solid var(--primary-gold);
    padding-right: 10px;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.bayaan-meta {
    color: var(--primary-green);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.bayaan-content {
    color: #222;
    font-size: 1.13rem;
    line-height: 2.1;
    white-space: pre-line;
    margin-bottom: 0.5rem;
}

mark {
    background: var(--primary-gold);
    color: var(--primary-blue);
    padding: 0 0.18em;
    border-radius: 4px;
}

.btn-primary, .btn-primary:visited {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white) !important;
    padding: 0.45rem 1.2rem;
    font-size: 1.05rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(23, 78, 166, 0.08);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-gold);
    color: var(--primary-blue) !important;
}

.btn-secondary {
    background: #eceff1;
    color: #1976d2 !important;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    padding: 0.45rem 1.2rem;
    font-size: 1.05rem;
    margin-right: 0.5rem;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #cfd8dc;
    color: #0d47a1 !important;
}

.input-group .form-control, .form-control {
    border-radius: 8px;
    border: 1.5px solid #b0bec5;
    font-size: 1.08rem;
    padding: 0.6rem 1rem;
    background: #fafdff;
    color: #222;
    transition: border 0.2s;
}
.input-group .form-control:focus, .form-control:focus {
    border: 1.5px solid #1976d2;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.07);
}

/* Force AlKanz font on all form fields, even if Bootstrap or browser tries to override */
input[type="text"], input[type="password"], input[type="email"], select, textarea, .form-control, .form-select {
    font-family: 'AlKanz', sans-serif !important;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
To debug: Inspect a field in DevTools, check Computed > font-family. If not 'AlKanz', check for font load errors in Network tab.
*/

textarea, input, .form-control, select {
    direction: rtl;
    font-family: 'AlKanz', serif !important;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    padding: 1rem 1.2rem;
}

footer {
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 1rem 0 0.5rem 0;
    margin-top: auto;
    font-size: 1.08rem;
    letter-spacing: 0.2px;
    border-top: 3px solid var(--primary-gold);
}

::-webkit-scrollbar {
    width: 8px;
    background: #f8f9fa;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .bayaan-title {
        font-size: 1.15rem;
    }
    .bayaan-content {
        font-size: 0.98rem;
    }
    .bayaan-block {
        padding: 1.1rem 0.5rem;
    }
    .container {
        padding-bottom: 1rem;
    }
} 