
/* PDB Explorer Version 2.0 - Scientific Homepage */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #edf4fb;
    color: #26364a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

#layout {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

/* Branded header */
#header {
    padding: 10px 5%;
    min-height: 105px;
    background: linear-gradient(110deg, #eaf5ff, #ffffff 55%, #e8f4ff);
    border-bottom: 1px solid #d7e7f5;
}

.home-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    max-width: 1320px;
    margin: 0 auto;
}

.home-branding .pdb-logo {
    display: block;
    width: 320px;
    max-height: 105px;
    height: auto;
    object-fit: contain;
}

.home-branding .eminent-logo {
    display: block;
    width: 270px;
    max-height: 105px;
    height: auto;
    object-fit: contain;
}

/* Navigation */
#menu {
    margin: 0;
    padding: 0 3%;
    background: linear-gradient(90deg, #092d58, #07518c);
    border-bottom: 3px solid #22b9d2;
}

#menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 !important;
}

#menu ul li { list-style: none; }

#menu a,
#menu a:visited {
    display: block;
    width: auto;
    margin: 0;
    padding: 16px 15px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

#menu a:hover,
#menu a.active {
    background: #087caa;
    color: #fff;
    border: 0;
}

/* Hero banner */
.pdb-home {
    background: #edf4fb;
}

.pdb-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 290px;
    padding: 35px 7%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 78% 45%, rgba(36, 174, 220, .35), transparent 42%),
        linear-gradient(115deg, #082d5b 0%, #07518e 55%, #087eb0 100%);
}

.pdb-hero:before,
.pdb-hero:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

.pdb-hero:before {
    width: 390px;
    height: 390px;
    right: 13%;
    top: -210px;
}

.pdb-hero:after {
    width: 300px;
    height: 300px;
    right: 3%;
    bottom: -220px;
}

.pdb-hero-content {
    position: relative;
    z-index: 2;
    width: 55%;
    max-width: 690px;
}

.pdb-hero-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 14px;
}

.pdb-title-main {
    font-size: clamp(34px, 4vw, 55px);
    font-weight: 800;
    letter-spacing: -.8px;
}

.pdb-version {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 20px;
    color: #d8f6ff;
    font-size: 14px;
    font-weight: 700;
}

.pdb-hero-content h1 {
    max-width: 610px;
    margin: 0 0 18px;
    color: #eaf7ff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.4;
    font-weight: 500;
}

.pdb-attribution {
    color: #d1eaff;
    font-size: 13px;
    line-height: 1.7;
}

.pdb-attribution strong { color: #fff; }

.pdb-hero-image {
    position: relative;
    z-index: 1;
    flex: 0 1 42%;
    width: 42%;
    height: 245px;
    background-image: url("../images/pdbexplorer-hero-protein.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.18));
}

/* Main workspace */
.pdb-workspace {
    max-width: 1320px;
    margin: 0 auto;
    padding: 25px 30px 45px;
}

.pdb-search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d8e5f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(20, 65, 105, .09);
}

.pdb-search-option {
    min-width: 0;
    padding: 23px 25px;
    background: #fff;
}

.pdb-search-option + .pdb-search-option {
    border-left: 1px solid #e0e9f2;
}

.pdb-search-option h2 {
    margin: 0 0 13px;
    color: #123e70;
    font-size: 17px;
    line-height: 1.4;
}

.pdb-search-option p {
    margin: 7px 0 13px;
    color: #60748a;
    font-size: 13px;
    line-height: 1.55;
}

.pdb-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 6px;
    border-radius: 7px;
    background: #e5f4ff;
    color: #0877b7;
    font-size: 19px;
    font-weight: bold;
}

.pdb-action-button {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 17px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(100deg, #0877b7, #07508f);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pdb-action-button:hover {
    color: #fff !important;
    background: #063e75;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,70,130,.2);
}

.pdb-example-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.pdb-example-name {
    color: #34516e;
    font-size: 12px;
    font-weight: 600;
}

/* Existing form integration */
.pdb-search-option .header {
    margin-bottom: 8px;
    color: #536b82;
    font-size: 12px;
    font-weight: 600;
}

.pdb-search-option input[type="file"],
.pdb-search-option input[type="text"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 9px 0;
    padding: 9px;
    border: 1px solid #cbd9e7;
    border-radius: 5px;
    background: #fff;
    color: #26364a;
    font-size: 12px;
}

.pdb-search-option input[type="submit"] {
    display: inline-block;
    margin: 7px 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #0877b7;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pdb-search-option input[type="submit"]:hover {
    background: #063e75;
}

.pdb-search-option .error {
    color: #c62828;
    font-size: 12px;
}

/* Feature cards */
.pdb-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.pdb-feature-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 102px;
    padding: 17px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.pdb-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    font-size: 25px;
    font-weight: 700;
}

