/**
 * ============================================================
 * AKBAR KHAN TRUST
 * GLOBAL WEBSITE CSS SYSTEM
 * ============================================================
 *
 * File:
 * /public_html/assets/css/public/public.css
 *
 * Version:
 * 10.0.0 GLOBAL PRODUCTION
 *
 * PHP:
 * 8.2+
 *
 * ============================================================
 * PURPOSE
 * ============================================================
 *
 * Single unified global stylesheet.
 *
 * ✓ No public-* CSS namespace
 * ✓ Global reusable classes
 * ✓ Header
 * ✓ Navigation
 * ✓ Mobile navigation
 * ✓ Hero
 * ✓ Sections
 * ✓ Containers
 * ✓ Buttons
 * ✓ Cards
 * ✓ Statistics
 * ✓ Forms
 * ✓ Alerts
 * ✓ Dropdowns
 * ✓ Modals
 * ✓ Breadcrumbs
 * ✓ Pagination
 * ✓ Footer
 * ✓ Dashboard layout
 * ✓ Responsive design
 * ✓ Accessibility
 * ✓ Reduced motion
 * ✓ RTL
 * ✓ Print
 *
 * ============================================================
 */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {

    --primary: #176b3a;
    --primary-dark: #0f4d2a;
    --primary-light: #2f8a55;
    --primary-soft: #eaf5ee;

    --secondary: #b38b2e;
    --secondary-dark: #8f6d20;
    --secondary-light: #d2b45c;
    --secondary-soft: #fbf5e5;

    --success: #198754;
    --success-soft: #eaf7ef;

    --info: #0d6efd;
    --info-soft: #edf4ff;

    --warning: #f0ad00;
    --warning-soft: #fff8df;

    --danger: #dc3545;
    --danger-soft: #fff0f1;

    --text: #1f2933;
    --text-soft: #52606d;
    --text-muted: #6b7280;
    --text-light: #ffffff;

    --surface: #ffffff;
    --surface-soft: #f7f9f8;
    --surface-muted: #eef2f0;
    --surface-dark: #123524;

    --border: #dce4df;
    --border-dark: #c7d2cc;

    --body-bg: #f8faf9;

    --shadow-xs:
        0 1px 2px rgba(16, 24, 40, 0.05);

    --shadow-sm:
        0 2px 8px rgba(16, 24, 40, 0.08);

    --shadow-md:
        0 8px 24px rgba(16, 24, 40, 0.10);

    --shadow-lg:
        0 16px 40px rgba(16, 24, 40, 0.14);

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --container-width: 1200px;
    --container-wide: 1400px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;

    --font-sans:
        "Noto Sans Bengali",
        "Noto Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-heading:
        "Noto Sans Bengali",
        "Noto Sans",
        system-ui,
        sans-serif;

    --font-mono:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    --transition-fast:
        150ms ease;

    --transition:
        250ms ease;

    --transition-slow:
        400ms ease;

    --z-header: 1000;
    --z-dropdown: 1100;
    --z-mobile: 1200;
    --z-modal: 2000;
    --z-toast: 3000;
}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background: var(--body-bg);
    color: var(--text);

    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

iframe {
    max-width: 100%;
    border: 0;
}

hr {
    height: 1px;
    margin: var(--space-6) 0;
    border: 0;
    background: var(--border);
}

::selection {
    background: var(--primary);
    color: var(--text-light);
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--space-4);

    color: var(--primary-dark);

    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

small {
    font-size: 0.875rem;
}

strong {
    font-weight: 700;
}

.muted,
.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}


/* ============================================================
   04. LINKS
   ============================================================ */

a {
    color: var(--primary);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(23, 107, 58, 0.28);
    outline-offset: 2px;
}


/* ============================================================
   05. CONTAINERS
   ============================================================ */

.container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;
}

.container-wide {
    width: min(
        calc(100% - 32px),
        var(--container-wide)
    );

    margin-inline: auto;
}

.content {
    width: 100%;
    max-width: 100%;
}

.content-container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;
}

.container-fluid {
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
}


