@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500&family=EB+Garamond:wght@400;500;600&family=Lato:wght@400;700&display=swap');

*{box-sizing:border-box;margin:0;padding:0;}
:root{
  --red:#B50202;
  --red-dark:#8c0101;
  --red-deeper:#990000;
  --white:#ffffff;
  --cream:#faf6ef;
  --parchment:#f5ede0;
  --text:#1a0a00;
  --muted:#7a6a58;
  --border:#e0d0c8;
  --border-light:#ede3d4;
  --light-bg:#fff8f8;
}

body.lgc-no-scroll{overflow:hidden;touch-action:none;}

/* ── TRIGGER BUTTON ── */
.lgc-trigger-btn{
  background:#B50202;color:#fff;border:none;
  padding:13px 30px;
  font-family:'Lato',sans-serif;font-size:15px;font-weight:700;
  cursor:pointer;letter-spacing:.04em;text-transform:uppercase;
  transition:background .2s;
  display:inline-flex;align-items:center;gap:10px;
  box-shadow:0 4px 14px rgba(230,0,0,.4);
}
.lgc-trigger-btn:hover{background:#8c0101;}
.lgc-live-dot{display:inline-block;width:9px;height:9px;background:#fff;border-radius:50%;animation:lgc-pulse 1.5s ease infinite;flex-shrink:0;}
@keyframes lgc-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,255,255,.7);}60%{box-shadow:0 0 0 7px rgba(255,255,255,0);}}

/* ── OVERLAY ── */
#lgc-popup-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.65);
  display:none;align-items:center;justify-content:center;
  z-index:999999;padding:1rem;overflow-y:auto;
}
#lgc-popup-overlay.lgc-active{display:flex;animation:lgc-fi .25s ease;}
@keyframes lgc-fi{from{opacity:0}to{opacity:1}}

