/* A R Coaching Centre — site theme on top of Bootstrap 5.3 */

:root,
[data-bs-theme="light"] {
  --bs-primary: #419796;            /* the original teal */
  --bs-primary-rgb: 65, 151, 150;
  --bs-link-color: #367f7e;
  --bs-link-color-rgb: 54, 127, 126;
  --bs-link-hover-color: #2b6665;
  --bs-link-hover-color-rgb: 43, 102, 101;
  --bs-body-bg: #f1f5f5;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arc-teal-dark: #2f7574;
  --arc-orange: #f28c28;
  --arc-radius: .75rem;
}

body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
main .row > * { min-width: 0; }   /* wide post content must not stretch the columns */

/* Buttons/badges pick up the teal */
.btn-primary { --bs-btn-bg: #419796; --bs-btn-border-color: #419796;
  --bs-btn-hover-bg: #367f7e; --bs-btn-hover-border-color: #367f7e;
  --bs-btn-active-bg: #2f7574; --bs-btn-active-border-color: #2f7574; }
.btn-outline-primary { --bs-btn-color: #419796; --bs-btn-border-color: #419796;
  --bs-btn-hover-bg: #419796; --bs-btn-hover-border-color: #419796;
  --bs-btn-active-bg: #367f7e; --bs-btn-active-border-color: #367f7e; }
.text-primary { color: #419796 !important; }
.bg-primary { background-color: #419796 !important; }
.form-control:focus, .form-select:focus { border-color: #419796; box-shadow: 0 0 0 .25rem rgba(65,151,150,.25); }

/* Header */
.site-header { background: linear-gradient(135deg, #419796 0%, #2f7574 100%); }
.site-header .navbar-brand { font-weight: 700; letter-spacing: .02em; }
.site-header .navbar-brand img { height: 40px; width: auto; border-radius: .35rem; }
.site-nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.site-nav .nav-link { color: #419796; font-weight: 600; font-size: .95rem; padding: .85rem 1rem; border-bottom: 3px solid transparent; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #2f7574; border-bottom-color: #419796; }
.offcanvas .nav-link { color: #fff; font-weight: 600; padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.offcanvas .nav-link:hover { background: rgba(255,255,255,.1); }

/* Announcement ticker (replaces <marquee>). The items are rendered twice so
   the loop is seamless; the track scrolls by half its width. */
.ticker { overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; animation: ticker 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-block; padding-right: 3rem; font-weight: 600; color: #419796; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { white-space: normal; }
  .ticker__track { display: block; animation: none; }
  .ticker__track > .ticker__copy:last-child { display: none; }
  .ticker__item { display: block; padding: .25rem 0; }
}

/* Online test call-to-action */
.cta-test { border: 3px solid #419796; border-radius: var(--arc-radius); background: #fff;
  font-weight: 700; color: #419796; letter-spacing: .04em; transition: background .2s, color .2s; }
.cta-test:hover { background: #419796; color: #fff; }
.cta-test img { height: 40px; }

/* Banner */
.banner { border-radius: var(--arc-radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.banner-edit { position: absolute; top: .75rem; right: .75rem; color: #419796; font-weight: 600; opacity: .9; }
.banner-edit:hover { opacity: 1; color: #2f7574; }

/* Post cards keep the teal date header from the old design */
.post-card { border: 0; border-radius: var(--arc-radius); overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.post-card .post-head { background: #419796; color: #fff; padding: .6rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.post-card .post-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.post-card .post-month { font-size: .85rem; opacity: .9; }
.post-card .post-head .btn { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.6);
  --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #419796; --bs-btn-hover-border-color: #fff; }
.post-card .post-body { overflow-x: auto; overflow-wrap: anywhere; }
.post-card .post-body img { max-width: 100%; height: auto; }
.post-card .post-body table { max-width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
.post-card .post-body td, .post-card .post-body th { padding: .3rem .6rem; border: 1px solid #dee2e6; }
.post-card .post-body iframe { max-width: 100%; }
.post-card .post-footer { font-size: .85rem; color: #6c757d; }

/* Section headings in the exam intro cards */
.intro-card h1 { color: var(--arc-orange); font-weight: 700; }
.intro-card .lead { color: #2f7574; }
.intro-card li::marker { color: #419796; }

/* Sidebar */
.sidebar-card { border: 0; border-radius: var(--arc-radius); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.sidebar-card .card-header { background: #419796; color: #fff; font-weight: 600; border: 0; }
.sidebar-card .list-group-item { border-color: #eef2f2; }
.sidebar-card .list-group-item small { color: #8a9a9a; }

/* Pagination */
.pagination { --bs-pagination-color: #419796; --bs-pagination-active-bg: #419796;
  --bs-pagination-active-border-color: #419796; --bs-pagination-hover-color: #2f7574;
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(65,151,150,.25); }

/* Login */
.auth-page { background: linear-gradient(135deg, #419796 0%, #2f7574 100%); min-height: 100vh; }
.auth-card { border: 0; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* Footer */
.site-footer { background: #2f7574; color: #fff; }
.site-footer a { color: #fff; opacity: .9; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer h6 { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .8; }

/* Phones: smaller brand so the header actions fit on one row */
@media (max-width: 575.98px) {
  .site-header .navbar-brand { font-size: .95rem; }
  .site-header .navbar-brand img { height: 32px; }
  .site-header .navbar-toggler { padding: .25rem .5rem; font-size: 1rem; }
}
