
/* ==========================================================
   KABALE UNIVERSITY | SINGLE ANNOUNCEMENT
   Clean Institutional Editorial Design
   ========================================================== */

.kab-ann {
    --kab-blue: #0072BC;
    --kab-blue-dark: #005A94;
    --kab-green: #038B45;
    --kab-yellow: #FAED25;
    --kab-text: #303B45;
    --kab-muted: #6E7B85;
    --kab-border: #E3EAF0;
    --kab-surface: #F6F9FB;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--kab-text);
    background: #FFFFFF;
}

.kab-ann *,
.kab-ann *::before,
.kab-ann *::after {
    box-sizing: border-box;
}

.kab-ann-container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

/* MAIN PAGE LAYOUT */

.kab-ann-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
    padding: 42px 0 65px;
}

.kab-ann-article {
    min-width: 0;
}

.kab-ann-sidebar {
    min-width: 0;
    position: sticky;
    top: 35px;
}

/* TYPOGRAPHY */

.kab-ann h1,
.kab-ann h2,
.kab-ann h3,
.kab-ann h4,
.kab-ann h5,
.kab-ann h6 {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px;
}

.kab-ann p,
.kab-ann li,
.kab-ann a,
.kab-ann span,
.kab-ann time,
.kab-ann button {
    font-family: 'Poppins', sans-serif;
}

.kab-ann-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--kab-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.kab-ann-label-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kab-green);
}

/* ARTICLE HEADER */

.kab-ann-article-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 27px;
    padding: 0 0 19px;
    border-bottom: 1px solid var(--kab-border);
}

.kab-ann-intro {
    margin: 5px 0 0 !important;
    color: var(--kab-muted);
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6;
}

.kab-ann-article-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--kab-muted);
    font-size: 11px;
    white-space: nowrap;
}

.kab-ann-article-date svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--kab-blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* MAIN POST CONTENT */

.kab-ann-content {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    color: #35414B;
    overflow-wrap: anywhere;
}

.kab-ann-content p {
    margin: 0 0 19px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    text-align: left;
}

.kab-ann-content h2 {
    margin: 29px 0 13px !important;
    color: var(--kab-blue-dark);
    font-size: 23px !important;
}

.kab-ann-content h3 {
    margin: 25px 0 11px !important;
    color: var(--kab-blue-dark);
    font-size: 19px !important;
}

.kab-ann-content h4 {
    margin: 21px 0 9px !important;
    color: var(--kab-text);
    font-size: 17px !important;
}

.kab-ann-content strong,
.kab-ann-content b {
    font-weight: 700;
}

.kab-ann-content a {
    color: var(--kab-blue);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.kab-ann-content a:hover {
    color: var(--kab-green);
}

.kab-ann-content ul,
.kab-ann-content ol {
    margin: 0 0 20px;
    padding-left: 25px;
}

.kab-ann-content li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.kab-ann-content img,
.kab-ann-content video,
.kab-ann-content iframe {
    max-width: 100%;
}

.kab-ann-content img {
    height: auto;
    border-radius: 4px;
}

.kab-ann-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 22px 0;
}

.kab-ann-content th,
.kab-ann-content td {
    padding: 11px 14px;
    border: 1px solid var(--kab-border);
    text-align: left;
    font-size: 13px;
}

.kab-ann-content th {
    background: #EFF6FA;
    color: var(--kab-blue-dark);
    font-weight: 600;
}

.kab-ann-content blockquote {
    margin: 24px 0;
    padding: 16px 21px;
    background: var(--kab-surface);
    border-left: 3px solid var(--kab-green);
    color: #42515D;
}

/* SECTION HEADINGS */

.kab-ann-section-heading {
    margin-bottom: 17px;
}

.kab-ann-section-heading h2 {
    margin: 5px 0 0 !important;
    color: #26343E !important;
    font-size: 23px !important;
    font-weight: 700 !important;
}

/* SIDEBAR INFORMATION CARD */

.kab-ann-info-card {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--kab-border);
    border-radius: 7px;
    box-shadow: 0 5px 22px rgba(0, 42, 75, .04);
}

.kab-ann-info-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 20px;
    background: var(--kab-blue);
    color: #FFFFFF;
}

.kab-ann-info-heading h2 {
    margin: 0 !important;
    color: #FFFFFF !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

.kab-ann-info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.kab-ann-info-body {
    padding: 3px 21px;
}

.kab-ann-info-group {
    padding: 17px 0;
    border-bottom: 1px solid var(--kab-border);
}

.kab-ann-info-group:last-child {
    border-bottom: none;
}

.kab-ann-info-label {
    display: block;
    margin-bottom: 9px;
    color: #7A8792;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .8px;
}

.kab-ann-info-group > time,
.kab-ann-info-group > span:not(.kab-ann-info-label) {
    font-size: 12px;
    font-weight: 400;
    color: var(--kab-text);
}

.kab-ann-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kab-ann-tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.kab-ann-tag-blue {
    color: #0066A3;
    background: #EAF4FB;
}

.kab-ann-tag-green {
    color: #087A40;
    background: #EAF6EE;
}

.kab-ann-attachment-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1.6;
}

.kab-ann-status-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    background: var(--kab-green);
    border-radius: 50%;
}

.kab-ann-info-footer {
    padding: 16px 21px;
    background: var(--kab-surface);
    border-top: 1px solid var(--kab-border);
}