.pdb-feature-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.pdb-feature-card p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.feature-visualization {
    background: #e5f3ff;
    border-color: #c7e3fb;
    color: #15568b;
}

.feature-annotation {
    background: #e5f7f1;
    border-color: #c7ecdf;
    color: #16775b;
}

.feature-analysis {
    background: #fff3e6;
    border-color: #f5dfc7;
    color: #a35b17;
}

.feature-download {
    background: #f0eaff;
    border-color: #ddd2fa;
    color: #6743a4;
}

/* About section */
.pdb-about {
    margin-top: 22px;
    padding: 22px 26px;
    border: 1px solid #dce9f4;
    border-left: 4px solid #1385bb;
    border-radius: 9px;
    background: #f6faff;
    color: #52677d;
    font-size: 13px;
    line-height: 1.7;
}

.pdb-about p { margin: 0 0 8px; }
.pdb-about p:last-child { margin-bottom: 0; }
.pdb-about a { color: #0875b4; font-weight: 700; }

/* Publication */
.pdb-publication {
    display: grid;
    grid-template-columns: 145px 1fr auto;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 21px 24px;
    border: 1px solid #d8e7f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(20,65,105,.06);
}

.pdb-publication-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #145b91;
    font-size: 14px;
    line-height: 1.4;
}

.pdb-publication-icon { font-size: 27px; }

.pdb-publication-details {
    color: #53677c;
    font-size: 12px;
    line-height: 1.6;
}

.pdb-publication-details p { margin: 0 0 5px; }
.pdb-publication-details strong { color: #174b79; }
.pdb-publication-details .pdb-journal { margin-top: 5px; }

.pdb-impact {
    padding: 9px 13px;
    border: 1px solid #b9e8d6;
    border-radius: 7px;
    background: #e9f8f1;
    color: #167452;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Footer and legacy compatibility */
#footer {
    min-height: 25px;
    padding: 12px 15px;
    background: #092f5b;
    color: #fff;
    text-align: center;
    font-size: 12px;
}

.error { color: #c62828; }
.hide { display: none !important; }

/* Responsive layout */
@media (max-width: 900px) {
    .pdb-search-panel { grid-template-columns: 1fr 1fr; }
    .pdb-example-option {
        grid-column: 1 / -1;
        border-top: 1px solid #e0e9f2;
        border-left: 0 !important;
    }
    .pdb-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pdb-hero { padding-left: 5%; padding-right: 5%; }
}

@media (max-width: 600px) {
    #header { padding: 10px 15px; }
    .home-branding { gap: 10px; }
    .home-branding .pdb-logo { width: 48%; max-height: 70px; }
    .home-branding .eminent-logo { width: 42%; max-height: 70px; }

    #menu ul { justify-content: center; }
    #menu a, #menu a:visited { padding: 10px 9px; font-size: 11px; }

    .pdb-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px 20px;
    }

    .pdb-hero-content { width: 100%; }
    .pdb-title-main { font-size: 35px; }
    .pdb-hero-content h1 { font-size: 18px; }
    .pdb-hero-image {
        align-self: center;
        width: 100%;
        height: 190px;
        flex-basis: auto;
    }

    .pdb-workspace { padding: 16px 12px 30px; }
    .pdb-search-panel { grid-template-columns: 1fr; }
    .pdb-search-option { padding: 19px; }
    .pdb-search-option + .pdb-search-option {
        border-top: 1px solid #e0e9f2;
        border-left: 0;
    }
    .pdb-example-option { grid-column: auto; }

    .pdb-feature-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .pdb-feature-card { min-height: 100px; padding: 12px; gap: 8px; }
    .pdb-feature-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 20px; }
    .pdb-feature-card h3 { font-size: 12px; }
    .pdb-feature-card p { font-size: 10px; }

    .pdb-about { padding: 17px; }
    .pdb-publication {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }
    .pdb-impact { justify-self: start; }
}

