:root{
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --text-main: rgba(255,255,255,0.96);
  --text-soft: rgba(255,255,255,0.75);
  --accent: #ffd54a;
  --accent-soft: rgba(255,213,74,0.6);
  --danger: #ff5252;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
}

*,
*::before,
*::after{box-sizing:border-box}

html,body{margin:0;padding:0;height:100%}

body{
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text-main);
  -webkit-font-smoothing:antialiased;
  background:#000;
  line-height:1.5;
  /* --- Added lines to fix background cutting --- */
  min-height: 100vh;
  background-attachment: fixed;
}

/* Page backgrounds */
body.page-home{
  background:
    radial-gradient(circle at 5% 10%, rgba(255,255,0,0.16), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(135,206,250,0.18), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(0,0,139,0.55), transparent 70%),
    linear-gradient(135deg,#02030a 60%, #401b7a 80%, #f5ff3b 86.6%, #7fd7ff 93.2%, #062f8e 100%);
  background-attachment: fixed; /* Added specifically for gradients */
}

body.page-clubs{
  background: radial-gradient(circle at 10% 0%, rgba(0,0,0,0.7), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(8,47,107,0.8), transparent 55%),
              linear-gradient(135deg,#020617,#020617 40%,#020d33 100%);
  background-attachment: fixed; /* Added specifically for gradients */
}

body.page-register{
  background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.8), transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(125,211,252,0.5), transparent 60%),
              linear-gradient(135deg,#020617,#0f172a,#0369a1);
  background-attachment: fixed; /* Added specifically for gradients */
}

body.page-about{
  background: radial-gradient(circle at 0% 0%, rgba(253,224,71,0.35), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(15,23,42,0.9), transparent 55%),
              linear-gradient(135deg,#020617,#111827,#facc15);
  background-attachment: fixed; /* Added specifically for gradients */
}

/* Container */
.container{
  width:min(1160px, 94%);
  margin:0 auto;
}

/* Glass nav */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
}

.glass-nav{
  backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(15,23,42,0.3));
  border-bottom:1px solid rgba(148,163,184,0.35);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.6rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.55rem;
  text-decoration:none;
}