/* ── MODAL ── */
.lgc-modal{
  background:#fff;
  border:none;
  width:100%;max-width:680px;
  max-height:92vh;overflow:hidden;
  display:flex;flex-direction:column;
  animation:lgc-rise .3s cubic-bezier(.34,1.1,.64,1);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  margin:auto;
}
@keyframes lgc-rise{from{transform:translateY(36px) scale(.97);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}

/* ── HEADER — solid #B50202, all white ── */
.lgc-header{background:#B50202;}
.lgc-crest-bar{display:none;}
.lgc-header-inner{padding:18px 22px 14px;display:flex;align-items:center;gap:0;}
.lgc-school-name{flex:1;}
.lgc-s1{font-family:'Playfair Display',serif;font-size:19px;font-weight:700;color:#ffffff;line-height:1.2;}
.lgc-s2{font-family:'Lato',sans-serif;font-size:11px;color:rgba(255,255,255,.85);margin-top:4px;letter-spacing:.06em;}
.lgc-close{
  background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.5);
  color:#ffffff;width:32px;height:32px;border-radius:50%;
  cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;
  transition:background .15s;flex-shrink:0;line-height:1;
}
.lgc-close:hover{background:rgba(255,255,255,.35);}

.lgc-motto{
  background:#8c0101;
  padding:7px 22px;
  font-family:'Playfair Display',serif;font-style:italic;
  font-size:12px;color:#ffffff;text-align:center;letter-spacing:.06em;
}

/* ── TABS ── */
.lgc-tabs{display:flex;border-bottom:1px solid #e0e0e0;background:#fff;}
.lgc-tab{
  flex:1;padding:12px 8px;border:none;background:none;
  font-family:'Lato',sans-serif;font-size:12px;font-weight:700;
  color:#888;cursor:pointer;letter-spacing:.04em;text-transform:uppercase;
  border-bottom:3px solid transparent;margin-bottom:-1px;
  transition:color .2s,border-color .2s;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.lgc-tab:hover{color:#B50202;}
.lgc-tab.lgc-active{color:#B50202;border-bottom:3px solid #B50202;background:#fff;}

/* ── BODY ── */
.lgc-body{flex:1;overflow-y:auto;background:#faf6ef;}
.lgc-panel{display:none;padding:20px 22px;}
.lgc-panel.lgc-active{display:block;}

/* ── SECTION HEADING ── */
.lgc-sh{
  font-family:'Lato',sans-serif;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;color:#B50202;
  margin-bottom:12px;margin-top:20px;padding-bottom:7px;
  border-bottom:1px solid #e8e0e0;
}

/* ── ADMISSIONS ALERT ── */
.lgc-alert-box{
  background:#fff;border:1px solid #e8e0e0;
  padding:18px;margin-bottom:18px;
}
.lgc-ab-row{display:flex;align-items:center;gap:9px;margin-bottom:10px;flex-wrap:wrap;}
.lgc-badge{
  background:#B50202;color:#fff;
  font-family:'Lato',sans-serif;font-size:10px;font-weight:700;
  padding:4px 13px;border-radius:20px;letter-spacing:.08em;text-transform:uppercase;
  animation:lgc-bdg 2s ease infinite;
}
@keyframes lgc-bdg{0%,100%{opacity:1}50%{opacity:.65}}
.lgc-ab-yr{font-family:'Lato',sans-serif;font-size:12px;color:#666;}
.lgc-a-title{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:#B50202;line-height:1.25;margin-bottom:9px;}
.lgc-a-body{font-family:'EB Garamond',serif;font-size:15px;color:#3a1010;line-height:1.7;margin-bottom:14px;}
.lgc-dg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;}
.lgc-dc{background:#f9f9f9;border:1px solid #e8e0e0;padding:10px 13px;transition:background .15s;}
a.lgc-dc:hover{background:#f0f0f0;}
.lgc-dl{font-family:'Lato',sans-serif;font-size:9.5px;color:#999;text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px;font-weight:700;}
.lgc-dv{font-family:'Lato',sans-serif;font-size:13px;font-weight:700;color:#222;}

/* ── APPLY NOW — flashing ── */
.lgc-cta{
  background:#B50202;color:#fff;border:none;
  padding:14px 20px;
  font-family:'Lato',sans-serif;font-size:14px;font-weight:700;
  cursor:pointer;width:100%;letter-spacing:.06em;text-transform:uppercase;
  animation:lgc-flash 1.3s ease infinite;
  position:relative;overflow:hidden;text-decoration:none;display:block;text-align:center;
}
@keyframes lgc-flash{
  0%,100%{background:#B50202;box-shadow:none;}
  45%{background:#cc2222;box-shadow:0 0 0 6px rgba(230,0,0,.2);}
  70%{background:#8c0101;box-shadow:0 0 0 12px rgba(230,0,0,0);}
}
.lgc-cta::after{content:'';position:absolute;top:0;left:-120%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);animation:lgc-sweep 2.4s ease infinite;}
@keyframes lgc-sweep{0%{left:-120%}55%,100%{left:160%}}
.lgc-cta:hover{animation:none;background:#8c0101;}

/* ── NEWS LIST ── */
.lgc-nlist{display:flex;flex-direction:column;gap:8px;}
.lgc-ni{
  display:flex;gap:12px;align-items:flex-start;
  padding:11px 14px;
  border:1px solid #e8e0e0;
  background:#fff;cursor:pointer;
  transition:background .15s,transform .15s;
}
.lgc-ni:hover{background:#f9f6f6;transform:translateX(2px);}
.lgc-ndot{width:7px;height:7px;border-radius:50%;background:#B50202;flex-shrink:0;margin-top:5px;}
.lgc-nc{flex:1;}
.lgc-ntag{font-family:'Lato',sans-serif;font-size:10px;font-weight:700;color:#B50202;text-transform:uppercase;letter-spacing:.08em;margin-bottom:2px;}
.lgc-ntitle{font-family:'EB Garamond',serif;font-size:14.5px;font-weight:500;color:#1a0a00;line-height:1.4;margin-bottom:2px;}
.lgc-ndate{font-family:'Lato',sans-serif;font-size:11px;color:#999;}

/* ── SOCIAL FEED HEADER (shared by FB, YT) ── */
.lgc-feed-hd{
  display:flex;align-items:center;gap:11px;margin-bottom:14px;
  padding:12px 14px;background:#fff;border:1px solid #ece0e0;
}
.lgc-feed-ic{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.lgc-feed-pn{font-family:'Lato',sans-serif;font-size:14px;font-weight:700;color:#1a0a00;}
.lgc-feed-hn{font-family:'Lato',sans-serif;font-size:11px;color:#888;}

/* ── FACEBOOK ── */
.lgc-fb-hd{border-left:none;}
.lgc-fb-ic{background:#1877F2;}
.lgc-fbtn{margin-left:auto;background:#e7f0ff;color:#1877F2;border:1px solid #b3cfee;padding:5px 13px;font-size:12px;font-weight:700;cursor:pointer;font-family:'Lato',sans-serif;text-decoration:none;display:inline-block;white-space:nowrap;border-radius:4px;}
.lgc-fbtn:hover{background:#d0e4ff;}

.lgc-fp-list{display:flex;flex-direction:column;gap:14px;}
.lgc-fp{border:1px solid #dce0e6;background:#fff;}
.lgc-fp-img{width:100%;display:block;object-fit:cover;max-height:260px;}
.lgc-fp-img-placeholder{width:100%;height:100px;display:flex;align-items:center;justify-content:center;background:#f5ede0;border-bottom:1px solid #ece0e0;}
.lgc-fp-bd{padding:12px 14px;}
.lgc-fp-meta{display:flex;align-items:center;gap:9px;margin-bottom:8px;}
.lgc-fb-page-av{width:38px;height:38px;border-radius:50%;background:#1877F2;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.lgc-nm{font-family:'Lato',sans-serif;font-size:14px;font-weight:700;color:#050505;}
.lgc-tm{font-family:'Lato',sans-serif;font-size:12px;color:#65676b;}
.lgc-fp-headline{font-family:'Lato',sans-serif;font-size:14px;font-weight:700;color:#050505;line-height:1.35;margin-bottom:5px;}
.lgc-fp-txt{font-family:'Lato',sans-serif;font-size:13.5px;color:#1c1e21;line-height:1.6;}
.lgc-fp-rxn{display:flex;align-items:center;padding:6px 14px 3px;border-top:1px solid #e4e6ea;margin-top:10px;}
.lgc-like-badge{font-family:'Lato',sans-serif;font-size:13px;color:#65676b;}
.lgc-fp-actions{display:flex;gap:2px;padding:3px 6px 7px;border-top:1px solid #e4e6ea;}
.lgc-rxb{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;cursor:pointer;padding:6px 4px;border:none;background:none;font-family:'Lato',sans-serif;font-size:13px;font-weight:700;color:#65676b;transition:background .15s;}
.lgc-rxb:hover{background:#f0f2f5;}
.lgc-read-more{margin-left:auto;font-family:'Lato',sans-serif;font-size:12px;font-weight:700;color:#1877F2;text-decoration:none;padding:6px 8px;white-space:nowrap;}
.lgc-read-more:hover{text-decoration:underline;}

/* ── YOUTUBE ── */
.lgc-yt-hd{border-left:none;}
.lgc-yt-ic{background:#FF0000;}
.lgc-yt-btn{margin-left:auto;background:#FF0000;color:#fff;border:none;padding:6px 14px;font-size:12px;font-weight:700;cursor:pointer;font-family:'Lato',sans-serif;text-decoration:none;display:inline-block;white-space:nowrap;border-radius:4px;transition:background .15s;}
.lgc-yt-btn:hover{background:#8c0101;}

.lgc-yt-list{display:flex;flex-direction:column;gap:14px;}
.lgc-yt-card{border:1px solid #dce0e6;background:#fff;cursor:pointer;}
.lgc-yt-thumb{position:relative;width:100%;}
.lgc-yt-thumb img{width:100%;display:block;object-fit:cover;max-height:200px;}
.lgc-yt-thumb-placeholder{width:100%;height:180px;background:#111;display:flex;align-items:center;justify-content:center;}
.lgc-yt-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;background:rgba(255,0,0,.92);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .15s,background .15s;}
.lgc-yt-card:hover .lgc-yt-play{background:#FF0000;transform:translate(-50%,-50%) scale(1.1);}
.lgc-yt-play svg{width:22px;height:22px;fill:#fff;margin-left:4px;}
.lgc-yt-duration{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.82);color:#fff;font-family:'Lato',sans-serif;font-size:11px;font-weight:700;padding:2px 6px;border-radius:3px;}
.lgc-yt-bd{padding:12px 14px;}
.lgc-yt-meta{display:flex;align-items:center;gap:9px;margin-bottom:8px;}
.lgc-yt-ch-av{width:36px;height:36px;border-radius:50%;background:#FF0000;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;flex-shrink:0;font-family:'Lato',sans-serif;}
.lgc-yt-title{font-family:'Lato',sans-serif;font-size:14px;font-weight:700;color:#050505;line-height:1.4;margin-bottom:4px;}
.lgc-yt-info{font-family:'Lato',sans-serif;font-size:12px;color:#606060;}
.lgc-yt-desc{font-family:'Lato',sans-serif;font-size:13px;color:#1c1e21;line-height:1.55;margin-top:6px;}
.lgc-yt-actions{display:flex;gap:2px;padding:6px;border-top:1px solid #e4e6ea;margin-top:8px;}
.lgc-yt-btn-sm{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;cursor:pointer;padding:6px 4px;border:none;background:none;font-family:'Lato',sans-serif;font-size:12.5px;font-weight:700;color:#606060;transition:background .15s;}
.lgc-yt-btn-sm:hover{background:#f2f2f2;}
.lgc-yt-watch{margin-left:auto;font-family:'Lato',sans-serif;font-size:12px;font-weight:700;color:#FF0000;text-decoration:none;padding:6px 8px;white-space:nowrap;}
.lgc-yt-watch:hover{text-decoration:underline;}

/* ── VIEW ALL ── */
.lgc-view-all{margin-top:14px;text-align:center;}
.lgc-view-all-btn{
  background:#B50202;color:#fff;border:none;
  padding:12px 28px;
  font-family:'Lato',sans-serif;font-size:13px;font-weight:700;
  cursor:pointer;letter-spacing:.05em;text-transform:uppercase;
  transition:background .2s;text-decoration:none;display:inline-block;
}
.lgc-view-all-btn:hover{background:#8c0101;}

/* ── FOOTER ── */
.lgc-footer{
  padding:11px 22px;border-top:none;background:#B50202;
  display:flex;align-items:center;justify-content:center;
}
.lgc-footer-info{font-family:'Lato',sans-serif;font-size:12px;color:rgba(255,255,255,.9);letter-spacing:.03em;}

@media(max-width:480px){
  .lgc-dg{grid-template-columns:1fr;}
  .lgc-tab{font-size:11px;padding:10px 5px;}
}

/* ── YOUTUBE CHANNEL PAGE STYLE ── */
.lgc-yt-channel{background:#fff;}
.lgc-yt-ch-banner{
  width:100%;height:110px;overflow:hidden;position:relative;
  background:#111;
}
.lgc-yt-ch-banner img{width:100%;height:100%;object-fit:cover;object-position:center top;}
.lgc-yt-ch-info{
  display:flex;align-items:flex-start;gap:14px;
  padding:14px 16px 12px;border-bottom:1px solid #e8e0e0;
}
.lgc-yt-ch-logo{
  width:58px;height:58px;border-radius:50%;
  background:#fff;border:3px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  flex-shrink:0;overflow:hidden;margin-top:-4px;
}
.lgc-yt-ch-logo img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.lgc-yt-ch-logo-placeholder{
  width:100%;height:100%;border-radius:50%;
  background:#B50202;display:flex;align-items:center;justify-content:center;
  font-family:'Lato',sans-serif;font-size:18px;font-weight:700;color:#fff;
}
.lgc-yt-ch-details{flex:1;}
.lgc-yt-ch-name{font-family:'Lato',sans-serif;font-size:17px;font-weight:700;color:#0f0f0f;margin-bottom:3px;}
.lgc-yt-ch-handle{font-family:'Lato',sans-serif;font-size:12px;color:#606060;margin-bottom:4px;}
.lgc-yt-ch-desc{font-family:'Lato',sans-serif;font-size:12.5px;color:#606060;line-height:1.5;margin-bottom:8px;}
.lgc-yt-ch-sub-btn{
  background:#0f0f0f;color:#fff;border:none;
  padding:8px 18px;border-radius:20px;
  font-family:'Lato',sans-serif;font-size:13px;font-weight:700;
  cursor:pointer;text-decoration:none;display:inline-block;
  transition:background .15s;
}
.lgc-yt-ch-sub-btn:hover{background:#272727;}
.lgc-yt-ch-nav{
  display:flex;gap:0;padding:0 10px;
  border-bottom:1px solid #e8e0e0;
  background:#fff;overflow-x:auto;
}
.lgc-yt-ch-nav-tab{
  padding:10px 14px;border:none;background:none;
  font-family:'Lato',sans-serif;font-size:13px;font-weight:700;
  color:#606060;cursor:pointer;white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color .15s,border-color .15s;
}
.lgc-yt-ch-nav-tab.active{color:#0f0f0f;border-bottom:2px solid #0f0f0f;}
.lgc-yt-ch-nav-tab:hover{color:#0f0f0f;}
.lgc-yt-videos-grid{
  padding:14px 14px;
  display:grid;grid-template-columns:1fr 1fr;gap:12px;
  background:#f9f9f9;
}
.lgc-yt-vid-tile{background:#fff;cursor:pointer;transition:box-shadow .15s;}
.lgc-yt-vid-tile:hover{box-shadow:0 2px 8px rgba(0,0,0,.12);}
.lgc-yt-vid-thumb{position:relative;width:100%;aspect-ratio:16/9;background:#111;overflow:hidden;}
.lgc-yt-vid-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.lgc-yt-vid-thumb-ph{width:100%;height:100%;background:#1a1a1a;display:flex;align-items:center;justify-content:center;}
.lgc-yt-vid-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;background:rgba(0,0,0,.75);border-radius:50%;display:flex;align-items:center;justify-content:center;}
.lgc-yt-vid-play svg{width:16px;height:16px;fill:#fff;margin-left:3px;}
.lgc-yt-vid-dur{position:absolute;bottom:5px;right:6px;background:rgba(0,0,0,.85);color:#fff;font-family:'Lato',sans-serif;font-size:10px;font-weight:700;padding:1px 5px;border-radius:2px;}
.lgc-yt-vid-info{padding:8px 10px;}
.lgc-yt-vid-title{font-family:'Lato',sans-serif;font-size:13px;font-weight:700;color:#0f0f0f;line-height:1.35;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.lgc-yt-vid-meta{font-family:'Lato',sans-serif;font-size:11.5px;color:#606060;}
.lgc-yt-view-all{text-align:center;padding:12px 14px 16px;background:#f9f9f9;}
