:root {
    --primary-blue: #1a4b8c;
    --secondary-blue: #2c6aa0;
    --light-blue: #e8f1f5;
    --accent-yellow: #ffc107;
    --dark-yellow: #e6a800;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1 0 auto;
}

.bg-blue { background-color: var(--primary-blue); }
.bg-light-blue { background-color: var(--light-blue); }
.text-blue { color: var(--primary-blue); }

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}
.btn-accent {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #333;
}
.btn-accent:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
}
.btn-outline-blue {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-outline-blue:hover {
    background-color: var(--primary-blue);
    color: white;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(rgba(26, 75, 140, 0.8), rgba(26, 75, 140, 0.8)), url("../img/hero.e0cf44847f8e.jpg");
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
}

.card-webinar, .team-card, .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card-webinar:hover, .team-card:hover {
    transform: translateY(-5px);
}
.card-webinar .card-header {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

/* --- THIS IS THE FIX --- */
.team-img {
    width: 100%;
    height: 350px; /* Set a fixed height */
    object-fit: cover; /* This prevents stretching */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
/* --- END FIX --- */


.social-icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--accent-yellow);
}

footer {
    flex-shrink: 0;
}

.objective-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    counter-reset: item;
    max-height: 300px;
    overflow-y: auto;
}
.objective-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    counter-increment: item;
    line-height: 1.6;
    text-align: left;
}
.objective-list li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-blue);
    width: 1.8rem;
    text-align: right;
    font-size: 1rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--light-blue);
    padding: 0.75rem;
    min-height: 46px;
}

select.form-control,
.form-control select,
select {
    min-height: 46px;
    padding: 0.65rem 2.25rem 0.65rem 0.85rem;
    line-height: 1.4;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.alert {
    border-radius: 10px;
}

.media-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.detail-banner {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    color: #ffffff;
    background: linear-gradient(135deg, #1a4b8c, #28736b);
    border-radius: 8px 8px 0 0;
    text-align: center;
    overflow: hidden;
}

.media-placeholder.detail-banner {
    height: 300px;
    border-radius: 8px;
}

.media-placeholder i {
    margin-bottom: 0.55rem;
    font-size: 2.2rem;
}

.media-placeholder span {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.media-placeholder-webinar {
    background: linear-gradient(135deg, #164370, #2a746f);
}

.media-placeholder-conference {
    background: linear-gradient(135deg, #14395d, #8c6f1a);
}

.media-placeholder-post {
    background: linear-gradient(135deg, #2f4f68, #7a3f58);
}

.media-placeholder-project {
    background: linear-gradient(135deg, #205c4f, #1a4b8c);
}

.system-message-dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 58, 0.24);
}

.system-message-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
    color: #243441;
    background: #f4f8fb;
    border: 1px solid #dbe8ef;
    border-radius: 8px;
}

.system-message-item:last-child {
    margin-bottom: 0;
}

.system-message-item i {
    margin-top: 0.15rem;
    color: var(--primary-blue);
}

.system-message-item.message-success {
    background: #eef9f2;
    border-color: #bfe6cc;
}

.system-message-item.message-success i {
    color: #1d7f4d;
}

.system-message-item.message-warning {
    background: #fff8e5;
    border-color: #f1d58b;
}

.system-message-item.message-warning i {
    color: #b88312;
}

.system-message-item.message-error,
.system-message-item.message-danger {
    background: #fff0ef;
    border-color: #f2c4bf;
}

.system-message-item.message-error i,
.system-message-item.message-danger i {
    color: #b44436;
}

.search-modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 58, 0.24);
}

.search-input-wrap {
    position: relative;
    margin-top: 0.45rem;
}

.search-input-wrap i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    color: #667585;
    transform: translateY(-50%);
    z-index: 2;
}

.search-input-wrap .form-control {
    padding-left: 2.55rem;
    min-height: 52px;
    border-radius: 8px;
}

#search-results {
    min-height: 360px;
    max-height: 70vh;
    overflow-y: auto;
}

.search-empty {
    display: grid;
    place-items: center;
    min-height: 300px;
    color: #667585;
    text-align: center;
}

.search-empty i {
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-size: 2rem;
}

.search-result-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: 8px !important;
    margin-bottom: 0.65rem;
}

