/* ==========================================================================
   R.V.S. College of Engineering — Department of Information Technology
   Premium Frontend Stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --primary: #0A4DAD;
  --primary-dark: #073b85;
  --primary-light: #2f74d6;
  --sky: #38BDF8;
  --sky-soft: #E0F2FE;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 2px 8px rgba(10, 77, 173, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 77, 173, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 77, 173, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --grad-primary: linear-gradient(135deg, #0A4DAD 0%, #2f74d6 60%, #38BDF8 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #F0F7FF 100%);
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 100px 0; position: relative; }
.hide-md { display: inline; }
@media (max-width: 900px) { .hide-md { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: #fff; border-color: transparent; }
.btn-ghost:hover { color: var(--sky); }


/* Ripple */
.ripple .ripple-effect {
  position: absolute; border-radius: 50%; transform: scale(0);
  animation: ripple .6s linear; background: rgba(255,255,255,.5); pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: #fff; }
.loader-logo .logo-mark {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo .logo-mark img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  z-index: 2;
}

/* Rotating loader around logo */
.loader-logo .logo-mark::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.2);
  border-top: 5px solid #fff;
  animation: spin 1s linear infinite;
}

/* Optional glowing ring */
.loader-logo .logo-mark::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes floaty { 50% { transform: translateY(-10px); } }
.loader-bar { width: 220px; height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; margin: 20px auto; }
.loader-bar span { display: block; height: 100%; width: 40%; background: #fff; animation: bar 1.4s ease-in-out infinite; }
@keyframes bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.loader-text { font-weight: 500; letter-spacing: .04em; opacity: .9; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-primary); z-index: 10000; transition: width .1s linear;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--gray-900); color: #cbd5e1; font-size: .82rem; padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-info a, .top-info span { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.top-info a:hover { color: var(--sky); }
.top-social { display: flex; gap: 8px; }
.top-social a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cbd5e1; transition: all .25s ease;
}
.top-social a:hover { background: var(--sky); color: #fff; transform: translateY(-2px); }

/* ---------- Navigation (Glassmorphism) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.75); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(10,77,173,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--gray-900); }
.brand:hover { color: var(--primary); }
/* ===== Brand ===== */
/* ===== Logo ===== */


/* Responsive adjustments for desktop and mobile */
.brand-logo img {
  width: 48px;
  height: 48px;
  margin-right: 50px;
}

@media (max-width: 1024px) {
  .brand-logo img {
    width: 44px;
    height: 44px;
    margin-right: 12px;
  }
}

@media (max-width: 768px) {
  .brand-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text strong {
    font-size: .95rem;
    font-weight: 700;
    color: #000;
    margin-left : 10px;
   
}
.brandrvs-text strong {
    
    color: #eee4e4;
    
}

.brand-text span {
    font-size: .95rem;
    color: var(--gray-500);
    margin-left : 10px;
   
}
.brand.light { color: #fff; }
.brand.light .brand-text span { color: rgba(255,255,255,.7); }

.nav-menu ul { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: var(--gray-700); font-weight: 500; font-size: .9rem;
  padding: 10px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
  transition: all .25s ease;
}
.nav-menu a:hover { color: var(--primary); background: var(--sky-soft); }
.nav-menu .has-dropdown { position: relative; }
.nav-menu .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; display: block;
}
.nav-menu .dropdown li { display: block; }
.nav-menu .dropdown a { display: block; padding: 10px 14px; border-radius: 8px; }
.nav-menu .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 10px; border: none; background: transparent;
  display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--gray-900); border-radius: 2px; transition: all .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1050px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: min(340px, 85%); height: 100vh;
    background: #fff; padding: 90px 24px 24px; box-shadow: var(--shadow-lg);
    transition: right .35s ease; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-menu a { padding: 14px 16px; }
  .nav-menu .dropdown { position: static; box-shadow: none; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 75vh;
    min-height: 520px;
    max-height: 720px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 60px;
}

.hero-slider{
    position:absolute;
    inset:0;
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .8s;
}

.slide.active{
    opacity:1;
    
}

.slide video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; max-width: 900px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; width: 100%; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 52px; height: 52px;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.hero-nav:hover {
  background: rgba(255,255,255,.34);
  transform: translateY(-50%) scale(1.04);
}
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-nav i { font-size: 1rem; }
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.scroll-indicator span { display: block; width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 20px; color: #fff;
}
.eyebrow.dark { background: var(--sky-soft); color: var(--primary); border-color: transparent; }
.hero h1 { font-family: var(--font-display); font-weight: 700; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.hero h1 .grad {
  background: linear-gradient(135deg, #ffffff, #E0F2FE, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 720px; opacity: .95; min-height: 1.8em; }
.type-cursor { display: inline-block; width: 2px; background: #fff; margin-left: 4px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.scroll-indicator span { display: block; width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1;} 50%{transform:translateY(12px);opacity:0;} }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-family: var(--font-display); }
.section-head.light h2, .section-head.light p { color: #fff; }

/* ---------- Announcements ---------- */
.announcements { background: var(--grad-soft); padding: 0; }
.ticker {
  display: flex; align-items: center; background:  var(--sky-soft); color: var(--primary); border-color: transparent; 
  color: #fff; overflow: hidden; position: relative;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);

  
}


.ticker::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.10), transparent 20%, transparent 80%, rgba(255,255,255,.06));
  pointer-events: none;
}
.ticker-label {
  position: relative; z-index: 2; padding: 12px 16px; margin: 10px 0 10px 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; font-weight: 600; font-size: .88rem; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.ticker-track {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; width: max-content; white-space: nowrap;
  animation: ticker 24s linear infinite; will-change: transform;
}
.ticker-item {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 140px; height: 56px;
  overflow: hidden; border-radius: 12px;
}
.ticker-track img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
  border-radius: 8px; background: transparent; box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ticker-item:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}



.announcements .container { margin-top: 0; padding: 80px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ann-card {
  background: #fff; padding: 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ann-card img { border-radius: var(--radius); margin-bottom: 16px; }
.ann-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ann-card .tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--sky-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.ann-card h3 { margin-bottom: 10px; }
.ann-card a { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.ann-card a i { transition: transform .25s ease; }
.ann-card a:hover i { transform: translateX(4px); }


/* ===== img-slider: drop-in replacement for the plain <img> in .ann-card ===== */
/* Keeps the exact same size/spacing your .ann-card img rule already defines —
   only adds sliding. No new sizing rules, no layout changes. */

.img-slider {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.img-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.img-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 0; /* spacing now handled by .img-slider */
}


/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-media img:hover { transform: scale(1.02); transition: transform .5s ease; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px; background: #fff;
  padding: 20px 24px; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; border-left: 4px solid var(--primary);
}
.about-badge strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); }
.about-badge span { font-size: .8rem; color: var(--gray-500); }

.about-copy p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
.about-copy h2 { font-family: var(--font-display); }
.values { margin-top: 20px; display: grid; gap: 10px; }
.values li { display: flex; align-items: start; gap: 10px; color: var(--gray-700); }
.values i { color: var(--primary); background: var(--sky-soft); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; flex-shrink: 0; margin-top: 4px; }

.stats {
  margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; padding: 40px; background: var(--grad-primary); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; color: #fff; }
.stat h3 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 4px; }
.stat p { color: rgba(255,255,255,.85); margin: 0; font-size: .9rem; letter-spacing: .05em; }

/* ---------- Vision Mission ---------- */
.vision-mission { background: var(--grad-soft); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card {
  background: #fff; padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  border-top: 4px solid var(--primary);
}
.vm-card::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
  background: var(--sky-soft); border-radius: 50%; opacity: .5;
}
.vm-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--grad-primary);
  color: #fff; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: var(--shadow-md); position: relative; z-index: 1; margin-bottom: 20px;
}

.vm-card p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
.vm-card h3 { font-family: var(--font-display); font-size: 1.6rem; position: relative; z-index: 1; }
.vm-card ul { display: grid; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.vm-card ul li { padding-left: 20px; position: relative; color: var(--gray-700); }
.vm-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }


/* ---------- PEO & PO ---------- */

.peo-po { background: var(--grad-soft); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-card {
  background: #fff; padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  border-top: 4px solid var(--primary);
}
.pp-card p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
.pp-card::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
  background: var(--sky-soft); border-radius: 50%; opacity: .5;
}
.pp-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--grad-primary);
  color: #fff; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: var(--shadow-md); position: relative; z-index: 1; margin-bottom: 20px;
}
.pp-card h3 { font-family: var(--font-display); font-size: 1.6rem; position: relative; z-index: 1; }
.pp-card ul { display: grid; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.pp-card ul li { padding-left: 20px; position: relative; color: var(--gray-700); }
.pp-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }

