/* IAUI Public Section — shared visual theme.
   NOTE: every page in this section overrides `{% block style_ %}`, so this file is
   linked from base.html's content_ block instead of its head block — that way it
   survives no matter what a child page does with style_. */

:root {
    --ps-navy-deep: #16233f;
    --ps-navy: #203864;
    --ps-navy-soft: #33508c;
    --ps-gold: #e8b923;
    --ps-lemon: #ffea00;
    --ps-paper: #f6f7fb;
    --ps-line: #e3e7f0;
    --ps-ink: #1d2740;
    --ps-muted: #5b667e;
}

#section {
    background: var(--ps-paper);
    padding: 26px 0 56px !important;
}

.ps-nav ul,
.ps-nav li {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* ---------- breadcrumb ---------- */

.ps-crumb {
    font-size: 13px;
    color: var(--ps-muted);
    letter-spacing: .2px;
    margin-bottom: 14px;
}

.ps-crumb a {
    color: var(--ps-navy);
    font-weight: 600;
}

.ps-crumb .current {
    color: var(--ps-ink);
    font-weight: 600;
}

/* ---------- sidebar menu ---------- */

.ps-nav {
    background: linear-gradient(180deg, var(--ps-navy-deep), var(--ps-navy));
    border-radius: 14px;
    padding: 22px 14px;
}

.ps-nav .kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ps-lemon);
    font-weight: 700;
    margin-bottom: 14px;
    padding: 0 6px;
}

.ps-nav .kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ps-lemon);
    border-radius: 2px;
}

#navv .ps-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 13.5px;
    line-height: 1.35;
    padding: 9px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    border-left: 3px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#navv .ps-nav a i {
    font-size: 10px;
    opacity: .65;
    width: 12px;
    flex-shrink: 0;
}

#navv .ps-nav a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

/* own state class — base.html has a global `.active { color:#fff !important }` */
#navv .ps-nav a.is-current {
    background: rgba(255, 234, 0, .1);
    color: var(--ps-lemon) !important;
    border-left-color: var(--ps-lemon);
    font-weight: 600;
}

/* nested (sub) items */
.ps-nav .ps-sub {
    margin: 2px 0 8px;
    padding-left: 12px;
    border-left: 1px dashed rgba(255, 255, 255, .16);
}

#navv .ps-nav .ps-sub a {
    font-size: 12.5px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, .68) !important;
}

#navv .ps-nav .ps-sub a.is-current {
    color: var(--ps-lemon) !important;
}

@media (min-width: 768px) {
    #navv .ps-nav {
        position: sticky;
        top: calc(var(--site-nav-h, 0px) + 20px);
    }
}

/* ---------- content panel ---------- */

.ps-panel {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 28px;
}

.ps-panel p {
    text-align: justify;
}

/* ---------- hero ---------- */

.ps-hero {
    background: linear-gradient(135deg, var(--ps-navy-deep), var(--ps-navy) 60%, var(--ps-navy-soft));
    border-radius: 12px;
    padding: 28px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
}

.ps-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 234, 0, .16), transparent 70%);
}

.ps-hero .kicker,
.ps-hero h1,
.ps-hero .subtitle,
.ps-hero .rule {
    position: relative;
    z-index: 1;
}

.ps-hero .kicker {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    font-weight: 700;
    margin-bottom: 8px;
}

.ps-hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0;
}

.ps-hero .subtitle {
    font-style: italic;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .78);
    margin-top: 4px;
}

.ps-hero .rule {
    width: 46px;
    height: 3px;
    background: var(--ps-lemon);
    margin: 16px 0 0;
}

/* ---------- body copy ---------- */

.ps-body p {
    text-align: justify;
    color: #26314d;
    font-size: 15px;
    line-height: 1.75;
}

.ps-body .ps-gloss {
    font-style: italic;
    font-size: 13.5px;
    color: var(--ps-muted);
    border-left: 2px solid var(--ps-line);
    padding-left: 14px;
}

/* ---------- disclaimer ---------- */

.ps-disclaimer {
    background: linear-gradient(135deg, #fff7dc, #fdecc0);
    border: 1px solid #f0dd93;
    border-left: 4px solid var(--ps-gold);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 26px 0;
}

.ps-disclaimer .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #8a6d10;
    margin-bottom: 10px;
}

