@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("/spring-boot-tutorial/springboot.css");
/* PostgreSQL course catalog and lesson presentation. */
body[data-course="postgresql"] { background:#f7f9fc; }
main.container-xl .spring-pill { display:none; }
body[data-course="postgresql"] { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; color:#1f2937; font-size:1rem; }
main.container-xl { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; color:#1f2937; font-size:1rem; }
main.container-xl { width:100%; max-width:1140px; margin-left:auto; margin-right:auto; padding-left:12px; padding-right:12px; padding-bottom:3rem; box-sizing:border-box; }
main.container-xl { padding-top:0 !important; }
body[data-course="postgresql"] .container-xl { width:min(1140px,calc(100% - 40px)); margin-left:auto; margin-right:auto; }
body[data-course="postgresql"] h1, body[data-course="postgresql"] h2, body[data-course="postgresql"] h3, body[data-course="postgresql"] h4 { font-family:inherit; }
body[data-course="postgresql"] h2 { color:#0f3460; font-size:1.45rem; line-height:1.35; font-weight:700; border-left:5px solid #f8a100; padding-left:12px; margin-top:2.2rem; }
main.container-xl h2 { color:#0f3460; font-size:1.45rem; line-height:1.35; font-weight:700; border-left:5px solid #f8a100; padding-left:12px; margin-top:2.2rem; }
body[data-course="postgresql"] h3 { color:#0f3460; font-size:1.15rem; line-height:1.4; font-weight:700; margin-top:1.6rem; }
main.container-xl h3 { color:#0f3460; font-size:1.15rem; line-height:1.4; font-weight:700; margin-top:1.6rem; }
body[data-course="postgresql"] p, body[data-course="postgresql"] li { line-height:1.8; }
main.container-xl p, main.container-xl li { line-height:1.8; }
body[data-course="postgresql"] pre { border-radius:8px; background:#1e1e2e; color:#cdd6f4; padding:1.2rem 1.4rem; font-size:.88rem; overflow-x:auto; }
main.container-xl pre { border-radius:8px; background:#1e1e2e; color:#cdd6f4; padding:1.2rem 1.4rem; font-size:.88rem; overflow-x:auto; }
body[data-course="postgresql"] code { font-size:.88rem; }
body[data-course="postgresql"] img { max-width:min(100%,760px); height:auto; display:block; margin:1.25rem auto; border-radius:8px; }
main.container-xl img { max-width:min(100%,760px); height:auto; display:block; margin:1.25rem auto; border-radius:8px; }
body[data-course="postgresql"] figure { max-width:760px; margin:1.5rem auto 2rem; text-align:center; }
main.container-xl figure { max-width:760px; margin:1.5rem auto 2rem; text-align:center; }
body[data-course="postgresql"] figcaption { margin-top:.65rem; color:#64748b; font-size:.9rem; }
main.container-xl figcaption { margin-top:.65rem; color:#64748b; font-size:.9rem; }
.spring-hero { padding:48px 0 36px; color:#fff; background:linear-gradient(135deg,#1a1a2e,#16213e 62%,#0f3460); }
.postgresql-lesson > .spring-hero, main.container-xl > .spring-hero { position:relative; left:50%; width:100vw; box-sizing:border-box; margin-left:0; margin-right:0; transform:translateX(-50%); padding-left:max(20px, calc((100vw - 1140px) / 2)); padding-right:max(20px, calc((100vw - 1140px) / 2)); }
.spring-hero h1 { margin:0; color:#fff; font-size:2.2rem; line-height:1.2; font-weight:800; }
.spring-hero p { max-width:780px; color:#cdd6f4; line-height:1.8; }
.postgresql-pagination { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin:2.5rem auto 1rem; padding-top:1.25rem; border-top:1px solid rgba(148,163,184,.24); max-width:1000px; }
.postgresql-pagination a { max-width:48%; }
.postgresql-hero { padding:3.25rem 0 2.5rem; color:#fff; background:linear-gradient(135deg,#102a43,#1f4e79 62%,#0f766e); }
.postgresql-hero h1 { margin:0; font-size:clamp(2rem,4vw,3.2rem); font-weight:800; letter-spacing:-.04em; }
.postgresql-hero p { max-width:780px; color:#d9f2ef; line-height:1.8; }
.postgresql-topic-list { display:grid; gap:12px; margin-bottom:3rem; }
.postgresql-topic-card { display:grid; grid-template-columns:62px minmax(0,1fr) auto; gap:18px; align-items:center; padding:18px 20px; border:1px solid #e3eaf2; border-radius:14px; background:#fff; text-decoration:none; box-shadow:0 7px 18px rgba(15,52,96,.04); transition:transform .18s,box-shadow .18s,border-color .18s; }
.postgresql-topic-card:hover { border-color:#a7d7d2; box-shadow:0 12px 26px rgba(15,52,96,.1); transform:translateX(4px); }
.postgresql-topic-number { display:grid; width:52px; height:52px; place-items:center; border-radius:13px; color:#0f766e; background:#e5f7f4; font-size:.78rem; font-weight:850; }
.postgresql-topic-card:nth-child(3n+2) .postgresql-topic-number { color:#1f4e79; background:#e8f1fb; }
.postgresql-topic-card:nth-child(3n) .postgresql-topic-number { color:#a96700; background:#fff4dc; }
.postgresql-topic-card h2 { margin:0 0 6px; color:#123b5d; font-size:1.15rem; line-height:1.35; font-weight:700; }
.postgresql-topic-card p { max-width:700px; min-height:7.2em; margin:0; color:#4b5565; font-size:.92rem; line-height:1.75; }
.postgresql-topic-arrow { color:#0f766e; font-size:1.25rem; font-weight:800; }
.postgresql-note { padding:18px 20px; margin:1.5rem 0 2.25rem; border-left:5px solid #0f766e; border-radius:8px; background:#eaf8f6; color:#234e52; line-height:1.7; }
@media(max-width:600px){.postgresql-topic-card{grid-template-columns:48px minmax(0,1fr);gap:13px;padding:15px}.postgresql-topic-number{width:44px;height:44px}.postgresql-topic-arrow{display:none}.postgresql-topic-card p{min-height:0}.postgresql-hero{padding:2.5rem 0 2rem}}
@media(max-width:600px){body[data-course="postgresql"] .container-xl{width:calc(100% - 28px)}body[data-course="postgresql"] h2{font-size:1.3rem}}
@media(max-width:600px){main.container-xl{width:100%;max-width:100%;padding-left:12px;padding-right:12px;padding-bottom:2rem}}
@media(max-width:600px){.postgresql-lesson > .spring-hero, main.container-xl > .spring-hero{padding-left:14px;padding-right:14px}}
@media(max-width:640px){.postgresql-pagination{align-items:stretch;flex-direction:column}.postgresql-pagination a{max-width:100%;width:100%;text-align:center}}