@media (max-width: 360px) {
    .pdb-feature-grid { grid-template-columns: 1fr; }
}

/* Complete PDB Explorer banner */
.pdb-hero-banner {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #07518e;
}

.pdb-hero-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

@media (max-width: 600px) {
    .pdb-hero-banner img {
        width: 100%;
        height: auto;
    }
}

/* Reference design: refined header */
#header {
    min-height: 125px;
    padding: 12px 5%;
    background: linear-gradient(110deg, #eaf7ff, #ffffff 52%, #e8f7ff);
}

.home-branding {
    max-width: 1400px;
    min-height: 100px;
}

.home-branding .pdb-logo {
    width: 360px;
    max-height: 115px;
}

.home-branding .eminent-logo {
    width: 300px;
    max-height: 115px;
}

/* Reference design: navigation bar */
#menu {
    padding: 0 2%;
    background: linear-gradient(90deg, #062d62, #0754a0, #06366f);
    border-bottom: 3px solid #25c7ed;
}

#menu ul {
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 1450px;
}

#menu ul li {
    flex: 0 1 auto;
}

#menu a,
#menu a:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 12px;
    font-size: 14px;
    white-space: nowrap;
}

#menu a::before {
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    font-size: 23px;
    font-weight: normal;
    line-height: 1;
}

#menu li:nth-child(1) a::before { content: "\2302"; }
#menu li:nth-child(2) a::before { content: "\2697"; }
#menu li:nth-child(3) a::before { content: "\2302"; }
#menu li:nth-child(4) a::before { content: "\25A4"; }
#menu li:nth-child(5) a::before { content: "\2659"; }
#menu li:nth-child(6) a::before { content: "\269B"; }
#menu li:nth-child(7) a::before { content: "\2709"; }

#menu li:first-child a,
#menu li:first-child a:visited {
    margin: 5px 3px;
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #39b817, #168c08);
    color: #fff;
}

#menu li:first-child a:hover {
    background: #147b08;
}

@media (max-width: 900px) {
    #menu ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    #menu a,
    #menu a:visited {
        padding: 10px;
        font-size: 12px;
    }
}

/* ===== PDB Explorer: workspace redesign ===== */