.kab-ann-info-footer a {
    color: var(--kab-blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.kab-ann-info-footer a:hover {
    color: var(--kab-green);
}

/* UNIVERSITY UPDATES SIDEBAR */

.kab-ann-help-card {
    margin-top: 20px;
    padding: 23px;
    background: #F5F9FC;
    border: 1px solid #E8EEF2;
    border-top: 3px solid var(--kab-yellow);
    border-radius: 5px;
}

.kab-ann-help-card h3 {
    margin: 5px 0 10px !important;
    color: var(--kab-blue-dark) !important;
    font-size: 20px !important;
}

.kab-ann-help-card p {
    margin: 0 0 16px;
    color: var(--kab-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
}

.kab-ann-help-card a {
    color: var(--kab-blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.kab-ann-help-card a:hover {
    color: var(--kab-green);
}

/* OFFICIAL DOCUMENT */

.kab-ann-document {
    margin-top: 37px;
}

.kab-ann-document-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    background: #F7FAFC;
    border: 1px solid #DCE8EF;
    border-left: 3px solid var(--kab-blue);
    border-radius: 5px;
}

.kab-ann-document-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 52px;
    background: #E8F3FA;
    color: var(--kab-blue);
    border-radius: 4px;
}

.kab-ann-document-icon svg {
    width: 25px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.kab-ann-document-info {
    flex: 1;
    min-width: 0;
}

.kab-ann-document-info h3 {
    margin: 0 0 6px !important;
    color: #2C3740 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere;
}

.kab-ann-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--kab-muted);
    font-size: 11px;
}

.kab-ann-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kab-ann-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.kab-ann-btn-primary {
    background: var(--kab-blue);
    color: #FFFFFF !important;
}

.kab-ann-btn-primary:hover {
    background: var(--kab-blue-dark);
}

.kab-ann-btn-outline {
    background: #FFFFFF;
    color: var(--kab-blue) !important;
    border: 1px solid #C7DCE9;
}

.kab-ann-btn-outline:hover {
    background: #EAF4FA;
}

/* SHARING */

.kab-ann-share {
    margin-top: 36px;
    padding: 26px 0;
    border-top: 1px solid var(--kab-border);
    border-bottom: 1px solid var(--kab-border);
}

.kab-ann-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.kab-ann-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    background: #FFFFFF;
    color: var(--kab-blue);
    border: 1px solid #DCE5EB;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.kab-ann-share-btn:hover {
    background: var(--kab-blue);
    color: #FFFFFF;
    border-color: var(--kab-blue);
}

.kab-ann-copy-status {
    display: block;
    margin-top: 8px;
    color: var(--kab-green);
    font-size: 11px;
}

/* RELATED ANNOUNCEMENTS */

.kab-ann-related {
    margin-top: 41px;
}

.kab-ann-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 19px;
}

.kab-ann-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 19px 17px;
    border: 1px solid var(--kab-border);
    border-top: 2px solid var(--kab-blue);
    border-radius: 5px;
    background: #FFFFFF;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.kab-ann-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 42, 75, .07);
}

.kab-ann-related-card time {
    color: var(--kab-muted);
    font-size: 10px;
}

.kab-ann-related-card h3 {
    margin: 11px 0 20px !important;
    color: #26333E !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.kab-ann-related-card > span {
    margin-top: auto;
    color: var(--kab-blue);
    font-size: 11px;
    font-weight: 600;
}

/* COMMENTS */

.kab-ann-comments {
    margin-top: 37px;
    padding-top: 25px;
    border-top: 1px solid var(--kab-border);
}

.kab-ann-comments textarea,
.kab-ann-comments input:not([type="submit"]) {
    max-width: 100%;
    border: 1px solid var(--kab-border);
    border-radius: 4px;
}

.kab-ann-not-found {
    padding-top: 65px;
    padding-bottom: 65px;
}

/* ACCESSIBILITY */

.kab-ann a:focus-visible,
.kab-ann button:focus-visible {
    outline: 3px solid var(--kab-yellow);
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1024px) {
    .kab-ann-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 28px;
    }

    .kab-ann-document-card {
        flex-wrap: wrap;
    }

    .kab-ann-document-actions {
        width: 100%;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .kab-ann-container {
        width: calc(100% - 30px);
    }

    .kab-ann-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 30px;
        padding-bottom: 45px;
    }

    .kab-ann-sidebar {
        position: static;
    }

    .kab-ann-article-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .kab-ann-document-card {
        align-items: flex-start;
    }

    .kab-ann-document-actions {
        flex-direction: column;
    }

    .kab-ann-document-actions .kab-ann-btn {
        width: 100%;
    }

    .kab-ann-related-grid {
        grid-template-columns: 1fr;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .kab-ann *,
    .kab-ann *::before,
    .kab-ann *::after {
        transition: none !important;
    }
}

/* PRINT */

@media print {
    .kab-ann-sidebar,
    .kab-ann-share,
    .kab-ann-related,
    .kab-ann-comments,
    .kab-ann-document-actions {
        display: none !important;
    }

    .kab-ann-layout {
        display: block;
        padding: 0;
    }

    .kab-ann-container {
        width: 100%;
    }

    .kab-ann-content {
        color: #000;
    }

    .kab-ann-content a {
        color: #000;
    }
}