/* ============================================================
   06. GLOBAL LAYOUT
   ============================================================ */

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-5 {
    gap: var(--space-5);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-7 {
    gap: var(--space-7);
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-inline: auto;
}

.hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}


/* ============================================================
   07. SECTIONS
   ============================================================ */

.section {
    position: relative;
    padding: var(--space-10) 0;
}

.section-sm {
    padding: var(--space-7) 0;
}

.section-lg {
    padding: var(--space-11) 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-primary {
    background: var(--primary);
    color: var(--text-light);
}

.section-secondary {
    background: var(--secondary);
    color: var(--text-light);
}

.section-dark {
    background: var(--surface-dark);
    color: var(--text-light);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    max-width: 720px;
    margin-inline: auto;

    color: var(--text-soft);
}

.section-header {
    margin-bottom: var(--space-7);
    text-align: center;
}

.section-header.left {
    text-align: left;
}


/* ============================================================
   08. HEADER
   ============================================================ */

.header {
    position: relative;
    z-index: var(--z-header);

    width: 100%;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    box-shadow: var(--shadow-sm);
}

.header__main {
    width: 100%;
}

.header__container {
    width: min(
        calc(100% - 32px),
        var(--container-wide)
    );

    min-height: 82px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--space-5);
}

.header__brand {
    flex: 0 0 auto;
}

.header__brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);

    color: var(--text);

    text-decoration: none;
}

.header__logo {
    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background: var(--primary-soft);

    border: 2px solid var(--primary);
}

.header__logo-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.header__brand-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.header__brand-bn {
    color: var(--primary-dark);

    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.header__brand-en {
    margin-top: 2px;

    color: var(--primary);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.header__brand-tagline {
    margin-top: 2px;

    color: var(--secondary-dark);

    font-size: 0.72rem;
    line-height: 1.2;
}


/* ============================================================
   09. DESKTOP NAVIGATION
   ============================================================ */

.header__navigation {
    flex: 1 1 auto;

    display: flex;
    justify-content: center;
}

.header__nav-list {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 2px;
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 44px;
    padding: 8px 10px;

    color: var(--text);

    border-radius: var(--radius-sm);

    font-size: 0.92rem;
    font-weight: 600;

    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.header__nav-item.is-active > .header__nav-link {
    color: var(--primary);
    background: var(--primary-soft);
}

.header__nav-item.is-active > .header__nav-link::after {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;
    bottom: 3px;

    height: 2px;

    border-radius: var(--radius-pill);

    background: var(--secondary);
}

.header__nav-icon {
    font-size: 0.95rem;
}

.header__nav-label {
    line-height: 1.2;
}


/* ============================================================
   10. HEADER ACTIONS
   ============================================================ */

.header__actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__action {
    position: relative;
}

.header__action-button,
.header__auth-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 12px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    background: transparent;

    color: var(--text);

    font-size: 0.88rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.header__action-button:hover,
.header__auth-button:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.header__application-button {
    color: var(--text-light);
    background: var(--primary);
    border-color: var(--primary);
}

.header__application-button:hover {
    color: var(--text-light);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.header__search-button,
.header__notification-button {
    position: relative;

    width: 40px;
    padding: 8px;
}

.header__notification-badge {
    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 17px;
    height: 17px;

    display: grid;
    place-items: center;

    padding: 0 4px;

    border-radius: var(--radius-pill);

    background: var(--danger);
    color: var(--text-light);

    font-size: 0.65rem;
    font-weight: 700;

    line-height: 1;
}


/* ============================================================
   11. LANGUAGE DROPDOWN
   ============================================================ */

.header__language-menu,
.header__dashboard-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    min-width: 180px;

    padding: 8px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);

    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast),
        transform var(--transition-fast);

    pointer-events: none;
}

.header__language:hover .header__language-menu,
.header__language:focus-within .header__language-menu,
.header__dashboard:hover .header__dashboard-menu,
.header__dashboard:focus-within .header__dashboard-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header__language-item,
.header__dashboard-item {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;

    padding: 9px 11px;

    color: var(--text);

    border-radius: var(--radius-sm);

    font-size: 0.88rem;
}

.header__language-item:hover,
.header__dashboard-item:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.header__language-item.is-active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 700;
}


