* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f9;
  color: #2f261f;
}

.header {
  background: linear-gradient(135deg, #8b5a3c, #a66a3f);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.school-logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.hidden {
  display: none !important;
}

.school-text h1 {
  font-size: 26px;
  font-weight: 700;
}

.school-text p {
  margin-top: 6px;
  font-size: 14px;
  opacity: .95;
}

.line {
  height: 4px;
  background: #f2b705;
}

.nav {
  background: #5a2a1a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  background: #f2b705;
  color: #5a2a1a;
}

.teacher-login-link {
  background: #f2b705 !important;
  color: #5a2a1a !important;
  border-radius: 999px;
  margin: 6px 8px;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.teacher-login-link:hover {
  background: #ffd34d !important;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.card,
.box {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-left: 10px solid #f2b705;
  position: relative;
}

.card {
  margin-top: 20px;
}

.tag {
  background: #7a1f1f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  font-weight: bold;
}

.date {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 13px;
  color: #555;
}

.card h2 {
  margin-top: 15px;
  font-size: 20px;
  color: #5a2a1a;
  line-height: 1.3;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.btn {
  margin-top: 15px;
  display: inline-block;
  background: #f2b705;
  color: #5a2a1a;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: #d9a400;
}

h3 {
  color: #5a2a1a;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 20px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.box {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}

.box:hover {
  transform: translateY(-2px);
}

.icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.box p {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.featured-card {
  padding: 18px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: center;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
  display: block;
}

.featured-content h2 {
  margin-top: 12px;
  font-size: 22px;
}

.date-inline {
  font-size: 13px;
  color: #555;
  margin-left: 10px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 5px;
}

.compact-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-left: 10px solid #f2b705;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.compact-card .post-image {
  height: 145px;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.compact-card .tag {
  font-size: 10px;
  padding: 5px 9px;
}

.small-date {
  font-size: 11px;
  color: #555;
}

.compact-card h2 {
  font-size: 16px;
  color: #5a2a1a;
  line-height: 1.25;
  margin: 4px 0 0;
}

.compact-card p {
  font-size: 13px;
  color: #333;
  line-height: 1.45;
  margin-top: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .btn {
  font-size: 13px;
  padding: 8px 12px;
}

.section-title-row {
  margin-top: 25px;
  margin-bottom: 15px;
}

.section-title-row h3 {
  margin: 0;
}

.empty-card {
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.load-status {
  margin: 18px 0;
  font-size: 13px;
  color: #777;
  text-align: center;
}

.footer {
  margin-top: 30px;
  padding: 20px;
  background: #5a2a1a;
  color: #fff;
  text-align: center;
}

.footer p {
  font-size: 13px;
  margin-top: 4px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal.show {
  display: flex;
}

.modal-card {
  background: #fff;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  padding: 22px;
  border-left: 10px solid #f2b705;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #eee;
}

.modal-title {
  font-size: 26px;
  color: #5a2a1a;
  margin-top: 12px;
  line-height: 1.25;
}

.modal-meta {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.modal-message {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin-top: 16px;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.close-btn {
  background: #7a1f1f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Admin */
.admin-header {
  background: linear-gradient(135deg, #5d341f 0%, #76492d 35%, #8b5a3c 68%, #a66a3f 100%);
  color: #fff;
  padding: 22px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,.15);
}

.admin-header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-brand h1 {
  font-size: 24px;
  line-height: 1.25;
}

.admin-brand p {
  margin-top: 4px;
  font-size: 15px;
  color: #fff3c4;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions a,
.admin-actions button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.home-btn {
  background: #f2b705;
  color: #5a2a1a;
}

.logout-btn {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #fff;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  margin-bottom: 22px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.settings-grid,
.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.full-row {
  grid-column: 1 / -1;
}

.form-row {
  margin-bottom: 15px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #5a2a1a;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #e8ded3;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
}

.form-row textarea {
  resize: vertical;
  min-height: 150px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-actions button,
.small-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.publish-btn {
  background: #7a1f1f;
  color: #fff;
}

.login-submit-btn {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 14px;
}

.clear-btn {
  background: #fff;
  color: #5a2a1a;
  border: 1px solid #e8ded3 !important;
}

.edit-btn {
  background: #f2b705;
  color: #5a2a1a;
}

.delete-btn {
  background: #b42318;
  color: #fff;
}

.restore-btn {
  background: #1f7a3f;
  color: #fff;
}

.permanent-btn {
  background: #222;
  color: #fff;
}

.form-message {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
}

.form-message.success {
  color: #1f7a3f;
}

.form-message.error {
  color: #b42318;
}

.mini-message {
  font-size: 12px;
  margin-top: 8px;
  color: #666;
}

.mini-message.success {
  color: #1f7a3f;
  font-weight: 700;
}

.mini-message.error {
  color: #b42318;
  font-weight: 700;
}

.preview-box {
  border: 1px dashed #e8ded3;
  background: #fffdf8;
  border-radius: 16px;
  padding: 18px;
  min-height: 220px;
}

.preview-empty {
  color: #777;
  font-size: 14px;
}

.preview-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
  margin-bottom: 14px;
  display: block;
}

.preview-tag {
  background: #7a1f1f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  font-weight: bold;
}

.preview-date {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.preview-title {
  margin-top: 12px;
  font-size: 20px;
  color: #5a2a1a;
}

.preview-message {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
}

.post-list,
.user-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.post-item,
.user-item {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border-left: 8px solid #f2b705;
}

.post-item h4,
.user-item h4 {
  color: #5a2a1a;
  font-size: 16px;
  margin-bottom: 6px;
}

.post-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 8px;
}

.post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.loading-text {
  color: #777;
  font-size: 14px;
}

.login-wrap {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px;
}

.dashboard-post-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-post-thumb {
  width: 96px !important;
  height: 76px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  object-fit: cover !important;
  border-radius: 12px;
  background: #eee;
  flex: 0 0 96px !important;
  border: 1px solid #eee;
  display: block;
}

.empty-thumb {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
}

.dashboard-post-body {
  min-width: 0;
  flex: 1;
}

.logo-upload-box {
  background: #fffdf8;
  border: 1px dashed #e8ded3;
  border-radius: 14px;
  padding: 12px;
}

.logo-preview {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 10px;
  display: block;
}

.logo-upload-box input[type=file] {
  background: #fff;
  margin-bottom: 10px;
}

#uploadLogoBtn {
  padding: 12px 14px;
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-grid,
  .bottom-grid,
  .settings-grid,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .full-row {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
  }

  .school-logo {
    width: 70px;
    height: 70px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav a {
    padding: 12px 10px;
    font-size: 13px;
  }

  .teacher-login-link {
    width: calc(100% - 24px);
    text-align: center;
    margin: 8px 12px;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }

  .school-text h1 {
    font-size: 22px;
  }

  .date {
    position: static;
    margin-top: 10px;
  }

  .featured-layout {
    display: block;
  }

  .post-image {
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 16px 0 4px;
  }

  .date-inline {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .compact-card .post-image {
    height: 180px;
  }

  .modal-card {
    padding: 18px;
  }

  .modal-title {
    font-size: 21px;
  }

  .admin-brand h1 {
    font-size: 20px;
  }

  .admin-brand p {
    font-size: 13px;
  }

  .home-btn {
    width: 100%;
    text-align: center;
  }

  .dashboard-post-row {
    display: block;
  }

  .dashboard-post-thumb {
    width: 100% !important;
    height: 150px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin-bottom: 10px;
  }

  .logo-preview {
    width: 82px;
    height: 82px;
  }
}



/* Fix Teacher Login menu: same size as other menu items */
.teacher-login-link {
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.teacher-login-link:hover {
  background: #f2b705 !important;
  color: #5a2a1a !important;
}

/* Make only the actual Login button on admin page bigger */
.login-submit-btn,
#loginForm .publish-btn {
  width: 100%;
  padding: 16px 20px !important;
  font-size: 17px !important;
  border-radius: 14px !important;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .teacher-login-link {
    width: auto !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
  }

  .login-submit-btn,
  #loginForm .publish-btn {
    padding: 17px 20px !important;
    font-size: 18px !important;
  }
}

/* Restore old brown gradient header - do not redesign */
.header {
  background: linear-gradient(135deg, #8b5a3c 0%, #a66a3f 100%) !important;
}

.admin-header {
  background: linear-gradient(135deg, #5d341f 0%, #76492d 35%, #8b5a3c 68%, #a66a3f 100%) !important;
}

/* Remove automatic logo frame / white box / rounded square */
.school-logo {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Logo preview in dashboard should also not look framed */
.logo-preview {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}


/* Public pages / archive layout */
.page-hero {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-left: 10px solid #f2b705;
  margin-top: 20px;
}

.page-hero h2 {
  color: #5a2a1a;
  margin-top: 12px;
  font-size: 26px;
}

.page-hero p {
  margin-top: 8px;
  color: #444;
  line-height: 1.6;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.archive-main-image {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border-radius: 16px;
  background: #eee;
  margin-bottom: 16px;
}

.archive-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.archive-message {
  white-space: pre-wrap;
  margin-top: 16px;
  color: #333;
  line-height: 1.75;
  font-size: 15px;
}

.archive-sidebar h3 {
  margin-top: 0;
}

.archive-history {
  display: grid;
  gap: 10px;
}

.history-item {
  width: 100%;
  text-align: left;
  border: 1px solid #eadfce;
  background: #fffdf8;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.history-item:hover {
  border-color: #f2b705;
  background: #fff7dd;
}

.history-tag {
  display: inline-block;
  background: #7a1f1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 7px;
}

.history-item strong {
  display: block;
  color: #5a2a1a;
  line-height: 1.25;
  font-size: 14px;
}

.history-item small {
  display: block;
  color: #666;
  margin-top: 5px;
}

.static-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.static-content p {
  line-height: 1.75;
  margin-top: 12px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .archive-layout,
  .static-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix long post content wrapping on public post pages */
.archive-message,
.modal-message,
.preview-message,
.card p,
.compact-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Reduce top header height without redesigning */
.header {
  padding: 18px 20px !important;
}

.header-inner {
  gap: 12px !important;
}

.school-logo {
  width: 64px !important;
  height: 64px !important;
}

.school-text h1 {
  font-size: 24px !important;
}

.school-text p {
  margin-top: 4px !important;
  font-size: 13px !important;
}

@media (max-width: 768px) {
  .header {
    padding: 16px 16px !important;
  }

  .school-logo {
    width: 58px !important;
    height: 58px !important;
  }

  .school-text h1 {
    font-size: 20px !important;
  }

  .school-text p {
    font-size: 12px !important;
  }
}


/* Slightly larger school logo while keeping compact header */
.school-logo {
  width: 72px !important;
  height: 72px !important;
}

@media (max-width: 768px) {
  .school-logo {
    width: 64px !important;
    height: 64px !important;
  }
}

/* Announcements page split sections */
.announcement-group {
  margin-top: 24px;
}

.announcement-group-title {
  background: #fffdf8;
  border-left: 10px solid #f2b705;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.announcement-group-title h3 {
  margin: 0;
  color: #5a2a1a;
}

.announcement-group-title p {
  margin-top: 6px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}



/* Final logo size adjustment */
.header .school-logo {
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .header .school-logo {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
  }
}



/* Footer portal and branding - subtle only */
.footer-meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-meta strong {
  color: #f2b705;
  letter-spacing: .2px;
}

.footer-teacher-link {
  margin-top: 8px;
}

.footer-teacher-link a {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  text-decoration: none;
}

.footer-teacher-link a:hover {
  color: #f2b705;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-meta {
    gap: 5px;
    font-size: 11px;
  }

  .footer-dot {
    display: none;
  }
}



/* Footer clean version: no address, larger teacher portal link */
.footer #footerAddress {
  display: none !important;
}

.footer-meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-meta strong {
  color: #f2b705;
  letter-spacing: .2px;
}

.footer-teacher-link {
  margin-top: 12px;
}

.footer-teacher-link a {
  display: inline-block;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
}

.footer-teacher-link a:hover {
  color: #5a2a1a;
  background: #f2b705;
  border-color: #f2b705;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  .footer-dot {
    display: block;
  }

  .footer-teacher-link a {
    font-size: 15px;
    padding: 10px 14px;
  }
}



/* Footer clean version: no address, larger teacher portal link */
.footer #footerAddress {
  display: none !important;
}

.footer-meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-meta strong {
  color: #f2b705;
  letter-spacing: .2px;
}

.footer-teacher-link {
  margin-top: 12px;
}

.footer-teacher-link a {
  display: inline-block;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
}

.footer-teacher-link a:hover {
  color: #5a2a1a;
  background: #f2b705;
  border-color: #f2b705;
  text-decoration: none;
}

/* Admissions and Gallery professional sections */
.admission-grid,
.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.simple-list {
  margin-top: 12px;
  padding-left: 20px;
  color: #333;
  line-height: 1.8;
  font-size: 14px;
}

.gallery-category-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-left: 10px solid #f2b705;
}

.gallery-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.gallery-category-card h2 {
  color: #5a2a1a;
  font-size: 19px;
  margin-bottom: 8px;
}

.gallery-category-card p {
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

.gallery-category-card span {
  display: inline-block;
  margin-top: 14px;
  color: #777;
  font-size: 13px;
  background: #fff7dd;
  padding: 8px 10px;
  border-radius: 999px;
}

.gallery-note p {
  line-height: 1.7;
}

@media (max-width: 768px) {
  .footer-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  .footer-dot {
    display: block;
  }

  .footer-teacher-link a {
    font-size: 15px;
    padding: 10px 14px;
  }

  .admission-grid,
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }
}
