/* Content module: blog, exam calendar, govt notices, salary, abroad guides, branches, YouTube, Google reviews */

.ct-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.ct-toolbar .blog-bar { margin-bottom: 0; min-width: 0; }
.ct-search { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.ct-search .input { font-size: 16px; min-height: 44px; }
.ct-search .btn { min-width: 44px; min-height: 44px; padding-inline: 12px; }
.ct-result-note { margin: -8px 0 20px; }

.ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--ph-muted); }
.ct-meta .icon { width: 15px; height: 15px; vertical-align: -2px; }
.ct-more { display: inline-flex; align-items: center; gap: 6px; color: #F08CFF; font-weight: 700; font-size: .92rem; margin-top: auto; }
.ct-more .icon { width: 16px; height: 16px; transition: transform .2s ease-out; }
a:hover .ct-more .icon { transform: translateX(3px); }
.ct-sub { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); color: var(--ph-ink); margin: 36px 0 14px; }
.ct-disclaimer { display: flex; gap: 8px; align-items: flex-start; margin-top: 28px; max-width: 72ch; }
.ct-disclaimer .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ph-yellow); }
.ct-box { border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); padding: 18px; margin-bottom: 14px; }
.ct-aside-h { font-size: 1.05rem; color: var(--ph-ink); margin: 0 0 12px; }

/* Blog list */
.ct-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--ph-line2); border-radius: 12px; overflow: hidden; background: var(--ph-surface); color: var(--ph-text); margin-bottom: 28px; transition: border-color .2s ease-out; }
.ct-feature:hover { border-color: rgba(225, 28, 242, .5); color: var(--ph-text); }
.ct-feature-media { display: block; aspect-ratio: 1200 / 630; background: var(--ph-surface2); }
.ct-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-feature-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 3vw, 32px); }
.ct-feature-body strong { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.3; color: var(--ph-ink); overflow-wrap: anywhere; }

.ct-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.ct-post-grid > .empty { grid-column: 1 / -1; }
.ct-post { display: flex; flex-direction: column; border: 1px solid var(--ph-line); border-radius: 10px; overflow: hidden; background: var(--ph-surface); color: var(--ph-text); transition: border-color .2s ease-out, transform .2s ease-out; }
.ct-post:hover { border-color: rgba(225, 28, 242, .45); transform: translateY(-2px); color: var(--ph-text); }
.ct-post-media { display: block; aspect-ratio: 1200 / 630; background: var(--ph-surface2); overflow: hidden; }
.ct-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-post-art { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: rgba(240, 140, 255, .55); background: linear-gradient(135deg, var(--ph-surface2), var(--ph-surface3)); }
.ct-post-art .icon { width: 42px; height: 42px; }
.ct-post-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.ct-post-title { color: var(--ph-ink); font-size: 1.06rem; line-height: 1.4; overflow-wrap: anywhere; }
.ct-post-ex { color: var(--ph-muted); font-size: .93rem; line-height: 1.55; }