/* ============================================================
   12. AUTHENTICATION
   ============================================================ */

.header__authentication {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__auth-login {
    color: var(--primary);
    border-color: var(--primary);
}

.header__auth-login:hover {
    color: var(--text-light);
    background: var(--primary);
}

.header__auth-user {
    color: var(--primary);
}

.header__auth-logout {
    color: var(--danger);
}

.header__auth-logout:hover {
    color: var(--danger);
    background: var(--danger-soft);
}


/* ============================================================
   13. MOBILE TOGGLE
   ============================================================ */

.header__mobile-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.header__mobile-toggle:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.header__mobile-toggle-line {
    display: block;

    width: 22px;
    height: 2px;

    border-radius: var(--radius-pill);

    background: var(--primary);

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.header__mobile-toggle.is-active
.header__mobile-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__mobile-toggle.is-active
.header__mobile-toggle-line:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.is-active
.header__mobile-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   14. MOBILE NAVIGATION
   ============================================================ */

.mobile-navigation {
    display: none;

    width: 100%;

    background: var(--surface);

    border-top: 1px solid var(--border);

    box-shadow: var(--shadow-md);
}

.mobile-navigation.is-open {
    display: block;
}

.mobile-navigation__inner {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;

    padding: var(--space-4) 0 var(--space-5);
}

.mobile-navigation__nav {
    width: 100%;
}

.mobile-navigation__list {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 3px;
}

.mobile-navigation__item {
    width: 100%;
}

.mobile-navigation__link {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    min-height: 48px;

    padding: 10px 13px;

    color: var(--text);

    border-radius: var(--radius-sm);

    font-weight: 600;
}

.mobile-navigation__link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.mobile-navigation__item.is-active
.mobile-navigation__link {
    color: var(--primary);

    background: var(--primary-soft);

    box-shadow:
        inset 3px 0 0 var(--primary);
}

.mobile-navigation__actions {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: var(--space-2);

    margin-top: var(--space-5);

    padding-top: var(--space-4);

    border-top: 1px solid var(--border);
}

.mobile-navigation__action {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 3px;

    padding: 8px;

    color: var(--primary);

    background: var(--primary-soft);

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 0.78rem;
    font-weight: 700;

    text-align: center;
}

.mobile-navigation__action:hover {
    color: var(--text-light);
    background: var(--primary);
}


/* ============================================================
   15. HERO
   ============================================================ */

.hero {
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--text-light);
}

.hero-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15, 77, 42, 0.94),
            rgba(15, 77, 42, 0.68),
            rgba(15, 77, 42, 0.25)
        );
}

.hero-inner {
    position: relative;
    z-index: 1;

    width: min(
        calc(100% - 32px),
        var(--container-wide)
    );

    margin-inline: auto;

    padding: var(--space-10) 0;
}

.hero-copy {
    max-width: 760px;
}

.hero-title {
    margin-bottom: var(--space-4);

    color: var(--text-light);

    font-size: clamp(
        2.1rem,
        5vw,
        4rem
    );

    line-height: 1.18;
}

.hero-subtitle {
    margin-bottom: var(--space-4);

    color: rgba(255, 255, 255, 0.92);

    font-size: clamp(
        1.1rem,
        2vw,
        1.4rem
    );
}

.hero-text {
    max-width: 680px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: var(--space-3);

    margin-top: var(--space-6);
}


/* ============================================================
   16. BUTTON SYSTEM
   ============================================================ */

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: var(--text-light);
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    color: var(--text-light);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    color: var(--text-light);
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    color: var(--text-light);
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline {
    color: var(--primary);
    background: transparent;
    border-color: var(--primary);
}

.btn-outline:hover {
    color: var(--text-light);
    background: var(--primary);
}

.btn-success {
    color: var(--text-light);
    background: var(--success);
    border-color: var(--success);
}

.btn-danger {
    color: var(--text-light);
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.84rem;
}

.btn-lg {
    min-height: 52px;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}


