*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 12px 8px 24px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
                radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 24%),
                linear-gradient(180deg, #020617 0%, #071126 100%);
    font-family: 'Jost', sans-serif;
}

.ap-site-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ap-topbar {
    background: linear-gradient(90deg, #081120, #102a5c, #081120);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ap-topbar-track {
    white-space: nowrap;
    display: inline-block;
    min-width: 100%;
    padding: 11px 0;
    animation: apMarquee 20s linear infinite;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.ap-topbar-track span {
    display: inline-block;
    padding-left: 100%;
}

@keyframes apMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ap-header {
    padding: 20px 14px 16px;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 34%),
                radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.10), transparent 26%),
                linear-gradient(180deg, #f8fbff 0%, #eef5ff 45%, #ffffff 100%);
}

.ap-header-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
    border: 1px solid #e5edf8;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.08);
}

.ap-brand-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ap-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0f172a, #162b61);
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.ap-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    animation: apLivePulse 1.6s ease-in-out infinite;
}

@keyframes apLivePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.35); opacity: 1; }
    50% { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(34,197,94,0); opacity: 0.95; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0); opacity: 1; }
}

.ap-mini-note {
    font-size: 13px;
    font-weight: 700;
    color: #475467;
}

.ap-branding {
    text-align: center;
    margin-bottom: 16px;
}

.ap-site-title {
    display: inline-block;
    font-size: 36px;
    font-weight: 800;
    color: #0f1d53;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.ap-site-tagline {
    margin: 8px 0 0;
    font-size: 14px;
    color: #667085;
    font-weight: 600;
}

.ap-feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ap-feature-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe7f5;
    color: #16356b;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 16px rgba(11, 87, 208, 0.06);
    animation: apPillGlow 3.4s ease-in-out infinite;
    text-decoration: none;
}

.ap-feature-pill::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.45), rgba(255,255,255,0));
    transform: skewX(-22deg);
    animation: apPillShine 4.5s linear infinite;
}

.ap-feature-pill > * { position: relative; z-index: 2; }