.ps-disclaimer p {
    text-align: left;
    font-size: 13.5px;
    color: #4a3f1c;
    margin: 0 0 4px;
}

.ps-disclaimer p.en {
    font-style: italic;
    color: rgba(74, 63, 28, .75);
    font-size: 12.5px;
    margin: 0;
}

/* ---------- section label ---------- */

.ps-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #a8862c;
    margin: 30px 0 16px;
}

.ps-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ps-gold);
    border-radius: 2px;
}

/* ---------- feature cards ---------- */

.ps-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 26, 48, .14);
}

.ps-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--ps-line);
}

.ps-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.ps-card-body h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--ps-ink);
    margin: 0;
}

.ps-card-body .title-en {
    font-style: italic;
    font-size: 13.5px;
    color: var(--ps-muted);
    margin-top: 2px;
}

.ps-card-body .desc {
    flex: 1;
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #26314d;
}

.ps-card-body .desc .en {
    display: block;
    margin-top: 6px;
    font-style: italic;
    font-size: 12.5px;
    color: var(--ps-muted);
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--ps-navy);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .15s ease;
}

.ps-btn:hover {
    background: var(--ps-navy-deep);
    color: #fff !important;
    text-decoration: none;
}

.ps-btn i {
    font-size: 11px;
}

/* ---------- accordion (disease / procedure categories) ---------- */

.ps-acc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-acc-item {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    overflow: hidden;
}

.ps-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: #fff;
    color: var(--ps-ink);
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    line-height: 1.35;
    transition: background-color .15s ease, color .15s ease;
}

.ps-acc-btn:hover,
.ps-acc-btn:focus {
    background: var(--ps-paper);
    color: var(--ps-navy);
    text-decoration: none;
    outline: none;
}

.ps-acc-btn:focus-visible {
    outline: 2px solid var(--ps-gold);
    outline-offset: -2px;
}

/* open state — Bootstrap toggles aria-expanded on the trigger */
.ps-acc-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--ps-navy-deep), var(--ps-navy));
    color: #fff;
}

.ps-acc-btn .chev {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--ps-gold);
    transition: transform .2s ease;
}

.ps-acc-btn[aria-expanded="true"] .chev {
    transform: rotate(180deg);
    color: var(--ps-lemon);
}

.ps-acc-body {
    padding: 6px 20px 18px;
}

.ps-acc-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #26314d !important;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.ps-acc-list a:hover {
    background: var(--ps-paper);
    border-left-color: var(--ps-gold);
    color: var(--ps-navy) !important;
    text-decoration: none;
}

.ps-acc-list a i {
    flex: 0 0 auto;
    margin-top: 3px;
    font-size: 11px;
    color: var(--ps-muted);
}

.ps-acc-list a:hover i {
    color: var(--ps-navy);
}

.ps-acc-empty {
    padding: 4px 10px 6px;
    font-size: 13.5px;
    color: var(--ps-muted);
    font-style: italic;
}

/* ---------- A–Z index (procedures) ---------- */

.ps-az-group {
    break-inside: avoid;
    margin-bottom: 22px;
}

.ps-az-letter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ps-az-letter .ch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ps-navy-deep), var(--ps-navy));
    color: var(--ps-lemon);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    flex: 0 0 auto;
}

.ps-az-letter .line {
    flex: 1;
    height: 1px;
    background: var(--ps-line);
}

.ps-az-group a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    color: #26314d !important;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.ps-az-group a:hover {
    background: var(--ps-paper);
    border-left-color: var(--ps-gold);
    color: var(--ps-navy) !important;
    text-decoration: none;
}

.ps-az-group a i {
    flex: 0 0 auto;
    margin-top: 4px;
    font-size: 10px;
    color: var(--ps-muted);
}

.ps-az-group a:hover i {
    color: var(--ps-navy);
}

/* ---------- video grid ---------- */

.ps-video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ps-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 26, 48, .14);
}

.ps-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--ps-navy-deep);
}

.ps-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ps-video-card .title {
    padding: 14px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-ink);
    line-height: 1.45;
}

/* ---------- find urologist ---------- */

.ps-search-card {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 24px 26px;
}

.ps-search-card .form-group {
    margin-bottom: 16px;
}

.ps-search-card label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    color: var(--ps-navy);
    margin-bottom: 6px;
}