.pdb-home {
    background:
        radial-gradient(circle at 8% 18%, rgba(40,180,230,.12), transparent 25%),
        radial-gradient(circle at 92% 75%, rgba(30,130,220,.10), transparent 28%),
        linear-gradient(135deg, #e8f6ff, #ffffff 48%, #e9f5ff);
}

.pdb-workspace {
    max-width: 1450px;
    padding: 28px 35px 45px;
}

.pdb-search-panel {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid #a9d5f7;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(20,90,150,.15);
}

.pdb-search-option {
    min-height: 150px;
    padding: 22px 25px;
    background: transparent;
}

.pdb-search-option + .pdb-search-option {
    border-left: 2px solid #c6def2;
}

.pdb-search-option h2 {
    margin: 0 0 15px;
    color: #092f78;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.pdb-search-option p {
    margin: 9px 0 14px;
    color: #425b78;
    font-size: 15px;
    line-height: 1.55;
}

.pdb-option-icon {
    width: 40px;
    height: 40px;
    margin-right: 9px;
    border-radius: 50%;
    background: #e3f3ff;
    color: #0758bd;
    font-size: 25px;
}

.pdb-action-button {
    margin-top: 9px;
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(0,75,150,.17);
}

.pdb-search-option .header {
    margin-bottom: 10px;
    color: #173b69;
    font-size: 14px;
    font-weight: 700;
}

.pdb-search-option input[type="file"],
.pdb-search-option input[type="text"] {
    width: 100%;
    min-height: 43px;
    margin: 10px 0;
    padding: 9px 12px;
    border: 1px solid #9dbbd9;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.pdb-search-option input[type="submit"] {
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 15px;
    font-weight: 700;
}

.pdb-example-name {
    color: #173b69;
    font-size: 14px;
}

/* Responsive workspace */
@media (max-width: 900px) {
    .pdb-workspace {
        padding: 20px 16px 35px;
    }
    .pdb-search-option {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .pdb-search-panel {
        grid-template-columns: 1fr;
    }
    .pdb-search-option + .pdb-search-option {
        border-left: 0;
        border-top: 2px solid #c6def2;
    }
}

/* ===== PDB Explorer: workspace redesign ===== */

.pdb-home {
    background:
        radial-gradient(circle at 8% 18%, rgba(40,180,230,.12), transparent 25%),
        radial-gradient(circle at 92% 75%, rgba(30,130,220,.10), transparent 28%),
        linear-gradient(135deg, #e8f6ff, #ffffff 48%, #e9f5ff);
}

.pdb-workspace {
    max-width: 1450px;
    padding: 28px 35px 45px;
}

.pdb-search-panel {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid #a9d5f7;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(20,90,150,.15);
}

.pdb-search-option {
    min-height: 150px;
    padding: 22px 25px;
    background: transparent;
}

.pdb-search-option + .pdb-search-option {
    border-left: 2px solid #c6def2;
}

.pdb-search-option h2 {
    margin: 0 0 15px;
    color: #092f78;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.pdb-search-option p {
    margin: 9px 0 14px;
    color: #425b78;
    font-size: 15px;
    line-height: 1.55;
}

.pdb-option-icon {
    width: 40px;
    height: 40px;
    margin-right: 9px;
    border-radius: 50%;
    background: #e3f3ff;
    color: #0758bd;
    font-size: 25px;
}

.pdb-action-button {
    margin-top: 9px;
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(0,75,150,.17);
}

.pdb-search-option .header {
    margin-bottom: 10px;
    color: #173b69;
    font-size: 14px;
    font-weight: 700;
}

.pdb-search-option input[type="file"],
.pdb-search-option input[type="text"] {
    width: 100%;
    min-height: 43px;
    margin: 10px 0;
    padding: 9px 12px;
    border: 1px solid #9dbbd9;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.pdb-search-option input[type="submit"] {
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 15px;
    font-weight: 700;
}

.pdb-example-name {
    color: #173b69;
    font-size: 14px;
}

/* Responsive workspace */
@media (max-width: 900px) {
    .pdb-workspace {
        padding: 20px 16px 35px;
    }
    .pdb-search-option {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .pdb-search-panel {
        grid-template-columns: 1fr;
    }
    .pdb-search-option + .pdb-search-option {
        border-left: 0;
        border-top: 2px solid #c6def2;
    }
}

/* ===== PDB Explorer: workspace redesign ===== */

.pdb-home {
    background:
        radial-gradient(circle at 8% 18%, rgba(40,180,230,.12), transparent 25%),
        radial-gradient(circle at 92% 75%, rgba(30,130,220,.10), transparent 28%),
        linear-gradient(135deg, #e8f6ff, #ffffff 48%, #e9f5ff);
}

.pdb-workspace {
    max-width: 1450px;
    padding: 28px 35px 45px;
}

.pdb-search-panel {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid #a9d5f7;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(20,90,150,.15);
}

.pdb-search-option {
    min-height: 150px;
    padding: 22px 25px;
    background: transparent;
}

.pdb-search-option + .pdb-search-option {
    border-left: 2px solid #c6def2;
}

.pdb-search-option h2 {
    margin: 0 0 15px;
    color: #092f78;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.pdb-search-option p {
    margin: 9px 0 14px;
    color: #425b78;
    font-size: 15px;
    line-height: 1.55;
}

.pdb-option-icon {
    width: 40px;
    height: 40px;
    margin-right: 9px;
    border-radius: 50%;
    background: #e3f3ff;
    color: #0758bd;
    font-size: 25px;
}

.pdb-action-button {
    margin-top: 9px;
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(0,75,150,.17);
}

.pdb-search-option .header {
    margin-bottom: 10px;
    color: #173b69;
    font-size: 14px;
    font-weight: 700;
}

.pdb-search-option input[type="file"],
.pdb-search-option input[type="text"] {
    width: 100%;
    min-height: 43px;
    margin: 10px 0;
    padding: 9px 12px;
    border: 1px solid #9dbbd9;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.pdb-search-option input[type="submit"] {
    padding: 12px 21px;
    border-radius: 8px;
    background: linear-gradient(110deg, #087bd5, #06469b);
    font-size: 15px;
    font-weight: 700;
}

.pdb-example-name {
    color: #173b69;
    font-size: 14px;
}

/* Responsive workspace */
@media (max-width: 900px) {
    .pdb-workspace {
        padding: 20px 16px 35px;
    }
    .pdb-search-option {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .pdb-search-panel {
        grid-template-columns: 1fr;
    }
    .pdb-search-option + .pdb-search-option {
        border-left: 0;
        border-top: 2px solid #c6def2;
    }
}

/* Professional SVG icons for structure search options */
.pdb-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2ff, #c8e8ff);
    color: #0758bd;
}

.pdb-option-icon svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Scientific feature and publication SVG icons */
.pdb-feature-icon,
.pdb-publication-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0758bd;
    background: linear-gradient(135deg, #e4f4ff, #c6e5ff);
    border-radius: 14px;
}

.pdb-feature-icon {
    width: 58px;
    height: 58px;
}

.pdb-feature-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdb-publication-icon {
    width: 54px;
    height: 54px;
}

.pdb-publication-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Featured publication highlight */
.pdb-publication-highlight {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 28px;
    margin: 25px 0 32px;
    padding: 30px 35px;
    border: 1px solid #a8d3f4;
    border-left: 7px solid #087bd5;
    border-radius: 16px;
    background: linear-gradient(120deg, #e8f5ff, #ffffff 65%, #edf7ff);
    box-shadow: 0 8px 25px rgba(20, 90, 150, .13);
}

.pdb-publication-highlight .pdb-publication-label {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdb-publication-highlight .pdb-publication-label strong {
    color: #073b7b;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 800;
}

.pdb-publication-highlight .pdb-publication-icon {
    width: 65px;
    height: 65px;
}

.pdb-publication-highlight .pdb-publication-icon svg {
    width: 39px;
    height: 39px;
}

.pdb-publication-authors {
    color: #294765;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.pdb-publication-title {
    display: block;
    margin: 12px 0;
    font-size: 21px;
    line-height: 1.5;
}

.pdb-publication-title a {
    color: #0758bd;
    text-decoration: none;
}

.pdb-publication-title a:hover {
    text-decoration: underline;
}

.pdb-publication-highlight .pdb-journal {
    color: #405b78;
    font-size: 15px;
    line-height: 1.6;
}

.pdb-publication-link {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 7px;
    background: #0758bd;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.pdb-publication-link:hover {
    background: #063d85;
    color: #fff;
}

.pdb-publication-highlight .pdb-impact {
    padding: 15px 18px;
    border-radius: 12px;
    background: #d9f2e8;
    color: #126342;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .pdb-publication-highlight {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* Final publication layout: heading above all citation details */
.pdb-publication-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 25px;
    row-gap: 18px;
    padding: 28px 32px;
}

.pdb-publication-highlight .pdb-publication-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 0 16px;
    border-bottom: 2px solid #c6def2;
}

.pdb-publication-highlight .pdb-publication-label strong {
    display: block;
    font-size: 28px;
    line-height: 1.25;
}

.pdb-publication-highlight .pdb-publication-label strong br {
    display: none;
}

.pdb-publication-highlight .pdb-publication-details {
    grid-column: 1;
    min-width: 0;
}

.pdb-publication-highlight .pdb-publication-authors {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
}

.pdb-publication-highlight .pdb-publication-title {
    display: block;
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.pdb-publication-highlight .pdb-publication-title a {
    color: #0758bd;
    font-weight: 800;
}

.pdb-publication-highlight .pdb-journal {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
}

.pdb-publication-highlight .pdb-impact {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    white-space: nowrap;
}

.pdb-publication-highlight .pdb-publication-link {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .pdb-publication-highlight {
        grid-template-columns: 1fr;
    }

    .pdb-publication-highlight .pdb-publication-label,
    .pdb-publication-highlight .pdb-publication-details,
    .pdb-publication-highlight .pdb-impact {
        grid-column: 1;
        grid-row: auto;
    }

    .pdb-publication-highlight .pdb-impact {
        justify-self: start;
    }
}


/* Improve publication author and journal readability */
.pdb-publication-highlight .pdb-publication-authors {
    font-size: 19px;
    line-height: 1.8;
    margin: 0 0 22px;
    color: #203f60;
}

.pdb-publication-highlight .pdb-journal {
    font-size: 18px;
    line-height: 1.8;
    margin: 18px 0 20px;
    color: #294765;
}

.pdb-publication-highlight .pdb-publication-label strong {
    word-spacing: 5px;
}



/* ===== Improved readability: features and About PDB ===== */

.pdb-feature-card {
    min-height: 135px;
    padding: 22px;
    gap: 17px;
}

.pdb-feature-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.pdb-feature-icon svg {
    width: 36px;
    height: 36px;
}

.pdb-feature-card h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 9px;
    font-weight: 800;
}

.pdb-feature-card p {
    font-size: 16px;
    line-height: 1.6;
}

.pdb-about {
    margin-top: 28px;
    padding: 28px 32px;
    font-size: 18px;
    line-height: 1.85;
}

.pdb-about p {
    margin-bottom: 14px;
}

.pdb-about a {
    font-size: 18px;
    font-weight: 800;
}

/* Copyright footer */
#footer {
    min-height: 65px;
    padding: 22px 15px;
    background: linear-gradient(90deg, #092d58, #07518c);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

#footer a {
    color: #8de5ff;
    font-weight: 700;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Readable mobile typography */
@media (max-width: 600px) {
    .pdb-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pdb-feature-card {
        min-height: 110px;
        padding: 17px;
    }

    .pdb-feature-card h3 {
        font-size: 18px;
    }

    .pdb-feature-card p {
        font-size: 15px;
    }

    .pdb-about {
        padding: 20px;
        font-size: 16px;
        line-height: 1.75;
    }

    .pdb-about a {
        font-size: 16px;
    }
}


/* ===== Reference-inspired PDB Explorer background and icons ===== */
.pdb-home {
    position: relative;
    isolation: isolate;
    background-color: #edf8ff;
    background-image: url("../images/pdb-wave-background.svg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    padding-bottom: 38px;
}

.pdb-workspace {
    position: relative;
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(112, 190, 239, 0.65);
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(18, 91, 151, 0.14);
    margin-top: 22px;
    margin-bottom: 25px;
}

.pdb-search-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #a9d5f7;
    box-shadow: 0 7px 22px rgba(20, 90, 150, 0.13);
}

/* Consistent scientific SVG icon appearance */
.pdb-option-icon,
.pdb-feature-icon,
.pdb-publication-icon {
    color: #0758bd;
}

.pdb-option-icon svg,
.pdb-feature-icon svg,
.pdb-publication-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdb-option-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2f5ff, #c4e8ff);
}

.pdb-option-icon svg {
    width: 32px;
    height: 32px;
}

.pdb-feature-icon {
    box-shadow: 0 4px 12px rgba(12, 91, 160, 0.10);
}

.pdb-feature-icon svg {
    width: 38px;
    height: 38px;
}

.pdb-publication-icon svg {
    width: 38px;
    height: 38px;
}

/* Keep the wave and content responsive */
@media (max-width: 600px) {
    .pdb-home {
        background-size: auto 100%;
    }

    .pdb-workspace {
        margin-top: 14px;
        border-radius: 18px;
        padding: 18px 12px 30px;
    }
}


/* ===== SVG action button icons ===== */
.pdb-button-icon {
    width: 19px;
    height: 19px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdb-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.pdb-option-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Larger copyright text on home page */
#footer {
    font-size: 18px !important;
    line-height: 1.9 !important;
}

#footer a {
    font-size: 18px !important;
}

/* AlphaFold and protein structure analysis section */
.pdb-tools-section {
    width: 100%;
    margin: 28px 0;
    padding: 28px;
    background: linear-gradient(135deg, #f0f8ff, #ffffff 55%, #edf7ff);
    border: 1px solid #d5e8f5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(20, 75, 120, 0.08);
    box-sizing: border-box;
}

.pdb-tools-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #d9edf8;
}

.pdb-tools-main-icon,
.pdb-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e0f3ff;
    border: 1px solid #b8def3;
    border-radius: 13px;
}

.pdb-tools-main-icon {
    width: 54px;
    height: 54px;
}

.pdb-tools-main-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #0878b9;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdb-tools-heading h2 {
    margin: 0 0 6px;
    color: #123f68;
    font-size: 23px;
    font-weight: 700;
}

.pdb-tools-heading p {
    margin: 0;
    color: #58748b;
    font-size: 14px;
}

.pdb-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pdb-tool-card {
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dce9f2;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(20, 75, 120, 0.06);
    box-sizing: border-box;
}

.pdb-tool-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
}

.pdb-tool-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #0878b9;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdb-tool-card h3 {
    min-height: 48px;
    margin: 0 0 12px;
    color: #123f68;
    font-size: 17px;
    line-height: 1.45;
}

.pdb-tool-card p {
    color: #587084;
    font-size: 13px;
    line-height: 1.65;
}

.pdb-tool-card label {
    display: block;
    margin: 16px 0 7px;
    color: #244d6c;
    font-size: 13px;
    font-weight: 600;
}

.pdb-tool-card input[type="text"],
.pdb-tool-card textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbdce8;
    border-radius: 8px;
    background: #fbfdff;
    color: #193c58;
    font-size: 13px;
    box-sizing: border-box;
}

.pdb-tool-card textarea {
    min-height: 110px;
    resize: vertical;
    font-family: monospace;
}

.pdb-tool-card input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 9px;
    border: 1px dashed #a9c9df;
    border-radius: 8px;
    background: #f7fbff;
    color: #46647b;
    font-size: 12px;
    box-sizing: border-box;
}

