/* =============================================================
   Admission Page — KTCT College of Nursing
   Loaded only on the Admission page template.
============================================================= */

/* -------------------------------------------------------
   SECTION WRAPPER
------------------------------------------------------- */
.adm-section {
    padding: 80px 0 100px;
    background: #f8f9fb;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar */
.adm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--theme-color1, #1e6832),
            var(--theme-color3, #218fd1),
            var(--theme-color1, #1e6832));
    background-size: 200% 100%;
    animation: adm-bar-sweep 4s linear infinite;
}

@keyframes adm-bar-sweep {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}


/* -------------------------------------------------------
   INTRO
------------------------------------------------------- */
.adm-intro {
    text-align: center;
    margin-bottom: 52px;
}

.adm-intro .title span {
    background-image: var(--gradient-1);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-family-style3);
    display: inline-block;
    animation: titleTextShine 5s ease-in-out infinite;
}

.adm-intro-text {
    max-width: 640px;
    margin: 14px auto 0;
    color: #666;
    font-size: 15px;
    line-height: 1.75;
}


/* -------------------------------------------------------
   TWO-COLUMN LAYOUT
------------------------------------------------------- */
.adm-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    /* required for sticky to work */
}

/* Sticky sidebar — stays in view while the left list scrolls,
   then scrolls normally once the left column ends */
.adm-sidebar {
    position: sticky;
    top: 100px;
    /* clears the sticky header height */
}

@media (max-width: 1100px) {
    .adm-layout {
        grid-template-columns: 1fr;
    }

    /* Disable sticky on single-column layout */
    .adm-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}


/* -------------------------------------------------------
   COUNT BAR
------------------------------------------------------- */
.adm-count-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 53, 84, 0.07);
    border-left: 4px solid var(--theme-color1, #1e6832);
}

.adm-count-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-color2, #003554);
    line-height: 1;
}

.adm-count-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    flex: 1;
}

.adm-count-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color1, #1e6832);
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e8f5ec;
    padding: 4px 12px;
    border-radius: 20px;
}


/* -------------------------------------------------------
   NOTICE LIST
------------------------------------------------------- */
.adm-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* -------------------------------------------------------
   NOTICE ITEM
------------------------------------------------------- */
.adm-item {
    position: relative;
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    border: 1px solid #eef0f4;
}

.adm-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 44px rgba(0, 53, 84, 0.13);
}

