
/* =========================================================
   V23.4 — tighter homepage rhythm + director CMS
   ========================================================= */

/* The previous spacing doubled visually because adjacent sections both had large padding.
   V23.4 intentionally uses a tighter shared rhythm. */
body.rebuild-v1{
  --v234-section-y:28px;
}

body.rebuild-v1 .section,
body.rebuild-v1 .about,
body.rebuild-v1 .departments,
body.rebuild-v1 .home-pages23,
body.rebuild-v1 .dean,
body.rebuild-v1 .news,
body.rebuild-v1 .events,
body.rebuild-v1 .home-gallery232,
body.rebuild-v1 .files,
body.rebuild-v1 .visual-showcase,
body.rebuild-v1 .partners,
body.rebuild-v1 .admission-cta{
  padding-top:var(--v234-section-y) !important;
  padding-bottom:var(--v234-section-y) !important;
}

body.rebuild-v1 .quick-access{
  padding-top:12px !important;
  padding-bottom:16px !important;
}

body.rebuild-v1 .section-head{
  margin-bottom:18px !important;
}

body.rebuild-v1 .about .split{
  gap:34px !important;
}

body.rebuild-v1 .home-pages23{
  padding-top:24px !important;
  padding-bottom:24px !important;
}

body.rebuild-v1 .home-pages23-grid{
  margin-top:0 !important;
}

body.rebuild-v1 .home-page23-card:only-child{
  max-width:620px !important;
}

body.rebuild-v1 .director-v234{
  padding-top:26px !important;
  padding-bottom:30px !important;
}

body.rebuild-v1 .director-v234 .dean-card{
  display:grid !important;
  grid-template-columns:210px minmax(0,1fr) !important;
  gap:30px !important;
  align-items:center !important;
  padding:30px !important;
}

body.rebuild-v1 .director-v234__media{
  min-height:210px !important;
  height:210px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border-radius:20px !important;
  background:linear-gradient(145deg,#edf5ff,#d8e8f8) !important;
}

body.rebuild-v1 .director-v234__media > img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

body.rebuild-v1 .director-v234__logo{
  width:150px;
  height:150px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  padding:14px;
  box-shadow:0 12px 30px rgba(5,37,81,.12);
}

body.rebuild-v1 .director-v234__logo img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

body.rebuild-v1 .director-v234__name{
  display:block;
  margin-top:13px;
  color:#d9eaff;
  font-size:11px;
  font-weight:800;
}

body.rebuild-v1 .news{
  padding-top:30px !important;
}

/* keep contact/footer transition compact */
body.rebuild-v1 .contact{
  padding-top:36px !important;
  padding-bottom:36px !important;
}

/* Admin: director settings */
.director-settings-v234{
  grid-column:1/-1;
}

.director-enable{
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  gap:10px !important;
  padding:14px !important;
  border:1px solid #dce7f1 !important;
  border-radius:12px !important;
  background:#f8fbff !important;
}

.director-enable input{
  width:auto !important;
  margin-top:4px;
}

.director-enable span{
  display:block;
}

.director-enable strong,
.director-enable small{
  display:block;
}

.director-enable small{
  margin-top:4px;
  color:#7b8d9f;
  font-weight:400;
}

.director-media-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  gap:18px;
  align-items:center;
  margin-top:8px;
  padding:16px;
  border:1px solid #dce7f1;
  border-radius:14px;
  background:#f8fbff;
}

.director-media-box > div > small{
  display:block;
  margin-top:7px;
  color:#7b8d9f;
  line-height:1.7;
}

.director-preview{
  text-align:center;
}

.director-preview img{
  width:150px;
  height:150px;
  object-fit:contain;
  border-radius:18px;
  background:#fff;
  padding:10px;
  border:1px solid #dfe8f1;
}

.director-preview small{
  display:block;
  margin-top:7px;
  color:#718497;
}

.director-remove-image{
  display:flex !important;
  flex-direction:row !important;
  gap:8px !important;
  align-items:center !important;
  margin-top:12px !important;
  color:#a33 !important;
}

.director-remove-image input{
  width:auto !important;
}

@media(max-width:900px){
  body.rebuild-v1{
    --v234-section-y:24px;
  }

  body.rebuild-v1 .director-v234 .dean-card{
    grid-template-columns:170px minmax(0,1fr) !important;
    gap:22px !important;
  }

  body.rebuild-v1 .director-v234__media{
    min-height:175px !important;
    height:175px !important;
  }

  body.rebuild-v1 .director-v234__logo{
    width:125px;
    height:125px;
  }
}

@media(max-width:620px){
  body.rebuild-v1{
    --v234-section-y:20px;
  }

  body.rebuild-v1 .director-v234 .dean-card{
    grid-template-columns:1fr !important;
    padding:22px !important;
  }

  body.rebuild-v1 .director-v234__media{
    height:190px !important;
  }

  .director-media-box{
    grid-template-columns:1fr;
  }
}