.search-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: var(--primary-blue);
    border-radius: 8px;
}

.carousel-item {
    padding: 4rem 0;
    color: white;
    text-align: center;
    min-height: 300px;
    transition: opacity 0.5s ease;
}
.carousel-caption {
    position: static;
    padding: 0;
}
.carousel-control-prev, .carousel-control-next {
    width: 8%;
    background: transparent;
    opacity: 0.7;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    width: 40px;
    height: 40px;
    line-height: 40px;
}
.carousel-control-prev-icon::before {
    font-family: 'Font Awesome 5 Free';
    content: '\f053';
    font-weight: 900;
}
.carousel-control-next-icon::before {
    font-family: 'Font Awesome 5 Free';
    content: '\f054';
    font-weight: 900;
}
.carousel-indicators {
    bottom: 1rem;
}
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-blue);
    border: 2px solid var(--accent-yellow);
    margin: 0 6px;
}
.carousel-indicators .active {
    background-color: var(--accent-yellow);
    border-color: var(--primary-blue);
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.btn.is-loading,
button.is-loading,
a.is-loading {
    pointer-events: none;
    opacity: 0.82;
}

.btn .btn-spinner {
    margin-right: 0.45rem;
    vertical-align: -0.12em;
}

.btn-loading-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus, button:focus, .btn:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* --- Shared Navigation & Footer --- */
.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 8px 28px rgba(24, 39, 56, 0.08);
    backdrop-filter: blur(12px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: #1f2f3d !important;
}

.site-brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
}

.site-brand span {
    display: grid;
    line-height: 1.1;
}

.site-brand strong {
    font-size: 1rem;
    font-weight: 900;
}

.site-brand small {
    color: #657382;
    font-size: 0.72rem;
    font-weight: 700;
}

.site-navbar .nav-link {
    position: relative;
    color: #344554 !important;
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0 0.15rem;
    padding: 0.7rem 0.6rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-item.active .nav-link {
    color: var(--primary-blue) !important;
}

.site-navbar .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.35rem;
    height: 3px;
    background: #d9a625;
    border-radius: 999px;
}

.site-navbar .dropdown-menu {
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(24, 39, 56, 0.14);
}

.site-navbar .dropdown-item {
    color: #344554;
    font-weight: 700;
}

.site-navbar .dropdown-item:hover {
    color: var(--primary-blue);
    background: #f3f8fb;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 36px;
    min-height: 36px;
    padding: 0 0.75rem;
    color: var(--primary-blue);
    background: #eef6fb;
    border: 1px solid #d8e8f0;
    border-radius: 999px;
    font-weight: 800;
}

.nav-icon-btn:hover {
    color: #ffffff;
    background: var(--primary-blue);
}

.nav-icon-btn span {
    font-size: 0.86rem;
}

.nav-cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    font-weight: 800;
}

.site-footer {
    padding: 4rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    background: #102f4f;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.footer-logo:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-logo img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
}

.footer-brand p {
    max-width: 360px;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.footer-social a:hover {
    color: #102f4f;
    background: #d9a625;
    text-decoration: none;
}

.footer-links h2,
.footer-contact h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.footer-links a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #d9a625;
    text-decoration: none;
}

.footer-contact span {
    display: flex;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.76);
}

.footer-contact i {
    color: #d9a625;
    margin-top: 0.2rem;
}

.footer-contact .btn {
    justify-self: start;
    margin-top: 0.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 991px) {
    .site-navbar .navbar-collapse {
        padding: 1rem 0;
    }
    .site-navbar .nav-link {
        padding: 0.75rem 0 !important;
    }
    .site-navbar .nav-item.active .nav-link::after {
        left: 0;
        right: auto;
        width: 42px;
    }
    .nav-search {
        margin: 0.75rem 0;
    }
    .nav-cta {
        width: 100%;
        margin: 0.25rem 0;
    }
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .site-brand small {
        display: none;
    }
    .site-brand strong {
        font-size: 0.95rem;
    }
    .footer-main,
    .footer-bottom {
        grid-template-columns: 1fr;
    }
    .footer-main {
        display: grid;
    }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* --- End Shared Navigation & Footer --- */

/* Dynamic column sizing for webinars/events and notices */
.webinar-event-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.webinar-event-column {
    flex: 1;
    min-width: 0;
}
.notice-column {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
}
@media (max-width: 991px) {
    .webinar-event-column, .notice-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --- New Webinar Grid --- */
.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.webinar-grid .card-webinar {
    height: 100%;
}
.webinar-grid .card-body.d-flex {
    display: flex;
    flex-direction: column;
}
.webinar-grid .card-body .list-unstyled {
    margin-top: auto;
}
/* --- End New Webinar Grid --- */

/* --- New Button Styles --- */
.btn-warning {
    color: #212529;
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}
.btn-warning:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
}
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
/* --- End New Button Styles --- */

/* --- Dashboard Revamp --- */
.dashboard-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(22, 67, 112, 0.96), rgba(31, 92, 120, 0.94)),
        url("../img/hero.e0cf44847f8e.jpg") center/cover;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 35, 55, 0.16);
}