/* ============================================================
   17. BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 26px;

    padding: 4px 9px;

    border-radius: var(--radius-pill);

    font-size: 0.76rem;
    font-weight: 700;

    line-height: 1.2;
}

.badge-primary {
    color: var(--primary);
    background: var(--primary-soft);
}

.badge-secondary {
    color: var(--secondary-dark);
    background: var(--secondary-soft);
}

.badge-success {
    color: var(--success);
    background: var(--success-soft);
}

.badge-info {
    color: var(--info);
    background: var(--info-soft);
}

.badge-warning {
    color: #765600;
    background: var(--warning-soft);
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-soft);
}


/* ============================================================
   18. CARDS
   ============================================================ */

.card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    transform: translateY(-2px);

    border-color: var(--border-dark);

    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-5) var(--space-6);

    background: var(--surface-soft);

    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);

    background: var(--surface-soft);

    border-top: 1px solid var(--border);
}

.card-title {
    margin-bottom: var(--space-2);

    color: var(--primary-dark);

    font-size: 1.2rem;
    font-weight: 700;
}

.card-text {
    color: var(--text-soft);
}


/* ============================================================
   19. STATISTICS
   ============================================================ */

.statistics {
    position: relative;
}

.statistics-grid,
.stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: var(--space-5);
}

.stat-card,
.statistics-card {
    padding: var(--space-6);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    text-align: center;
}

.stat-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto var(--space-4);

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--primary);

    background: var(--primary-soft);

    font-size: 1.4rem;
}

.stat-value {
    margin-bottom: 4px;

    color: var(--primary-dark);

    font-size: clamp(
        1.8rem,
        3vw,
        2.5rem
    );

    font-weight: 800;

    line-height: 1.1;
}

.stat-label {
    color: var(--text-soft);

    font-size: 0.9rem;
    font-weight: 600;
}


/* ============================================================
   20. PRINCIPLE BAR
   ============================================================ */

.principle-bar {
    padding: var(--space-4) 0;

    color: var(--text-light);

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary)
        );
}

.principle-bar__inner {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: var(--space-3);

    text-align: center;
}

.principle-bar__icon {
    color: var(--secondary-light);
}

.principle-bar__text {
    font-weight: 700;
}


/* ============================================================
   21. GRID SYSTEM
   ============================================================ */

.grid {
    display: grid;
    gap: var(--space-5);
}

.grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.grid-auto {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );
}


/* ============================================================
   22. DASHBOARD LAYOUT
   ============================================================ */

.dashboard-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: var(--space-6);

    width: min(
        calc(100% - 32px),
        var(--container-wide)
    );

    margin-inline: auto;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-sidebar {
    min-width: 0;
}

.dashboard-card,
.dashboard-panel {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}


/* ============================================================
   23. SERVICES
   ============================================================ */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: var(--space-5);
}

.service-card {
    padding: var(--space-6);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary-light);

    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 54px;
    height: 54px;

    margin-bottom: var(--space-4);

    display: grid;
    place-items: center;

    color: var(--primary);

    background: var(--primary-soft);

    border-radius: var(--radius-md);

    font-size: 1.5rem;
}

.service-title {
    margin-bottom: var(--space-2);

    color: var(--primary-dark);

    font-size: 1.1rem;
    font-weight: 700;
}

.service-text {
    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 0.92rem;
}


/* ============================================================
   24. DIRECTORY
   ============================================================ */

.directory-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: var(--space-5);
}

.directory-card {
    padding: var(--space-5);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}


/* ============================================================
   25. APPLICATIONS
   ============================================================ */

.application-card {
    padding: var(--space-6);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.application-status {
    margin-bottom: var(--space-4);
}


/* ============================================================
   26. QUICK SERVICES / SIDEBAR
   ============================================================ */

.quick-services {
    display: flex;
    flex-direction: column;

    gap: var(--space-2);
}

.quick-service {
    display: flex;
    align-items: center;

    gap: var(--space-3);

    padding: 11px 13px;

    color: var(--text);

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.quick-service:hover {
    color: var(--primary);

    background: var(--primary-soft);

    border-color: var(--primary-light);
}


/* ============================================================
   27. PRAYER
   ============================================================ */

.prayer {
    position: relative;

    padding: var(--space-6);

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--text-light);

    border-radius: var(--radius-lg);

    overflow: hidden;
}

.prayer-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: var(--space-3);
}

