
body.drcgf-resources-page .drcgf-page-shell{background:#f7f9fc;}
.drcgf-resource-panel{padding:0;overflow:hidden;}
.drcgf-resource-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e7edf5;background:#fff;}
.drcgf-resource-search-wrap{position:relative;flex:1;max-width:520px;}.drcgf-resource-search-wrap i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#7a8798}.drcgf-resource-search{width:100%;height:46px;border:1px solid #d8e0ea;border-radius:9px;padding:0 15px 0 42px!important;margin:0!important;background:#fbfcfe;box-shadow:none!important}.drcgf-resource-search:focus{border-color:#164575;outline:none;background:#fff}.drcgf-resource-count{font-size:13px;color:#69788c;white-space:nowrap}
.drcgf-resource-list{background:#fff}.drcgf-resource-item{border-bottom:1px solid #e8edf4}.drcgf-resource-item:last-child{border-bottom:0}.drcgf-resource-button{width:100%;border:0;background:#fff;color:#182538;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;text-align:left;padding:17px 22px;cursor:pointer;margin:0;min-height:76px;box-shadow:none;text-transform:none;font-size:inherit;letter-spacing:normal}.drcgf-resource-button:hover{background:#f8fafc}.drcgf-resource-number{width:36px;height:36px;border-radius:9px;background:#f1f4f8;color:#526174;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.drcgf-resource-title{font-size:16px;font-weight:700;line-height:1.35}.drcgf-resource-type{display:block;margin-top:3px;color:#8290a2;font-size:12px;font-weight:500}.drcgf-resource-chevron{width:28px;height:28px;display:flex;align-items:center;justify-content:center;transition:transform .2s;color:#6b7787}.drcgf-resource-item.is-open .drcgf-resource-chevron{transform:rotate(180deg)}
.drcgf-resource-content{display:none;padding:4px 22px 24px 78px;background:#fff}.drcgf-resource-item.is-open .drcgf-resource-content{display:block}.drcgf-resource-empty{border:1px dashed #ccd6e3;border-radius:10px;background:#fafbfd;padding:24px;text-align:center;color:#748195}.drcgf-resource-empty strong{display:block;color:#3a4a5f;margin-bottom:5px}.drcgf-resource-path{font-family:monospace;font-size:12px;background:#eef2f6;padding:2px 6px;border-radius:4px;color:#47576b}
.drcgf-youtube-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:18px}.drcgf-youtube-frame{position:relative;padding-top:56.25%;border-radius:10px;overflow:hidden;background:#103563}.drcgf-youtube-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.drcgf-video-list{border:1px solid #e3e9f1;border-radius:10px;overflow:hidden;max-height:360px;overflow-y:auto}.drcgf-video-list h3{font-size:14px;margin:0;padding:12px 14px;background:#f7f9fc;border-bottom:1px solid #e3e9f1}.drcgf-video-link{display:block;padding:11px 14px;border-bottom:1px solid #eef2f6;color:#314158;font-size:13px;line-height:1.35}.drcgf-video-link:last-child{border-bottom:0}.drcgf-video-link:hover{background:#fafbfd;color:#164575}.drcgf-video-note{font-size:12px;color:#7a8798;padding:12px 14px;margin:0}
.drcgf-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.drcgf-image-card{display:block;border:1px solid #e1e8f1;border-radius:9px;overflow:hidden;background:#f7f9fc;aspect-ratio:1/1;position:relative}.drcgf-image-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.drcgf-image-card:hover img{transform:scale(1.035)}.drcgf-image-caption{position:absolute;left:0;right:0;bottom:0;padding:22px 8px 7px;background:linear-gradient(transparent,rgba(15, 66, 117,.64));color:#fff;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drcgf-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.drcgf-file-card{border:1px solid #e1e8f1;border-radius:9px;padding:15px;display:flex;gap:12px;align-items:center;color:#34445a;background:#fff}.drcgf-file-card:hover{border-color:#aab8c9;box-shadow:0 5px 15px rgba(18,50,85,.07)}.drcgf-file-icon{width:42px;height:42px;border-radius:8px;background:#f2f5f8;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;color:#526174;flex:0 0 auto}.drcgf-file-name{min-width:0;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drcgf-file-meta{font-size:11px;color:#8a96a5;margin-top:3px}
.drcgf-slide-stage{border:1px solid #e1e8f1;border-radius:10px;overflow:hidden;background:#0e1116;position:relative}.drcgf-slide-stage img{display:block;width:100%;max-height:650px;object-fit:contain;margin:auto}.drcgf-slide-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}.drcgf-slide-nav button{border:1px solid #d3dce7;background:#fff;color:#26364a;border-radius:7px;padding:8px 13px;margin:0;cursor:pointer}.drcgf-slide-counter{font-size:12px;color:#6d7b8c}
.drcgf-resource-no-results{padding:36px 22px;text-align:center;color:#748195}
@media(max-width:900px){.drcgf-youtube-layout{grid-template-columns:1fr}.drcgf-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.drcgf-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drcgf-resource-content{padding-left:22px}}
@media(max-width:560px){.drcgf-resource-toolbar{align-items:stretch;flex-direction:column}.drcgf-resource-search-wrap{max-width:none}.drcgf-resource-button{grid-template-columns:36px minmax(0,1fr) 24px;padding:14px 14px;gap:10px}.drcgf-resource-title{font-size:14px}.drcgf-resource-content{padding:2px 14px 18px}.drcgf-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.drcgf-file-grid{grid-template-columns:1fr}.drcgf-resource-count{display:none}}

/* v2: YouTube playlist hien thi toan bo video */
.drcgf-youtube-section{width:100%}.drcgf-youtube-section .drcgf-youtube-frame{max-width:900px;margin:0 auto 20px}.drcgf-youtube-section .drcgf-youtube-frame>div,.drcgf-youtube-section .drcgf-youtube-frame iframe{position:absolute!important;inset:0;width:100%!important;height:100%!important;border:0}.drcgf-video-grid-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 12px}.drcgf-video-grid-head h3{font-size:16px;margin:0}.drcgf-video-grid-head span{font-size:12px;color:#7a8798}.drcgf-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.drcgf-video-card{display:block;width:100%;padding:0;text-align:left;background:#fff;border:1px solid #e4e9ef;border-radius:10px;overflow:hidden;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.drcgf-video-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15, 66, 117,.08);border-color:#cbd4df}.drcgf-video-card.is-active{border-color:#164575;box-shadow:0 0 0 1px #164575}.drcgf-video-thumb{display:block;position:relative;aspect-ratio:16/9;background:#103563;overflow:hidden}.drcgf-video-thumb img{width:100%;height:100%;object-fit:cover;display:block}.drcgf-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(15, 66, 117,.72);color:#fff;font-size:15px;padding-left:2px}.drcgf-video-card-title{display:block;padding:10px 11px 12px;font-size:13px;font-weight:600;line-height:1.4;color:#263548;min-height:58px}.drcgf-video-loading{grid-column:1/-1;padding:24px;text-align:center;border:1px dashed #d7dee8;border-radius:10px;color:#718096;font-size:13px}.drcgf-video-loading a{text-decoration:underline}.drcgf-youtube-section+.drcgf-video-grid{margin-top:18px}
@media(max-width:800px){.drcgf-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.drcgf-video-grid{grid-template-columns:1fr}.drcgf-video-card-title{min-height:0}.drcgf-video-grid-head{align-items:flex-end}}


/* v5: folder accordion + gallery đồng bộ phong cách trang chủ */
.drcgf-resource-list{
  padding:14px 18px 18px;
  background:#fff;
}
.drcgf-resource-item{
  border:1px solid #e8edf5;
  background:#fff;
  margin:0 0 10px;
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.drcgf-resource-item:last-child{border-bottom:1px solid #e8edf5;margin-bottom:0}
.drcgf-resource-item:hover{
  border-color:#dbe3ee;
  box-shadow:0 8px 24px rgba(18,73,154,.07);
}
.drcgf-resource-item.is-open{
  border-color:#cfd9e7;
  box-shadow:0 10px 28px rgba(18,73,154,.08);
}
.drcgf-resource-button{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:70px;
  padding:15px 18px;
  background:#fff;
}
.drcgf-resource-button:hover{background:#fbfcfe}
.drcgf-resource-number{
  width: 38px;
  height: 41px;
  flex: 0 0 38px;
  border-radius: 3px;
  background: #f4f6f9;
  color: #153e68;
  font-size: 18px;
}
.drcgf-resource-button>span:nth-child(2){min-width:0;flex:1}
.drcgf-resource-title{font-size:18px;font-weight:700;line-height:1.4;color:#14213d}
.drcgf-resource-type{margin-top:4px;color:#8995a5;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.drcgf-resource-chevron{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  color:#536177;
  font-size:19px;
  transition:transform .25s ease,background .2s ease,color .2s ease;
}
.drcgf-resource-button:hover .drcgf-resource-chevron{background:#f2f5f8;color:#164575}
.drcgf-resource-item.is-open .drcgf-resource-chevron{transform:rotate(180deg)}
.drcgf-resource-content{
  display:none;
  padding:24px 22px 28px;
  border-top:1px solid #edf1f6;
  background:#fff;
}

/* Gallery: cùng ngôn ngữ thiết kế với catalogue sản phẩm trang chủ. */
.drcgf-image-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:26px;
}
.drcgf-image-card{
  display:flex;
  flex-direction:column;
  position:relative;
  width:100%;
  aspect-ratio:auto;
  overflow:hidden;
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:0;
  transition:transform .25s ease,box-shadow .25s ease;
}
.drcgf-image-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(18,73,154,.12);
}
.drcgf-image-card img{
  position:relative;
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  padding:18px;
  object-fit:contain;
  object-position:center;
  background:#fff;
  box-sizing:border-box;
  transition:none;
}
.drcgf-image-card:hover img{transform:none}
.drcgf-image-caption{
  position:static;
  display:block;
  padding:12px 14px 14px;
  background:#fff;
  color:#4c5b70;
  border-top:1px solid #f0f3f7;
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:900px){
  .drcgf-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(max-width:560px){
  .drcgf-resource-list{padding:10px}
  .drcgf-resource-button{padding:13px 12px;gap:10px;min-height:64px}
  .drcgf-resource-title{font-size:16px}
  .drcgf-resource-number{width:34px;height:34px;flex-basis:34px}
  .drcgf-resource-chevron{width:28px;height:28px;flex-basis:28px}
  .drcgf-resource-content{padding:18px 12px 22px}
  .drcgf-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .drcgf-image-card img{padding:10px}
  .drcgf-image-caption{padding:9px 10px 11px;font-size:11px}
}


/* v8 UI: folder arrow + product-style image gallery + fullscreen viewer */
.drcgf-resource-title{font-size:18px!important;font-weight:700;line-height:1.4}
.drcgf-resource-chevron,.drcgf-resource-button .drcgf-resource-chevron{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;color:#596879;display:flex;align-items:center;justify-content:center;font-size:21px;line-height:1}
.drcgf-resource-chevron:before,.drcgf-resource-chevron:after{display:none!important}
.drcgf-resource-chevron i{display:block;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
.drcgf-resource-item.is-open .drcgf-resource-chevron{transform:rotate(180deg)}

.drcgf-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.drcgf-image-card{display:flex!important;flex-direction:column;aspect-ratio:auto!important;position:relative;overflow:hidden;border:1px solid #ececec!important;border-radius:5px!important;background:#fff!important;box-shadow:0 2px 10px rgba(15, 66, 117,.035);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;text-decoration:none!important;cursor:zoom-in}
.drcgf-image-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(15, 66, 117,.08);border-color:#cedff0!important}
.drcgf-image-media{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;background:#fff;padding:14px;overflow:hidden}
.drcgf-image-card img{width:100%!important;height:100%!important;object-fit:contain!important;display:block;transition:transform .25s ease}
.drcgf-image-card:hover img{transform:scale(1.025)}
.drcgf-image-caption{position:static!important;display:block;padding:10px 12px 12px!important;background:none!important;color:#234e78!important;font-size:12px!important;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:1px solid #f3f3f3}

body.drcgf-lightbox-open{overflow:hidden!important}
.drcgf-image-lightbox{position:fixed;inset:0;z-index:9999999;background:rgba(15, 66, 117,.96);display:none;align-items:center;justify-content:center;padding:18px 70px 48px;user-select:none}
.drcgf-image-lightbox.is-open{display:flex}
.drcgf-lightbox-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:relative}
.drcgf-lightbox-stage img{display:block;max-width:100%;max-height:calc(100vh - 70px);width:auto;height:auto;object-fit:contain;box-shadow:none}
.drcgf-lightbox-close,.drcgf-lightbox-prev,.drcgf-lightbox-next{position:absolute!important;z-index:3!important;display:flex;align-items:center;justify-content:center;margin:0!important;border:0!important;background:rgba(15, 66, 117,.28)!important;color:#fff!important;box-shadow:none!important;cursor:pointer;line-height:1!important;text-transform:none!important}
.drcgf-lightbox-close{right:18px;top:14px;width:46px!important;height:46px!important;border-radius:50%!important;font-size:40px!important;font-weight:300!important;padding:0 0 5px!important}
.drcgf-lightbox-prev,.drcgf-lightbox-next{top:50%;transform:translateY(-50%);width:54px!important;height:76px!important;border-radius:8px!important;font-size:54px!important;font-weight:200!important;padding:0 0 8px!important}
.drcgf-lightbox-prev{left:12px}.drcgf-lightbox-next{right:12px}
.drcgf-lightbox-close:hover,.drcgf-lightbox-prev:hover,.drcgf-lightbox-next:hover{background:rgba(255,255,255,.16)!important;color:#fff!important}
.drcgf-lightbox-caption{position:absolute;left:50%;bottom:-30px;transform:translateX(-50%);max-width:80vw;color:#cedff0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.drcgf-lightbox-counter{position:absolute;bottom:15px;right:20px;color:#cedff0;font-size:13px;background:rgba(15, 66, 117,.35);padding:5px 9px;border-radius:4px}
@media(max-width:900px){.drcgf-image-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:560px){.drcgf-resource-title{font-size:16px!important}.drcgf-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.drcgf-image-media{padding:8px}.drcgf-image-caption{font-size:11px!important;padding:8px!important}.drcgf-image-lightbox{padding:55px 5px 48px}.drcgf-lightbox-stage img{max-height:calc(100vh - 115px);max-width:100%}.drcgf-lightbox-close{right:8px;top:7px;width:40px!important;height:40px!important;font-size:35px!important}.drcgf-lightbox-prev,.drcgf-lightbox-next{width:42px!important;height:64px!important;font-size:44px!important;background:rgba(15, 66, 117,.38)!important}.drcgf-lightbox-prev{left:3px}.drcgf-lightbox-next{right:3px}.drcgf-lightbox-caption{bottom:-28px;max-width:72vw;font-size:11px}.drcgf-lightbox-counter{right:8px;bottom:8px}}


/* v9: file cards wrap correctly + fullscreen PDF viewer */
.drcgf-file-card{min-width:0;align-items:flex-start!important}
.drcgf-file-info{display:flex;flex:1 1 auto;min-width:0;max-width:100%;flex-direction:column;align-items:flex-start}
.drcgf-file-name{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.45!important}
.drcgf-file-meta{display:block!important;width:100%;margin-top:7px!important;line-height:1.35!important;color:#8490a1!important}

body.drcgf-pdf-open{overflow:hidden!important}
.drcgf-pdf-viewer{position:fixed;inset:0;z-index:10000000;background:rgba(15, 66, 117,.96);display:none;flex-direction:column;padding:0;overflow:hidden}
.drcgf-pdf-viewer.is-open{display:flex}
.drcgf-pdf-toolbar{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px 8px 18px;background:#103563;border-bottom:1px solid rgba(255,255,255,.14);color:#fff}
.drcgf-pdf-title{min-width:0;flex:1;font-size:14px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drcgf-pdf-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.drcgf-pdf-open-new{display:inline-flex!important;align-items:center;justify-content:center;height:38px;padding:0 13px!important;margin:0!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:5px!important;background:transparent!important;color:#fff!important;font-size:12px!important;font-weight:600!important;text-decoration:none!important;line-height:1!important;text-transform:none!important}
.drcgf-pdf-open-new:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
.drcgf-pdf-close{display:flex!important;align-items:center;justify-content:center;width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;padding:0 0 4px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.1)!important;color:#fff!important;box-shadow:none!important;font-size:34px!important;font-weight:300!important;line-height:1!important;text-transform:none!important;cursor:pointer}
.drcgf-pdf-close:hover{background:rgba(255,255,255,.2)!important;color:#fff!important}
.drcgf-pdf-stage{flex:1 1 auto;min-height:0;width:100%;background:#2a2a2a}
.drcgf-pdf-stage iframe{display:block;width:100%;height:100%;border:0;background:#fff}
@media(max-width:700px){.drcgf-file-grid{grid-template-columns:1fr!important}.drcgf-pdf-toolbar{height:auto;min-height:54px;flex-basis:auto;padding:7px 8px 7px 12px;gap:8px}.drcgf-pdf-title{font-size:12px}.drcgf-pdf-open-new{height:36px;padding:0 9px!important;font-size:11px!important}.drcgf-pdf-close{width:38px!important;height:38px!important;min-width:38px!important;font-size:31px!important}}


/* v10: circular close buttons + PDF fit-page + presentation fullscreen */
.drcgf-lightbox-close,
.drcgf-pdf-close{
  box-sizing:border-box!important;
  aspect-ratio:1/1!important;
  border-radius:999px!important;
  overflow:hidden!important;
  flex:none!important;
}
.drcgf-lightbox-close:hover,
.drcgf-lightbox-close:focus,
.drcgf-pdf-close:hover,
.drcgf-pdf-close:focus{
  border-radius:999px!important;
  transform:none!important;
}
.drcgf-pdf-fullscreen{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer;
  text-transform:none!important;
}
.drcgf-pdf-fullscreen:hover,.drcgf-pdf-fullscreen:focus{background:rgba(255,255,255,.12)!important;color:#fff!important}
.drcgf-pdf-viewer.is-native-fullscreen{background:#153e68!important}
.drcgf-pdf-viewer.is-native-fullscreen .drcgf-pdf-toolbar{background:#050505!important}
@media(max-width:700px){.drcgf-pdf-fullscreen{width:38px!important;height:38px!important;min-width:38px!important;font-size:20px!important}.drcgf-pdf-actions{gap:6px!important}}
\n\n/* v11: close controls independent from theme button CSS */\n.drcgf-round-close{\n  -webkit-appearance:none!important;\n  appearance:none!important;\n  display:flex!important;\n  align-items:center!important;\n  justify-content:center!important;\n  box-sizing:border-box!important;\n  width:44px!important;\n  height:44px!important;\n  min-width:44px!important;\n  min-height:44px!important;\n  max-width:44px!important;\n  max-height:44px!important;\n  padding:0 0 4px 0!important;\n  margin:0!important;\n  border:0!important;\n  border-radius:50%!important;\n  background:rgba(255,255,255,.12)!important;\n  background-clip:padding-box!important;\n  box-shadow:none!important;\n  color:#fff!important;\n  font-family:Arial,sans-serif!important;\n  font-size:34px!important;\n  font-weight:300!important;\n  line-height:1!important;\n  cursor:pointer!important;\n  flex:0 0 44px!important;\n  overflow:hidden!important;\n  transform:none!important;\n  text-decoration:none!important;\n}\n.drcgf-round-close::before,.drcgf-round-close::after{content:none!important;display:none!important}\n.drcgf-round-close:hover,.drcgf-round-close:focus,.drcgf-round-close:active{\n  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;\n  border-radius:50%!important;background:rgba(255,255,255,.24)!important;transform:none!important;outline:none!important;\n}\n.drcgf-lightbox-close.drcgf-round-close{right:18px!important;top:14px!important;position:absolute!important}\n.drcgf-pdf-close.drcgf-round-close{position:relative!important;right:auto!important;top:auto!important}\n@media(max-width:700px){\n .drcgf-round-close,.drcgf-round-close:hover,.drcgf-round-close:focus,.drcgf-round-close:active{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex-basis:40px!important;font-size:31px!important}\n .drcgf-lightbox-close.drcgf-round-close{right:8px!important;top:7px!important}\n}\n

/* v12: embedded PowerPoint viewer */
.drcgf-pdf-viewer.is-office-viewer .drcgf-pdf-stage{background:#f2f2f2!important}
.drcgf-office-local-note{box-sizing:border-box;position:absolute;inset:58px 0 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:32px;background:#202020;color:#fff;z-index:2}
.drcgf-office-local-note[hidden]{display:none!important}
.drcgf-office-local-note strong{font-size:20px;line-height:1.35;color:#fff}
.drcgf-office-local-note span{max-width:680px;font-size:14px;line-height:1.65;color:rgba(255,255,255,.78)}
.drcgf-pdf-stage{position:relative}
@media(max-width:700px){.drcgf-office-local-note{inset:54px 0 0 0;padding:22px}.drcgf-office-local-note strong{font-size:17px}.drcgf-office-local-note span{font-size:13px}}


/* v15: viewer scroll isolation — trang nền đứng yên khi xem ảnh/PDF/Office */
html:has(.drcgf-image-lightbox.is-open),
html:has(.drcgf-pdf-viewer.is-open){overscroll-behavior:none!important;}
body.drcgf-viewer-scroll-locked{overscroll-behavior:none!important;touch-action:none;}
.drcgf-image-lightbox,.drcgf-pdf-viewer{overscroll-behavior:contain!important;}
.drcgf-pdf-stage,.drcgf-pdf-stage iframe{overscroll-behavior:contain!important;}
.drcgf-pdf-stage iframe{touch-action:auto;}


/* v17: Link tổng hợp - responsive, không tràn ngang trên điện thoại */
.drcgf-links-box{border:1px solid #dbe4ef;background:#fff;overflow:hidden;border-radius:10px}
.drcgf-links-heading{background:#164b98;color:#fff;text-align:center;font-size:21px;font-weight:800;padding:14px 18px;letter-spacing:.01em}
.drcgf-links-table-wrap{width:100%;overflow:visible}
.drcgf-links-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0}
.drcgf-links-table th,.drcgf-links-table td{border:1px solid #d8e0e9;padding:13px 14px;vertical-align:middle;line-height:1.45;min-width:0;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.drcgf-links-table th{background:#e7f0f9;color:#174b8e;font-size:15px;font-weight:800;text-align:left}
.drcgf-links-table th:nth-child(1),.drcgf-links-table td:nth-child(1){width:7%;text-align:center}
.drcgf-links-table th:nth-child(2),.drcgf-links-table td:nth-child(2){width:27%}
.drcgf-links-table th:nth-child(3),.drcgf-links-table td:nth-child(3){width:43%}
.drcgf-links-table th:nth-child(4),.drcgf-links-table td:nth-child(4){width:23%;text-align:center}
.drcgf-links-table td{font-size:14px;color:#17243a;background:#fff}
.drcgf-links-table tbody tr:hover td{background:#f8fbff}
.drcgf-links-table td:nth-child(3) a{display:block;color:#26384f;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.drcgf-link-open{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:38px;padding:8px 12px;border-radius:6px;background:#164b98;color:#fff!important;font-size:13px;font-weight:800;white-space:normal;text-align:center;line-height:1.3;transition:background .2s ease,transform .2s ease}
.drcgf-link-open:hover{background:#103d7d;transform:translateY(-1px)}
@media(max-width:700px){
  .drcgf-links-box{border:0;background:transparent;overflow:visible}
  .drcgf-links-heading{font-size:17px;padding:12px;border-radius:8px 8px 0 0}
  .drcgf-links-table,.drcgf-links-table tbody,.drcgf-links-table tr,.drcgf-links-table td{display:block;width:100%!important}
  .drcgf-links-table thead{display:none}
  .drcgf-links-table tbody{display:grid;gap:10px;padding-top:10px}
  .drcgf-links-table tr{border:1px solid #dbe4ef;border-radius:10px;background:#fff;padding:11px 12px;overflow:hidden}
  .drcgf-links-table td{border:0!important;padding:4px 0!important;text-align:left!important;font-size:14px;background:transparent!important}
  .drcgf-links-table td:first-child{font-weight:800;color:#164b98;font-size:12px}
  .drcgf-links-table td:first-child:before{content:'STT ';font-weight:600;color:#718096}
  .drcgf-links-table td:nth-child(2){font-size:15px}
  .drcgf-links-table td:nth-child(3){margin-top:2px}
  .drcgf-links-table td:nth-child(3) a{font-size:13px;line-height:1.45}
  .drcgf-links-table td:nth-child(4){padding-top:9px!important}
  .drcgf-link-open{width:100%;min-height:40px}
}

/* Compact image navigation shared by the 2D page and 3D content viewer. */
body #drcgf-image-lightbox :is(.drcgf-lightbox-prev,.drcgf-lightbox-next){width:40px!important;height:48px!important;min-width:40px!important;min-height:48px!important;padding:0 0 3px!important;font-size:30px!important;line-height:1!important;font-weight:400!important;border-radius:12px!important;display:flex;align-items:center;justify-content:center}
body #drcgf-image-lightbox .drcgf-lightbox-prev{left:8px}
body #drcgf-image-lightbox .drcgf-lightbox-next{right:8px}
@media(max-width:600px){body #drcgf-image-lightbox :is(.drcgf-lightbox-prev,.drcgf-lightbox-next){width:34px!important;height:42px!important;min-width:34px!important;min-height:42px!important;font-size:27px!important;border-radius:10px!important}}
