/* ===========================
   INSTITUTES GRID (HOME)
   =========================== */
.institutes-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 1rem;
}
.institutes-grid--single {
  display: flex; justify-content: center;
}
.institutes-grid--single .institute-card {
  max-width: 420px;
}
.institute-card {
  background: var(--bg-light-card); border-radius: var(--radius);
  padding: 1.75rem; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: all .4s cubic-bezier(.15,.85,.3,1.1);
  display: flex; flex-direction: column; position:relative; overflow:hidden;
}
.institute-card::before { content:''; position:absolute; top:-50%; right:-50%; width:100%; height:100%; background:radial-gradient(circle at top right,rgba(var(--red-rgb),.04),transparent 70%); opacity:0; transition:opacity .5s; pointer-events:none; }
.institute-card:hover {
  transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.1);
  border-color: var(--ic, var(--red));
}
.institute-card:hover::before { opacity:1; }
.ic-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ic-icon-wrap { font-size: 2.4rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); transition:transform .4s cubic-bezier(.68,-.55,.27,1.55); }
.ic-num { font-size: 2.5rem; font-weight: 900; color: rgba(0,0,0,.05); }
.ic-header-img {
  height: 220px; overflow: hidden;
  margin: -1.75rem -1.75rem 1rem -1.75rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.ic-header-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s cubic-bezier(.15,.85,.3,1.1); }