/* ----------main thlakatuu ---------- */


.main-thalakatuu { background: #fff; }
.main-thalakatuu-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .main-thalakatuu-grid { grid-template-columns: 1fr; text-align: center; } }
.main-thalakatuu-message p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
.main-thalakatuu-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.main-thalakatuu-photo img {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}
.main-thalakatuu-photo img:hover { transform: scale(1.05); transition: transform .3s ease; }
.photo-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}
.main-thalakatuu-name { margin-top: 0; text-align: center; }
.main-thalakatuu-name strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); }
.main-thalakatuu-name span { font-size: .85rem; color: var(--gray-500); }
.main-thalakatuu-message h2 { font-family: var(--font-display); font-style: italic; color: var(--primary); }


/* ---------- thlakatuu ---------- */

.thalakatuu { background: var(--grad-soft); }
.thalakatuu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.thalakatuu-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .35s ease;
  border: 1px solid var(--gray-100);
}
.thalakatuu-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.thalakatuu-card .photo {
  aspect-ratio: 1; overflow: hidden; position: relative;
}
.thalakatuu-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thalakatuu-card:hover .photo img { transform: scale(1.08); }
.thalakatuu-card .info { padding: 22px; text-align: center; white-space: nowrap; }
.thalakatuu-card h3 { color: var(--primary); margin-bottom: 4px; }
.thalakatuu-card h4 { color: var(--primary); margin-bottom: 4px; }
.thalakatuu-card .desig { font-size: .85rem; color: var(--gray-500); font-weight: 500; }
.thalakatuu-card .qual { font-size: .8rem; color: var(--gray-700); margin: 8px 0; }
.thalakatuu-card .spec { font-size: .8rem; color: var(--primary); background: var(--sky-soft); padding: 4px 12px; border-radius: 999px; display: inline-block; border-color: transparent; }
.thalakatuu-card .socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.thalakatuu-card .socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); color: var(--gray-700); display: grid; place-items: center; transition: all .25s ease; }
.thalakatuu-card .socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }


/* ---------- HOD ---------- */
.hod { background: #fff; }
.hod-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hod-grid { grid-template-columns: 1fr; text-align: center; } }
.hod-photo { position: relative; }
.hod-photo img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.hod-photo img:hover { transform: scale(1.05); transition: transform .3s ease; }
.hod-name { margin-top: 20px; text-align: center; }
.hod-name strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); }
.hod-name span { font-size: .85rem; color: var(--gray-500); }
.hod-message h2 { font-family: var(--font-display); font-style: italic; color: var(--primary); }
.hod-message p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
/* ---------- Faculty ---------- */
.faculty { background: var(--grad-soft); }
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.faculty-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .35s ease;
  border: 1px solid var(--gray-100);
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.faculty-card .photo {
  aspect-ratio: 1; overflow: hidden; position: relative;
}
.faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.faculty-card:hover .photo img { transform: scale(1.08); }
.faculty-card .info { padding: 22px; text-align: center; }
.faculty-card h3 { color: var(--primary); margin-bottom: 4px; }
.faculty-card .desig { font-size: .85rem; color: var(--gray-500); font-weight: 500; }
.faculty-card .qual { font-size: .8rem; color: var(--gray-700); margin: 8px 0; }
.faculty-card .spec { font-size: .8rem; color: var(--primary); background: var(--sky-soft); padding: 4px 12px; border-radius: 999px; display: inline-block; }
.faculty-card .socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.faculty-card .socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); color: var(--gray-700); display: grid; place-items: center; transition: all .25s ease; }
.faculty-card .socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Labs ---------- */
.labs { background: #fff; }

.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.lab-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;      /* original size same ah */
  transition: all .35s ease;
}

.lab-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Image fills the ENTIRE card */
.lab-card .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lab-card .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.lab-card:hover .img img { transform: scale(1.08); }

/* Dark gradient so white text is readable on top of image */

/* Text content sits ON TOP of the image */
.lab-card .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
  color: #fff;
}

.lab-card h3 {
  color: #fff;
  margin-bottom: 8px;
}

.lab-card .body p {
  color: rgba(255,255,255,0.85);
}

.lab-card .facilities {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lab-card .facilities span {
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---------- Lab Details (below labs-grid) ---------- */
.lab-details {
  background: #fff;
  padding: 60px 0 20px;
}
.lab-details p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}
.lab-details .details-header h2 {
  font-family: var(--font-display);
  color: var(--primary);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.lab-details .details-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-primary);
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}

.details-content p {
  color: var(--gray-700);
  line-height: 1.75;
  font-size: 1rem;
}