.participant-hero {
    background:
        linear-gradient(135deg, rgba(21, 83, 88, 0.96), rgba(36, 108, 89, 0.94)),
        url("../img/hero.e0cf44847f8e.jpg") center/cover;
}

.dashboard-hero h1 {
    margin: 0.35rem 0 0.5rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.dashboard-kicker {
    display: block;
    color: #d9a625;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    min-width: 220px;
}

.dashboard-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    color: #14395d;
    background: #ffffff;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
}

.dashboard-role-pill.dark {
    color: #ffffff;
    background: var(--primary-blue);
}

.dashboard-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.dashboard-alert strong,
.dashboard-alert span {
    display: block;
}

.dashboard-alert span {
    color: #5e6c7a;
}

.dashboard-alert-warning {
    background: #fff8e5;
    border-color: #f1d58b;
}

.dashboard-alert-info {
    background: #eaf6fb;
    border-color: #b8ddea;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-card,
.dashboard-card,
.learning-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 39, 56, 0.08);
}

.metric-card {
    padding: 1rem;
}

.metric-card span,
.metric-card small,
.dashboard-muted,
.learning-card p,
.profile-card p {
    color: #667585;
}

.metric-card span {
    font-weight: 700;
    font-size: 0.86rem;
}

.metric-card strong {
    display: block;
    margin: 0.3rem 0;
    color: #1f2f3d;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 1rem;
}

.participant-layout {
    grid-template-columns: 330px minmax(0, 1fr);
}

.revenue-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
    padding: 1.25rem;
}

.analytics-bars {
    display: grid;
    gap: 0.9rem;
}

.analytics-bar-row > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    color: #344554;
    font-size: 0.9rem;
    font-weight: 800;
}

.analytics-bar-row strong {
    color: var(--primary-blue);
}

.analytics-bar-track {
    height: 10px;
    overflow: hidden;
    background: #eaf0f5;
    border-radius: 999px;
}

.analytics-bar-track span {
    display: block;
    min-width: 4px;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #2a746f);
    border-radius: inherit;
}

.analytics-highlight {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.9rem;
    background: #f3f8fb;
    border: 1px solid #dce9f0;
    border-radius: 8px;
}

.analytics-highlight strong {
    color: var(--primary-blue);
    font-size: 2rem;
    line-height: 1;
}

.analytics-highlight span {
    color: #667585;
    font-weight: 700;
}

.analytics-feed {
    display: grid;
    gap: 0.75rem;
}

.analytics-feed-item {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.25rem 0.75rem;
    align-items: start;
    padding: 0.8rem;
    background: #fbfdff;
    border: 1px solid #e8eef4;
    border-radius: 8px;
}

.analytics-feed-item span {
    color: #667585;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.analytics-feed-item strong {
    justify-self: end;
    color: var(--primary-blue);
}

.analytics-feed-item small {
    grid-column: 1 / -1;
    color: #667585;
}

.action-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.card-heading h2 {
    margin: 0.2rem 0 0;
    color: #1f2f3d;
    font-size: 1.18rem;
    font-weight: 800;
}

.card-heading i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--primary-blue);
    background: #edf4f8;
    border-radius: 8px;
    font-size: 1.15rem;
}

.mini-stats {
    display: grid;
    gap: 0.45rem;
    margin: auto 0 1rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
}