.brand-logo{
  width:40px;
  height:auto;
  filter:drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.brand-text{
  font-weight:800;
  letter-spacing:0.08em;
  font-size:0.9rem;
  color:var(--text-main);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:1.2rem;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a{
  position:relative;
  text-decoration:none;
  font-weight:600;
  font-size:0.88rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--text-soft);
  padding-block:0.25rem;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#facc15,#f97316);
  transition:width .23s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after{
  width:100%;
}

.nav-links a.active{
  color:var(--accent);
}

.menu-btn{
  display:none;
  background:none;
  border:none;
  color:var(--text-main);
  font-size:1.4rem;
  cursor:pointer;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.35rem;
  padding:0.55rem 1.4rem;
  border-radius:999px;
  border:1.3px solid rgba(250,250,250,0.4);
  font-size:0.8rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:transform .17s ease, box-shadow .17s ease, background .17s ease, color .17s ease;
  white-space:nowrap;
}

.btn-primary{
  background:#ffffff;
  color:#111827;
  box-shadow:0 0 0 0 rgba(250,204,21,0.0);
}

.btn-primary:hover,
.btn-primary:active{
  box-shadow:0 0 12px 2px rgba(250,204,21,0.9);
  transform:translateY(-2px) scale(1.03);
}

.btn-outline{
  background:transparent;
  color:#facc15;
  border-color:rgba(250,204,21,0.8);
}

.btn-outline:hover,
.btn-outline:active{
  background:rgba(250,204,21,0.1);
  box-shadow:0 0 10px 2px rgba(250,204,21,0.8);
  transform:translateY(-2px) scale(1.03);
}

.btn-ghost{
  background:rgba(15,23,42,0.4);
  border-color:rgba(148,163,184,0.5);
  color:var(--text-main);
}

.btn-ghost:hover,
.btn-ghost:active{
  background:rgba(15,23,42,0.8);
  box-shadow:0 0 10px 2px rgba(148,163,184,0.6);
  transform:translateY(-2px) scale(1.03);
}

/* Hero home */
.hero{
  padding:3.5rem 0 2.5rem;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap:1.4rem;
}

.hero-card{
  padding:1.7rem 1.8rem;
}

.hero-welcome .hero-title{
  margin:0 0 0.9rem;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.hero-welcome .hero-sub{
  margin:0 0 1.4rem;
  color:var(--text-soft);
  font-size:0.95rem;
}

.hero-logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-logo-img{
  max-width:260px;
  width:100%;
  height:auto;
  margin-bottom:1.1rem;
}

.hero-tagline{
  margin:0 0 1.1rem;
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-size:0.8rem;
  color:var(--accent);
}

/* Glass card */
.glass-card{
  position:relative;
  border-radius:var(--radius-lg);
  background: linear-gradient(145deg, rgba(15,23,42,0.86), rgba(15,23,42,0.6));
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(160%);
  overflow:hidden;
}

.glass-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:radial-gradient(circle at 0 0, rgba(250,204,21,0.26), transparent 50%);
  mix-blend-mode:screen;
  opacity:0.5;
  pointer-events:none;
}

/* Home feature cards */
.home-features{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:1.2rem;
  padding-bottom:3rem;
}

.feature-card{
  padding:1.4rem 1.5rem 1.5rem;
}

.feature-card h2{
  margin:0 0 0.6rem;
  font-size:1.05rem;
}

.feature-card p{
  margin:0 0 1rem;
  font-size:0.9rem;
  color:var(--text-soft);
}

.feature-icon-circle{
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:0.7rem;
  background:radial-gradient(circle at 30% 0%, #fde68a, #f97316);
}

.feature-icon{
  font-weight:800;
  font-size:1.1rem;
}

/* Star field on home */
.star-field{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
}

.star{
  position:absolute;
  border-radius:40% 60% 70% 30% / 50% 40% 60% 50%;
  border:2px solid rgba(253,224,71,0.9);
  box-shadow:0 0 18px rgba(253,224,71,0.7);
  opacity:0.45;
  animation:floatStar 16s linear infinite alternate;
}

.star-1{width:110px;height:110px;top:12%;left:5%;animation-delay:-2s;}
.star-2{width:80px;height:80px;top:18%;right:12%;animation-delay:-7s;}
.star-3{width:140px;height:140px;bottom:18%;left:18%;animation-delay:-3s;}
.star-4{width:90px;height:90px;bottom:10%;right:8%;animation-delay:-10s;}
.star-5{width:60px;height:60px;top:50%;left:60%;animation-delay:-5s;opacity:0.35;}

@keyframes floatStar{
  0%{transform:translate3d(0,0,0) rotate(0deg);}
  100%{transform:translate3d(12px,-18px,0) rotate(10deg);}
}

/* Section header */
.section-header{
  text-align:center;
  margin:2.4rem 0 1.5rem;
}

.section-header h1,
.section-header h2{
  margin:0 0 0.5rem;
  letter-spacing:0.16em;
  font-size:1.2rem;
}

.section-header p{
  margin:0;
  color:var(--text-soft);
  font-size:0.9rem;
}

/* Clubs page */
.clubs-main{
  padding:2.4rem 0 3rem;
}

.clubs-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.3rem;
}

.club-card{
  padding:1.3rem 1.2rem 1.35rem;
  position:relative;
  overflow:hidden;
}

.club-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-size:160%;
  background-repeat:no-repeat;
  background-position:center;
  opacity:0.12;
  filter:blur(2px);
  z-index:-1;
}

/* Logo background per club */
.club-nipunatva::before{background-image:url("../assets/club-nipunatva.png");}
.club-kalavihar::before{background-image:url("../assets/club-kala-vihar.png");}
.club-avishkaar::before{background-image:url("../assets/club-avishkaar.png");}
.club-yantra::before{background-image:url("../assets/club-yantra-vidaya.png");}
.club-udhbhav::before{background-image:url("../assets/club-udhbhav.png");}
.club-sambhava::before{background-image:url("../assets/club-sambhava.png");}
.club-svarn::before{background-image:url("../assets/club-svarn-vikas.png");}

.club-logo-wrap{
  width:70px;
  height:70px;
  border-radius:16px;
  padding:0.35rem;
  background:rgba(15,23,42,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:0.9rem;
}

.club-logo-wrap img{
  max-width:100%;
  max-height:100%;
}

.club-name{
  margin:0 0 0.4rem;
  font-size:1rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
}

.club-slogan{
  margin:0 0 0.9rem;
  color:var(--text-soft);
  font-size:0.86rem;
}

.club-actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.55rem;
}

/* Neon hover per card */
.club-nipunatva:hover{box-shadow:0 0 12px rgba(56,189,248,0.85);}
.club-kalavihar:hover{box-shadow:0 0 12px rgba(251,191,36,0.9);}
.club-avishkaar:hover{box-shadow:0 0 12px rgba(94,234,212,0.9);}
.club-yantra:hover{box-shadow:0 0 14px rgba(129,140,248,0.95);}
.club-udhbhav:hover{box-shadow:0 0 13px rgba(244,114,182,0.9);}
.club-sambhava:hover{box-shadow:0 0 14px rgba(248,113,113,0.95);}
.club-svarn:hover{box-shadow:0 0 13px rgba(190,242,100,0.9);}

/* ================================
   3D TILT EFFECT – CLUB CARDS
   ================================ */

.club-card{
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  will-change: transform;
}

/* Lift + soft glow */
.club-card:hover{
  box-shadow: 0 18px 45px rgba(250,204,21,0.25);
}

/* Make entire card clickable without underline */
.club-link{
  text-decoration: none;
  color: inherit;
  display: block;
}


/* Register page */
.register-main{
  padding:2.8rem 0 3.4rem;
}

.register-card{
  padding:1.8rem 1.8rem 2rem;
  max-width:720px;
  margin:0 auto;
}

.register-card h1{
  margin:0 0 0.8rem;
  letter-spacing:0.16em;
  font-size:1.15rem;
}

.register-intro{
  margin:0 0 1.4rem;
  color:var(--text-soft);
  font-size:0.9rem;
}

.register-form{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
}

.form-row{
  width:100%;
}

.form-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0.8rem;
}

