/* =====================================================================
   Shared styles for the new inner pages: About ICFM / About ORAIL,
   Find a Centre, Centre Details, Franchise, Online Admission,
   Student & Centre Login, News & Events.
   Reuses the theme's palette (#a12c2f dark red, #f5a425 gold,
   #1f272b heading text, #7a7a7a body text) and its card look
   (white background, 20px radius, soft shadow).
   ===================================================================== */

.inner-page {
  background-color: #f7f7f7;
  padding: 100px 0 40px;
}

.inner-page .container > .row:first-child {
  margin-bottom: 10px;
}

/* Generic white content card, matches .registration-form / .contact-form-card */
.content-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.content-card h2,
.content-card h3 {
  text-transform: uppercase;
  color: #1f272b;
  font-weight: 700;
  margin-top: 0;
}

.content-card h3 {
  font-size: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.content-card p,
.content-card li {
  color: #6f6f6f;
  line-height: 26px;
  font-size: 15px;
}

.content-card ul.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-card ul.tick-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

.content-card ul.tick-list li:before {
  content: "\f00c";
  font-family: FontAwesome;
  color: #f5a425;
  position: absolute;
  left: 0;
  top: 0;
}

/* Small stat / fact boxes (About pages) */
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 10px;
}

.mini-stats .stat-box {
  flex: 1 1 140px;
  background-color: #fff;
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.mini-stats .stat-box .num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #a12c2f;
  line-height: 1.2;
}

.mini-stats .stat-box .lbl {
  display: block;
  font-size: 13px;
  color: #7a7a7a;
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: .5px;
}

/* Find a Centre: filter bar + centre cards */
.centre-filter-bar {
  background: #fff;
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 35px;
}

.centre-filter-bar select,
.centre-filter-bar input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0 16px;
  color: #1f272b;
  font-size: 14px;
  background-color: #f7f7f7;
}

.centre-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
  margin-bottom: 30px;
  transition: transform .25s;
  height: 100%;
}

.centre-card:hover {
  transform: translateY(-6px);
}

.centre-card .thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.centre-card .down-content {
  padding: 22px 25px 26px;
}

.centre-card .badge-type {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  background: #f5a425;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.centre-card h4 {
  color: #1f272b;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.centre-card p {
  color: #7a7a7a;
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 22px;
}

.centre-card .view-link {
  color: #a12c2f;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
}

.centre-card .view-link:hover {
  color: #f5a425;
}

/* News & Events cards */
.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
  margin-bottom: 30px;
  height: 100%;
}

.news-card .thumb {
  position: relative;
}

.news-card .thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.news-card .thumb .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #a12c2f;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.news-card .down-content {
  padding: 22px 25px 26px;
}

.news-card .news-date {
  color: #f5a425;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

.news-card h4 {
  color: #1f272b;
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.news-card h4 a {
  color: #1f272b;
}

.news-card h4 a:hover {
  color: #a12c2f;
}

.news-card p {
  color: #7a7a7a;
  font-size: 14px;
  line-height: 22px;
}

/* Login pages */
.login-page {
  background-color: #f7f7f7;
  padding: 160px 0 100px;
  min-height: 100vh;
}

.login-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 45px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.login-card .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #a12c2f;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.login-card h2 {
  text-align: center;
  text-transform: uppercase;
  color: #1f272b;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
}

.login-card .sub {
  text-align: center;
  color: #7a7a7a;
  font-size: 14px;
  margin: 0 0 28px;
}

.login-card .form-row {
  margin-bottom: 18px;
}

.login-card label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: #1f272b;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
  width: 100%;
  height: 50px;
  border: 1px solid #eee;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  color: #1f272b;
}

.login-card .btn-login {
  width: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  background-color: #a12c2f;
  padding: 14px 30px;
  border-radius: 22px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
}

.login-card .btn-login:hover {
  opacity: .9;
}

.login-card .demo-hint {
  margin-top: 22px;
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 10px;
  font-size: 12.5px;
  color: #7a7a7a;
  text-align: center;
}

.login-card .back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #a12c2f;
}

/* Simple dashboard (post-login) */
.dashboard-header {
  background: #1f272b;
  color: #fff;
  padding: 150px 0 40px;
}

.dashboard-header h2 {
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 8px;
}

.dashboard-header p {
  color: #cfcfcf;
  margin: 0;
}

.dashboard-body {
  background: #f7f7f7;
  padding: 40px 0 80px;
}

.dash-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.dash-info-list li:last-child {
  border-bottom: none;
}

.dash-info-list li span:first-child {
  color: #7a7a7a;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}

.dash-info-list li span:last-child {
  color: #1f272b;
  font-weight: 600;
  text-align: right;
}

.alert-box {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 14px;
}

.alert-box.danger {
  background: #f8d7da;
  color: #111;
}

.alert-box.success {
  background: #d4edda;
  color: #111;
}

@media (max-width: 768px) {
  .content-card { padding: 25px; }
  .login-card { padding: 30px 24px; }
  .inner-page { padding-top: 80px; }
}

/* ---------------- Centre Profile page ---------------- */
.centre-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.centre-photo-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
}

.centre-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.centre-photo-grid a:hover img {
  transform: scale(1.06);
}

.facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facility-tags span {
  background: #f7f7f7;
  color: #1f272b;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #eee;
}

.facility-tags span i {
  color: #f5a425;
  margin-right: 6px;
}

.map-embed-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.centre-code-badge {
  display: inline-block;
  background: #1f272b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Directory filter bar: extra fields beyond the original 2-field layout */
.centre-filter-bar .filter-field { margin-bottom: 16px; }
.centre-filter-bar label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  color: #a1a1a1;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .centre-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