.mini-stats span,
.link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mini-stats strong {
    color: var(--primary-blue);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.link-list {
    display: grid;
    gap: 0.65rem;
}

.link-list a {
    padding: 0.8rem;
    color: #22313f;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    text-decoration: none;
}

.link-list a:hover {
    color: var(--primary-blue);
    background: #eef6fb;
}

.link-list i {
    width: 22px;
    color: var(--primary-blue);
}

.link-list strong {
    color: #5c6b78;
    font-size: 0.82rem;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    background: #edf4f8;
    border-radius: 50%;
    font-size: 2.4rem;
}

.profile-card h2 {
    margin: 0;
    color: #1f2f3d;
    font-size: 1.15rem;
    font-weight: 800;
}

.profile-details {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    text-align: left;
}

.profile-details div {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.profile-details span {
    display: block;
    color: #758391;
    font-size: 0.78rem;
}

.profile-details strong {
    display: block;
    color: #243441;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.available-learning {
    min-height: 480px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.learning-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 1rem;
}

.learning-card h3 {
    margin: 0.35rem 0;
    color: #1f2f3d;
    font-size: 1rem;
    font-weight: 800;
}

.learning-date {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.82rem;
}

.learning-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: auto 0 1rem;
    color: #566675;
    font-size: 0.9rem;
}

.price {
    font-weight: 800;
}

.price.paid {
    color: #b44436;
}

.price.free {
    color: #1d7f4d;
    text-transform: uppercase;
}

.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.65rem;
    background: #ffffff;
    border: 1px solid #f0d999;
    border-radius: 8px;
}

.pending-item h6 {
    margin: 0 0 0.15rem;
    color: #1f2f3d;
    font-weight: 800;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    color: #667585;
}

.empty-state i {
    color: #2a9d67;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

@media (max-width: 1100px) {
    .dashboard-metrics,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-panels,
    .analytics-panels,
    .participant-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-shell {
        width: min(100% - 1rem, 1180px);
        margin-top: 1rem;
    }
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem;
    }
    .dashboard-hero h1 {
        font-size: 1.65rem;
    }
    .dashboard-hero-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }
    .dashboard-metrics,
    .dashboard-grid,
    .analytics-panels,
    .learning-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-alert,
    .pending-item {
        align-items: stretch;
        flex-direction: column;
    }
    .participant-profile-card {
        display: none;
    }
    .available-learning {
        min-height: 0;
    }
}
/* --- End Dashboard Revamp --- */

/* --- Homepage Revamp --- */
.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    align-items: end;
    min-height: 620px;
    padding: 7rem max(1rem, calc((100vw - 1180px) / 2)) 3rem;
    color: #ffffff;
    overflow: hidden;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 43, 77, 0.94), rgba(17, 75, 92, 0.72), rgba(12, 43, 77, 0.36)),
        url("../img/hero.e0cf44847f8e.jpg") center/cover;
    z-index: -1;
}

.home-hero-content {
    max-width: 820px;
}

.home-kicker {
    display: block;
    color: #d9a625;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.22rem;
}

.home-hero-actions,
.home-card-actions,
.home-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-hero-panel {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2f3d;
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.home-hero-panel > span {
    display: block;
    margin-bottom: 0.75rem;
    color: #607080;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e6ecf1;
}

.home-stat-row strong {
    color: var(--primary-blue);
    font-size: 1.8rem;
    line-height: 1;
}

.home-stat-row small {
    color: #657382;
    text-align: right;
}

.home-alert-strip {
    overflow: hidden;
    background: #143b63;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-alert-track {
    display: inline-flex;
    min-width: max-content;
    animation: ticker-scroll 55s linear infinite;
}

.home-alert-strip:hover .home-alert-track {
    animation-play-state: paused;
}

.home-alert-track a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.home-alert-track i,
.home-alert-track .ticker-cd {
    color: #d9a625;
}

.home-webinar-ticker {
    overflow: hidden;
    background: #f7fafc;
    border-bottom: 1px solid #e5eaf0;
}

.home-webinar-track {
    display: inline-flex;
    min-width: max-content;
    animation: ticker-scroll 46s linear infinite;
}

.home-webinar-ticker:hover .home-webinar-track {
    animation-play-state: paused;
}

.home-webinar-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.35rem;
    color: #2a3948;
    white-space: nowrap;
}