label{
  display:flex;
  flex-direction:column;
  gap:0.35rem;
  font-size:0.85rem;
  color:var(--text-soft);
}

input,select,textarea{
  border-radius:var(--radius-md);
  border:1px solid rgba(148,163,184,0.7);
  background:rgba(15,23,42,0.75);
  color:var(--text-main);
  padding:0.55rem 0.7rem;
  font-family:inherit;
  font-size:0.9rem;
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .12s ease;
}

input:focus,select:focus,textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(250,204,21,0.65);
  background:rgba(15,23,42,0.95);
  transform:translateY(-1px);
}

textarea{
  resize:vertical;
  min-height:80px;
}

.form-actions{
  margin-top:0.8rem;
  display:flex;
  justify-content:flex-end;
}

/* About page */
.about-main{
  padding:2.4rem 0 3.2rem;
}

.about-banner{
  margin-bottom:2.6rem;
}

.about-banner-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,0.9fr);
  gap:1.4rem;
  padding:1.7rem 1.8rem;
}

.about-text h1{
  margin:0 0 0.9rem;
  font-size:1.4rem;
  letter-spacing:0.12em;
}

.about-text p{
  margin:0 0 0.7rem;
  font-size:0.9rem;
  color:var(--text-soft);
}

.about-stats{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0.8rem;
}

.glass-chip{
  border-radius:999px;
  padding:0.65rem 1rem;
  border:1px solid rgba(250,250,250,0.4);
  background:linear-gradient(135deg, rgba(15,23,42,0.9), rgba(250,250,250,0.04));
}

.stat-value{
  font-size:1.3rem;
  font-weight:800;
  margin-right:0.4rem;
}

.stat-label{
  font-size:0.78rem;
  letter-spacing:0.16em;
}

.about-team .team-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1.2rem;
}

.team-card{
  padding:1.1rem 1.1rem 1.2rem;
  text-align:center;
}

.avatar{
  width:72px;
  height:72px;
  border-radius:999px;
  margin:0 auto 0.8rem;
}

