@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("/mysql-tutorial/mysql.css");
body[data-course="design-pattern"] { background:#f7f9fc; color:#1f2937; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
body[data-course="design-pattern"] main.container-xl { width:min(1140px,calc(100% - 40px)); max-width:1140px; margin:0 auto; padding:0 0 3rem; box-sizing:border-box; }
.design-pattern-hero { position:relative; left:50%; width:100vw; transform:translateX(-50%); box-sizing:border-box; padding:48px max(20px,calc((100vw - 1140px)/2)) 36px; color:#fff; background:linear-gradient(135deg,#1a1a2e,#16213e 62%,#0f3460); }
.design-pattern-hero h1 { margin:0; color:#fff; font-size:clamp(2rem,4vw,3rem); line-height:1.2; font-weight:800; }
.design-pattern-hero p { max-width:780px; color:#cdd6f4; line-height:1.8; }
.design-pattern-eyebrow { margin:0 0 10px; color:#f8a100 !important; font-size:.8rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.design-pattern-list { display:grid; gap:12px; margin:1.5rem 0 3rem; }
.design-pattern-card { display:grid; grid-template-columns:62px minmax(0,1fr) auto; gap:18px; align-items:center; padding: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; }
.design-pattern-card:hover { border-color:#f8c76b; box-shadow:0 12px 26px rgba(15,52,96,.1); transform:translateX(4px); }
.design-pattern-number { display:grid; width:52px; height:52px; place-items:center; border-radius:13px; color:#a96700; background:#fff4dc; font-size:.78rem; font-weight:850; }
.design-pattern-card:nth-child(2) .design-pattern-number { color:#1f4e79; background:#e8f1fb; }
.design-pattern-card:nth-child(3) .design-pattern-number { color:#0f766e; background:#e5f7f4; }
.design-pattern-card h2 { margin:0 0 7px; color:#123b5d; font-size:1.25rem; line-height:1.35; font-weight:700; }
.pattern-category > h2 { margin:2.2rem 0 1rem; padding-left:12px; border-left:5px solid #f8a100; color:#0f3460; font-size:1.45rem; line-height:1.35; font-weight:700; }
.design-pattern-card h3 { margin:0 0 7px; color:#123b5d; font-size:1.15rem; line-height:1.35; font-weight:700; }
.design-pattern-card h3 a { color:inherit; text-decoration:none; }
.design-pattern-card h3 a:hover { color:#a96700; text-decoration:underline; text-underline-offset:4px; }
.design-pattern-card:has(h3 a) { position:relative; }
.design-pattern-card:has(h3 a) h3 a::after { position:absolute; inset:0; content:""; }
.pattern-lesson p, .pattern-lesson li { line-height:1.8; }
.pattern-lesson h2 { margin:2.2rem 0 1rem; padding-left:12px; border-left:5px solid #f8a100; color:#0f3460; font-size:1.45rem; line-height:1.35; font-weight:700; }
.pattern-lesson pre { margin:1.5rem 0 1.25rem; padding:1.2rem 1.4rem; overflow-x:auto; border-radius:8px; background:#1e1e2e; color:#cdd6f4; line-height:1.65; }
.pattern-lesson code { font-size:.9rem; }
.pattern-note { margin:1.5rem 0 2rem; padding:18px 20px; border-left:5px solid #f8a100; border-radius:8px; background:#fff7e6; color:#5d450d; line-height:1.7; }
.design-pattern-card p { max-width:760px; min-height:5.4em; margin:0; color:#4b5565; font-size:.94rem; line-height:1.75; }
.design-pattern-arrow { color:#a96700; font-size:1.25rem; font-weight:800; }
.design-pattern-pagination { display:flex; justify-content:space-between; align-items:center; gap:1rem; max-width:1000px; margin:2.5rem auto 1rem; padding-top:1.25rem; border-top:1px solid rgba(148,163,184,.24); }
.design-pattern-pagination a { max-width:48%; }
@media(max-width:640px){body[data-course="design-pattern"] main.container-xl{width:calc(100% - 28px)}.design-pattern-hero{padding-left:14px;padding-right:14px}.design-pattern-card{grid-template-columns:48px minmax(0,1fr);gap:13px;padding:15px}.design-pattern-number{width:44px;height:44px}.design-pattern-arrow{display:none}.design-pattern-card p{min-height:0}}
@media(max-width:640px){.design-pattern-pagination{align-items:stretch;flex-direction:column}.design-pattern-pagination a{max-width:100%;width:100%;text-align:center}}