.prayer-item {
    padding: var(--space-4);

    text-align: center;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: var(--radius-md);
}

.prayer-name {
    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.85rem;
}

.prayer-time {
    color: var(--text-light);

    font-size: 1.25rem;
    font-weight: 800;
}


/* ============================================================
   28. TRANSPARENCY
   ============================================================ */

.transparency-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: var(--space-5);
}

.transparency-card {
    padding: var(--space-6);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-xs);
}


/* ============================================================
   29. ABOUT / CONTENT
   ============================================================ */

.about-content,
.article-content {
    max-width: 850px;
}

.about-content p,
.article-content p {
    color: var(--text-soft);
}

.about-content ul,
.article-content ul,
.about-content ol,
.article-content ol {
    margin-bottom: var(--space-5);
    padding-left: 1.5rem;
}

.about-content li,
.article-content li {
    margin-bottom: var(--space-2);
}


/* ============================================================
   30. FORMS
   ============================================================ */

.form {
    width: 100%;
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 700;
}

.form-control,
.form-select,
.form textarea,
.form input,
.form select {
    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    color: var(--text);

    background: var(--surface);

    border: 1px solid var(--border-dark);

    border-radius: var(--radius-sm);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-control:hover,
.form-select:hover,
.form textarea:hover,
.form input:hover,
.form select:hover {
    border-color: var(--primary-light);
}

.form-control:focus,
.form-select:focus,
.form textarea:focus,
.form input:focus,
.form select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(23, 107, 58, 0.10);

    outline: none;
}

textarea.form-control,
.form textarea {
    min-height: 130px;

    resize: vertical;
}

.form-help {
    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 0.8rem;
}

.required {
    color: var(--danger);
}


/* ============================================================
   31. ALERTS
   ============================================================ */

.alert {
    position: relative;

    padding: var(--space-4) var(--space-5);

    border: 1px solid transparent;

    border-radius: var(--radius-sm);

    font-size: 0.92rem;
}

.alert-success {
    color: #116437;
    background: var(--success-soft);
    border-color: #bce3c9;
}

.alert-info {
    color: #0a58ca;
    background: var(--info-soft);
    border-color: #c7ddff;
}

.alert-warning {
    color: #765600;
    background: var(--warning-soft);
    border-color: #f2df9a;
}

.alert-danger {
    color: #a71d2a;
    background: var(--danger-soft);
    border-color: #f0bcc2;
}


/* ============================================================
   32. DROPDOWN
   ============================================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    z-index: var(--z-dropdown);

    min-width: 200px;

    padding: 8px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 9px 11px;

    color: var(--text);

    border-radius: var(--radius-sm);
}

.dropdown-item:hover {
    color: var(--primary);
    background: var(--primary-soft);
}


/* ============================================================
   33. MODAL
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;

    z-index: var(--z-modal);

    display: none;

    align-items: center;
    justify-content: center;

    padding: var(--space-5);

    background: rgba(15, 31, 23, 0.62);
}

.modal.is-open {
    display: flex;
}

.modal-dialog {
    width: min(
        100%,
        720px
    );

    max-height: calc(100vh - 40px);

    overflow: auto;

    background: var(--surface);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--space-4);

    padding: var(--space-5) var(--space-6);

    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;

    gap: var(--space-3);

    padding: var(--space-4) var(--space-6);

    border-top: 1px solid var(--border);
}


/* ============================================================
   34. BREADCRUMB
   ============================================================ */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;

    color: var(--text-muted);

    font-size: 0.85rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";

    color: var(--border-dark);
}

.breadcrumb-item.is-active {
    color: var(--text);
    font-weight: 600;
}