.institute-card:hover .ic-header-img img { transform: scale(1.04); }
.institute-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: .65rem; line-height: 1.4; }
.institute-card p  { font-size: .83rem; color: var(--gray); margin-bottom: 1rem; flex: 1; }
.ic-depts { display: none; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.ic-depts li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--gray-dark); }
.dept-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ic, var(--red)); flex-shrink: 0; }
.ic-img-wrap { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.ic-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idetail-img-wrap { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.idetail-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===========================
   ABOUT STRIP
   =========================== */
.about-strip { background: var(--gray-light); padding: 4rem 0; }
.about-strip-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.as-text h2 { font-size: clamp(1.5rem,2.5vw,2.2rem); font-weight: 900; margin-bottom: 1rem; }
.as-text p { color: var(--gray-dark); margin-bottom: 1.5rem; }
.as-values { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.val-item {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-light-card); border-radius: .65rem; padding: .65rem .9rem;
  font-size: .85rem; font-weight: 700; box-shadow: var(--shadow);
}
.val-item span { font-size: 1.1rem; }

.counters-aside {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.ca-item {
  background: linear-gradient(135deg, var(--red-deeper), var(--bg-alt));
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; color: var(--white);
}
.ca-num { font-size: 2.2rem; font-weight: 900; color: var(--red-accent); display:inline-block; }
.ca-item.visible .ca-num { animation:counterPop .6s cubic-bezier(.68,-.55,.27,1.55) both; }
.ca-item.visible .ca-num:nth-child(1) { animation-delay:0s; }
@keyframes counterPop { 0%{transform:scale(0) rotate(-10deg);opacity:0} 60%{transform:scale(1.2) rotate(3deg)} 100%{transform:scale(1) rotate(0);opacity:1} }
.ca-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* ===========================
   INSTITUTE NEWS SLIDER
   =========================== */
.news-tabs-wrap { display: flex; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.news-tab { padding: .6rem 1.4rem; border: 2px solid rgba(var(--red-rgb),.15); background: transparent; color: var(--text-secondary); border-radius: 2rem; cursor: pointer; font-size: .9rem; font-weight: 700; transition: var(--transition); font-family: inherit; display: flex; align-items: center; gap: .5rem; }
.news-tab span { font-size: 1.1rem; }
.news-tab:hover { border-color: var(--red); color: var(--text-primary); }
.news-tab.active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 15px rgba(var(--red-rgb),.3); }
[data-theme="light"] .news-tab { border-color: rgba(var(--red-rgb),.15); color: var(--text-secondary); }
[data-theme="light"] .news-tab.active { background: var(--red); color: #fff; }
.news-slider-container { position: relative; overflow: hidden; min-height: 200px; }
.news-slider { display: none; animation: fadeIn .4s ease; overflow: hidden; }
.news-slider.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.news-slider-track { display: flex; gap: 1.5rem; transition: transform .5s cubic-bezier(.4,0,.2,1); width: max-content; }
.news-slide { min-width: calc(33.333% - 1rem); background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: var(--transition); flex-shrink: 0; display: flex; flex-direction: column; cursor: pointer; }
.news-slide:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(var(--red-rgb),.2); }
.news-slide-img { width: 100%; height: 140px; overflow: hidden; background: var(--bg-elevated); }
.news-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-slide:hover .news-slide-img img { transform: scale(1.05); }
.news-slide-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-slide-date { font-size: .72rem; color: var(--text-tertiary); display: block; margin-bottom: .5rem; }
.news-slide h4 { font-size: .95rem; color: var(--text-primary); margin-bottom: .5rem; line-height: 1.5; }
.news-slide p { font-size: .8rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }
[data-theme="light"] .news-slide { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-md); }
[data-theme="light"] .news-slide-img { background: var(--bg-alt); }
[data-theme="light"] .news-slide:hover { border-color: var(--red); box-shadow: var(--shadow-hover); }
[data-theme="dark"] .news-slide { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-color: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .news-slide-img { background: var(--bg-elevated); }
.news-controls { margin-top: 1.5rem; }

/* ---- NEWS ZOOM MODAL ---- */
.news-zoom-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; backdrop-filter: blur(4px); }
.news-zoom-overlay.active { opacity: 1; visibility: visible; }
.news-zoom-modal { background: var(--bg-card); border-radius: var(--radius); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(.85); transition: transform .3s cubic-bezier(.15,.85,.3,1.1); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.news-zoom-overlay.active .news-zoom-modal { transform: scale(1); }
.news-zoom-close { position: absolute; top: .75rem; left: .75rem; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; line-height: 1; padding: 0; }
.news-zoom-close:hover { background: rgba(0,0,0,.8); }
.news-zoom-content .news-slide { min-width: 0; border: none; box-shadow: none; cursor: default; }
.news-zoom-content .news-slide:hover { transform: none; }
.news-zoom-content .news-slide-img { height: 280px; }
.news-zoom-content .news-slide h4 { font-size: 1.15rem; }
.news-zoom-content .news-slide p { font-size: .9rem; }
.news-zoom-content .nscard { min-width: 0; max-width: none; border: none; box-shadow: none; cursor: default; }
.news-zoom-content .nscard:hover { transform: none; }
.news-zoom-content .nscard-img { height: 280px; }
.news-zoom-content .nscard-body h4 { font-size: 1.15rem; }
[data-theme="dark"] .news-zoom-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
[data-theme="light"] .news-zoom-modal { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ===========================
   FACEBOOK NEWS FEED
   =========================== */
.fb-news-grid { min-height: 200px; }
.fb-news-loader { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }
.fb-news-loader .spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--border-red-light); border-top-color: var(--red); border-radius: 50%; animation: fbSpin .8s linear infinite; margin-bottom: 1rem; }
@keyframes fbSpin { to { transform: rotate(360deg); } }
.fb-news-error { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); font-size: .95rem; }
.fb-news-grid-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.fb-news-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.fb-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(var(--red-accent-rgb),.3); }
.fb-news-img { width: 100%; height: 180px; overflow: hidden; background: var(--bg-elevated); }
.fb-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.fb-news-card:hover .fb-news-img img { transform: scale(1.05); }
.fb-news-img--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red-deeper), var(--dark)); height: 120px; }
.fb-news-icon { font-size: 2.5rem; opacity: .6; }
.fb-news-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.fb-news-meta { font-size: .78rem; color: var(--text-tertiary); margin-bottom: .5rem; }
.fb-news-body p { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: .75rem; }
.fb-news-body .read-more { color: var(--red); font-weight: 700; font-size: .82rem; transition: var(--transition); }
.fb-news-body .read-more:hover { letter-spacing: .5px; }
[data-theme="light"] .fb-news-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-md); }
[data-theme="light"] .fb-news-card:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
[data-theme="light"] .fb-news-img { background: var(--bg-alt); }
[data-theme="light"] .fb-news-body p { color: var(--text-secondary); }
[data-theme="dark"] .fb-news-card { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .fb-news-img { background: var(--bg-elevated); }
[data-theme="dark"] .fb-news-body p { color: var(--text-primary); }

/* ===========================
   NEWS
   =========================== */
.news-row { display: flex; flex-direction: column; gap: 1.5rem; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.big-news { display: flex; flex-direction: column; }
.news-thumb {
  background: linear-gradient(135deg, var(--bc,var(--red)), var(--dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; position: relative; overflow: hidden;
}
.big-thumb { min-height: 200px; }
.sm-thumb  { height: 100px; }
.news-icon { font-size: 3rem; display:flex; align-items:center; justify-content:center; }
.sm-thumb .news-icon { font-size: 2rem; }
.news-thumb-img { width:220px;min-height:450px;object-fit:cover;border-radius:10px; }
.big-thumb .news-thumb-img { width:100%;height:200px;object-fit:cover;border-radius:0;min-height:unset;max-height:unset; }
.sm-thumb .news-thumb-img { width:56px;height:56px;border-radius:6px; }
.news-cat-badge {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--red);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 1rem;
}
.news-body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.news-meta { font-size: .78rem; color: var(--text-tertiary); margin-bottom: .6rem; }
.news-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .65rem; }
.news-body h4 { font-size: .92rem; font-weight: 800; margin-bottom: .65rem; }
.news-body p  { font-size: .87rem; color: var(--gray-dark); margin-bottom: 1rem; }
.news-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.small-news { display: grid; grid-template-columns: 90px 1fr; flex: 1; }

.news-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news-full-card { display: grid; grid-template-columns: 120px 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.news-full-card .nfc-thumb { min-height: 120px; }
.news-full-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.nfc-thumb {
  background: linear-gradient(135deg, var(--nc,var(--red)), var(--dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; position: relative; overflow: hidden;
}
.nfc-icon { font-size: 2.2rem; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nfc-thumb-img { width:80px;height:80px;object-fit:cover;border-radius:8px; }
.nfc-badge { position: absolute; bottom: .5rem; z-index: 2; font-size: .65rem; font-weight: 700; background: rgba(255,255,255,.2); color: #fff; padding: .1rem .5rem; border-radius: 1rem; }
.nfc-body { padding: 1.25rem; }
.nfc-meta { font-size: .78rem; color: var(--gray); margin-bottom: .5rem; }
.nfc-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.nfc-body p  { font-size: .84rem; color: var(--gray-dark); margin-bottom: .75rem; }
.read-more { color: var(--red); font-weight: 700; font-size: .85rem; transition: var(--transition); cursor: pointer; }
.read-more:hover { letter-spacing: .5px; }

/* ===========================
   CTA
   =========================== */
.cta-section { background: var(--dark); }
.cta-box {
  background: linear-gradient(135deg, var(--red-deeper), var(--red) 50%, var(--red-dark));
  border-radius: calc(var(--radius)*2); padding: 4rem 3rem;
  text-align: center; color: var(--white); position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(var(--red-rgb),.35);
}
.cta-box--row { display:flex; align-items:center; gap:3rem; flex-wrap:wrap; text-align:right; }
.cta-box--row .cta-deco { position:absolute; top:-60px; left:-60px; width:200px; height:200px; background:radial-gradient(circle,rgba(var(--red-rgb),.15),transparent 70%); border-radius:50%; pointer-events:none; }
.cta-text { flex:2; min-width:260px; position:relative; }
.cta-video { flex:1; min-width:200px; text-align:center; position:relative; }
.cta-video-link { color:#fff; font-size:1.05rem; display:inline-flex; align-items:center; gap:.75rem; text-decoration:none; padding:.6rem 1.2rem; border-radius:50px; transition:var(--transition); border:1px solid rgba(255,255,255,.25); }
.cta-video-link:hover { background:rgba(255,255,255,.12); }
.cta-play-btn { width:44px; height:44px; border-radius:50%; background:var(--red-gradient); display:inline-flex; align-items:center; justify-content:center; font-size:1rem; color:#fff; flex-shrink:0; animation:ctaPulse 2s ease-in-out infinite; box-shadow:0 0 0 0 rgba(var(--red-rgb),.4); }
@keyframes ctaPulse { 0%{box-shadow:0 0 0 0 rgba(var(--red-rgb),.4)} 50%{box-shadow:0 0 0 12px rgba(var(--red-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--red-rgb),0)} }
.cta-deco {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.05); top: -100px; left: -100px;
}
.cta-box h2 { font-size: clamp(1.5rem,2.8vw,2.3rem); font-weight: 900; margin-bottom: .75rem; position: relative; }
.cta-box p  { opacity: .85; margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===========================
   INSTITUTES DETAIL
   =========================== */
.institutes-detail-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.institutes-detail-grid .idetail-card { flex: 0 1 300px; min-width: 0; }
.idetail-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; }
.idetail-top {
  background: linear-gradient(135deg, var(--ic, var(--red)), var(--dark));
  padding: 1rem 1rem; color: var(--white); display: flex; align-items: center; gap: .65rem;
}
.idetail-icon { font-size: 2rem; }
.idetail-top h3 { font-size: .82rem; font-weight: 800; }
.idetail-card > p { padding: .65rem 1rem; color: var(--gray-dark); font-size: .75rem; line-height: 1.6; flex: 1; }
.idetail-depts { padding: 0 1rem .75rem; display: grid; grid-template-columns: 1fr; gap: .45rem; }
.idept { display: flex; align-items: flex-start; gap: .4rem; }
.idept-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.4; }
.idept strong { font-size: .75rem; display: inline; line-height: 1.4; }
.idept span { font-size: .7rem; color: var(--text-tertiary); line-height: 1.4; }
.idetail-card .btn { margin: 0 1rem 1rem; font-size: .78rem; padding: .45rem 1rem; }

.pic-wrap { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic-broken { display: none; }

/* ===========================
   INSTITUTE CARDS
   =========================== */
.inst-intro {
  font-size: 1.05rem; color: var(--gray-dark); max-width: 820px;
  margin: 0 auto 3rem; text-align: center; line-height: 1.9;
}
.depts-full-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.depts-full-grid.three-col { grid-template-columns: repeat(3,1fr); }
.depts-full-grid.two-col   { grid-template-columns: repeat(2,1fr); }
.dept-full-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition);
}
.dept-full-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.big-dept { /* no extra styles needed */ }
.dfc-header {
  background: linear-gradient(135deg, var(--dc,var(--red)), var(--dark));
  padding: 1.5rem; display: flex; align-items: center; gap: .85rem; color: var(--white);
}
.dfc-header-center { justify-content: center; text-align: center; }
.dfc-icon { font-size: 2rem; flex-shrink: 0; }
.dfc-header h3 { font-size: 1rem; font-weight: 800; }
.dept-full-card > p { padding: 1.25rem 1.5rem; font-size: .88rem; color: var(--gray-dark); }
.dept-subjects { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.dept-subjects li {
  font-size: .85rem; padding: .5rem .75rem;
  background: var(--gray-light); border-radius: .4rem;
  border-right: 3px solid var(--red); color: var(--gray-dark);
}

/* ===========================
   CONTACT
   =========================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: .75rem; }
.contact-info p { color: var(--gray); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.75rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .9rem 1rem; background: var(--gray-light); border-radius: var(--radius);
  transition: var(--transition);
}
.contact-item:hover { background: rgba(var(--red-rgb),.06); }
.ci-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.ci-label { font-size: .75rem; color: var(--gray); margin-bottom: .2rem; }
.ci-val   { font-weight: 700; font-size: .88rem; }

.institute-contacts { margin-bottom: 1.5rem; }
.institute-contacts h4 { font-weight: 800; margin-bottom: .75rem; color: var(--red); }
.ic-phones { display: flex; flex-direction: column; gap: .5rem; }
.icp { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.icp strong { color: var(--gray-dark); }
.icp span   { color: var(--red); font-weight: 700; }
.map-box { border-radius: var(--radius); overflow: hidden; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--gray-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem; border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm); font-family: var(--font);
  font-size: .9rem; color: var(--dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(var(--red-rgb),.1);
}
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-control {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm); font-family: var(--font);
  font-size: .9rem; color: var(--dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(var(--red-rgb),.1); }
.form-control.error { border-color: var(--error); }
textarea.form-control { min-height: 44px; resize: vertical; }
.form-label { display:block; margin-bottom:.35rem; font-weight:700; font-size:.85rem; color:var(--gray-dark); }
.form-helper { font-size:.78rem; color:var(--gray); margin-bottom:.5rem; }
.radio-group { display:flex; gap:1.5rem; margin-bottom:.75rem; }
.radio-group-vertical { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.75rem; }
.radio-label { display:flex; align-items:center; gap:.4rem; font-size:.9rem; cursor:pointer; }
.radio-label input[type="radio"] { width:auto; accent-color:var(--red); }
.other-service-row { display:none; margin-bottom:.75rem; }
.form-error { font-size: .77rem; color: var(--error); display: none; }
.form-error.show { display: block; }
.form-success { background: var(--success-bg); color: var(--success-text); padding: 1rem; border-radius: var(--radius-sm); text-align: center; font-weight: 700; display: none; }
.form-success.show { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)} }

/* ===========================
   VALUES GRID (Institutes)
   =========================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ===========================
   ICARD (Institutes)
   =========================== */
.icard {
  background: var(--bg-light-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.icard:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.ic-header {
  background: linear-gradient(135deg, var(--red-deeper), var(--red) 50%, var(--red-dark));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.ic-icon-wrap { font-size: 2rem; }
.ic-num { font-size: 1.8rem; font-weight: 900; opacity: .5; }
.ic-body { padding: 1.25rem; }
.ic-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: .65rem; }
.ic-body p { font-size: .85rem; color: var(--gray-dark); line-height: 1.7; }

[data-theme="dark"] .icard { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .ic-body p { color: var(--text-secondary); }

/* ===========================
   MODERN FORM UI
   =========================== */

.form-box {
    max-width: 650px;
    margin: 1.5rem auto 50px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.6s ease;
}

.form-box h3 {
    margin-bottom: 20px;
    color: var(--red);
    font-size: 24px;
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    font-size: 15px;
    transition: var(--transition);
    font-family: var(--font);
}

.form-box input:focus,
.form-box select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(var(--red-rgb),0.1);
    outline: none;
}

.btn-submit {
    width: 100%;
    background: var(--red-gradient);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-weight: 700;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(var(--red-rgb),.35);
}

/* Loading spinner */
.spinner { display:inline-block; width:20px; height:20px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .6s linear infinite; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }
.btn-loading { pointer-events:none; opacity:.7; }
.btn-loading .spinner { display:inline-block; }

/* Focus ring refinement — consolidated above */
/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
    background: var(--gray-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(var(--red-rgb), .08);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.t-quote {
    font-size: 5rem;
    line-height: 1;
    color: var(--red);
    opacity: .15;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: Georgia, serif;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--gray-dark);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    position: relative;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.t-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.t-name {
    font-weight: 800;
}

.t-role {
    font-size: .85rem;
    color: var(--gray);
}

.t-stars {
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: .75rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: var(--white);
    color: var(--red);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-btn:hover {
        background: var(--red-gradient);
        color: var(--white);
    }

.slider-dots {
    display: flex;
    gap: .5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--red-rgb),.25);
    cursor: pointer;
    transition: var(--transition);
}

    .dot.active {
        background: var(--red-gradient);
        transform: scale(1.3);
    }

/* ---- LTR OVERRIDES ---- */
[data-lang="en"] body { direction: ltr; }
[data-lang="en"] .dropdown { right: auto; left: 0; }
[data-lang="en"] .dropdown a:hover { padding-right: .9rem; padding-left: 1.25rem; }
[data-lang="en"] .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(-5px,5px); }
[data-lang="en"] .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(-5px,-5px); }

[data-lang="en"] .news-cat-badge { right: auto; left: .65rem; }
[data-lang="en"] .cta-deco { left: auto; right: -100px; }
[data-lang="en"] .dept-subjects li { border-right: none; border-left: 3px solid var(--red); }
[data-lang="en"] .t-quote { right: auto; left: 2rem; }
[data-lang="en"] .t-stars { margin-right: 0; margin-left: auto; }
[data-lang="en"] .footer-col a:hover { padding-right: 0; padding-left: .3rem; }

/* ===========================
   FEATURES
   =========================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.5rem; }
.board-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); max-width:600px; margin:0 auto; gap:1.5rem; }
.board-card { background:var(--bg-light-card); border-radius:var(--radius); text-align:center; padding:2rem 1.5rem; border-top:4px solid var(--red); box-shadow:var(--shadow); transition:all .4s cubic-bezier(.15,.85,.3,1.1); position:relative; overflow:hidden; }
.board-card::after { content:''; position:absolute; top:-50%; right:-50%; width:100%; height:100%; background:radial-gradient(circle,rgba(var(--red-rgb),.06),transparent 70%); opacity:0; transition:opacity .6s; pointer-events:none; }
.board-card:hover { transform:translateY(-6px) scale(1.02); box-shadow:0 20px 60px rgba(var(--red-rgb),.15); }
.board-card:hover::after { opacity:1; }
.board-card:hover .board-img { transform:scale(1.08) rotate(-3deg); border-color:var(--red); }
.board-img { width:120px; height:120px; border-radius:50%; object-fit:cover; margin:0 auto 1rem; display:block; border:3px solid transparent; transition:transform .4s cubic-bezier(.68,-.55,.27,1.55),border-color .4s; }
.board-card h4 { margin-bottom:.25rem; font-size:1rem; font-weight:800; }
.board-role { color:var(--red); font-weight:600; font-size:.85rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
  transition: all .35s cubic-bezier(.4,0,.2,1); border: 1px solid transparent; position:relative; overflow:hidden;
}
.feature-card::before { content:''; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(135deg,transparent 40%,rgba(var(--red-rgb),.04) 100%); opacity:0; transition:opacity .4s; pointer-events:none; }
.feature-card:hover { border-color: rgba(var(--red-rgb),.2); box-shadow: 0 12px 36px rgba(0,0,0,.08); transform: translateY(-5px); }
.feature-card:hover::before { opacity:1; }
.feature-card:hover .feature-icon { transform:scale(1.1) rotate(-6deg); background:var(--red-gradient); color:#fff; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(var(--red-rgb),.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; transition:transform .35s cubic-bezier(.68,-.55,.27,1.55),background .35s,color .35s; }
.feature-card h4 { font-size: 1rem; margin-bottom: .75rem; color: var(--dark); }
.feature-list { list-style: none; }
.feature-list li { padding: .35rem 0; font-size: .88rem; color: var(--gray-dark); display: flex; align-items: center; gap: .4rem; }
.feature-list li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ===========================
   VIRTUAL TOUR
   =========================== */
.virtual-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.virtual-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.virtual-card h3 { padding: 1.25rem 1.5rem; font-size: 1.1rem; background: var(--gray-light); border-bottom: 1px solid rgba(0,0,0,.06); }
.virtual-frame { position: relative; width: 100%; padding-bottom: 56.25%; }
.virtual-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
