/* ==========================================================
   faculties.ebaub.ac.bd -- public stylesheet
   Colors approximated from screenshots. If you have the real
   site CSS, copy the exact hex values into the variables below
   so this subdomain matches pixel-for-pixel.
   ========================================================== */
:root {
  --green-dark:   #12291c;   /* topbar / nav / footer background */
  --green-mid:    #1b3d29;
  --blue-accent:  #2aa0e0;   /* sidebar buttons / links */
  --blue-deep:    #1c3f6e;   /* "About us" active tab, headings */
  --gold:         #d4a017;   /* Apply Now button, ticker */
  --red-news:     #cc0000;
  --bg-light:     #f5f6f7;
  --text-dark:    #222;
  --white:        #fff;
  --radius:       6px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-dark);
  color: #cfe8d8;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  padding: 6px 24px;
  flex-wrap: wrap;
}
.topbar a, .topbar span { color: #cfe8d8; margin-right: 16px; }
.topbar-left span, .topbar-left a { margin-right: 18px; }

/* ---------- Main header ---------- */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 60px; }
.brand h1 { font-size: 22px; margin: 0; color: var(--green-mid); }
.brand h1 span { color: var(--gold); }
.brand p { margin: 2px 0 0; font-size: 13px; font-style: italic; color: #555; }
.header-actions { display: flex; gap: 10px; }

.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--gold); color: #2b2200; }
.btn-outline { background: var(--bg-light); color: var(--green-mid); border: 1px solid #ddd; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--gold);
  color: #2b2200;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  font-size: 14px;
  gap: 10px;
}
.ticker-label { font-weight: 700; background: rgba(0,0,0,.1); padding: 2px 10px; border-radius: 20px; }

/* ---------- Main nav ---------- */
.main-nav { background: var(--green-dark); }
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0 24px; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 14px 16px; color: #eafaf0; font-weight: 600; font-size: 14px; }
.main-nav li:hover > a, .main-nav a.active { background: var(--green-mid); color: var(--gold); }
.main-nav .dropdown { display: none; position: absolute; left: 0; top: 100%; background: var(--white); min-width: 240px; box-shadow: 0 8px 20px rgba(0,0,0,.15); z-index: 50; }
.main-nav .has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown a { color: var(--text-dark); padding: 10px 16px; }
.main-nav .dropdown a:hover { background: var(--bg-light); color: var(--blue-deep); }

/* ---------- Faculty page layout ---------- */
.faculty-page { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 28px 24px; max-width: 1200px; margin: 0 auto; }

.sidebar h3 { font-size: 20px; color: var(--text-dark); border-bottom: 3px solid var(--blue-deep); display: inline-block; padding-bottom: 6px; margin-bottom: 16px; }
.sidebar-btn {
  display: block; background: var(--blue-accent); color: var(--white);
  padding: 12px 16px; margin-bottom: 8px; border-radius: 4px;
  font-weight: 600; font-size: 15px; transition: background .15s;
}
.sidebar-btn:hover, .sidebar-btn.active { background: var(--blue-deep); }

.latest-news { margin-top: 30px; }
.latest-news h3 { color: var(--red-news); font-size: 20px; border-bottom: 3px solid var(--red-news); display: inline-block; padding-bottom: 6px; margin-bottom: 16px; }
.news-item { display: flex; gap: 10px; margin-bottom: 14px; }
.news-thumb { width: 75px; height: 75px; background: #ddd; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.news-item h5 { margin: 0; font-size: 14px; }
.news-item p { margin: 2px 0 0; font-size: 12px; }
.news-item a { color: var(--blue-accent); }

.faculty-title { color: var(--blue-deep); font-size: 30px; text-align: center; margin: 0 0 20px; }
.faculty-banner { border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.faculty-banner img { width: 100%; object-fit: cover; max-height: 320px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
.tabs a {
  padding: 10px 20px; background: var(--bg-light); color: var(--text-dark);
  font-weight: 600; border-radius: 4px 4px 0 0; font-size: 14px;
}
.tabs a.active { background: var(--blue-deep); color: var(--white); }
.tab-content { background: var(--bg-light); padding: 24px; border-radius: 0 4px 4px 4px; }
.tab-content p { line-height: 1.7; color: #333; }
.tab-content h4 { color: var(--blue-deep); margin-top: 0; }

/* ---------- Faculty index (list of 5 faculties) ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; padding: 30px 24px; max-width: 1200px; margin: 0 auto; }
.faculty-card { border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.faculty-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.faculty-card img { height: 150px; width: 100%; object-fit: cover; background: var(--bg-light); }
.faculty-card-body { padding: 16px; }
.faculty-card-body h3 { color: var(--blue-deep); font-size: 17px; margin: 0 0 8px; }
.faculty-card-body a.more { color: var(--blue-accent); font-weight: 600; font-size: 13px; }

/* ---------- Faculty members grid ---------- */
.members-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; max-width: 1200px; margin: 0 auto; }
.stat-pills { display: flex; gap: 20px; padding: 0 24px 10px; max-width: 1200px; margin: 0 auto; }
.stat-pill { text-align: center; }
.stat-pill strong { display: block; font-size: 24px; color: var(--blue-deep); }
.stat-pill span { font-size: 12px; color: #666; }
.dept-heading { grid-column: 1/-1; color: var(--blue-deep); border-bottom: 2px solid var(--blue-deep); padding-bottom: 6px; margin: 24px 0 6px; font-size: 17px; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 18px; padding: 10px 24px 40px; max-width: 1200px; margin: 0 auto; }
.member-card { border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; text-align: center; padding-bottom: 14px; background: var(--white); }
.member-photo { width: 100%; height: 200px; object-fit: cover; background: var(--bg-light); }
.member-card h4 { margin: 12px 0 2px; font-size: 15px; }
.member-card .designation { color: var(--blue-accent); font-size: 13px; margin-bottom: 6px; }
.member-card .dept { font-size: 12px; color: #777; margin-bottom: 6px; }
.member-card .contact-line { font-size: 12px; color: #555; }
.member-card .view-profile { display: inline-block; margin-top: 10px; background: var(--blue-deep); color: var(--white); padding: 6px 16px; border-radius: 4px; font-size: 13px; }

.empty-state { padding: 40px; text-align: center; color: #777; background: var(--bg-light); border-radius: 6px; }

/* ---------- Footer ---------- */
.main-footer { background: var(--green-dark); color: #cfe8d8; padding: 40px 24px 10px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: var(--gold); font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { color: #cfe8d8; }
.footer-col a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 8px; margin-top: 14px; }
.social-icons a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.newsletter { display: flex; margin-top: 10px; }
.newsletter input { flex: 1; padding: 8px; border: none; border-radius: 4px 0 0 4px; }
.newsletter button { background: var(--gold); border: none; padding: 8px 14px; border-radius: 0 4px 4px 0; cursor: pointer; }
.footer-bottom { text-align: center; padding: 16px 0 4px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 40px; height: 40px; background: var(--gold); color: #2b2200; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }

@media (max-width: 860px) {
  .faculty-page { grid-template-columns: 1fr; }
}