.gradient-avatar{
  background:conic-gradient(from 120deg,#f97316,#facc15,#22d3ee,#a855f7,#f97316);
}

.team-card h2{
  margin:0 0 0.35rem;
  font-size:0.95rem;
  font-weight: 500;
}

.team-card p{
  margin:0;
  font-size:0.84rem;
  color:var(--text-soft);
}
/* =========================================
   LEADERSHIP IMAGE WITH GRADIENT BORDER
   ========================================= */

.leader-avatar{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 5px; /* border thickness */

  background: conic-gradient(
    from 120deg,
    #f97316,
    #facc15,
    #22d3ee,
    #a855f7,
    #f97316
  );

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 0.8rem;
}

.leader-avatar img{
  width: 105%;
  height: 105%;
  border-radius: 50%;
  object-fit: cover;
  background: #020617;
}

/* Adjust name */
.team-card h3{
  margin: 0.3rem 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Role text */
.team-card p{
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Club detail page */
.club-detail-main{
  padding:2.4rem 0 3.4rem;
}

.club-detail{
  padding:1.8rem 1.8rem 1.9rem;
}

.club-detail-header{
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.8fr);
  gap:1.4rem;
  margin-bottom:1.4rem;
}

.club-detail-logo-bg{
  position:relative;
  border-radius:var(--radius-lg);
  background:radial-gradient(circle at 0 0, rgba(250,204,21,0.25), transparent 60%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
}

.club-detail-logo-bg img{
  max-width:100%;
  max-height:220px;
}

.club-detail-text h1{
  margin:0 0 0.7rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-size:1.15rem;
}

.club-detail-text p{
  margin:0;
  font-size:0.9rem;
  color:var(--text-soft);
}

.club-detail-body{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.4rem;
  margin-bottom:1.3rem;
}

.club-detail-column h2{
  margin:0 0 0.6rem;
  font-size:0.95rem;
  letter-spacing:0.14em;
}

.club-detail-column ul{
  list-style:disc;
  margin:0 0 0 1.1rem;
  padding:0;
}

.club-detail-column li{
  margin-bottom:0.4rem;
  font-size:0.88rem;
  color:var(--text-soft);
}

.club-detail-actions{
  display:flex;
  justify-content:space-between;
  gap:0.8rem;
}

/* Footer */
.site-footer{
  text-align:center;
  padding:1.6rem 0 1.3rem;
  font-size:0.78rem;
  color:rgba(209,213,219,0.8);

}

@media (max-width:640px){
  .nav{padding:0.55rem 0;}
  .menu-btn{display:block;}
  .nav-links{
    position:absolute;
    right:1rem;
    top:56px;
    flex-direction:column;
    align-items:flex-start;
    padding:0.7rem 0.85rem;
    border-radius:var(--radius-md);
    background:rgba(15,23,42,0.96);
    border:1px solid rgba(148,163,184,0.6);
    box-shadow:0 18px 35px rgba(0,0,0,0.7);
    display:none;
  }
  .nav-links.open{display:flex;}
  .home-features{grid-template-columns:1fr;}
  .clubs-grid{grid-template-columns:1fr;}
  .register-card{padding:1.4rem 1.2rem;}
  .form-grid-2{grid-template-columns:1fr;}
  .about-banner-grid{padding:1.4rem 1.2rem;}
  .about-team .team-grid{grid-template-columns:1fr;}
  .club-detail{padding:1.4rem 1.2rem;}
  .club-detail-actions{flex-direction:column;}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}
/* ===== Fixed College + Navbar Wrapper ===== */
.college-top-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

/*.site-header{
  position: sticky;
  top: 60px; /* sits below college name */
  z-index: 1990;*/
}

/* Space for fixed headers */
.page-home{
  padding-top: 140px;
}
/* ===== Department Card Layout ===== */
.dept-card-wrapper{
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.dept-glass-card{
  width: 100%;
  max-width: 100%;
}

/* Inner content split */
.dept-content{
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 1rem;
}

/* Text styling */
.dept-text{
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dept-text span{
  display: block;
}

.dept-text span:nth-child(1){
  font-size: 1rem;
}

.dept-text span:nth-child(2){
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.dept-text span:nth-child(3){
  font-size: 1.05rem;
}

/* Logo area */
.dept-logo-wrap{
  display: flex;
  justify-content: center;
}

.dept-logo-wrap img{
  width: 110px;
  max-width: 100%;
}
@media (max-width: 768px){
  .page-home{
    padding-top: 180px;
  }

  .dept-content{
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .dept-logo-wrap img{
    width: 90px;
  }

  .dept-text span:nth-child(3){
    font-size: 0.95rem;
  }
}
/* =========================================================
   FIXED COLLEGE HEADER + NAVBAR (MATCHING UPLOADED IMAGE)
   ========================================================= */

/* Wrapper for college name area */
.college-top-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 10px 18px;

  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.85),
      rgba(15,23,42,0.55)
    );

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  border-bottom: 1px solid rgba(255,255,255,0.18);
}

/* College logo */
.college-top-header img{
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

/* College name text */
.college-top-name{
  margin: 0;
  text-align: center;
  font-weight: 1000;
  letter-spacing: 0.12em;
  font-size: 1.75rem;
  line-height: 1.15;
  color: rgba(255,255,255,0.98);
  text-transform: uppercase;
}

.college-top-name span{
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 2px;
  opacity: 0.9;
}

/* =========================================================
   NAVBAR FIXED BELOW COLLEGE HEADER
   ========================================================= */

/*.site-header{
  position: fixed;
  top: 114px; /* height of college header */
  left: 0;
  width: 100%;
  z-index: 2500;*/
}

/* Push entire page content down */
.page-home{
  padding-top: 140px;
}

/* =========================================================
   DEPARTMENT GLASS CARD (CONTENT LAYOUT ONLY)
   ========================================================= */

.dept-card-wrapper{
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.dept-glass-card{
  width: 100%;
}

/* Split text (60%) and logo (40%) */
.dept-content{
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
}

/* Department text */
.dept-text{
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dept-text span{
  display: block;
}

.dept-text span:nth-child(1){
  font-size: 1.25rem;
}

.dept-text span:nth-child(2){
  font-size: 0.8rem;
  margin: 4px 0;
}

.dept-text span:nth-child(3){
  font-size: 1.05rem;
}

/* Logo on right */
.dept-logo-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
}

.dept-logo-wrap img{
  width: 110px;
  max-width: 100%;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 768px){
  .college-top-name{
    font-size: 0.95rem;
  }

  .college-top-name span{
    font-size: 0.75rem;
  }

  /*.site-header{
    top: 76px;*/
  }

  .page-home{
    padding-top: 170px;
  }

  .dept-content{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dept-logo-wrap img{
    width: 90px;
  }
}
/* =========================================================
   HOME PAGE ONLY – FIXED COLLEGE HEADER + NAVBAR
   ========================================================= */

/* Fix college header only on home */
.page-home .college-top-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
}

/* Fix navbar ONLY on home page */
.page-home .site-header{
  position: fixed;
  top: 116px; /* below college header */
  left: 0;
  width: 100%;
  z-index: 2500;
}

/* Reset navbar behavior for other pages */
body:not(.page-home) .site-header{
  position: sticky;
  top: 0;
}

/* Push content down ONLY on home */
.page-home{
  padding-top: 140px;
}

/* =========================================================
   HOME PAGE – FIX SPACING BETWEEN HERO CARDS
   ========================================================= */

/* Ensure spacing between Welcome & 7 Segment cards */
.page-home .hero-grid{
  gap: 1.6rem; /* restores clean spacing */
}

/* Ensure cards keep original size */
.page-home .hero-card{
  margin: 0;
}

/* =========================================================
   MOBILE ADJUSTMENTS (HOME ONLY)
   ========================================================= */

@media (max-width: 768px){
  .page-home{
    padding-top: 170px;
  }

  .page-home .site-header{
    top: 76px;
  }

  .page-home .hero-grid{
    gap: 1.4rem;
  }
}
/* =========================================================
   FORCE HERO CARDS SIDE BY SIDE – HOME PAGE ONLY
   ========================================================= */

/* Desktop & Laptop */
.page-home .hero-grid{
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
  gap: 1.6rem;
  align-items: stretch;
}

/* Ensure cards don't collapse */
.page-home .hero-card{
  width: 100%;
}

/* Mobile only – stack cards */
@media (max-width: 640px){
  .page-home .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 1.4rem;
  }
}
/* =========================================================
   FORCE WELCOME + 7 SEGMENT CARDS SIDE-BY-SIDE (HOME ONLY)
   ========================================================= */

/* Override ALL previous rules */
.page-home section.hero .hero-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
  gap: 1.6rem !important;
}

/* Keep cards full width */
.page-home section.hero .hero-card{
  width: 100%;
}

/* ONLY small mobile should stack */
@media (max-width: 640px){
  .page-home section.hero .hero-grid{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   HOME PAGE HERO LAYOUT (FINAL & CLEAN)
   ========================================================= */

/* Desktop & Laptop: side by side */
.page-home .hero-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

/* Mobile: stack */
@media (max-width: 640px){
  .page-home .hero-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   ABOUT PAGE – COLLEGE & DEPARTMENT GLASS CARDS (FINAL)
   ========================================================= */

/* Wrapper */
.about-extra-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
  align-items: start;
}

/* Shared glass card */
.info-card{
  position: relative;
  padding: 1.6rem 1.7rem 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15,23,42,0.88), rgba(15,23,42,0.55));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;

  display: flex;
  flex-direction: column;
}

/* Hover glow */
.info-card:hover{
  box-shadow: 0 0 18px rgba(250,204,21,0.45);
  transform: translateY(-4px);
}

/* =========================================================
   CARD HEADER
   ========================================================= */

.info-card h2{
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card p{
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* =========================================================
   LOGO (TOP)
   ========================================================= */

.info-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-logo img{
  width: 90px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.7));
}

/* =========================================================
   BOTTOM IMAGE SECTION
   ========================================================= */

.info-images{
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

/* Department → single image */
.info-card.department .info-images{
  grid-template-columns: 1fr;
}

/* Image wrapper */
.info-images figure{
  margin: 0;
  text-align: center;
}

/* Person images */
.info-images img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Caption */
.info-images figcaption{
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.info-images figcaption span{
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px){
  .about-extra-cards{
    grid-template-columns: 1fr;
  }

  .info-images{
    grid-template-columns: 1fr;
  }

  .info-images img{
    height: 180px;
  }
}
/* =========================================================
   IMAGE SECTION (BOTTOM)
   ========================================================= */

.info-images{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

/* Department card → single image */
.info-card.department .info-images{
  grid-template-columns: 1fr;
}

/* Image container */
.info-images figure{
  margin: 0;
  text-align: center;
}

/* Image itself */
.info-images img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Name & role */
.info-images figcaption{
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.info-images figcaption span{
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 768px){
  .about-extra-cards{
    grid-template-columns: 1fr;
  }

  .info-images{
    grid-template-columns: 1fr;
  }

  .info-images img{
    height: 180px;
  }
}
/* =========================================================
   FIX EMPTY SPACE IN DEPARTMENT CARD
   ========================================================= */

/* Do NOT force equal heights */
.about-extra-cards{
  align-items: flex-start; /* 🔥 key fix */
}

/* Allow cards to shrink naturally */
.info-card{
  height: auto;
}

/* Push images section to bottom ONLY if space exists */
.info-card{
  display: flex;
  flex-direction: column;
}

/* Images stay at bottom without creating empty gap */
.info-images{
  margin-top: auto; /* 🔥 pushes images down cleanly */
}

/* Prevent oversized empty cards */
.info-card.department{
  min-height: unset;
}
/* =========================================================
   PREVENT IMAGE STRETCHING INSIDE GLASS CARDS
   ========================================================= */

/* Universal image safety inside info cards */
.info-card img{
  width: 100%;
  height: auto;              /* 🔥 keeps ratio */
  max-height: 160px;         /* 🔥 prevents stretching */
  object-fit: contain;       /* 🔥 no crop, no stretch */
  display: block;
}

/* Logo images (top logos) */
.info-card .card-logo img{
  max-width: 120px;
  max-height: 120px;
  margin: 0 auto 1rem;
}

/* Bottom person images */
.info-images img{
  width: 100%;
  max-width: 280px;
  max-height: 200px;
  object-fit: cover;         /* looks neat for photos */
  border-radius: 12px;
}

/* Ensure images don't force card height */
.info-images{
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 1.2rem;
}

/* Department card single image alignment */
.info-card.department .info-images{
  justify-content: center;
}
/* =========================================================
   ABOUT PAGE – JUSTIFY TEXT (COLLEGE & DEPARTMENT CARDS)
   ========================================================= */

.about-extra-cards .info-card p{
  text-align: justify;
  text-justify: inter-word;
}
/* Space between Welcome card and 7 Segment Council card */
.hero-grid {
  display: grid;
  gap: 0rem; /* 👈 controls space between cards */
}
/* =========================================================
   CLUB CARD – FINAL CLEAN DESIGN
   ========================================================= */

/* Remove link styling */
.club-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Grid equal height */
.clubs-grid{
  align-items: stretch;
}

/* Card base */
.club-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 1.8rem 1.4rem;

  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

/* Bigger centered logo */
.club-logo-wrap{
  width: 200px;
  height: 200px;
  padding: 0;
  margin-bottom: 1rem;

  background: transparent;
  border-radius: 50%;
}

.club-logo-wrap img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Center text */
.club-name{
  text-align: center;
  margin-bottom: 0.35rem;
}

.club-slogan{
  text-align: center;
  max-width: 240px;
}

/* Softer hover glow + lift */
.club-card:hover{
  transform: translateY(-6px);
}

/* Softer individual glows */
.club-nipunatva:hover{box-shadow:0 0 14px rgba(56,189,248,0.55);}
.club-kalavihar:hover{box-shadow:0 0 14px rgba(251,191,36,0.55);}
.club-avishkaar:hover{box-shadow:0 0 14px rgba(94,234,212,0.55);}
.club-yantra:hover{box-shadow:0 0 16px rgba(129,140,248,0.55);}
.club-udhbhav:hover{box-shadow:0 0 15px rgba(244,114,182,0.55);}
.club-sambhava:hover{box-shadow:0 0 16px rgba(248,113,113,0.55);}
.club-svarn:hover{box-shadow:0 0 15px rgba(190,242,100,0.55);}

/* Mobile safety */
@media (max-width: 768px){
  .club-logo-wrap{
    width: 200px;
    height: 200px;
  }

  .club-slogan{
    max-width: 100%;
  }
}
/* =========================================================
   ABOUT PAGE – REMOVE AOS ANIMATION FOR COLLEGE & DEPT CARDS
   ========================================================= */

/* Disable animation effects */
.page-about .about-extra-cards,
.page-about .about-extra-cards *{
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Prevent AOS from hiding them initially */
.page-about .about-extra-cards[data-aos],
.page-about .about-extra-cards [data-aos]{
  opacity: 1 !important;
  transform: none !important;
}
/* =========================================================
   MOBILE SPACING FIX – DEPARTMENT ↔ WELCOME CARD
   ========================================================= */

@media (max-width: 768px){

  /* Space BELOW department card */
  .dept-card-wrapper{
    margin-bottom: 1.4rem;   /* 🔥 creates clear gap */
  }

  /* Space ABOVE welcome section */
  .hero{
    margin-top: 1.4rem;      /* 🔥 ensures separation */
  }

  /* Extra safety: cards never touch */
  .glass-card{
    margin-bottom: 0.8rem;
  }
}
/* =========================================
   CLICKABLE COLLEGE & DEPARTMENT HEADERS
   ========================================= */

.info-link{
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* No underline ever */
.info-link:hover,
.info-link:focus{
  text-decoration: none;
}

/* Slight feedback on hover */
.info-link:hover{
  opacity: 0.96;
}
/* ================================
   ABOUT PAGE – INSTAGRAM STAT CARD
   ================================ */

.insta-card{
  text-decoration: none;
  cursor: pointer;
}

.insta-content{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.insta-icon{
  width: 20px;
  height: 20px;
  fill: #facc15;
  flex-shrink: 0;
}

.insta-text{
  letter-spacing: 0.14em;
}

/* ================================
   ABOUT PAGE – INSTAGRAM STAT FIX
   ================================ */

/* Remove link coloring completely */
.insta-card,
.insta-card:visited,
.insta-card:hover,
.insta-card:active{
  color: var(--text-main);       /* same as other stats */
  text-decoration: none;
}

/* Align content */
.insta-content{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Instagram icon → WHITE */
.insta-icon{
  width: 30px;
  height: 30px;
  fill: rgba(255,255,255,0.95);  /* pure white */
  flex-shrink: 0;
}

/* Instagram ID text → same style as stat labels */
.insta-text{
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--text-main);       /* 🔥 fixes blue */
  text-transform: lowercase;
}

/* =========================================
   NAVBAR – FINAL FIX (ALL DEVICES)
   ========================================= */

/* Default: sticky navbar for all pages */
.site-header{
  position: sticky;
  top: 0;
  z-index: 3000;
}

/* HOME PAGE ONLY – fixed below college header */
.page-home .site-header{
  position: fixed;
  top: 110px; /* height of college-top-header */
  left: 0;
  width: 100%;
  z-index: 3000;
}

/* Push home content below fixed headers */
.page-home{
  padding-top: 150px;
}

/* MOBILE & TABLET FIX */
@media (max-width: 768px){

  /* Reduce top offset */
  .page-home .site-header{
    top: 120px;
  }

  .page-home{
    padding-top: 140px;
  }

  /* Ensure menu dropdown stays visible */
  .nav-links{
    z-index: 4000;
  }
}
/* =========================================================
   ABOUT PAGE – TABLET STAT CARD FIX
   ========================================================= */

@media (max-width: 1024px){

  /* Make right stats column use full width */
  .about-stats{
    width: 100%;
  }

  /* Stat pills adapt to tablet width */
  .glass-chip{
    width: 100%;
    padding: 0.7rem 1rem;
  }

  /* Prevent text wrapping inside pills */
  .glass-chip,
  .insta-content{
    white-space: nowrap;
  }

  /* Align icon + text properly */
  .insta-content{
    justify-content: center;
  }

  /* Slightly reduce text size for tablet */
  .insta-text{
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  /* Icon remains visible & centered */
  .insta-icon{
    width: 28px;
    height: 28px;
  }
}
/* =========================================================
   CLUB DETAIL – GALLERY SECTION
   ========================================================= */

.club-gallery{
  margin-top: 2.4rem;
}

.club-gallery-title{
  text-align: center;
  margin-bottom: 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Gallery Grid */
.club-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

/* Images */
.club-gallery-grid img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
.club-gallery-grid img:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(250,204,21,0.35);
}

/* Tablet */
@media (max-width: 1024px){
  .club-gallery-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Mobile */
@media (max-width: 640px){
  .club-gallery-grid{
    grid-template-columns: 1fr;
  }

  .club-gallery-grid img{
    height: 200px;
  }
}
/* ================================
   CLUB DETAIL – GALLERY FIX
   ================================ */

/* Gallery section spacing */
.club-gallery{
  margin-top: 2rem;
  margin-bottom: 2.4rem; /* 🔥 pushes buttons down */
}

/* Gallery grid safety */
.club-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Ensure images never overflow */
/*.club-gallery-grid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;*/
}

/* Buttons spacing fix */
.club-detail-actions{
  margin-top: 2rem; /* 🔥 separates gallery and buttons */
}
@media (max-width: 768px){
  .club-gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px){
  .club-gallery-grid{
    grid-template-columns: 1fr;
  }
}
/*now 8-1-26*/
/* ===============================
   ABOUT PAGE – MOBILE FIX
   =============================== */
@media (max-width: 768px){

  /* Stack about banner into one column */
  .about-banner-grid{
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Stats go full width */
  .about-stats{
    width: 100%;
  }

  /* Each stat pill full width */
  .about-stats .glass-chip{
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 768px){

  .insta-content{
    justify-content: center;
  }

  .insta-text{
    white-space: nowrap;   /* prevents breaking */
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 768px){

  .info-header{
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .college-top-logo{
    width: 90px;
    margin: 0 auto;
  }

  .info-title h2{
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
/* =====================================
   CLUB DETAILS – MOBILE STACK FIX
   ===================================== */
@media (max-width: 768px){

  .club-detail-body{
    grid-template-columns: 1fr; /* stack vertically */
  }

}