/* Blog article */
.ct-article { min-width: 0; }
.ct-cover { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--ph-line); margin-bottom: 22px; }
.ct-article .prose { max-width: 72ch; line-height: 1.8; overflow-wrap: anywhere; }
.ct-article .prose h2 { margin-top: 1.6em; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.ct-tags li { border: 1px solid var(--ph-line2); border-radius: 6px; padding: 3px 10px; font-size: .84rem; color: var(--ph-muted); }
.ct-author { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); padding: 20px 0; margin-top: 28px; }
.ct-author img, .ct-author-init { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.ct-author-init { display: grid; place-items: center; background: var(--ph-surface3); color: var(--ph-ink); font-weight: 700; }
.ct-author div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-author strong { color: var(--ph-ink); font-size: 1.05rem; }
.ct-author p { margin: 8px 0 0; color: var(--ph-text); font-size: .94rem; }
.ct-related { display: flex; flex-direction: column; border-top: 1px solid var(--ph-line); }
.ct-related-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--ph-line); color: var(--ph-text); }
.ct-related-item .tg { align-self: flex-start; }
.ct-related-item strong { color: var(--ph-ink); line-height: 1.4; }
.ct-related-item:hover strong { color: #F08CFF; }

/* Exam calendar */
.ct-switch { display: inline-flex; border: 1px solid var(--ph-line2); border-radius: 8px; overflow: hidden; }
.ct-switch-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; background: transparent; border: 0; color: var(--ph-muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.ct-switch-btn + .ct-switch-btn { border-left: 1px solid var(--ph-line2); }
.ct-switch-btn .icon { width: 16px; height: 16px; }
.ct-switch-btn.is-active { background: var(--ph-surface3); color: var(--ph-ink); }
.ct-switch-btn:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: -2px; }
.ct-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ct-cal-head h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--ph-ink); }
.ct-cal-head .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.ct-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ph-line); border-left: 1px solid var(--ph-line); border-radius: 10px; overflow: hidden; }
.ct-cal-wd { padding: 8px 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ph-muted); background: var(--ph-surface); border-right: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); text-align: center; }
.ct-cal-day { min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); min-width: 0; }
.ct-cal-day.is-out { background: rgba(10, 1, 24, .45); }
.ct-cal-day.is-out .ct-cal-n { opacity: .45; }
.ct-cal-n { font-size: .85rem; font-weight: 600; color: var(--ph-text); }
.ct-cal-day.is-today .ct-cal-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ph-grad); color: #fff; }
.ct-cal-ev { display: block; font-size: .74rem; line-height: 1.3; padding: 3px 6px; border-radius: 4px; background: rgba(225, 28, 242, .16); border-left: 2px solid var(--ph-magenta); color: var(--ph-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-cal-ev.is-deadline { background: rgba(255, 201, 74, .12); border-left-color: var(--ph-yellow); color: #FFE3A1; }
.ct-cal-ev.ct-st-postponed { text-decoration: line-through; opacity: .7; }
.ct-cal-ev.ct-st-done { opacity: .6; }
.ct-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.ct-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--ph-magenta); }
.ct-dot.is-deadline { background: var(--ph-yellow); }

.ct-events { display: flex; flex-direction: column; gap: 12px; }
.ct-event { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); padding: 16px; }
.ct-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--ph-line); padding-right: 14px; text-align: center; }
.ct-event-date b { font-size: 1.9rem; line-height: 1; color: var(--ph-ink); }
.ct-event-date small { color: var(--ph-muted); margin-top: 4px; }
.ct-event h3 { font-size: 1.08rem; color: var(--ph-ink); margin: 8px 0; overflow-wrap: anywhere; }
.ct-event-facts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--ph-text); }
.ct-event-facts .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--ph-muted); }
.ct-event-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-event-act .btn { min-height: 44px; }
.ct-status { font-weight: 600; }
.ct-st-upcoming .ct-status { color: var(--ph-green); }
.ct-st-postponed .ct-status { color: var(--ph-yellow); }
.ct-st-done .ct-status { color: var(--ph-muted); }
.ct-st-done { opacity: .8; }

