/* Phase 2 — inline hover/style replacements (design-freeze: same appearance) */

/* Header badges */
.iso-badge {
    cursor: pointer;
    transition: all 0.3s;
}

.iso-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-actions-link {
    text-decoration: none;
    display: inline-block;
}

.iso-badge--login {
    color: var(--primary-red);
    background: #ffebee;
}

/* Top bar */
.top-info-link {
    color: inherit;
    text-decoration: none;
}

.top-info-gap {
    margin-left: 15px;
}

/* Home page CTAs */
.btn-mission-courses {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    border: 2px solid var(--primary-red);
}

.btn-mission-courses:hover {
    background: var(--accent-red);
}

.btn-partner-affiliation {
    background: var(--footer-black);
    border: 2px solid var(--footer-black);
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-partner-affiliation:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.text-primary-red {
    color: var(--primary-red);
}

/* courses.html table */
.courses-table-fullbleed {
    overflow-x: auto;
}

#coursesListTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#coursesListTable .courses-table-head {
    background-color: var(--primary-red);
    color: white;
}

#coursesListTable .courses-th {
    padding: 10px 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

#coursesListTable .courses-th-center {
    text-align: center;
}

#coursesListTable .courses-th-left {
    text-align: left;
}

#coursesListTable .courses-row-even {
    background-color: #fff;
}

#coursesListTable .courses-row-odd {
    background-color: #f9f9f9;
}

#coursesListTable .courses-td {
    padding: 8px 6px;
    border: 1px solid #ddd;
    font-size: 13px;
}

#coursesListTable .courses-td-center {
    text-align: center;
}

/* Course table action links — desktop colors (Know more = solid red, Notes = outline) */
#coursesListTable tbody td:last-child,
#coursesListTable .courses-td-center:last-child {
    white-space: nowrap;
    vertical-align: middle;
}

.btn-know-more {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-red, #c62828);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid var(--primary-red, #c62828);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: middle;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.btn-know-more:hover,
.btn-know-more:focus-visible {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff !important;
}

.btn-course-notes {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 10px;
    background: #fff !important;
    color: var(--primary-red, #c62828) !important;
    border: 1px solid var(--primary-red, #c62828);
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: middle;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.btn-course-notes:hover,
.btn-course-notes:focus-visible {
    background: var(--primary-red, #c62828) !important;
    color: #fff !important;
}

.btn-know-more + .btn-course-notes {
    margin-left: 8px;
}

/* cmsed share links */
.share-link {
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.share-link:hover {
    transform: scale(1.2);
}

.share-link--facebook { color: #1877f2; }
.share-link--twitter { color: #1da1f2; }
.share-link--whatsapp { color: #25d366; }
.share-link--linkedin { color: #0077b5; }
.share-link--telegram { color: #0088cc; }
.share-link--email { color: var(--primary-red); }

.icon-primary-red {
    color: var(--primary-red);
}

.icon-mr-8 {
    margin-right: 8px;
}

/* index.html home sections */
.home-sidebar-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    width: 100%;
    padding: 20px 5% 0;
    max-width: 1500px;
    margin: 0 auto;
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-sidebar-layout .content-area {
    flex: 1;
    min-width: 0;
}

.home-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.home-notice-alert {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid var(--primary-red);
}

.home-notice-alert--mt16 { margin-top: 16px; }
.home-notice-alert--mt20 { margin-top: 20px; }

.home-section-heading { font-size: 22px; }

.home-subheading-red {
    margin-bottom: 12px;
    color: var(--primary-red);
    font-size: 18px;
}

.home-news-actions {
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-news-btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.home-news-btn--primary { background: var(--primary-red); }
.home-news-btn--secondary { background: #2c3e50; }

.home-stat-box {
    flex: 1;
    min-width: 200px;
    background: var(--primary-red);
    color: white;
    padding: 35px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-red) 30%, transparent);
    transition: all 0.3s ease;
    cursor: default;
}

.home-stat-counter {
    color: white;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.home-stat-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.home-quick-link-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(36, 36, 36, 0.9);
    padding: 15px;
    text-align: center;
}

.home-quick-link-title {
    color: white;
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