/* ============================================================
   35. PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.pagination a,
.pagination button,
.pagination span {
    min-width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    color: var(--text);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);
}

.pagination a:hover,
.pagination button:hover {
    color: var(--primary);

    background: var(--primary-soft);

    border-color: var(--primary-light);
}

.pagination .is-active {
    color: var(--text-light);

    background: var(--primary);

    border-color: var(--primary);
}


/* ============================================================
   36. TABLE
   ============================================================ */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.table {
    width: 100%;

    margin: 0;

    border-collapse: collapse;

    background: var(--surface);
}

.table th,
.table td {
    padding: 12px 14px;

    border-bottom: 1px solid var(--border);

    text-align: left;

    vertical-align: middle;
}

.table th {
    color: var(--primary-dark);

    background: var(--surface-soft);

    font-size: 0.88rem;
    font-weight: 700;
}

.table td {
    color: var(--text-soft);

    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: var(--primary-soft);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   37. IMAGE / MEDIA
   ============================================================ */

.image {
    max-width: 100%;
    height: auto;
}

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-contain {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.media {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-md);
}

.media img {
    width: 100%;
}


/* ============================================================
   38. CTA
   ============================================================ */

.cta {
    padding: var(--space-8);

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--text-light);

    border-radius: var(--radius-lg);
}

.cta-title {
    margin-bottom: var(--space-3);

    color: var(--text-light);
}

.cta-text {
    color: rgba(255, 255, 255, 0.86);
}


/* ============================================================
   39. FOOTER
   ============================================================ */

.footer {
    margin-top: auto;

    color: rgba(255, 255, 255, 0.84);

    background: var(--surface-dark);
}

.footer__inner {
    width: min(
        calc(100% - 32px),
        var(--container-wide)
    );

    margin-inline: auto;

    padding: var(--space-10) 0;
}

.footer__grid {
    display: grid;

    grid-template-columns:
        1.5fr
        repeat(3, 1fr);

    gap: var(--space-7);
}

.footer__title {
    margin-bottom: var(--space-4);

    color: var(--text-light);

    font-size: 1.05rem;
}

.footer__text {
    color: rgba(255, 255, 255, 0.70);

    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.72);
}

.footer__links a:hover {
    color: var(--secondary-light);
}

.footer__bottom {
    padding: var(--space-4) 0;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.60);

    font-size: 0.82rem;

    text-align: center;
}


/* ============================================================
   40. LISTS
   ============================================================ */

.list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.list-item {
    padding: var(--space-3) 0;

    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: 0;
}


/* ============================================================
   41. EMPTY / LOADING
   ============================================================ */

.empty-state {
    padding: var(--space-10) var(--space-5);

    color: var(--text-muted);

    text-align: center;
}

.empty-state__icon {
    margin-bottom: var(--space-4);

    color: var(--border-dark);

    font-size: 2.5rem;
}

.loading {
    display: grid;
    place-items: center;

    min-height: 180px;
}

.spinner {
    width: 38px;
    height: 38px;

    border: 3px solid var(--border);

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   42. SCROLL / BACK TO TOP
   ============================================================ */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    z-index: var(--z-toast);

    width: 0;
    height: 3px;

    background: var(--secondary);

    pointer-events: none;
}

.back-to-top {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 900;

    width: 44px;
    height: 44px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: var(--text-light);

    background: var(--primary);

    box-shadow: var(--shadow-md);
}

.back-to-top.is-visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
}


/* ============================================================
   43. VISIBILITY / STATE
   ============================================================ */

.is-hidden {
    display: none !important;
}

.is-open {
    display: block;
}

.is-active {
    position: relative;
}

.no-scroll {
    overflow: hidden !important;
}


/* ============================================================
   44. ACCESSIBILITY
   ============================================================ */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

.skip-link {
    position: fixed;

    top: 10px;
    left: 10px;

    z-index: 5000;

    padding: 10px 14px;

    color: var(--text-light);

    background: var(--primary);

    border-radius: var(--radius-sm);

    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}