/* "New" highlight */
.adm-item-latest {
    border-color: var(--theme-color1, #1e6832);
    border-left: 4px solid var(--theme-color1, #1e6832);
}

/* Hover shimmer */
.adm-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.adm-item:hover::after {
    transform: translateX(100%);
}

/* Date badge column */
.adm-date-badge {
    flex-shrink: 0;
    width: 72px;
    background: var(--theme-color2, #003554);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 8px;
    gap: 2px;
    transition: background 0.3s;
}

.adm-item:hover .adm-date-badge {
    background: var(--theme-color1, #1e6832);
}

.adm-item-latest .adm-date-badge {
    background: var(--theme-color1, #1e6832);
}

.adm-badge-day {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.adm-badge-mon {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adm-badge-year {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.4px;
}

/* Body */
.adm-item-body {
    flex: 1;
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.adm-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adm-new-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 14px 2px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
    color: #fff;
    background: linear-gradient(90deg, #218fd1 0%, rgb(30 104 50) 50%, #218fd1 100%);
    background-size: 200% 100%;
    animation: adm-badge-shine 2.5s linear infinite, adm-badge-bounce 2s ease-in-out infinite;
    overflow: hidden;
    cursor: default;
    z-index: 0;
}

/* Gradient shimmer sweep */
@keyframes adm-badge-shine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Subtle bounce */
@keyframes adm-badge-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-3px) scale(1.05);
    }

    60% {
        transform: translateY(-1px) scale(1.02);
    }
}

/* Expanding pulse rings */
.adm-new-badge-ring {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(39, 174, 96, 0.7);
    animation: adm-ring-expand 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

.adm-new-badge-ring-2 {
    animation-delay: 1s;
}

@keyframes adm-ring-expand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Lightning bolt icon */
.adm-new-badge i {
    font-size: 11px;
    color: #fff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 180, 0.9));
    animation: adm-bolt-flash 1.5s ease-in-out infinite;
}

@keyframes adm-bolt-flash {

    0%,
    80%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(255, 255, 180, 0.9));
    }

    40% {
        opacity: 0.5;
        filter: drop-shadow(0 0 8px rgba(255, 255, 0, 1));
    }
}

/* Badge text */
.adm-new-badge-text {
    position: relative;
    z-index: 1;
}

/* White gloss sweep across the badge */
.adm-new-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%);
    animation: adm-gloss-sweep 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes adm-gloss-sweep {
    0% {
        left: -60%;
    }

    60% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

@keyframes adm-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(30, 104, 50, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(30, 104, 50, 0);
    }
}

.adm-meta-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.adm-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2340;
    margin: 0;
    line-height: 1.4;
}

.adm-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.adm-item-title a:hover {
    color: var(--theme-color1, #1e6832);
}

.adm-item-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-color1, #1e6832);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s;
}

.adm-read-more:hover {
    gap: 10px;
    color: var(--theme-color2, #003554);
}

/* Ghost index number */
.adm-item-index {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-size: 42px;
    font-weight: 900;
    color: rgba(0, 53, 84, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.3s;
}

.adm-item:hover .adm-item-index {
    color: rgba(0, 53, 84, 0.09);
}


/* -------------------------------------------------------
   EMPTY STATE
------------------------------------------------------- */
.adm-empty {
    text-align: center;
    padding: 60px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
}

.adm-empty-icon {
    font-size: 52px;
    color: #ddd;
    margin-bottom: 18px;
}

.adm-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 10px;
}

.adm-empty p {
    font-size: 14px;
    color: #888;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.7;
}


/* Sidebar inner spacing */
.adm-sidebar>*+* {
    margin-top: 24px;
}

/* Info card */
.adm-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 53, 84, 0.08);
    overflow: hidden;
}

.adm-info-card-header {
    background: var(--theme-color2, #003554);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-info-card-header i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
}

.adm-info-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.adm-info-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.adm-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 22px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
}

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

.adm-info-list li:hover {
    background: #f8f9fb;
}

.adm-info-list li>i {
    font-size: 16px;
    color: var(--theme-color1, #1e6832);
    flex-shrink: 0;
    margin-top: 2px;
}

.adm-info-list li strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: black;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.4px; */
    margin-bottom: 2px;
}

.adm-info-list li span {
    font-size: 14px;
    color: #000000cf;
    font-weight: 400;
    line-height: 1.4;
}

/* CTA card */
.adm-cta-card {
    background: var(--theme-color1, #1e6832);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(30, 104, 50, 0.25);
}

.adm-cta-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    display: block;
    animation: adm-float-icon 3s ease-in-out infinite;
}

@keyframes adm-float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.adm-cta-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.adm-cta-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 20px;
}

.adm-cta-card .theme-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff !important;
    color: var(--theme-color1, #1e6832) !important;
    border: none;
}

.adm-cta-card .theme-btn:hover {
    background: var(--theme-color2, #003554) !important;
    color: #fff !important;
}

/* Contact card */
.adm-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
    border-top: 3px solid var(--theme-color3, #218fd1);
}

.adm-contact-card h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a2340;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-contact-card h5 i {
    color: var(--theme-color3, #218fd1);
}

.adm-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
    transition: color 0.2s, gap 0.2s;
}

.adm-contact-link:last-of-type {
    border-bottom: none;
}

.adm-contact-link i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f0f8f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--theme-color1, #1e6832);
    flex-shrink: 0;
    transition: background 0.2s;
}