.equipment-section h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 20px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.equipment-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  transition: all .3s ease;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.eq-number {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.equipment-card p {
  color: var(--gray-700);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .lab-details { padding: 40px 0 16px; }
  .equipment-grid { grid-template-columns: 1fr; gap: 14px; }  /* one by one keezha */
  .equipment-card { padding: 18px 16px; }
}

@media (max-width: 420px) {
  .details-content p { font-size: .9rem; }
  .equipment-card p { font-size: .85rem; }
}
.lab-details {
  background: #fff;
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.details-header {
  margin-bottom: 24px;
}

.details-header h2 {
  color: var(--primary);
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 12px;
}

.details-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 999px;
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.details-content p {
  color: var(--gray-700);
  line-height: 1.75;
  font-size: 1rem;
}

.equipment-section h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.equipment-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px 20px 20px;
  transition: all .3s ease;
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.eq-number {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.equipment-card p {
  color: var(--gray-700);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .lab-details { padding: 40px 16px; }
  .equipment-grid { grid-template-columns: 1fr; }
}




/* ---------- Academics / Research / Achievements grids ---------- */
.academics { background: var(--grad-soft); }
.acad-grid, .research-grid, .ach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.acad-card, .r-card, .ach-card {
  background: #fff; padding: 32px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: all .3s ease; text-align: center;
  border: 1px solid var(--gray-100);
}
.acad-card:hover, .r-card:hover, .ach-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.acad-card i, .r-card i, .ach-card i {
  width: 64px; height: 64px; border-radius: 20px; background: var(--sky-soft);
  color: var(--primary); display: grid; place-items: center; font-size: 1.6rem;
  margin: 0 auto 18px; transition: all .3s ease;
}
.acad-card:hover i, .r-card:hover i, .ach-card:hover i {
  background: var(--grad-primary); color: #fff; transform: rotate(-6deg) scale(1.05);
}
.acad-card h3, .r-card h3, .ach-card h3 { color: var(--primary); }

.research { background: #fff; }
.achievements { background: var(--grad-soft); }



/* ---------- Events / Workshops ---------- */
.events { background: #fff; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.event-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-md); cursor: pointer;
}
.event-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-card:hover img { transform: scale(1.1); }
.event-card .overlay {
  position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(7,59,133,.9) 100%); color: #fff;
}
.event-card .overlay h3 { color: #fff; }
.event-card .overlay p { color: rgba(255,255,255,.85); margin: 0; font-size: .85rem; }

/* ---------- Placements ---------- */
.placements { background: var(--grad-primary); color: #fff; position: relative; overflow: hidden; }
.placements::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.1), transparent 40%), radial-gradient(circle at 80% 60%, rgba(56,189,248,.2), transparent 40%);
}
.placements .container { position: relative; z-index: 1; }
.place-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 60px; }
.p-stat {
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px); padding: 32px; border-radius: var(--radius-lg);
  text-align: center; border: 1px solid rgba(255,255,255,.15); transition: transform .3s ease;
}
.p-stat:hover { transform: translateY(-6px); background: rgba(255,255,255,.15); }
.p-stat h3 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 6px; color: #fff; }
.p-stat p { color: rgba(255,255,255,.85); margin: 0; font-size: .9rem; }

.recruiters-title { text-align: center; margin-bottom: 30px; font-family: var(--font-display); color: #fff; }
.logo-marquee { overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 40px; animation: logoScroll 30s linear infinite; }
.logo-track .logo-item {
  flex-shrink: 0; padding: 20px 32px; background: rgba(255,255,255,.9); border-radius: 12px;
  color: var(--primary); font-weight: 700; font-family: var(--font-display); font-size: 1.4rem;
  min-width: 200px; text-align: center; transition: transform .3s ease;
}
.logo-track .logo-item:hover { transform: scale(1.05); }
@keyframes logoScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ---------- Gallery ---------- */
.gallery { background: #fff; }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--gray-200);
  background: #fff; color: var(--gray-700); font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all .25s ease; font-size: .88rem;
}
.filter-btn:hover, .filter-btn.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.masonry {
  columns: 3 300px; column-gap: 16px;
}
/* Tablet */
@media (max-width: 900px) {
  .masonry {
    columns: 2 250px;
    column-gap: 12px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .masonry {
    columns: 1;
    column-gap: 0;
  }
  .masonry .item {
    margin-bottom: 14px;
    width: 100%;
  }
  .masonry .item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  .gallery-filters {
    gap: 8px;
    margin-bottom: 24px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: .8rem;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .masonry .item::after {
    font-size: 1.5rem;
  }
}
.masonry .item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; position: relative;
  transition: transform .35s ease;
}
.masonry .item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.masonry .item img { width: 100%; height: auto; transition: transform .5s ease; }
.masonry .item:hover img { transform: scale(1.08); }
.masonry .item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; background: rgba(10,77,173,.7); color: #fff;
  display: grid; place-items: center; font-size: 2rem; opacity: 0; transition: opacity .3s ease;
}
.masonry .item:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.94); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 40px; }
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 20px; right: 30px; background: transparent; border: none; color: #fff; font-size: 3rem; cursor: pointer; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }



/* ---------- Testimonials ---------- */
.testimonials { background: var(--grad-soft); }
.testi-carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-slide {
  flex: 0 0 100%; padding: 20px;
}
.testi-slide .quote {
  background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  text-align: center; position: relative;
}
.testi-slide .quote::before {
  content: "\201C"; font-family: var(--font-display); position: absolute; top: -30px; left: 30px;
  font-size: 8rem; color: var(--sky-soft); line-height: 1; z-index: 0;
}
.testi-slide p { font-size: 1.1rem; color: var(--gray-700); position: relative; z-index: 1; font-style: italic; }
.testi-slide .author { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.testi-slide .author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky-soft); }
.testi-slide .author strong { display: block; color: var(--primary); }
.testi-slide .author span { font-size: .82rem; color: var(--gray-500); }
.testi-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.testi-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: #fff; color: var(--primary); cursor: pointer; transition: all .25s ease;
}
.testi-nav button:hover { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: all .3s ease;
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-q {
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; color: var(--gray-900);
}
.faq-q i { color: var(--primary); transition: transform .3s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 24px; transition: all .35s ease; color: var(--gray-700); }
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 22px; }

/* ---------- Contact ---------- */
.contact { background: var(--grad-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 16px; margin: 20px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list i {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--grad-primary);
  color: #fff; display: grid; place-items: center;
}
.contact-list strong { display: block; color: var(--gray-900); margin-bottom: 2px; }
.contact-list span { color: var(--gray-700); font-size: .9rem; }
.map-placeholder { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 20px; }
.map-placeholder iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form {
  background: #fff; padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--primary); font-family: var(--font-display); margin-bottom: 20px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gray-200);
  font-family: inherit; font-size: .92rem; margin-bottom: 14px; transition: all .25s ease; background: var(--gray-50);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(10,77,173,.1);
}
.form-note { margin-top: 12px; font-size: .85rem; color: var(--primary); font-weight: 500; }

/* ---------- Bottom contact bar ---------- */
.bottom-contact {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
  font-size: .9rem;
}
.bottom-contact-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.bottom-contact a, .bottom-contact span {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.bottom-contact a:hover { color: var(--sky); }
.bottom-contact i { color: var(--sky); }
@media (max-width: 700px) {
  .bottom-contact-inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--gray-900); color: #cbd5e1; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 1rem; letter-spacing: .05em; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #cbd5e1; font-size: .9rem; }
.footer ul a:hover { color: var(--sky); padding-left: 4px; }
.footer-desc { margin: 16px 0; font-size: .9rem; color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding: 20px 0; text-align: center; font-size: .85rem; }
.footer-bottom p { margin: 0; color: #94a3b8; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s ease;
  z-index: 400;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .top-info { justify-content: center; width: 100%; }
  .top-bar-inner { justify-content: center; }
}

/* ============ IT ASSOCIATION ============ */
.association { background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%); }
.office-bearers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.bearer-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10, 77, 173, 0.08);
  border: 1px solid rgba(10, 77, 173, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.bearer-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 90px;
  background: linear-gradient(135deg, #0A4DAD, #4A90E2);
  z-index: 0;
}
.bearer-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(10, 77, 173, 0.18); }
.bearer-photo {
  position: relative; z-index: 1;
  width: 140px; height: 140px; margin: 20px auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.bearer-photo img { width: 100%; height: 100%; object-fit: cover; }
.bearer-role {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.bearer-card h3 { font-size: 18px; color: #0A4DAD; margin: 6px 0 4px; }
.bearer-card p { color: #666; font-size: 14px; margin-bottom: 12px; }
.bearer-card .socials { display: flex; justify-content: center; gap: 10px; }
.bearer-card .socials a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f0f5ff; color: #0A4DAD;
  transition: all .3s;
}
.bearer-card .socials a:hover { background: #0A4DAD; color: #fff; transform: translateY(-3px); }

/* ============ SYMPOSIUM ============ */
.symposium { background: linear-gradient(135deg, #0A4DAD 0%, #1a5fbd 50%, #4A90E2 100%); color: #fff; }
.symposium .eyebrow.dark { color: #FFD700; }
.symposium h2 { color: #fff; }
.symp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.symp-info p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.7; }
.symp-list { list-style: none; padding: 0; margin: 24px 0 0; }
.symp-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 15px;
}
.symp-list li i { color: #FFD700; width: 24px; }
.symp-form {
  background: #fff; color: #333;
  border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.symp-form h3 { color: #0A4DAD; margin-bottom: 20px; font-size: 22px; }
.symp-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.symp-form input, .symp-form select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e0e6f0; border-radius: 10px;
  font-family: inherit; font-size: 14px;
  transition: border-color .2s;
}
.symp-form input:focus, .symp-form select:focus { outline: none; border-color: #0A4DAD; }
.symp-form button { width: 100%; margin-top: 8px; }
.symp-form .form-note { margin-top: 12px; color: #0A4DAD; font-weight: 600; font-size: 14px; }

.waiting-list {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.98);
  color: #333;
  border-radius: 20px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  margin-top: 8px;
}
.waiting-list h3 { color: #0A4DAD; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.wl-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.wl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wl-table th, .wl-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef2f9; }
.wl-table th { background: #f5f8ff; color: #0A4DAD; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.wl-table tr:hover td { background: #fafbff; }
.wl-empty { text-align: center !important; color: #999; padding: 30px !important; font-style: italic; }
.status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status.confirmed { background: #d4f4dd; color: #0a7f2e; }
.status.waiting { background: #fff4d4; color: #a06a00; }
#wlClear { background: transparent; color: #0A4DAD; border: 1.5px solid #0A4DAD; }
#wlClear:hover { background: #0A4DAD; color: #fff; }

@media (max-width: 860px) {
  .symp-grid { grid-template-columns: 1fr; }
  .symp-form .row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   RESPONSIVE ENHANCEMENTS — appended without altering existing styles.
   Only adjusts sizing, spacing, and layout for smaller screens.
   Desktop appearance is preserved.
   ========================================================================== */

/* Global overflow safety */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
iframe { display: block; }

/* Large desktop / laptop (<=1200px) */
@media (max-width: 1200px) {
  .container { width: min(1160px, 94%); }
  .section { padding: 88px 0; }
}

/* Small laptop / large tablet (<=1050px) */
@media (max-width: 1050px) {
  .section { padding: 80px 0; }
  .nav-inner { padding: 12px 0; gap: 12px; }
  .brand-text strong { font-size: .88rem; }
  .brand-text { line-height: 1.15; }
  .hero { min-height: 560px; }
  .about-grid { gap: 40px; }
  .main-thalakatuu-grid,
  .hod-grid { gap: 40px; }
  .stats { padding: 32px; gap: 16px; }
}

/* Tablet (<=900px) */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .container { width: min(100%, 94%); }

  /* Brand shrinks and wraps cleanly */
  .brand { gap: 8px; flex-wrap: wrap; max-width: calc(100% - 60px); }
  .brand-text { white-space: normal; }
  .brand-text strong { font-size: .8rem; margin-left: 6px; }
  .brand-text span { font-size: .78rem; margin-left: 6px; }

  /* Hero */
  .hero { min-height: 520px; height: auto; padding: 120px 0 0; display: flex; flex-direction: column; justify-content: space-between; }

  /* Announcements */
  .announcements { padding: 0; }
  .announcements .container { margin-top: 0; padding: 40px 0; }
  .ticker-label { padding: 12px 16px; font-size: .82rem; }
  .ticker-track { font-size: .82rem; gap: 40px; }

  /* About */
  .about-badge { right: 0; bottom: -16px; padding: 16px 18px; }
  .about-badge strong { font-size: 1.2rem; }

  /* Stats block */
  .stats { margin-top: 60px; padding: 28px 20px; }

  /* Section head margin */
  .section-head { margin-bottom: 44px; }

  /* Vision-mission */
  .vm-card { padding: 32px; }

  /* Placements */
  .place-stats { margin-bottom: 44px; }
  .p-stat { padding: 24px; }

  /* Testimonials */
  .testi-slide { padding: 12px; }
  .testi-slide .quote { padding: 32px 24px; }
  .testi-slide .quote::before { font-size: 6rem; top: -20px; left: 16px; }

  /* Contact */
  .contact-form { padding: 28px; }

  /* Symposium */
  .symp-form { padding: 26px; }
}

/* Small tablet / large phone (<=768px) */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: 1.15rem; }

  /* Top bar collapses cleanly */
  .top-bar { font-size: .78rem; padding: 6px 0; }
  .top-bar-inner { justify-content: center; }
  .top-info { justify-content: center; gap: 12px; }
  .top-social { justify-content: center; }

  /* Navbar */
  .nav-inner { padding: 10px 0; }
  .brand { gap: 6px; }
  .brand-text strong { font-size: .72rem; margin-left: 4px; }
  .brand-text span { font-size: .7rem; margin-left: 4px; }

  /* Hero */
  .hero { min-height: 480px; padding: 100px 0 0; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { padding: 11px 18px; font-size: .88rem; }
  .scroll-indicator { display: none; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { padding: 11px 18px; font-size: .88rem; }
  .scroll-indicator { display: none; }

  /* Cards / grids default to 1 column comfortably */
  .cards-grid,
  .acad-grid,
  .research-grid,
  .ach-grid,
  .labs-grid,
  .faculty-grid,
  .thalakatuu-grid,
  .event-grid,
  .place-stats,
  .office-bearers {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .ann-card { padding: 24px; }
  .vm-card { padding: 28px; }
  .vm-icon { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 16px; }
  .vm-card h3 { font-size: 1.4rem; }

  /* Stats */
  .stats { grid-template-columns: repeat(2, 1fr); padding: 24px 18px; gap: 14px; }
  .stat h3 { font-size: 2rem; }

  /* HOD / Chairman photo sizing */
  .hod-photo img,
  .main-thalakatuu-photo img { max-width: 320px; margin: 0 auto; }

  /* Lab card */
  .lab-card .body { padding: 20px; }

  /* Contact map iframe */
  .map-placeholder iframe { height: 220px; }

  /* Contact & symposium form */
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .symp-form { padding: 22px; }
  .symp-form .row { grid-template-columns: 1fr; }

  /* Ticker */
  .announcements .container { margin-top: 0; padding: 30px 0; }
  .ticker-label { padding: 10px 14px; font-size: .78rem; }
  .ticker-track { font-size: .8rem; }

  /* Placements */
  .logo-track { gap: 24px; animation-duration: 22s; }
  .logo-track .logo-item { min-width: 160px; padding: 16px 22px; font-size: 1.15rem; }

  /* Footer */
  .footer { padding-top: 60px; }
  .footer-grid { gap: 32px; }

  /* Back to top */
  .back-top { width: 42px; height: 42px; bottom: 18px; right: 18px; }

  /* Waiting list table wrapper already has overflow-x auto — ensure min width */
  .wl-table { min-width: 520px; }
}

/* Phones (<=600px) */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { width: 92%; }
   


  /* Nav brand: keep RVS logo visible, hide extra accreditation logos to prevent overflow */
  .naac-logo,
  .aicte-logo { display: none; }
  .brand-text strong { font-size: .78rem; }
  .brand-logo img { width: 42px; height: 42px; margin-right: 8px; }

  /* Hero */
  .hero { min-height: 440px; padding: 90px 0 60px; }
  .hero-content { text-align: left; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 10px 16px; font-size: .85rem; }

  /* Buttons default */
  .btn { padding: 12px 22px; font-size: .88rem; }

  /* Cards grid one column */
  .cards-grid,
  .acad-grid,
  .research-grid,
  .ach-grid,
  .labs-grid,
  .faculty-grid,
  .thalakatuu-grid,
  .event-grid,
  .place-stats,
  .office-bearers {

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  /* Section heads */
  .section-head { margin-bottom: 36px; }

  /* Stats — 2 columns still readable */
  .stats { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; }
  .stat h3 { font-size: 1.7rem; }
  .stat p { font-size: .8rem; }

  /* Vision-mission card */
  .vm-card { padding: 24px; }
  .vm-card::before { width: 140px; height: 140px; top: -30px; right: -30px; }

  /* About badge */
  .about-badge {
    position: static; margin-top: 16px; box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary); align-self: flex-start;
  }

  /* Chairman / HOD photo */
  .hod-photo img,
  .main-thalakatuu-photo img { max-width: 260px; }

  .gallery-filters { gap: 6px; justify-content: contain; }
  .filter-btn { padding: 8px 16px; font-size: .8rem; }

  /* Testimonials */
  .testi-slide .quote { padding: 26px 20px; }
  .testi-slide p { font-size: 1rem; }
  .testi-nav button { width: 40px; height: 40px; }

  /* FAQ */
  .faq-q { padding: 18px 18px; font-size: .95rem; }
  .faq-item.open .faq-a { padding: 0 18px 18px; }

  /* Contact */
  .contact-form { padding: 22px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; font-size: .9rem; }
  .contact-list i { width: 40px; height: 40px; }

  /* Symposium */
  .symp-form { padding: 20px; border-radius: 16px; }
  .symp-form h3 { font-size: 1.1rem; }
  .symp-list li { font-size: .9rem; }
  .waiting-list { padding: 20px; border-radius: 16px; }

  /* Bottom contact */
  .bottom-contact { font-size: .82rem; }
  .bottom-contact-inner { gap: 10px; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer-bottom { margin-top: 40px; }

  /* Lightbox close */
  .lb-close { top: 10px; right: 16px; font-size: 2.4rem; }
  .lightbox { padding: 20px; }
}

/* Very small phones (<=420px) */
@media (max-width: 420px) {
  .container { width: 94%; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .brand-logo img { width: 38px; height: 38px; margin-right: 6px; }
  .brand-text strong { font-size: .7rem; }

  .hero { min-height: 420px; padding: 80px 0 0; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .announcements { padding: 0; }
  .announcements .container { margin-top: 0; padding: 30px 0; }
  .btn { padding: 11px 18px; font-size: .85rem; }

  .stats { grid-template-columns: 1fr; }

  .top-social a { width: 26px; height: 26px; }

  .nav-menu { width: min(300px, 90%); padding: 80px 20px 20px; }

  .lab-card .facilities span { font-size: .68rem; padding: 3px 8px; }

  .about-media img { aspect-ratio: 5/4; }
}

/* Very small (<=340px) */
@media (max-width: 340px) {
  .brand-text strong { font-size: .65rem; }
  h1 { font-size: 1.55rem; }
  .hero-actions .btn { font-size: .8rem; padding: 10px 14px; }
}

/* ============================================================
   MOBILE-ONLY RESPONSIVE OVERRIDES (320px–768px)
   Desktop (≥1024px) and tablet (≥769px) are untouched.
   Only layout/spacing tweaks — no color/font/animation changes.
   ============================================================ */

/* ---- 481px–768px : image-heavy sections use 4 cols when they fit ---- */
@media (min-width: 481px) and (max-width: 768px) {
  .faculty-grid,
  .labs-grid,
  .place-stats,
  .office-bearers {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  /* Text-card sections stay comfortable at 2 cols in this range */
  .cards-grid,
  .acad-grid,
  .research-grid,
  .ach-grid,
  .event-grid,
  .thalakatuu-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}



/* ---- 320px–480px : 2 cards per row across the board ---- */
@media (max-width: 480px) {
  .cards-grid,
  .acad-grid,
  .research-grid,
  .ach-grid,
  .labs-grid,
  .faculty-grid,
  .event-grid,
  .place-stats,
  .office-bearers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* ---- Shared mobile polish (≤768px) : cards, images, spacing ---- */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  img, iframe, video { max-width: 100%; height: auto; }

  .section { padding: 48px 0; }
  .container { width: 92%; }

  /* Announcement cards: compact, readable */
  .ann-card { padding: 18px; border-radius: 16px; }
  .ann-card h3 { font-size: 1rem; line-height: 1.3; }
  .ann-card p  { font-size: .85rem; }

  /* Faculty cards: equal-size, image on top */
  .faculty-card { border-radius: 14px; overflow: hidden; }
  .faculty-card .photo { aspect-ratio: 1 / 1; width: 100%; }
  .faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; }
  .faculty-card .info { padding: 12px 10px; }
  .faculty-card h3 { font-size: .92rem; margin-bottom: 2px; word-break: break-word; }
  .faculty-card .desig,
  .faculty-card .qual { font-size: .72rem; margin: 2px 0; }
  .faculty-card .spec { font-size: .68rem; padding: 3px 8px; }
  .faculty-card .socials { gap: 6px; margin-top: 8px; }
  .faculty-card .socials a { width: 26px; height: 26px; font-size: .75rem; }

  /* Lab cards: equal images */
  .lab-card { border-radius: 14px; overflow: hidden; }
  .lab-card .img { aspect-ratio: 4 / 3; }
  .lab-card .body { padding: 12px; }
  .lab-card h3 { font-size: .95rem; }
  .lab-card p  { font-size: .8rem; }
  .lab-card .facilities span { font-size: .65rem; padding: 3px 7px; }

  /* Academic / research / achievement cards */
  .acad-card, .r-card, .ach-card { padding: 16px; border-radius: 14px; }
  .acad-card h3, .r-card h3, .ach-card h3 { font-size: .95rem; }
  .acad-card p, .r-card p, .ach-card p { font-size: .82rem; }
  .acad-card i, .r-card i, .ach-card i { font-size: 1.5rem; }

  /* Events (workshops/hackathons/contests) */
  .event-card { border-radius: 14px; }
  

  /* Placements: cards keep equal size */
  .place-stats > * { border-radius: 14px; }

  /* IT Students' Association — office bearer cards */
  .office-bearers > * { border-radius: 14px; overflow: hidden; }
  .office-bearers img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

  /* Vision & Mission: side-by-side too tight on phones — stack */
  .vm-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .vm-card { padding: 22px; }

  /* Chairman / HOD messages: center and stack */
  .main-thalakatuu-grid,
  .hod-grid { grid-template-columns: 1fr !important; text-align: center; gap: 24px; }
  .main-thalakatuu-photo img,
  .hod-photo img { max-width: 240px; margin: 0 auto; }

  /* About */
  .about-grid { grid-template-columns: 1fr !important; gap: 28px; }

  /* Section headings — readable without zoom */
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.35rem, 5vw, 1.7rem); }
  .section-head p  { font-size: .9rem; }

  /* Buttons/links — touch-friendly */
  .btn { min-height: 44px; }
  .faculty-card .socials a,
  .filter-btn { min-height: 36px; }
}

/* ---- Ultra-small phones (≤360px) : keep 2 cols but shrink typography ---- */
@media (max-width: 360px) {
  .faculty-card h3 { font-size: .85rem; }
  .faculty-card .desig,
  .faculty-card .qual { font-size: .68rem; }
  .acad-card, .r-card, .ach-card { padding: 12px; }
  .ann-card { padding: 14px; }
}