.pdb-tool-input-row {
    display: flex;
    gap: 7px;
    align-items: stretch;
}

.pdb-tool-input-row input {
    flex: 1;
    min-width: 0;
}

.pdb-tool-button {
    width: 100%;
    margin-top: 15px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pdb-tool-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pdb-tool-primary {
    background: #087dbb;
    color: #ffffff;
}

.pdb-tool-secondary {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 9px 13px;
    background: #e4f3fc;
    color: #12618f;
}

.pdb-tool-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #8299aa;
    font-size: 11px;
    font-weight: 700;
}

.pdb-tool-divider::before,
.pdb-tool-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce8f0;
}

.pdb-tool-card .pdb-tool-note {
    margin: 12px 0 0;
    color: #8294a3;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .pdb-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdb-tool-modeling {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .pdb-tools-section {
        padding: 17px;
    }

    .pdb-tools-grid {
        grid-template-columns: 1fr;
    }

    .pdb-tool-modeling {
        grid-column: auto;
    }

    .pdb-tools-heading h2 {
        font-size: 19px;
    }

    .pdb-tool-card h3 {
        min-height: 0;
    }
}

/* Refined layout for the six protein analysis tools */
.pdb-tools-grid {
    align-items: start;
    row-gap: 18px;
}

.pdb-tool-card {
    min-height: 0;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
}