.home-webinar-ticker-item i {
    color: var(--primary-blue);
}

.home-webinar-ticker-item strong {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-webinar-ticker-item span {
    color: #657382;
}

.ticker-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.25rem 0.85rem;
    color: #1a2f44 !important;
    background: #d9a625;
    border: 1px solid #d9a625;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none !important;
}

.ticker-book-btn:hover {
    color: #ffffff !important;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-section {
    padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2));
}

.bg-soft {
    background: #f7fafc;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-section-head.compact {
    align-items: flex-start;
}

.home-section h2,
.home-contact h2 {
    margin: 0.25rem 0 0;
    color: #1f2f3d;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: 0;
}

.home-program-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.home-program-column h3 {
    margin: 0 0 0.8rem;
    color: #314151;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-event-card,
.home-notice-panel,
.home-content-card,
.home-empty,
.home-team-card,
.home-faq-item,
.home-contact-form {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 39, 56, 0.08);
}

.home-event-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.home-event-card.conference {
    border-top: 4px solid #d9a625;
}

.event-type {
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-event-card h4,
.home-notice-item h4,
.home-content-card h3,
.home-team-card h3 {
    margin: 0.35rem 0;
    color: #1f2f3d;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-event-card p,
.home-notice-item p,
.home-content-card p,
.home-empty p,
.home-about-copy p,
.home-contact p {
    color: #657382;
}

.event-meta {
    display: grid;
    gap: 0.35rem;
    margin: 0.85rem 0;
    color: #506170;
    font-size: 0.9rem;
}

.event-meta i {
    width: 22px;
    color: var(--primary-blue);
}

.home-notice-panel {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.home-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.home-notice-item {
    padding: 0.85rem 0;
    border-top: 1px solid #eef2f5;
}

.home-notice-item:first-of-type {
    border-top: 0;
}

.home-empty {
    padding: 1.25rem;
}

.home-empty.wide {
    grid-column: 1 / -1;
}

.home-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 2rem;
    align-items: center;
    background: #f7fafc;
}

.home-feature-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.home-feature-list span {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #314151;
    font-weight: 700;
}

.home-feature-list i {
    color: #2a9d67;
    margin-top: 0.2rem;
}

.home-about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(24, 39, 56, 0.16);
}

.home-impact {
    color: #ffffff;
    background: #163f68;
}

.home-impact h2,
.home-contact h2 {
    color: #ffffff;
}

.home-impact-grid,
.home-card-grid,
.home-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-impact-grid article {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.home-impact-grid strong {
    display: block;
    color: #d9a625;
    font-size: 2.2rem;
    line-height: 1;
}

.home-impact-grid span {
    color: rgba(255, 255, 255, 0.84);
}

.home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-content-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 1.15rem;
}

.home-content-card small {
    color: #6e7c88;
    font-weight: 700;
}

.home-content-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.home-team-card {
    overflow: hidden;
    text-align: center;
}

.home-team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.home-team-card h3 {
    margin-top: 1rem;
    padding: 0 1rem;
}

.home-team-card p {
    padding: 0 1rem 1rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.home-faq {
    background: #f7fafc;
}

.home-faq .accordion {
    display: grid;
    gap: 0.75rem;
}

.home-faq-item button {
    width: 100%;
    padding: 1rem;
    color: #1f2f3d;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 800;
}

.home-faq-item p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: #657382;
}

.home-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
    padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2));
    color: #ffffff;
    background: #143b63;
}

.home-contact-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.home-contact-list span {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.home-contact-list i {
    color: #d9a625;
}

.home-contact-form {
    padding: 1.25rem;
    color: #1f2f3d;
}

.home-contact-form label {
    color: #314151;
    font-weight: 800;
    font-size: 0.85rem;
}

@media (max-width: 1100px) {
    .home-hero,
    .home-program-grid,
    .home-about,
    .home-contact {
        grid-template-columns: 1fr;
    }
    .home-hero-panel {
        max-width: 520px;
    }
    .home-impact-grid,
    .home-card-grid,
    .home-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-notice-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding-top: 5rem;
    }
    .home-section,
    .home-contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .home-impact-grid,
    .home-card-grid,
    .home-team-grid {
        grid-template-columns: 1fr;
    }
    .home-hero p {
        font-size: 1rem;
    }
}
/* --- End Homepage Revamp --- */

