@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* University of Kirkuk OPAC - Final Clean Version */

html,
body {
    direction: rtl;
    background: #f4f6fa !important;
    color: #1f2937;
    font-family: 'Tajawal', sans-serif !important;
}

body,
input,
select,
button,
textarea {
    font-family: 'Tajawal', sans-serif !important;
}

/* Header */
.navbar,
#header-region,
.navbar-inverse,
#opac-main-search {
    background: #001a45 !important;
}

#opac-main-search {
    border-bottom: 4px solid #d9a441 !important;
}

#opac-main .container,
.main .container {
    max-width: 1280px !important;
}

/* Hero */
.uok-hero {
    background:
        linear-gradient(rgba(0,26,69,.92), rgba(0,26,69,.82)),
        url("/opac-tmpl/bootstrap/images/uok/library.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 40px;
    margin: 20px 0 25px;
    min-height: 360px;
    color: #ffffff;
    border-bottom: 5px solid #d9a441;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
}

.uok-hero-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.uok-hero-text {
    flex: 1;
}

.uok-hero-text h1 {
    color: #ffffff;
    font-size: 34px;
    margin: 0;
    font-weight: 700;
}

.uok-hero-text h2 {
    color: #d9a441;
    font-size: 44px;
    margin: 10px 0 20px;
    font-weight: 800;
}

.uok-hero-text p {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.9;
}

.uok-hero-logo img {
    width: 130px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
}

.uok-badge {
    display: inline-block;
    background: #d9a441;
    color: #001a45;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 800;
    margin-top: 15px;
}

/* Stats */
.uok-stats {
    display: flex !important;
    gap: 20px;
    margin: 25px 0;
}

.uok-stat {
    flex: 1;
    background: #ffffff;
    border-radius: 15px;
    padding: 22px;
    text-align: center;
    border-top: 4px solid #d9a441;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .25s;
}

.uok-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.uok-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.uok-stat-number {
    font-size: 42px;
    color: #001a45;
    font-weight: 800;
}

.uok-stat-title {
    margin-top: 10px;
    color: #001a45;
    font-size: 16px;
    font-weight: 700;
}

/* Info bar */
.uok-info-bar {
    background: #001a45;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0;
}

/* Main sections */
.uok-sections {
    display: flex !important;
    gap: 20px;
    margin: 25px 0;
    clear: both;
}

.uok-sections .uok-card {
    flex: 1;
}

/* Cards */
.uok-card {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-top: 4px solid #d9a441;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    margin-bottom: 20px;
    transition: .25s;
}

.uok-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.uok-card h3 {
    color: #001a45;
    border-bottom: 2px solid #d9a441;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 800;
}

/* Services */
.uok-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.uok-service-list div {
    width: calc(50% - 7px);
    background: #f8fafc;
    border: 1px solid #dde3ee;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    min-height: 115px;
}

.uok-service-list span {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.uok-service-list strong {
    display: block;
    color: #001a45;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.uok-service-list small {
    display: block;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* Quick links */
.uok-links-card .uok-quick-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.uok-links-card .uok-quick-links a {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #dde3ee !important;
    border-right: 5px solid #001a45 !important;
    border-radius: 12px !important;
    color: #001a45 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: .25s !important;
}

.uok-links-card .uok-quick-links a span {
    font-size: 24px !important;
    display: inline-block !important;
}

.uok-links-card .uok-quick-links a:hover {
    background: #001a45 !important;
    color: #ffffff !important;
    transform: translateX(-4px);
    box-shadow: 0 8px 18px rgba(0,26,69,.18);
}

/* Specialties */
.uok-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uok-specialty {
    flex: 1 1 calc(25% - 12px);
    background: #f8fafc;
    border: 1px solid #dde3ee;
    border-right: 5px solid #001a45;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none !important;
    color: #001a45 !important;
    font-weight: 800;
    font-size: 17px;
    transition: .25s;
}

.uok-specialty:hover {
    background: #001a45;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Libraries */
.uok-library-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px;
}

.uok-library-list span {
    display: block;
    width: calc(25% - 10px);
    background: #f8fafc;
    border: 1px solid #dde3ee;
    border-right: 4px solid #001a45;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-sizing: border-box;
    transition: .25s;
    cursor: pointer;
    color: #001a45;
    font-weight: 700;
}

.uok-library-list span:hover {
    background: #001a45;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Footer final */
.uok-footer-final {
    width: 100%;
    background: #001a45;
    margin-top: 30px;
    padding: 25px;
    text-align: center;
    border-top: 5px solid #d9a441;
    border-radius: 12px;
    box-sizing: border-box;
}

.uok-footer-title {
    color: #d9a441;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.uok-footer-desc {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 8px;
}

.uok-footer-copy {
    color: #cbd5e1;
    font-size: 14px;
}

/* Original Koha footer */
footer,
#opaccredits {
    background: #001a45 !important;
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 768px) {
    .uok-hero-inner,
    .uok-stats,
    .uok-sections {
        flex-direction: column;
        text-align: center;
    }

    .uok-hero {
        padding: 25px;
        min-height: auto;
    }

    .uok-hero-text h1 {
        font-size: 28px;
    }

    .uok-hero-text h2 {
        font-size: 34px;
    }

    .uok-hero-text p {
        font-size: 16px;
    }

    .uok-service-list div,
    .uok-library-list span,
    .uok-specialty {
        width: 100%;
        flex: 1 1 100%;
    }

    .uok-footer-final {
        padding: 20px 12px;
    }
}