.pdb-tool-card h3 {
    min-height: 38px;
    margin-bottom: 14px;
    color: #0b4778;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.pdb-tool-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 12px;
}

.pdb-tool-card label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 15px;
}

.pdb-tool-card input[type="text"],
.pdb-tool-card input[type="file"],
.pdb-tool-card textarea,
.pdb-tool-card select {
    max-width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

.pdb-tool-card input[type="file"] {
    padding: 9px;
}

.pdb-tool-card input[type="text"],
.pdb-tool-card textarea,
.pdb-tool-card select {
    padding: 10px;
}

.pdb-tool-button {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 15px;
}

.pdb-tool-divider {
    margin: 14px 0;
    font-size: 13px;
}

.pdb-tool-card .pdb-tool-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
}


/* EMBS ProteinX AI branding */
.proteoxai-brand-banner {
    width: 100%;
    margin: 0 auto 24px;
    overflow: hidden;
    text-align: center;
}

.proteoxai-brand-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Original PDB Explorer module heading */
.pdb-workspace-heading {
    text-align: center;
    margin: 10px auto 24px;
}

.pdb-workspace-heading h2 {
    margin: 0 0 7px;
    color: #0b4778;
    font-size: 27px;
    font-weight: 700;
}

.pdb-workspace-heading p {
    margin: 0;
    color: #617b90;
    font-size: 15px;
    line-height: 1.6;
}


/* PDB Explorer logo */
.pdb-explorer-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
    object-fit: contain;
}


.pdb-workspace-heading img.pdb-explorer-logo {
    width: 260px !important;
    max-width: 90% !important;
    height: auto !important;
    display: block;
    margin: 0 auto 10px;
}
