 .page-hero{background:linear-gradient(110deg,rgba(5,28,49,.91),rgba(0,91,132,.76)),url('../images/gkgcm-ict-lab.jpg') center/cover;padding:88px 0;color:#fff}.page-hero h1{font:800 clamp(2.35rem,5vw,4rem) Poppins,sans-serif;margin:.2rem 0 .8rem}.page-hero p{max-width:690px;color:#effaff;margin:0}.breadcrumb-line{font-size:.8rem;color:#e3f7ff;margin-top:1.35rem}.breadcrumb-line a{color:#fff}.content-photo{width:100%;height:390px;object-fit:cover;border-radius:18px;box-shadow:var(--shadow)}.value-card,.detail-card{background:#fff;padding:2rem;border-radius:14px;box-shadow:0 8px 28px rgba(24,48,66,.06);border:1px solid var(--line)}.value-card i,.detail-icon{font-size:2rem;color:var(--gkgcm-blue)}.value-card h3,.detail-card h3{font-size:1.15rem;margin:1rem 0 .5rem}.value-card p,.detail-card p{font-size:.9rem;color:var(--muted)}.detail-icon{width:56px;height:56px;border-radius:14px;background:#eaf8fe;display:grid;place-items:center;margin-bottom:1.2rem}.detail-icon i{font-size:1.55rem}.text-link{font-size:.85rem;font-weight:700;color:#008fc4}.notice-panel{display:flex;gap:1.1rem;padding:1.4rem 1.5rem;border-radius:14px;background:#eff9fd;border:1px solid #cceefa}.notice-panel>i{font-size:1.7rem;color:#009bd4}.notice-panel p{font-size:.88rem;color:#53616b;margin:.35rem 0}.feature-article{height:100%;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;box-shadow:0 8px 28px rgba(24,48,66,.05)}.feature-article img{width:100%;height:250px;object-fit:cover}.feature-article>div{padding:1.5rem}.feature-article h2{font:700 1.25rem Poppins,sans-serif;margin:.5rem 0}.feature-article p{color:var(--muted);font-size:.9rem;margin:0}.gallery-tile{position:relative;display:block;width:100%;padding:0;border:0;border-radius:14px;overflow:hidden;background:#eaf8fe;text-align:left}.gallery-tile img{width:100%;height:260px;object-fit:cover;transition:transform .35s}.gallery-tile:hover img{transform:scale(1.06)}.gallery-tile{display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);box-shadow:0 7px 22px rgba(24,48,66,.07);height:100%}
.gallery-tile img{width:100%;height:260px;object-fit:cover;display:block;flex:0 0 auto}
.gallery-tile span{position:static;display:block;padding:.65rem .8rem;color:var(--ink);font-size:.78rem;line-height:1.35;font-weight:600;background:#fff;min-height:2.65rem;overflow-wrap:anywhere}
.gallery-tile:focus-visible{outline:3px solid var(--gkgcm-blue);outline-offset:3px}
.gallery-tile:hover span{color:#008fc4}.contact-detail{display:flex;gap:1rem;align-items:flex-start;margin:1.5rem 0}.contact-detail>i{width:44px;height:44px;display:grid;place-items:center;background:#eaf8fe;color:#009bd4;border-radius:12px;font-size:1.2rem}.contact-detail strong,.contact-detail span{display:block}.contact-detail span{font-size:.86rem;color:var(--muted)}.contact-form,.application-panel{padding:2rem;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 35px rgba(24,48,66,.06);background:#fff}.form-control,.form-select{padding:.8rem .9rem;border-color:#dce5ea;border-radius:8px}.form-control:focus,.form-select:focus{border-color:var(--gkgcm-blue);box-shadow:0 0 0 .2rem rgba(0,175,239,.13)}.form-hint,.sample-note{font-size:.75rem;color:#7b8790}.check-list{list-style:none;padding:0}.check-list li{margin:.65rem 0}.check-list i{color:#3da66b;margin-right:.5rem}.application-steps{display:grid;gap:1.2rem;margin-top:2rem}.application-steps>div{display:flex;gap:1rem;align-items:flex-start}.application-steps b{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eaf8fe;color:#009bd4;font-family:Poppins,sans-serif}.application-steps strong,.application-steps small{display:block}.application-steps small{color:var(--muted);margin-top:.2rem}.application-panel{text-align:center;padding:3rem 2rem}.application-panel>i{font-size:3rem;color:var(--gkgcm-blue)}.application-panel h3{font:700 1.35rem Poppins,sans-serif;margin:1rem 0}.application-panel p{color:var(--muted);font-size:.9rem}.navbar-scrolled{box-shadow:0 8px 30px rgba(20,45,60,.13)}
@media(max-width:767.98px){.page-hero{padding:65px 0}.content-photo{height:300px}.gallery-tile img{height:180px}.feature-article img{height:210px}.contact-form,.application-panel{padding:1.3rem}}

/* Uniform programme imagery */
.program-photo{height:190px;object-fit:cover;width:100%;display:block}
.project-update{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.project-update img{width:100%;height:100%;min-height:310px;object-fit:cover}
.project-update-content{padding:2rem}
.project-progress{height:9px;background:#e7eef2;border-radius:20px;overflow:hidden}
.project-progress span{display:block;height:100%;width:65%;background:linear-gradient(90deg,#00AFEF,#8BD5A3);border-radius:20px}
.gallery-modal-image{max-height:76vh;object-fit:contain}
.gallery-nav{border:0;background:rgba(255,255,255,.13);color:#fff;border-radius:50%;width:44px;height:44px;display:grid;place-items:center}
.gallery-nav:hover{background:#00AFEF}
.footer-social{display:flex;gap:.65rem;margin-top:1rem}
.footer-social a{width:38px;height:38px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:grid;place-items:center;color:#fff;font-size:1rem;transition:.2s}
.footer-social a:hover{background:#00AFEF;border-color:#00AFEF;transform:translateY(-3px)}
.footer-links li a:before{content:'›';color:#8BD5A3;font-weight:900;margin-right:.55rem}
.footer-links li a:hover{padding-left:3px;color:#fff}

.cms-page-copy{color:#52616b;font-size:1rem;line-height:1.9}.cms-page-copy p{margin-bottom:1.05rem}.cms-page-copy p:last-child{margin-bottom:0}
/* Contact-column icon alignment override (keeps Bootstrap icons clean and removes decorative arrows). */
.site-footer .footer-contact-links li>a:before{content:none!important;margin:0!important}
.site-footer .footer-contact-links li>a:hover{padding-left:0!important}

/* Responsive gallery lightbox: keep the full photograph visible on phones and tablets. */
#galleryModal .modal-content{min-height:0;max-height:100dvh;overflow:hidden}
#galleryModal .modal-body{min-height:0;overflow:hidden;padding:0 .75rem 1rem}
#galleryModal .modal-body>div{min-height:0;justify-content:center}
.gallery-modal-image{display:block;width:auto!important;max-width:calc(100vw - 150px);max-height:calc(100dvh - 145px);height:auto;object-fit:contain;margin:0 auto}
.gallery-modal-dialog{max-width:min(1140px,96vw)}
.rental-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(24,48,66,.06);display:flex;flex-direction:column}
.rental-card>img{width:100%;height:230px;object-fit:cover}
.rental-placeholder{height:230px;display:grid;place-items:center;background:linear-gradient(135deg,#e9f8fd,#dcefe5);color:#008fc4;font-size:3rem}
.rental-card-body{padding:1.35rem;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.rental-type{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#008fc4}
.rental-card h3{font-size:1.2rem;font-weight:800;margin:.45rem 0}
.rental-card p{font-size:.88rem;color:var(--muted);white-space:normal}
.rental-card .rental-meta{margin:.25rem 0;color:#65737d}
.rental-price{font-weight:800;color:#20313d;font-size:1.05rem;margin:.4rem 0}
.rental-price small{font-size:.75rem;font-weight:500;color:var(--muted)}
.rental-card .btn{margin-top:auto}
@media(max-width:575.98px){#galleryModal .modal-header{padding:.8rem 1rem}#galleryModal .modal-title{font-size:1rem}#galleryModal .modal-body{padding:.25rem .35rem .8rem}#galleryModal .modal-body>div{gap:.35rem!important;height:calc(100dvh - 95px)}.gallery-modal-image{max-width:calc(100vw - 92px);max-height:calc(100dvh - 125px);width:auto!important}.gallery-nav{width:34px;height:34px;flex:0 0 34px}.gallery-modal-dialog{margin:0;max-width:100vw;height:100dvh}.gallery-modal-dialog .modal-content{height:100dvh;border-radius:0}}

/* Compact gallery captions: titles no longer cover the photographs. */
.gallery-entry,.gallery-tile{min-width:0}
.gallery-tile span{font-size:.78rem;letter-spacing:0;white-space:normal}
@media(max-width:767.98px){
 .gallery-tile img{height:180px}
 .gallery-tile span{font-size:.69rem;line-height:1.3;padding:.5rem .55rem;min-height:2.35rem}
 .gallery-tile{border-radius:11px}
}
@media(max-width:380px){
 .gallery-tile img{height:155px}
 .gallery-tile span{font-size:.65rem;padding:.45rem .5rem}
}

/* Accessible, responsive pagination for the public gallery */
.gallery-pagination .page-link{border-radius:8px;border:1px solid var(--line);color:var(--gkgcm-blue);min-width:38px;text-align:center;font-weight:600}
.gallery-pagination .page-item.active .page-link{background:var(--gkgcm-blue);border-color:var(--gkgcm-blue);color:#fff}
.gallery-pagination .page-item.disabled .page-link{color:#9aa6af;pointer-events:none;background:#f4f6f8}
.gallery-pagination .pagination{row-gap:8px}
@media(max-width:575.98px){.gallery-pagination .page-link{min-width:34px;padding:.4rem .6rem;font-size:.85rem}}

/* AJAX gallery navigation: retain layout and scroll position while results update. */
#galleryResults{transition:opacity .18s ease}
#galleryResults.is-loading{opacity:.58;pointer-events:none}
#galleryResults[aria-busy="true"]{cursor:progress}
@media(prefers-reduced-motion:reduce){#galleryResults{transition:none}}
