/* ==========================================
   ACDC DOCUMENTS PAGE STYLES (Bootstrap 4.6)
   ========================================== */

:root {
    --acdc-red: #731213;
    --acdc-red-hover: #540b0c;
    --acdc-cream: #fbf6f3;
    --acdc-cream-card: #fdfaf8;
    --acdc-text-dark: #222222;
    --acdc-text-muted: #6c757d;
    --acdc-border: #f0e6e1;
}

/* Hero Section */
.doc-hero-section {
    padding: 30px 0 20px 0;
}

.doc-hero-title {
    color: var(--acdc-red);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.doc-hero-subtitle {
    color: var(--acdc-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    line-height: 1.6;
}

/* Top Feature Cards (Kategorije) */
.doc-cat-card {
    background-color: #ffffff;
    border: 1px solid var(--acdc-border);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.doc-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(115, 18, 19, 0.08);
    border-color: #e5d2c8;
}

.doc-cat-icon {
    width: 48px;
    height: 48px;
    background-color: #fbeee9;
    color: var(--acdc-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.doc-cat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--acdc-text-dark);
    margin-bottom: 8px;
}

.doc-cat-desc {
    font-size: 0.88rem;
    color: var(--acdc-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.doc-cat-link {
    color: var(--acdc-red);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.doc-cat-link:hover {
    color: var(--acdc-red-hover);
}

.doc-cat-link i {
    transition: transform 0.2s ease;
}

.doc-cat-link:hover i {
    transform: translateX(4px);
}

/* Banner Section (Our Governance) */
.doc-gov-banner {
    background-color: var(--acdc-cream);
    border-radius: 12px;
    padding: 24px 30px;
    margin: 30px 0 45px 0;
}

.doc-gov-btn {
    border: 1.5px solid var(--acdc-red);
    color: var(--acdc-red);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
}

.doc-gov-btn:hover {
    background-color: var(--acdc-red);
    color: #ffffff;
}

/* Section Titles & View All Links */
.doc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.doc-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--acdc-text-dark);
    margin: 0;
}

.doc-view-all {
    color: var(--acdc-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.doc-view-all:hover {
    color: var(--acdc-red-hover);
}

/* Annual Reports Cards */
.doc-report-card {
    text-align: left;
    margin-bottom: 30px;
}

.doc-report-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #f8f9fa;
}

.doc-report-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.doc-report-img {
    width: 100%;
    height: auto;
    display: block;
}

.doc-report-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--acdc-text-dark);
    margin-top: 12px;
    margin-bottom: 4px;
}

.doc-download-btn {
    color: var(--acdc-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.doc-download-btn:hover {
    color: var(--acdc-red-hover);
}

/* Policies & Procedures Cards */
.doc-policy-card {
    background-color: var(--acdc-cream-card);
    border: 1px solid #f2e9e4;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.doc-policy-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #ebdcd5;
}

.doc-policy-thumb {
    width: 70px;
    min-width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.doc-policy-content {
    flex-grow: 1;
}

.doc-policy-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--acdc-text-dark);
    line-height: 1.35;
    margin-bottom: 6px;
}

.doc-policy-date {
    font-size: 0.78rem;
    color: var(--acdc-text-muted);
    margin-bottom: 8px;
}

/* Icon fallbacks (FontAwesome / SVG alternatives) */
.icon-box {
    font-style: normal;
}
/* Hero Ilustracija sa desne strane */
.doc-hero-section {
    position: relative;
    padding: 20px 0 30px 0;
}

.doc-hero-illustration {
    position: relative;
    width: 180px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.25; /* Suptilan izgled kao na dizajnu */
}

/* Velika ikona zgrade/stuba u pozadini */
.hero-icon-bg {
    font-size: 7.5rem;
    color: var(--acdc-red);
    position: absolute;
    left: 10px;
    top: 0;
}

/* Štit ikona napred sa kvačicom/slojem */
.hero-icon-fg {
    font-size: 4.5rem;
    color: var(--acdc-red);
    position: absolute;
    right: 10px;
    bottom: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 5px;
}
/* Polje za pretragu na stranici kategorije */
.doc-search-input {
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 15px;
    border-color: var(--acdc-border);
}

.doc-search-input:focus {
    border-color: var(--acdc-red);
    box-shadow: none;
}

.doc-search-input + .input-group-append .input-group-text {
    border-radius: 0 8px 8px 0;
    border-color: var(--acdc-border);
}

/* Prilagođeno dugme unutar pojedinačne kartice */
.doc-policy-card .doc-gov-btn {
    font-size: 0.82rem;
    border-width: 1px;
}