/* Government notices */
.ct-notices { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--ph-line); }
.ct-notice { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--ph-line); color: var(--ph-text); transition: background-color .15s; }
.ct-notice:hover { background: var(--ph-soft); color: var(--ph-text); }
.ct-notice-src { font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: #F08CFF; border: 1px solid var(--ph-line2); border-radius: 6px; padding: 4px 6px; text-align: center; }
.ct-notice-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-notice-main strong { color: var(--ph-ink); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ct-notice-main small { overflow-wrap: anywhere; }
.ct-notice-go { width: 18px; height: 18px; color: var(--ph-muted); }
.ct-notices .empty { padding: 32px 0; }

/* Salary */
.ct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ph-line); border-radius: 10px; }
.ct-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.ct-table th, .ct-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ph-line); vertical-align: top; color: var(--ph-text); }
.ct-table thead th { background: var(--ph-surface); color: var(--ph-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
.ct-table tbody th { color: var(--ph-ink); font-weight: 600; }
.ct-table tbody th small { display: block; font-weight: 400; margin-top: 4px; }
.ct-table tbody tr:last-child th, .ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-cta { border: 1px solid var(--ph-line2); border-radius: 12px; padding: 22px; background: var(--ph-surface); margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ct-cta h2 { font-size: 1.2rem; color: var(--ph-ink); margin: 0; }
.ct-cta p { margin: 0; color: var(--ph-text); }

/* Abroad */
.ct-countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-countries > .empty { grid-column: 1 / -1; }
.ct-country { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); padding: 20px; color: var(--ph-text); transition: border-color .2s ease-out; }
.ct-country:hover { border-color: rgba(225, 28, 242, .45); color: var(--ph-text); }
.ct-country-head { display: flex; align-items: center; gap: 10px; }
.ct-country-head img { border-radius: 3px; object-fit: cover; }
.ct-country-head strong { font-size: 1.2rem; color: var(--ph-ink); }
.ct-flag-ph { display: grid; place-items: center; width: 40px; height: 28px; border: 1px solid var(--ph-line2); border-radius: 4px; color: var(--ph-muted); }
.ct-flag-ph .icon { width: 16px; height: 16px; }
.ct-country-title { font-weight: 600; color: var(--ph-ink); line-height: 1.4; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chips > span, .ct-chips > a { border: 1px solid var(--ph-line2); border-radius: 6px; padding: 3px 9px; font-size: .8rem; color: var(--ph-text); }
.ct-chips-lg > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font-size: .95rem; }
.ct-chips-lg > a:hover { border-color: var(--ph-magenta); color: var(--ph-ink); }
.ct-chips-lg .icon { width: 16px; height: 16px; }
.ct-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.ct-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ph-text); line-height: 1.6; }
.ct-checks .icon { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ph-green); }
.ct-steps { list-style: none; padding: 0; margin: 0; max-width: 72ch; }
.ct-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 18px; color: var(--ph-text); line-height: 1.6; }
.ct-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 1px; background: var(--ph-line2); }
.ct-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ph-line2); background: var(--ph-surface2); color: var(--ph-ink); font-weight: 700; font-size: .9rem; }
.ct-note { display: flex; gap: 12px; border: 1px solid var(--ph-line2); border-left: 3px solid var(--ph-magenta); border-radius: 8px; padding: 14px 16px; margin-top: 24px; background: var(--ph-surface); max-width: 72ch; }
.ct-note .icon { width: 20px; height: 20px; flex: none; color: #F08CFF; margin-top: 2px; }
.ct-note strong { color: var(--ph-ink); }
.ct-note p { margin: 4px 0 0; color: var(--ph-text); }
.ct-linklist { list-style: none; padding: 0; margin: 0; }
.ct-linklist li + li { border-top: 1px solid var(--ph-line); }
.ct-linklist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; color: var(--ph-text); overflow-wrap: anywhere; }
.ct-linklist a:hover { color: #F08CFF; }
.ct-linklist .icon { width: 15px; height: 15px; flex: none; color: var(--ph-muted); }

/* Branches */
.ct-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-branches > .empty { grid-column: 1 / -1; }
.ct-branch { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); padding: 20px; color: var(--ph-text); transition: border-color .2s ease-out; }
.ct-branch:hover { border-color: rgba(225, 28, 242, .45); color: var(--ph-text); }
.ct-branch strong { font-size: 1.2rem; color: var(--ph-ink); }
.ct-branch > span:not(.ct-more) { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; overflow-wrap: anywhere; }
.ct-branch .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ph-muted); }
.ct-branch .ct-more { margin-top: 8px; }
.ct-branch-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: stretch; }
.ct-contact ul { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; }
.ct-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--ph-text); overflow-wrap: anywhere; }
.ct-contact li .icon { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #F08CFF; }
.ct-map { border: 1px solid var(--ph-line); border-radius: 10px; overflow: hidden; min-height: 300px; background: var(--ph-surface); }
.ct-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* YouTube latest */
.ct-yt { padding: clamp(48px, 7vw, 88px) 0; }
.ct-yt-head, .ct-gr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.ct-yt-head h2, .ct-gr-head h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); color: var(--ph-ink); }
.ct-yt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-yt-item { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--ph-line); background: #000; }
.ct-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ct-yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease-out; }
.ct-yt-play:hover img { transform: scale(1.03); }
.ct-yt-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; display: grid; place-items: center; border-radius: 10px; background: rgba(10, 1, 24, .82); color: var(--ph-ink); transition: background-color .2s; }
.ct-yt-play:hover .ct-yt-btn, .ct-yt-play:focus-visible .ct-yt-btn { background: #E11CF2; }
.ct-yt-play:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.ct-yt-btn .icon { width: 22px; height: 22px; }
.ct-yt-item figcaption { display: flex; flex-direction: column; gap: 4px; }
.ct-yt-item figcaption strong { color: var(--ph-ink); line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }

/* Google reviews */
.ct-greviews { padding: clamp(48px, 7vw, 88px) 0; }
.ct-gr-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.ct-gr-score b { font-size: 2rem; line-height: 1; color: var(--ph-ink); }
.ct-stars { display: inline-flex; gap: 2px; }
.ct-stars span { color: rgba(255, 255, 255, .22); display: inline-flex; }
.ct-stars span.on { color: var(--ph-yellow); }
.ct-stars .icon { width: 16px; height: 16px; fill: currentColor; }
.ct-gr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-gr-item { margin: 0; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--ph-line); border-radius: 10px; background: var(--ph-surface); padding: 18px; }
.ct-gr-item p { margin: 0; color: var(--ph-text); line-height: 1.65; overflow-wrap: anywhere; }
.ct-gr-item footer { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.ct-gr-item footer img, .ct-gr-item .ct-author-init { width: 36px; height: 36px; border-radius: 50%; font-size: .8rem; }
.ct-gr-item footer span { display: flex; flex-direction: column; min-width: 0; }
.ct-gr-item footer strong { color: var(--ph-ink); font-size: .93rem; }
.ct-gr-note { margin-top: 14px; }

@media (max-width: 1024px) {
    .ct-post-grid, .ct-countries, .ct-branches, .ct-yt-grid, .ct-gr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-split, .ct-branch-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .ct-feature { grid-template-columns: minmax(0, 1fr); }
    .ct-search { max-width: none; }
    .ct-cal-day { min-height: 64px; padding: 4px; }
    .ct-cal-wd { font-size: .68rem; padding: 6px 2px; letter-spacing: 0; }
    /* Event titles do not fit a 45px cell; a coloured bar marks the day and the list below gives details. */
    .ct-cal-ev { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--ph-magenta); }
    .ct-cal-ev.is-deadline { background: var(--ph-yellow); }
}

@media (max-width: 640px) {
    .ct-post-grid, .ct-countries, .ct-branches, .ct-yt-grid, .ct-gr-grid { grid-template-columns: minmax(0, 1fr); }
    .ct-event { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ct-event-date { flex-direction: row; justify-content: flex-start; gap: 8px; border-right: 0; border-bottom: 1px solid var(--ph-line); padding: 0 0 10px; }
    .ct-event-date b { font-size: 1.4rem; }
    .ct-event-act .btn { flex: 1 1 100%; justify-content: center; }
    .ct-notice { grid-template-columns: minmax(0, 1fr) auto; }
    .ct-notice-src { grid-column: 1 / -1; justify-self: start; }
    .ct-switch { width: 100%; }
    .ct-switch-btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-post, .ct-post:hover, .ct-yt-play img, .ct-more .icon { transition: none; transform: none; }
}