.auth-modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 58, 0.24);
}

.auth-modal-kicker {
    display: block;
    color: #d9a625;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal-tabs {
    gap: 0.5rem;
    background: #f0f4fb;
    border-radius: 8px;
    padding: 0.35rem;
}

.auth-modal-tabs .nav-link {
    border-radius: 6px;
    color: #23435f;
    font-weight: 800;
}

.auth-modal-tabs .nav-link.active {
    background: #1a4b8c;
    color: #fff;
}

.auth-modal-form label {
    color: #314151;
    font-size: 0.84rem;
    font-weight: 800;
}

.auth-modal-form .form-control {
    border-color: #d8e1eb;
    border-radius: 6px;
    min-height: 42px;
}

.home-event-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.payment-shell {
    width: min(860px, calc(100% - 1rem));
    margin: 2rem auto 4rem;
}

.payment-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(24, 39, 56, 0.12);
    overflow: hidden;
}

.payment-card .nav-pills {
    gap: 0.4rem;
}

.payment-card .nav-pills .nav-link {
    border-radius: 8px;
    color: #23435f;
    background: #f0f4fb;
    font-weight: 800;
}

.payment-card .nav-pills .nav-link.active {
    color: #ffffff;
    background: var(--primary-blue);
}

.payment-summary {
    padding: 1rem;
    color: #1f2f3d;
    background: #f7fafc;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.payment-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e9eef4;
}

.payment-detail-row:last-child {
    border-bottom: 0;
}

.payment-detail-row span:first-child {
    color: #667585;
}

.payment-detail-row strong {
    color: #1f2f3d;
    overflow-wrap: anywhere;
}

.payment-dialog {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 8px;
}

.payment-dialog i {
    margin-top: 0.2rem;
}

.webinar-chat-panel {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(24, 39, 56, 0.1);
    overflow: hidden;
}

.chat-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    background: #f7fafc;
    border-bottom: 1px solid #e5eaf0;
}

.chat-panel-header h2 {
    margin: 0.2rem 0 0;
    color: #1f2f3d;
    font-size: 1.2rem;
    font-weight: 900;
}

.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    color: #6c757d;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.chat-status.connected {
    color: #1d7f4d;
}

.chat-status.disconnected {
    color: #b44436;
}

.chat-status.connecting {
    color: var(--primary-blue);
}

.discussion-thread {
    height: 420px;
    padding: 1rem;
    overflow-y: auto;
    background: #fbfdff;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 8px;
}

.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.comment-body {
    min-width: 0;
    flex: 1;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    align-items: center;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.comment-header strong {
    color: var(--primary-blue);
}

.comment-header .time {
    color: #7b8794;
}

.comment p {
    overflow-wrap: anywhere;
}

.chat-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: #667585;
    text-align: center;
}

.chat-empty i {
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-size: 2rem;
}

.chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e5eaf0;
}

.chat-compose textarea {
    min-height: 54px;
    resize: vertical;
}


@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    .carousel-item {
        padding: 2rem 0;
        min-height: 250px;
    }
    .carousel-item h1 {
        font-size: 1.8rem;
    }
    .carousel-item p {
        font-size: 1rem;
    }
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
    .carousel-control-prev-icon, .carousel-control-next-icon {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    .carousel-indicators li {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    /* --- THIS IS THE FIX --- */
    .team-img {
        height: 250px; /* A fixed height for mobile */
        object-fit: cover; /* This prevents stretching */
    }
    /* --- END FIX --- */
}

@media (max-width: 576px) {
    .navbar-nav .btn {
        margin-top: 0.5rem;
        display: block;
        width: 100%;
    }
    .carousel-item h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .payment-card .nav-pills {
        display: grid;
        grid-template-columns: 1fr;
    }
    .payment-detail-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .input-group {
        flex-direction: column;
    }
    .input-group > .form-control,
    .input-group > .input-group-append,
    .input-group > .input-group-append > .btn {
        width: 100%;
    }
    .input-group > .input-group-append {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .chat-panel-header,
    .chat-compose {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .discussion-thread {
        height: 360px;
    }
    .chat-compose .btn {
        width: 100%;
    }
}