/* ============================================================
   45. LARGE TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .statistics-grid,
    .stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns:
            minmax(0, 1fr)
            260px;
    }

    .directory-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .header__nav-link {
        padding-inline: 7px;

        font-size: 0.84rem;
    }

    .header__application-button span,
    .header__auth-button span {
        display: none;
    }
}


/* ============================================================
   46. TABLET / MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .header__navigation {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .mobile-navigation {
        display: none;
    }

    .mobile-navigation.is-open {
        display: block;
    }

    .header__container {
        min-height: 74px;
    }

    .header__actions {
        gap: 4px;
    }

    .header__language-button span,
    .header__dashboard-button span {
        display: none;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .transparency-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   47. MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .container,
    .container-wide,
    .content-container {
        width: min(
            calc(100% - 24px),
            var(--container-width)
        );
    }

    .container-fluid {
        padding-inline: 12px;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .section-lg {
        padding: var(--space-9) 0;
    }

    .header__container {
        width: calc(100% - 24px);

        min-height: 68px;

        gap: var(--space-2);
    }

    .header__logo {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .header__brand-bn {
        font-size: 1rem;
    }

    .header__brand-en {
        font-size: 0.66rem;
    }

    .header__brand-tagline {
        display: none;
    }

    .header__search-button,
    .header__notification-button {
        display: none;
    }

    .header__application-button {
        display: none;
    }

    .header__auth-button span {
        display: none;
    }

    .header__auth-button {
        width: 40px;
        padding: 8px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-inner {
        width: calc(100% - 24px);

        padding: var(--space-8) 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .statistics-grid,
    .stat-grid,
    .services-grid,
    .directory-grid,
    .transparency-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .prayer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .mobile-navigation__inner {
        width: calc(100% - 24px);
    }

    .mobile-navigation__actions {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: var(--space-6);
    }

    .modal {
        align-items: flex-end;

        padding: 0;
    }

    .modal-dialog {
        width: 100%;

        max-height: 90vh;

        border-radius:
            var(--radius-lg)
            var(--radius-lg)
            0
            0;
    }
}


/* ============================================================
   48. SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

    .header__brand-en {
        display: none;
    }

    .header__language {
        display: none;
    }

    .header__logo {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .header__brand-bn {
        font-size: 0.92rem;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;

        font-size: 1.25rem;
    }

    .prayer-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   49. RTL
   ============================================================ */

[dir="rtl"] {

    direction: rtl;
}

[dir="rtl"] .header__language-menu,
[dir="rtl"] .header__dashboard-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .mobile-navigation__item.is-active
.mobile-navigation__link {
    box-shadow:
        inset -3px 0 0 var(--primary);
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}


/* ============================================================
   50. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   51. HIGH CONTRAST
   ============================================================ */

@media (prefers-contrast: more) {

    :root {
        --border: #8a9690;
        --border-dark: #68746e;
    }

    .card,
    .stat-card,
    .statistics-card,
    .service-card,
    .directory-card,
    .application-card,
    .transparency-card {
        border-width: 2px;
    }

    .header {
        border-bottom-width: 2px;
    }
}


/* ============================================================
   52. PRINT
   ============================================================ */

@media print {

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .header__actions,
    .header__mobile-toggle,
    .mobile-navigation,
    .back-to-top,
    .scroll-progress,
    .btn,
    .no-print {
        display: none !important;
    }

    .header {
        position: static;

        box-shadow: none;

        border-bottom: 1px solid #000;
    }

    .hero {
        min-height: auto;

        background: #ffffff !important;

        color: #000000 !important;
    }

    .hero-overlay,
    .hero-background {
        display: none !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-text {
        color: #000000 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: underline;
    }

    .section,
    .card,
    .stat-card,
    .statistics-card {
        break-inside: avoid;
    }

    .footer {
        color: #000000 !important;
        background: #ffffff !important;
        border-top: 1px solid #000;
    }
}


/* ============================================================
   53. GLOBAL SAFETY
   ============================================================ */

button,
input,
textarea,
select {
    max-width: 100%;
}

iframe,
embed,
object {
    max-width: 100%;
}

pre,
code {
    font-family: var(--font-mono);
}

pre {
    max-width: 100%;
    overflow-x: auto;

    padding: var(--space-4);

    background: #101814;

    color: #e8f4ec;

    border-radius: var(--radius-sm);
}

code {
    font-size: 0.9em;
}


/* ============================================================
   END
   ============================================================ */