.ps-search-card .form-control,
.ps-search-card .custom-select {
    height: 44px;
    border: 1px solid var(--ps-line);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ps-ink);
}

.ps-search-card .form-control:focus,
.ps-search-card .custom-select:focus {
    border-color: var(--ps-navy);
    box-shadow: 0 0 0 3px rgba(32, 56, 100, .12);
}

.ps-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    background: var(--ps-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 32px;
    transition: background-color .15s ease;
}

.ps-btn-search:hover {
    background: var(--ps-navy-deep);
    color: #fff;
}

.ps-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ps-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
}

.ps-btn-reset:hover {
    background: var(--ps-paper);
    color: var(--ps-navy);
}

.ps-result-info {
    font-size: 13.5px;
    color: var(--ps-muted);
}

.ps-doc {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ps-doc:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(16, 26, 48, .15);
}

.ps-doc img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--ps-paper);
    border-bottom: 1px solid var(--ps-line);
}

.ps-doc .name {
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ps-ink);
    text-align: center;
    line-height: 1.4;
}

.ps-doc .name b {
    background: rgba(255, 234, 0, .45);
    color: var(--ps-ink) !important;
    font-weight: 700;
    border-radius: 3px;
    padding: 0 1px;
}

/* doctor modal */
.ps-doc-modal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.ps-doc-modal .modal-header {
    background: linear-gradient(135deg, var(--ps-navy-deep), var(--ps-navy));
    border-bottom: 2px solid var(--ps-lemon);
    color: #fff;
    padding: 16px 22px;
}

.ps-doc-modal .modal-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
}

.ps-doc-modal .close {
    color: #fff;
    opacity: .8;
    text-shadow: none;
}

.ps-doc-modal .modal-body {
    padding: 22px;
}

.ps-doc-modal .photo {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--ps-line);
}

.ps-doc-modal .field-label {
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: #a8862c;
    margin-bottom: 3px;
}

.ps-doc-modal .field-value {
    font-size: 14px;
    color: #26314d;
    margin-bottom: 16px;
}

.ps-wp {
    background: var(--ps-paper);
    border: 1px solid var(--ps-line);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.ps-wp .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.ps-wp .idx {
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ps-muted);
}

.ps-wp .maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ps-navy);
}

.ps-wp .maps:hover {
    color: var(--ps-navy-deep);
    text-decoration: none;
}

.ps-wp .rs {
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-ink);
    line-height: 1.4;
}

.ps-wp .loc {
    font-size: 12.5px;
    color: var(--ps-muted);
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ps-doc {
        transition: none;
    }
}

/* ---------- feedback note ---------- */

.ps-feedback {
    margin-top: 30px;
    background: var(--ps-paper);
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    padding: 18px 22px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ps-muted);
    line-height: 1.6;
}

.ps-feedback a {
    color: var(--ps-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--ps-lemon);
}

.ps-feedback a:hover {
    color: var(--ps-navy-deep);
    text-decoration: none;
}

/* ---------- news list ---------- */

.ps-news {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ps-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(16, 26, 48, .13);
    text-decoration: none;
}

.ps-news img {
    flex: 0 0 220px;
    width: 220px;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ps-news .body {
    padding: 14px 20px 14px 0;
}

.ps-news h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ps-ink);
    margin: 0;
    line-height: 1.45;
}

.ps-news .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ps-navy);
}

.ps-news .go i {
    font-size: 10px;
    transition: transform .15s ease;
}

.ps-news:hover .go i {
    transform: translateX(3px);
}

.ps-empty {
    text-align: center;
    color: var(--ps-muted);
    background: #fff;
    border: 1px dashed var(--ps-line);
    border-radius: 12px;
    padding: 36px 20px;
}

/* ---------- news detail ---------- */

.ps-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.ps-article-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 22px;
}

.ps-news-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ps-line);
    color: var(--ps-navy) !important;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .15s ease, color .15s ease;
}

.ps-news-back:hover {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .ps-panel {
        padding: 20px 18px;
    }

    .ps-hero {
        padding: 22px 20px;
    }

    .ps-news {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ps-news img {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .ps-news .body {
        padding: 14px 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ps-card,
    .ps-news,
    .ps-btn,
    #navv .ps-nav a {
        transition: none;
    }
}
