html {
    scroll-behavior: smooth;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --kssh-blue: #005baa;
    --kssh-light-blue: #38b6ff;
    --kssh-dark-blue: #0b2545;
    --kssh-bg: #f4f7fb;
    --kssh-card-bg: #ffffff;
    --kssh-text: #1d2d35;
    --kssh-muted: #5a6e7f;
    --kssh-border: #dbe8f5;
    --kssh-shadow: 0 10px 30px rgba(0, 91, 170, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    background-color: var(--kssh-bg);
    color: var(--kssh-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0b2545 0%, #005baa 100%);
    color: #ffffff;
    padding: 60px 20px 100px;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-content .subtitle {
    font-size: 16px;
    color: #d1e7ff;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Search Box */
.main-search {
    width: 90%;
    max-width: 1100px;
    margin: -55px auto 20px;
    padding: 28px 35px;
    background: var(--kssh-card-bg);
    border: 1px solid var(--kssh-border);
    border-radius: 16px;
    box-shadow: var(--kssh-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 10;
}

.search-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--kssh-dark-blue);
}

.search-title i {
    color: var(--kssh-blue);
    font-size: 24px;
}

.search-title h2 {
    font-size: 22px;
    font-weight: 700;
}

.search-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 1.5px solid var(--kssh-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: var(--transition);
}

.search-input-group input:focus {
    border-color: var(--kssh-blue);
    box-shadow: 0 0 0 4px rgba(0, 91, 170, 0.12);
}

.search-input-group button {
    padding: 16px 35px;
    background: var(--kssh-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-group button:hover {
    background: #004077;
}

.search-hint {
    color: var(--kssh-muted);
    font-size: 13px;
}

/* Sections Styling */
.quick-access, .databases {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 26px;
    color: var(--kssh-dark-blue);
    font-weight: 800;
}

.section-title p {
    color: var(--kssh-muted);
    font-size: 15px;
}

/* Quick Access Grid */
.access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.access-card {
    background: var(--kssh-card-bg);
    border: 1px solid var(--kssh-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: var(--kssh-text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.access-card:hover {
    transform: translateY(-5px);
    border-color: var(--kssh-blue);
    box-shadow: var(--kssh-shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #eef6ff;
    color: var(--kssh-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.access-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--kssh-dark-blue);
    margin-bottom: 8px;
}

.access-card p {
    font-size: 13px;
    color: var(--kssh-muted);
    flex: 1;
    margin-bottom: 18px;
}

.card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--kssh-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* External Databases Grid */
.database-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.database-card {
    background: var(--kssh-card-bg);
    border: 1px solid var(--kssh-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.database-card:hover {
    border-color: var(--kssh-blue);
    transform: translateY(-3px);
    box-shadow: var(--kssh-shadow);
}

.db-img-wrapper {
    width: 100px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px;
}

.db-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.db-info h4 {
    font-size: 16px;
    color: var(--kssh-dark-blue);
    font-weight: 700;
}

.db-info p {
    font-size: 12px;
    color: var(--kssh-muted);
}
/* Inner Pages Styling */
.page-content {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.page-header {
    border-bottom: 2px solid var(--kssh-border);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 26px;
    color: var(--kssh-dark-blue);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: var(--kssh-blue);
}

.page-header p {
    color: var(--kssh-muted);
    font-size: 15px;
    margin-top: 5px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.resource-card {
    background: #ffffff;
    border: 1px solid var(--kssh-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: var(--kssh-blue);
    box-shadow: var(--kssh-shadow);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: #eef6ff;
    color: var(--kssh-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.resource-details {
    display: flex;
    flex-direction: column;
}

.category-badge {
    background: #eef6ff;
    color: var(--kssh-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.resource-details h3 {
    font-size: 16px;
    color: var(--kssh-dark-blue);
    font-weight: 700;
    margin-bottom: 6px;
}

.resource-details p {
    font-size: 13px;
    color: var(--kssh-muted);
    line-height: 1.4;
    margin-bottom: 15px;
}

.btn-download {
    font-size: 13px;
    font-weight: 700;
    color: var(--kssh-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.btn-download:hover {
    color: #004077;
}
/* Literature Real Cover Styling */
.literature-card {
    align-items: flex-start;
    gap: 20px;
}

.literature-cover-wrapper {
    width: 95px;
    height: 125px;
    background: #ffffff;
    border: 1px solid var(--kssh-border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.sample-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sample-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
@keyframes cleanSoftPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5), 0 10px 25px rgba(2, 132, 199, 0.15);
        transform: scale(1);
        border-color: #0284c7;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(2, 132, 199, 0), 0 15px 30px rgba(2, 132, 199, 0.3);
        transform: scale(1.015);
        border-color: #0369a1;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0), 0 2px 4px rgba(0, 0, 0, 0.02);
        transform: scale(1);
        border-color: #e2e8f0;
    }
}

.search-pulse-highlight,
.database-card-clean.search-pulse-highlight,
.access-card.search-pulse-highlight {
    animation: cleanSoftPulse 1.2s ease-in-out 1 !important;
    border: 2px solid #0284c7 !important;
    border-radius: 12px !important;
    position: relative !important;
    z-index: 99 !important;
}