.adm-contact-link:hover {
    color: var(--theme-color1, #1e6832);
    gap: 14px;
}

.adm-contact-link:hover i {
    background: var(--theme-color1, #1e6832);
    color: #fff;
}

.adm-contact-hours {
    font-size: 12px;
    color: #aaa;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 768px) {
    .adm-section {
        padding: 55px 20px 65px;
    }

    .adm-item-body {
        padding: 16px 18px 18px;
    }

    .adm-date-badge {
        width: 60px;
    }

    .adm-badge-day {
        font-size: 22px;
    }

    .adm-item-title {
        font-size: 15px;
    }

    .adm-count-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .adm-item {
        flex-direction: column;
    }

    .adm-date-badge {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
    }

    .adm-badge-year {
        display: none;
    }
}


/* =============================================================
   ADMISSION DETAIL PAGE
============================================================= */

.adm-detail-page {
    padding: 70px 0 100px;
    background: #f8f9fb;
}

/* Two-column layout */
.adm-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* Sticky sidebar */
.adm-detail-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1100px) {
    .adm-detail-layout {
        grid-template-columns: 1fr;
    }

    .adm-detail-sidebar {
        position: static;
    }
}

/* ── Header ─────────────────────────────────────────────── */
.adm-detail-header {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
    border-top: 4px solid var(--theme-color1, #1e6832);
}

.adm-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.adm-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background: var(--theme-color2, #003554);
    padding: 4px 12px;
    border-radius: 20px;
}

.adm-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.adm-detail-expiry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.adm-expiry-open {
    background: #e8f5ec;
    color: var(--theme-color1, #1e6832);
}

.adm-expiry-closed {
    background: #fde8e8;
    color: #c0392b;
}

.adm-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a2340;
    line-height: 1.35;
    margin: 0 0 24px;
}

.adm-detail-divider {
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg,
            var(--theme-color1, #1e6832),
            var(--theme-color3, #218fd1),
            transparent);
}

/* ── Body content ───────────────────────────────────────── */
.adm-detail-body {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
    margin-bottom: 24px;
    font-size: 15px;
    color: #444;
    line-height: 1.85;
}

/* WordPress content styles */
.adm-detail-body h2,
.adm-detail-body h3,
.adm-detail-body h4 {
    color: #1a2340;
    margin: 28px 0 12px;
    font-weight: 700;
}

.adm-detail-body h2 {
    font-size: 22px;
}

.adm-detail-body h3 {
    font-size: 19px;
}

.adm-detail-body h4 {
    font-size: 16px;
}

.adm-detail-body p {
    margin-bottom: 16px;
}

.adm-detail-body ul,
.adm-detail-body ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.adm-detail-body li {
    margin-bottom: 6px;
}

.adm-detail-body a {
    color: var(--theme-color1, #1e6832);
    text-decoration: underline;
}

.adm-detail-body a:hover {
    color: var(--theme-color2, #003554);
}

.adm-detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.adm-detail-body table th,
.adm-detail-body table td {
    border: 1px solid #e0e4ea;
    padding: 10px 14px;
    text-align: left;
}

.adm-detail-body table th {
    background: var(--theme-color2, #003554);
    color: #fff;
    font-weight: 700;
}

.adm-detail-body table tr:nth-child(even) td {
    background: #f8f9fb;
}

.adm-detail-body blockquote {
    border-left: 4px solid var(--theme-color1, #1e6832);
    padding: 14px 20px;
    background: #f0f8f2;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.adm-detail-body img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

/* ── Navigation ─────────────────────────────────────────── */
.adm-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 4px 20px rgba(0, 53, 84, 0.07);
}

.adm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-color2, #003554);
    text-decoration: none;
    padding: 9px 18px;
    border: 2px solid #dde2ea;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.adm-back-btn:hover {
    background: var(--theme-color2, #003554);
    border-color: var(--theme-color2, #003554);
    color: #fff;
}

.adm-post-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.adm-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    max-width: 200px;
    background: #f8f9fb;
    transition: background 0.2s, color 0.2s;
}

.adm-nav-link:hover {
    background: var(--theme-color1, #1e6832);
    color: #fff;
    border-color: var(--theme-color1, #1e6832);
}

.adm-nav-link small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.adm-nav-link span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

/* ── Status card ────────────────────────────────────────── */
.adm-detail-status-card {
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 53, 84, 0.1);
}

.adm-status-open {
    background: #e8f5ec;
    border: 1px solid #b2dfbb;
}

.adm-status-closed {
    background: #fde8e8;
    border: 1px solid #f5c0c0;
}

.adm-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.adm-status-open .adm-status-icon {
    background: #1e6832;
    color: #fff;
}

.adm-status-closed .adm-status-icon {
    background: #c0392b;
    color: #fff;
}

.adm-status-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adm-status-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #1a2340;
}

.adm-status-text span {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .adm-detail-page {
        padding: 50px 0 60px;
    }

    .adm-detail-header,
    .adm-detail-body {
        padding: 24px 20px;
    }

    .adm-detail-title {
        font-size: 22px;
    }

    .adm-detail-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .adm-section {
        padding: 55px 20px 65px;
    }
}