@keyframes apPillGlow {
    0%, 100% { box-shadow: 0 5px 16px rgba(11,87,208,0.06); transform: translateY(0); border-color: #dbe7f5; }
    50% { box-shadow: 0 8px 20px rgba(13,110,253,0.12); transform: translateY(-1px); border-color: #bfd5f8; }
}

@keyframes apPillShine {
    0% { left: -130%; }
    100% { left: 140%; }
}

.ap-header-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.ap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.ap-btn:hover { transform: translateY(-1px); color: #fff; }

.ap-btn-home { background: linear-gradient(135deg, #0d6efd, #0b57d0); }
.ap-btn-pin { background: linear-gradient(135deg, #16a34a, #12813b); }
.ap-btn-enter { background: linear-gradient(135deg, #18233f, #0f172a); }

.ap-pin-box {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dce6f3;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    margin-bottom: 14px;
    overflow: hidden;
}

.ap-pin-box-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.ap-pin-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.16);
    flex-shrink: 0;
}

.ap-pin-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #101a4b;
}

.ap-pin-heading p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #667085;
    font-weight: 600;
}

.ap-pin-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.ap-pin-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ap-pin-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 14px;
    z-index: 2;
}

.ap-pin-form input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1.5px solid #b8cdf8;
    border-radius: 13px;
    padding: 0 14px 0 38px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    color: #101828;
    background: #ffffff;
    outline: none;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.04);
    transition: all 0.25s ease;
}

.ap-pin-form input::placeholder {
    color: #667085;
    font-weight: 600;
    font-size: 14px;
}

.ap-pin-form input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

.ap-pin-form button {
    border: 0;
    height: 46px;
    padding: 0 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.16);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.ap-pin-form button:hover { transform: translateY(-1px); }

.ap-pin-note {
    margin: 9px 0 0;
    text-align: center;
    font-size: 12px;
    color: #667085;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.ap-social-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ap-social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ap-whatsapp { background: linear-gradient(135deg, #22c55e, #15803d); }
.ap-telegram { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

.ap-menu-bar {
    background: linear-gradient(180deg, #081120 0%, #111827 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 10px;
}

.ap-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ap-menu-list li { list-style: none; margin: 0; padding: 0; }

.ap-menu-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.25s ease;
}

.ap-menu-list a.active,
.ap-menu-list a:hover {
    background: linear-gradient(135deg, #0d6efd, #0b57d0);
    color: #ffffff;
}

.ap-content {
    padding: 18px 14px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f7fc 100%);
    min-height: 300px;
}

/* Homepage sections */
.ap-home-hero,
.ap-home-exams,
.ap-home-subjects,
.ap-home-updates,
.ap-home-steps,
.ap-home-cta {
    margin-bottom: 16px;
}

.ap-home-hero {
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
    text-align: center;
}

.ap-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ap-home-hero__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-home-hero__text {
    margin: 0 auto;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.7;
    color: #667085;
}

.ap-home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ap-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.ap-home-btn:hover { transform: translateY(-1px); color: #fff; }

.ap-home-btn--primary { background: linear-gradient(135deg, #0d6efd, #0b57d0); }
.ap-home-btn--green { background: linear-gradient(135deg, #16a34a, #12813b); }

.ap-section-head {
    text-align: center;
    margin-bottom: 12px;
}

.ap-section-head h2 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #0f1d53;
    font-weight: 800;
}

.ap-section-head p {
    margin: 0;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.ap-home-exams,
.ap-home-subjects,
.ap-home-updates,
.ap-home-steps {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.ap-exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ap-exam-card {
    display: block;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.05);
    transition: 0.25s ease;
}

.ap-exam-card:hover {
    transform: translateY(-2px);
    border-color: #bfd5f8;
}

.ap-exam-card__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.14);
}

.ap-exam-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f1d53;
    font-weight: 800;
}

.ap-exam-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #667085;
    font-weight: 600;
}

.ap-update-list {
    display: grid;
    gap: 10px;
}

.ap-update-item {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
}

.ap-update-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    text-decoration: none;
}

.ap-update-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.ap-update-item__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ap-update-item__title {
    color: #0f1d53;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.ap-update-item__meta {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.ap-empty-state {
    text-align: center;
    padding: 18px;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.ap-home-cta {
    background: linear-gradient(135deg, #0f172a, #162b61);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.ap-home-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ap-home-cta__text h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #fff;
    font-weight: 800;
}

.ap-home-cta__text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.ap-home-cta__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pin result page */
.ap-pin-result {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.ap-pin-result__card {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.05);
}

.ap-pin-result__card--error {
    text-align: center;
}

.ap-pin-result__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ap-pin-result__badge--success {
    background: linear-gradient(135deg, #16a34a, #12813b);
    color: #ffffff;
}

.ap-pin-result__badge--error {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
}

.ap-pin-result__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-pin-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.ap-pin-result__content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.ap-pin-result__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #667085;
    font-weight: 600;
}

.ap-pin-result__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Single post */
.ap-single-post {
    display: grid;
    gap: 16px;
}

.ap-single-post__header,
.ap-single-post__content {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.ap-single-post__badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ap-single-post__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.ap-single-post__badge--exam { background: linear-gradient(135deg, #0d6efd, #0b57d0); color: #ffffff; }
.ap-single-post__badge--year { background: linear-gradient(135deg, #18233f, #0f172a); color: #ffffff; }

.ap-single-post__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-single-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.ap-single-post__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ap-single-post__content {
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
}

/* Footer */
.ap-footer {
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #081120, #14285c);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.ap-footer__top {
    padding: 20px 16px 18px;
}

.ap-footer__brand {
    text-align: center;
    margin-bottom: 18px;
}

.ap-footer__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 800;
}

.ap-footer__text {
    margin: 0 auto;
    max-width: 650px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.ap-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.ap-footer__col {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(4px);
}

.ap-footer__col h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 800;
}

.ap-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ap-footer__col li + li { margin-top: 8px; }

.ap-footer__col a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.ap-footer__col a:hover { color: #ffffff; }

.ap-footer__channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ap-footer__channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    transition: 0.25s ease;
}

.ap-footer__channel:hover { transform: translateY(-1px); color: #fff; }

.ap-footer__channel--whatsapp { background: linear-gradient(135deg, #22c55e, #15803d); }
.ap-footer__channel--telegram { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

.ap-footer__bottom {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.ap-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
}

/* Page / Static */
.ap-page {
    display: grid;
    gap: 16px;
}

.ap-page__header,
.ap-page__content {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.ap-page__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg, #18233f, #0f172a);
    color: #ffffff;
    margin-bottom: 12px;
}

.ap-page__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.ap-page__content {
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
}

.ap-page__content h2,
.ap-page__content h3,
.ap-page__content h4 {
    color: #0f1d53;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ap-page__content p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Enter pin page */
.ap-enter-pin-page {
    display: grid;
    gap: 16px;
}

.ap-enter-pin-hero,
.ap-enter-pin-card,
.ap-enter-pin-help {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.ap-enter-pin-hero { text-align: center; }

.ap-enter-pin-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ap-enter-pin-hero__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-enter-pin-hero__text {
    margin: 0 auto;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.7;
    color: #667085;
    font-weight: 600;
}

.ap-enter-pin-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ap-enter-pin-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.16);
    flex-shrink: 0;
}

.ap-enter-pin-card__heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #0f1d53;
    font-weight: 800;
}

.ap-enter-pin-card__heading p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.ap-enter-pin-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ap-enter-pin-form__input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ap-enter-pin-form__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 15px;
    z-index: 2;
}

.ap-enter-pin-form input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 50px;
    border: 1.5px solid #b8cdf8;
    border-radius: 14px;
    padding: 0 14px 0 40px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    color: #101828;
    background: #ffffff;
    outline: none;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.04);
    transition: all 0.25s ease;
}

.ap-enter-pin-form input::placeholder {
    color: #667085;
    font-weight: 600;
    font-size: 14px;
}

.ap-enter-pin-form input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

.ap-enter-pin-form button {
    border: 0;
    height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.16);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.ap-enter-pin-form button:hover { transform: translateY(-1px); }

.ap-enter-pin-help {
    text-align: center;
}

.ap-enter-pin-help h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f1d53;
    font-weight: 800;
}

.ap-enter-pin-help__steps {
    display: grid;
    gap: 10px;
    text-align: left;
}

.ap-enter-pin-help__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    padding: 12px;
}

.ap-enter-pin-help__step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.ap-enter-pin-help__step-text {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
}

/* Admin - keep separate style, minimal override */
.admin-body {
    background: #f0f2f5;
    font-family: 'Jost', sans-serif;
}

.admin-header {
    background: #0f172a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.admin-header .logo {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
}

.admin-header a {
    color: rgba(255,255,255,0.85);
    margin-left: 20px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.admin-header a:hover { color: #fff; }

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

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.admin-card h1 { font-size: 24px; color: #0f172a; margin-bottom: 20px; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5edf8;
}

.stat-card .number { font-size: 36px; font-weight: 800; color: #0f172a; }
.stat-card .label { font-size: 14px; color: #888; margin-top: 5px; font-weight: 600; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9ff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.admin-table tr:hover td { background: #f8f9ff; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: #0d6efd; color: #fff; }
.btn-primary:hover { background: #0b57d0; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #12813b; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-warning { background: #d97706; color: #fff; }
.btn-warning:hover { background: #b45309; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Jost', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0d6efd;
}

.form-group textarea { min-height: 300px; resize: vertical; }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

.login-box h1 { text-align: center; color: #0f172a; font-size: 24px; margin-bottom: 25px; }

.login-error {
    background: #ffebee;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success { background: #e8f5e9; color: #16a34a; }
.alert-danger { background: #ffebee; color: #dc2626; }

.empty-state { text-align: center; padding: 40px; color: #888; font-size: 15px; }

.pin-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.pin-status.used { background: #ffebee; color: #dc2626; }
.pin-status.unused { background: #e8f5e9; color: #16a34a; }

/* Admin Preview Modal */
.ap-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}
.ap-modal-overlay.show { display: flex; }
.ap-modal-box {
    background: #fff;
    border-radius: 18px;
    max-width: 760px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 22px 55px rgba(0,0,0,0.28);
    margin: auto;
}
.ap-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 28px; cursor: pointer;
    color: #667085; font-family: 'Jost', sans-serif;
    line-height: 1;
}
.ap-modal-close:hover { color: #dc2626; }
.ap-modal-title {
    font-size: 28px; font-weight: 800;
    color: #0f1d53; margin: 0 0 15px;
    line-height: 1.2;
}
.ap-modal-content {
    font-size: 15px; line-height: 1.85; color: #334155;
}
.ap-modal-content img { max-width: 100%; height: auto; border-radius: 12px; }
.ap-modal-content h2, .ap-modal-content h3, .ap-modal-content h4 {
    color: #0f1d53; margin-top: 20px; margin-bottom: 10px;
}
.ap-modal-content p { margin-bottom: 15px; }

/* Publish Toggle Switch */
.publish-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    font-family: 'Jost', sans-serif;
}
.publish-toggle input { display: none; }
.toggle-track {
    width: 44px; height: 24px;
    background: #e0e0e0;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.publish-toggle input:checked + .toggle-track { background: #16a34a; }
.publish-toggle input:checked + .toggle-track::after { transform: translateX(20px); }

.ap-subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ap-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ap-step-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.05);
}

.ap-step-card__number {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #101a4b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}

.ap-step-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #0f1d53;
    font-weight: 800;
}

.ap-step-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #667085;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 640px) {
    body { padding: 10px 7px 20px; }

    .ap-header { padding: 16px 12px 14px; }
    .ap-header-card { padding: 14px; border-radius: 18px; }
    .ap-site-title { font-size: 29px; }
    .ap-brand-top { justify-content: center; text-align: center; }

    .ap-header-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ap-btn { min-height: 40px; font-size: 11px; padding: 7px 8px; }

    .ap-pin-box-top { align-items: flex-start; }
    .ap-pin-heading h2 { font-size: 17px; }
    .ap-pin-icon { width: 46px; height: 46px; font-size: 18px; }
    .ap-pin-form { flex-direction: column; }
    .ap-pin-input-wrap { width: 100%; }
    .ap-pin-form input, .ap-pin-form button { width: 100%; }
    .ap-pin-form button { height: 44px; font-size: 13px; }

    .ap-social-row { grid-template-columns: 1fr; }
    .ap-social-row a { min-height: 40px; font-size: 12px; padding: 8px 10px; }

    .ap-menu-list { gap: 6px; }
    .ap-menu-list a { min-height: 34px; font-size: 11px; padding: 7px 10px; }

    .ap-content { padding: 14px 12px 20px; }

    .ap-home-hero { padding: 16px 14px; }
    .ap-home-hero__title { font-size: 23px; }
    .ap-home-hero__text { font-size: 14px; }
    .ap-home-hero__actions,
    .ap-home-cta__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .ap-home-btn { width: 100%; }

    .ap-section-head h2 { font-size: 20px; }
    .ap-exam-grid { grid-template-columns: 1fr; }

    .ap-home-cta__inner { flex-direction: column; align-items: stretch; }
    .ap-home-cta__text h2 { font-size: 21px; }

    .ap-enter-pin-hero__title { font-size: 24px; }
    .ap-enter-pin-card__heading h2 { font-size: 18px; }
    .ap-enter-pin-form { flex-direction: column; }
    .ap-enter-pin-form input, .ap-enter-pin-form button { width: 100%; }
    .ap-enter-pin-form button { height: 46px; }

    .ap-pin-result__title { font-size: 23px; }
    .ap-pin-result__actions { display: grid; grid-template-columns: 1fr; }

    .ap-single-post__title { font-size: 24px; }
    .ap-page__title { font-size: 24px; }

    .ap-footer__top { padding: 18px 14px 16px; }
    .ap-footer__title { font-size: 24px; }
    .ap-footer__text { font-size: 13px; }
    .ap-footer__grid,
    .ap-footer__channels { grid-template-columns: 1fr; }
    .ap-footer__channel { min-height: 42px; font-size: 12px; padding: 8px 10px; }
}

/* =============================================
   RESPONSIVE TYPOGRAPHY SYSTEM
   Fluid font-sizing using clamp()
   Ensures text scales smoothly across all devices
   Added: preserves all original colors, backgrounds, layouts
   ============================================= */

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: clamp(15px, 0.875rem + 0.35vw, 17px);
}

/* Top Bar */
.ap-topbar-track {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

/* Header */
.ap-live-badge {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

.ap-mini-note {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

.ap-site-title {
    font-size: clamp(26px, 1.5rem + 2vw, 42px) !important;
}

.ap-site-tagline {
    font-size: clamp(13px, 0.75rem + 0.35vw, 16px) !important;
}

.ap-feature-pill {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

/* Header Buttons */
.ap-btn {
    font-size: clamp(11px, 0.625rem + 0.35vw, 15px) !important;
}

/* PIN Box */
.ap-pin-heading h2 {
    font-size: clamp(16px, 1rem + 0.25vw, 20px) !important;
}

.ap-pin-heading p {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

.ap-pin-form input {
    font-size: clamp(14px, 0.875rem + 0.15vw, 17px) !important;
}

.ap-pin-form input::placeholder {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.ap-pin-form button {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

.ap-pin-note {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Social Row */
.ap-social-row a {
    font-size: clamp(11px, 0.625rem + 0.35vw, 15px) !important;
}

/* Menu */
.ap-menu-list a {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Homepage Hero */
.ap-home-hero__badge {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

.ap-home-hero__title {
    font-size: clamp(22px, 1.25rem + 1.5vw, 34px) !important;
}

.ap-home-hero__text {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

.ap-home-btn {
    font-size: clamp(12px, 0.75rem + 0.2vw, 15px) !important;
}

/* Section Head */
.ap-section-head h2 {
    font-size: clamp(18px, 1rem + 0.6vw, 26px) !important;
}

.ap-section-head p {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

/* Exam Cards */
.ap-exam-card h3 {
    font-size: clamp(16px, 1rem + 0.2vw, 20px) !important;
}

.ap-exam-card p {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

/* Update List */
.ap-update-item__title {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

.ap-update-item__meta {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Empty State */
.ap-empty-state {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

/* CTA Section */
.ap-home-cta__text h2 {
    font-size: clamp(20px, 1.125rem + 0.8vw, 28px) !important;
}

.ap-home-cta__text p {
    font-size: clamp(13px, 0.75rem + 0.3vw, 16px) !important;
}

/* Pin Result */
.ap-pin-result__badge {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

.ap-pin-result__title {
    font-size: clamp(22px, 1.25rem + 1.5vw, 34px) !important;
}

.ap-pin-result__meta {
    font-size: clamp(12px, 0.6875rem + 0.25vw, 15px) !important;
}

.ap-pin-result__content {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

.ap-pin-result__text {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

/* Single Post */
.ap-single-post__badge {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

.ap-single-post__title {
    font-size: clamp(22px, 1.25rem + 1.5vw, 36px) !important;
}

.ap-single-post__meta {
    font-size: clamp(12px, 0.6875rem + 0.25vw, 15px) !important;
}

.ap-single-post__content {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

/* Footer */
.ap-footer__title {
    font-size: clamp(22px, 1.25rem + 1.2vw, 32px) !important;
}

.ap-footer__text {
    font-size: clamp(13px, 0.75rem + 0.3vw, 16px) !important;
}

.ap-footer__col h3 {
    font-size: clamp(14px, 0.875rem + 0.2vw, 18px) !important;
}

.ap-footer__col a {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

.ap-footer__channel {
    font-size: clamp(12px, 0.6875rem + 0.25vw, 15px) !important;
}

.ap-footer__bottom p {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Static Pages */
.ap-page__badge {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

.ap-page__title {
    font-size: clamp(22px, 1.25rem + 1.5vw, 36px) !important;
}

.ap-page__meta {
    font-size: clamp(12px, 0.6875rem + 0.25vw, 15px) !important;
}

.ap-page__content {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

.ap-page__content h2 {
    font-size: clamp(18px, 1rem + 0.6vw, 26px) !important;
}

.ap-page__content h3 {
    font-size: clamp(16px, 0.875rem + 0.4vw, 22px) !important;
}

.ap-page__content h4 {
    font-size: clamp(15px, 0.875rem + 0.25vw, 19px) !important;
}

/* Enter PIN Page */
.ap-enter-pin-hero__badge {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

.ap-enter-pin-hero__title {
    font-size: clamp(22px, 1.25rem + 1.5vw, 36px) !important;
}

.ap-enter-pin-hero__text {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

.ap-enter-pin-card__heading h2 {
    font-size: clamp(18px, 1rem + 0.5vw, 24px) !important;
}

.ap-enter-pin-card__heading p {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

.ap-enter-pin-form input {
    font-size: clamp(14px, 0.875rem + 0.15vw, 17px) !important;
}

.ap-enter-pin-form input::placeholder {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.ap-enter-pin-form button {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.ap-enter-pin-help h3 {
    font-size: clamp(16px, 0.875rem + 0.4vw, 20px) !important;
}

.ap-enter-pin-help__step-num {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

.ap-enter-pin-help__step-text {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

/* Steps */
.ap-step-card__number {
    font-size: clamp(13px, 0.75rem + 0.25vw, 17px) !important;
}

.ap-step-card h3 {
    font-size: clamp(15px, 0.875rem + 0.25vw, 19px) !important;
}

.ap-step-card p {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

/* Share Section (view.php) */
.ap-share-label {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

.ap-share-btn {
    font-size: clamp(16px, 1rem + 0.2vw, 20px) !important;
}

.ap-share-contact-btn {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

/* Inline Share Styles (epage.php, view.php) */
.ap-pin-result__card [style*="font-size:14px"],
.ap-share-section [style*="font-size:14px"] {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

/* Admin Section */
.admin-body {
    font-size: clamp(15px, 0.875rem + 0.35vw, 17px);
}

.admin-header .logo {
    font-size: clamp(16px, 1rem + 0.2vw, 20px) !important;
}

.admin-header a {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.admin-card h1 {
    font-size: clamp(20px, 1.125rem + 0.6vw, 28px) !important;
}

/* Admin Dashboard Stats */
.stat-card .number,
.stat-info .num {
    font-size: clamp(24px, 1.25rem + 1.2vw, 36px) !important;
}

.stat-card .label,
.stat-info .lbl {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.stat-icon {
    font-size: clamp(18px, 1rem + 0.4vw, 24px) !important;
}

/* Admin Table */
.admin-table th {
    font-size: clamp(13px, 0.75rem + 0.2vw, 15px) !important;
}

.admin-table td {
    font-size: clamp(13px, 0.75rem + 0.2vw, 15px) !important;
}

/* Admin Login */
.login-box h1 {
    font-size: clamp(20px, 1.125rem + 0.6vw, 28px) !important;
}

.login-error {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

/* Admin Forms */
.form-group label {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-size: clamp(14px, 0.875rem + 0.15vw, 17px) !important;
}

/* Admin Buttons */
.btn {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.btn-sm {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Admin Alerts */
.alert {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

.empty-state {
    font-size: clamp(14px, 0.875rem + 0.15vw, 16px) !important;
}

/* Admin PIN Status */
.pin-status {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Admin Publish Toggle */
.publish-toggle {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

/* Admin Quick Actions */
.quick-actions a {
    font-size: clamp(13px, 0.75rem + 0.2vw, 15px) !important;
}

/* Admin Dashboard Cards */
.dash-card h2 {
    font-size: clamp(16px, 0.875rem + 0.4vw, 20px) !important;
}

/* Admin Post Status */
.post-status-badge {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

/* Inline font-size overrides for admin pages */
/* Handles all inline font-size values used in admin PHP files */
[style*="font-size:11px"],
[style*="font-size: 11px"] {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

[style*="font-size:12px"],
[style*="font-size: 12px"] {
    font-size: clamp(11px, 0.625rem + 0.2vw, 14px) !important;
}

[style*="font-size:13px"],
[style*="font-size: 13px"] {
    font-size: clamp(12px, 0.75rem + 0.15vw, 15px) !important;
}

[style*="font-size:14px"],
[style*="font-size: 14px"] {
    font-size: clamp(13px, 0.75rem + 0.25vw, 16px) !important;
}

[style*="font-size:15px"],
[style*="font-size: 15px"] {
    font-size: clamp(14px, 0.875rem + 0.15vw, 17px) !important;
}

[style*="font-size:16px"],
[style*="font-size: 16px"] {
    font-size: clamp(15px, 0.875rem + 0.25vw, 18px) !important;
}

[style*="font-size:18px"],
[style*="font-size: 18px"] {
    font-size: clamp(16px, 0.875rem + 0.4vw, 20px) !important;
}

[style*="font-size:20px"],
[style*="font-size: 20px"] {
    font-size: clamp(18px, 1rem + 0.5vw, 22px) !important;
}

[style*="font-size:24px"],
[style*="font-size: 24px"] {
    font-size: clamp(20px, 1.125rem + 0.6vw, 26px) !important;
}

[style*="font-size:26px"],
[style*="font-size: 26px"] {
    font-size: clamp(22px, 1.25rem + 0.6vw, 28px) !important;
}

[style*="font-size:28px"],
[style*="font-size: 28px"] {
    font-size: clamp(24px, 1.5rem + 0.5vw, 30px) !important;
}

[style*="font-size:36px"],
[style*="font-size: 36px"] {
    font-size: clamp(28px, 1.75rem + 0.8vw, 38px) !important;
}

/* Modal */
.ap-modal-title {
    font-size: clamp(22px, 1.25rem + 1.2vw, 32px) !important;
}

.ap-modal-content {
    font-size: clamp(14px, 0.875rem + 0.2vw, 17px) !important;
}

.ap-modal-close {
    font-size: clamp(24px, 1.5rem + 0.4vw, 32px) !important;
}

/* Subject List Pills */
.ap-subject-list .ap-feature-pill {
    font-size: clamp(10px, 0.625rem + 0.15vw, 13px) !important;
}

/* Service / Feature Icons */
.ap-pin-icon {
    font-size: clamp(17px, 1rem + 0.2vw, 21px) !important;
}

.ap-exam-card__icon {
    font-size: clamp(18px, 1rem + 0.4vw, 22px) !important;
}

.ap-update-item__icon {
    font-size: clamp(12px, 0.75rem + 0.1vw, 14px) !important;
}

.ap-enter-pin-card__icon {
    font-size: clamp(18px, 1rem + 0.4vw, 22px) !important;
}

.ap-pin-input-icon,
.ap-enter-pin-form__icon {
    font-size: clamp(13px, 0.75rem + 0.2vw, 16px) !important;
}

/* ===== Extra Small Screens (≤420px) ===== */
@media (max-width: 420px) {
    .ap-site-title {
        font-size: clamp(22px, 5.5vw, 28px) !important;
    }

    .ap-home-hero__title,
    .ap-pin-result__title,
    .ap-single-post__title,
    .ap-page__title,
    .ap-enter-pin-hero__title {
        font-size: clamp(20px, 5vw, 24px) !important;
    }

    .ap-home-hero__text,
    .ap-pin-result__content,
    .ap-pin-result__text,
    .ap-single-post__content,
    .ap-page__content,
    .ap-enter-pin-hero__text {
        font-size: clamp(13px, 3.5vw, 15px) !important;
    }

    .ap-btn,
    .ap-home-btn,
    .ap-social-row a,
    .ap-footer__channel {
        font-size: clamp(11px, 2.8vw, 13px) !important;
    }
}

/* ===== Large Screens (≥1400px) ===== */
@media (min-width: 1400px) {
    .ap-site-title {
        font-size: clamp(38px, 2.5rem + 0.5vw, 48px) !important;
    }

    .ap-home-hero__title,
    .ap-pin-result__title,
    .ap-single-post__title,
    .ap-page__title,
    .ap-enter-pin-hero__title {
        font-size: clamp(32px, 2rem + 0.5vw, 40px) !important;
    }

    .ap-home-hero__text,
    .ap-pin-result__content,
    .ap-pin-result__text,
    .ap-single-post__content,
    .ap-page__content,
    .ap-enter-pin-hero__text {
        font-size: clamp(16px, 1rem + 0.2vw, 18px) !important;
    }

    .ap-section-head h2,
    .ap-home-cta__text h2,
    .admin-card h1 {
        font-size: clamp(24px, 1.5rem + 0.3vw, 30px) !important;
    }
}

/* ===== Missing Components from Expoking.net ===== */

/* ---- Logo & Site Title Link ---- */
.custom-logo {
    max-height: 76px;
    width: auto;
}
.ap-site-title-link {
    text-decoration: none;
}

/* ---- Feature Pill Logo Variant ---- */
.ap-feature-pill--logo {
    gap: 8px;
    padding: 7px 12px;
}
.ap-feature-pill--logo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.ap-feature-pill--logo span {
    position: relative;
    z-index: 2;
}

/* ---- Exam Card Image Icon ---- */
.ap-exam-card__icon--image {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.08);
    padding: 8px;
}
.ap-exam-card__icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- Subject Pill ---- */
.ap-subject-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe7f5;
    color: #16356b;
    font-size: clamp(11px, 0.75rem + 0.1vw, 13px);
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(11, 87, 208, 0.05);
}

/* ---- Single Post: Badge PIN ---- */
.ap-single-post__badge--pin {
    background: linear-gradient(135deg, #16a34a, #12813b);
    color: #ffffff;
}

/* ---- Single Post: Thumbnail ---- */
.ap-single-post__thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* ---- Single Post: Info Box ---- */
.ap-single-info-box__title {
    margin: 0 0 12px;
    font-size: clamp(18px, 1rem + 0.4vw, 22px);
    color: #0f1d53;
    font-weight: 800;
}
.ap-single-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ap-single-info-item {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
}
.ap-single-info-item__label {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(11px, 0.75rem + 0.05vw, 13px);
    color: #667085;
    font-weight: 700;
}
.ap-single-info-item__value {
    display: block;
    font-size: clamp(14px, 0.875rem + 0.15vw, 16px);
    color: #0f1d53;
    font-weight: 800;
}

/* ---- Single Post: Share Buttons ---- */
.ap-single-share {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}
.ap-single-share__title {
    margin: 0 0 12px;
    font-size: clamp(18px, 1rem + 0.4vw, 22px);
    color: #0f1d53;
    font-weight: 800;
}
.ap-single-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ap-single-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(12px, 0.75rem + 0.15vw, 14px);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}
.ap-single-share__btn:hover {
    transform: translateY(-1px);
}
.ap-single-share__btn--whatsapp {
    background: linear-gradient(135deg, #22c55e, #15803d);
}
.ap-single-share__btn--facebook {
    background: linear-gradient(135deg, #1877f2, #0d5ed7);
}
.ap-single-share__btn--telegram {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* ---- Single Post: Latest Section ---- */
.ap-single-latest {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

/* ---- Table of Contents ---- */
.ap-toc-box {
    margin: 18px 0 20px;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.05);
    overflow: hidden;
}
.ap-toc-box__toggle {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    color: #0f1d53;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: clamp(14px, 0.875rem + 0.1vw, 16px);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}
.ap-toc-box__toggle-left,
.ap-toc-box__toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ap-toc-box__toggle-right i {
    transition: transform 0.25s ease;
}
.ap-toc-box__body {
    padding: 0 16px 14px;
    border-top: 1px solid #e7eef8;
}
.ap-toc-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.ap-toc-list__item {
    list-style: none;
}
.ap-toc-list__item--sub {
    padding-left: 16px;
}
.ap-toc-list__link {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e4edf8;
    color: #16356b;
    text-decoration: none;
    font-size: clamp(13px, 0.875rem + 0.05vw, 15px);
    font-weight: 700;
    line-height: 1.5;
    transition: 0.25s ease;
}
.ap-toc-list__link:hover {
    background: #f0f7ff;
    border-color: #bfd5f8;
    color: #0d6efd;
    transform: translateY(-1px);
}
#ap-post-content-body {
    scroll-behavior: smooth;
}

/* ---- PIN Invalid State ---- */
.ap-pin-page {
    display: grid;
    gap: 16px;
}
.ap-pin-invalid {
    text-align: center;
}
.ap-pin-invalid__badge {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: clamp(11px, 0.75rem + 0.1vw, 13px);
    font-weight: 800;
    margin-bottom: 12px;
}
.ap-pin-invalid__text {
    margin: 0;
    font-size: clamp(14px, 0.875rem + 0.15vw, 16px);
    line-height: 1.7;
    color: #667085;
    font-weight: 600;
}
.ap-pin-invalid__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ===== Responsive Overrides for New Components ===== */

/* Small screens (≤640px) */
@media (max-width: 640px) {
    .ap-feature-pill--logo {
        padding: 7px 10px;
        gap: 6px;
    }
    .ap-feature-pill--logo img {
        width: 16px;
        height: 16px;
    }
    .ap-single-info-grid {
        grid-template-columns: 1fr;
    }
    .ap-single-share__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ap-single-share__btn {
        width: 100%;
    }
    .ap-single-share {
        padding: 14px;
    }
    .ap-single-latest {
        padding: 14px;
    }
    .ap-toc-box {
        margin: 16px 0 18px;
        border-radius: 14px;
    }
    .ap-toc-box__toggle {
        padding: 13px 14px;
        font-size: clamp(13px, 0.875rem, 15px);
    }
    .ap-toc-box__body {
        padding: 0 14px 12px;
    }
    .ap-toc-list__link {
        font-size: clamp(12px, 0.75rem + 0.1vw, 14px);
        padding: 8px 10px;
    }
    .ap-toc-list__item--sub {
        padding-left: 12px;
    }
    .ap-pin-invalid__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ap-pin-invalid__actions .ap-home-btn {
        width: 100%;
    }
}

/* Extra small screens (≤420px) */
@media (max-width: 420px) {
    .ap-single-info-item__label {
        font-size: clamp(10px, 2.5vw, 12px);
    }
    .ap-single-info-item__value {
        font-size: clamp(13px, 3.2vw, 15px);
    }
    .ap-single-share__btn {
        font-size: clamp(11px, 2.8vw, 13px);
        min-height: 38px;
    }
    .ap-subject-pill {
        font-size: clamp(10px, 2.8vw, 12px);
        min-height: 32px;
        padding: 6px 10px;
    }
}

/* ===== Print Optimization ===== */
@media print {
    body {
        font-size: 12pt !important;
    }
}
