:root {
    --jr-navy: #233f87;
    --jr-navy-dark: #122a63;
    --jr-blue: #42bdd8;
    --jr-lime: #9acb3c;
    --jr-yellow: #f1dc37;
    --jr-red: #ef3e42;
    --jr-ink: #222a39;
    --jr-light: #f5f7fb;
    --jr-border: #dfe4ec;
}

body { color: var(--jr-ink); background: #fff; }
a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.selected-color { color: var(--jr-navy) !important; }

/* Header: deliberately keeps the source project's layout */
.junior-project-header { position: relative; z-index: 100; box-shadow: 0 3px 18px rgba(19,43,95,.09); border-bottom: 4px solid var(--jr-lime); }
.junior-project-header .main-header { background: #fff; height: 92px; }
.junior-header-container { max-width: 1440px; padding-left: 28px; padding-right: 28px; }
.junior-project-logo { height: 92px !important; padding: 10px 0 !important; display: flex; align-items: center; }
.junior-project-logo a { display: block; height: 100%; }
.junior-project-logo img { width: auto; max-width: 350px; height: 100%; object-fit: contain; object-position: left center; }
.junior-project-navigation { margin: 0 !important; display: flex; align-items: center; min-height: 92px; }
.junior-project-navigation li { margin: 0 5px; }
.junior-project-navigation li a { padding: 28px 5px 24px !important; color: var(--jr-navy) !important; }
.junior-project-navigation li a h3 { color: var(--jr-navy); font-size: 11px !important; font-weight: 700; letter-spacing: .03em; margin: 0; }
.junior-project-navigation li a:hover h3 { color: var(--jr-blue) !important; }
.junior-project-navigation li a.active { border-bottom: 3px solid var(--jr-lime) !important; margin: 0 !important; }
.junior-project-navigation .user-profile { padding-left: 8px !important; padding-right: 8px !important; }
.junior-project-navigation .user-profile i { color: var(--jr-navy) !important; font-size: 18px; }
.junior-project-header .dropdown-menu { background: #fff; border: 1px solid var(--jr-border); box-shadow: 0 12px 28px rgba(19,43,95,.13); }
.junior-project-header .dropdown-item { color: var(--jr-navy); font-size: 12px; font-weight: 600; }
.junior-project-header .dropdown-item:hover { background: #edf7fa; color: var(--jr-navy-dark); }

/* Hero: same single-slider composition as the source project */
.junior-project-hero { height: 640px; min-height: 640px; overflow: hidden; background:
    linear-gradient(90deg, rgba(18,42,99,.96) 0%, rgba(27,56,120,.89) 40%, rgba(18,42,99,.42) 72%, rgba(18,42,99,.18) 100%),
    radial-gradient(circle at 78% 38%, rgba(66,189,216,.38), transparent 30%),
    linear-gradient(135deg, #1d3a7e, #071a43);
}
.junior-project-hero:after { content: ''; position: absolute; inset: auto 0 0 0; height: 8px; background: linear-gradient(90deg, var(--jr-lime) 0 35%, var(--jr-blue) 35% 70%, var(--jr-yellow) 70%); z-index: 3; }
.junior-project-hero-art { position: absolute; right: 1%; bottom: -20px; width: min(57vw, 760px); height: 610px; background: url('/assets/images/junior/hero-court.svg') center bottom / contain no-repeat; opacity: .98; z-index: 1; }
.junior-project-hero-content { z-index: 2; }
.junior-project-hero-panel { width: fit-content; max-width: 780px; padding: 34px 38px 32px; border-radius: 10px; background: rgba(4,18,52,.72); border-left: 7px solid var(--jr-lime); box-shadow: 0 20px 55px rgba(0,0,0,.18); backdrop-filter: blur(2px); }
.junior-project-kicker { color: var(--jr-yellow); font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.junior-project-hero-panel h1 { color: #fff; font-family: Montserrat, sans-serif; font-size: 28px; line-height: 1.45; font-weight: 400; margin: 12px 0 19px; }
.junior-project-hero-panel h1 strong { display: inline-block; font-size: 42px; line-height: 1.02; font-weight: 700; margin-top: 5px; }
.junior-project-hero-meta { display: flex; flex-wrap: wrap; gap: 13px 26px; color: #fff; font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; }
.junior-project-hero-meta i { color: var(--jr-lime); margin-right: 7px; }
.junior-project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.junior-project-actions .btn, .junior-project-bottom-actions .btn { font-size: 12px; letter-spacing: .04em; font-weight: 700; padding: 13px 20px; border-radius: 2px; min-width: 155px; }
.junior-btn-primary { color: #fff !important; background: var(--jr-lime) !important; border: 2px solid var(--jr-lime) !important; }
.junior-btn-primary:hover { background: #82b12d !important; border-color: #82b12d !important; }
.junior-btn-outline { color: #fff !important; background: transparent !important; border: 2px solid #fff !important; }
.junior-btn-outline:hover { background: #fff !important; color: var(--jr-navy) !important; }
.junior-btn-outline-dark { color: var(--jr-navy) !important; background: #fff !important; border: 2px solid var(--jr-navy) !important; }
.junior-btn-outline-dark:hover { background: var(--jr-navy) !important; color: #fff !important; }

/* Homepage content: intentionally simple/legacy, not card-driven */
.junior-project-main-section { padding-top: 64px; padding-bottom: 85px; }
.junior-project-section-title { font-family: Montserrat, sans-serif; font-size: 34px !important; font-weight: 700; letter-spacing: .03em; position: relative; padding-bottom: 16px; margin-bottom: 30px; }
.junior-project-section-title:after { content: ''; width: 62px; height: 5px; background: linear-gradient(90deg, var(--jr-lime), var(--jr-blue)); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 2px; }
.junior-project-news-heading { margin-top: 5px; }
.junior-project-news-board { margin-bottom: 70px; border: 1px solid var(--jr-border); background: #fafbfc; padding: 0 28px; box-shadow: 0 7px 22px rgba(35,63,135,.04); }
.junior-project-news-item { padding: 28px 7px 27px; border-bottom: 1px solid var(--jr-border); }
.junior-project-news-item:last-child { border-bottom: 0; }
.junior-project-news-date { color: var(--jr-blue); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.junior-project-news-item h2 { color: var(--jr-navy); font-family: Montserrat, sans-serif; font-size: 21px; font-weight: 700; margin: 4px 0 8px; }
.junior-project-news-item p { margin: 0 0 8px; line-height: 1.65; color: #4f5664; }
.junior-project-news-item a { color: var(--jr-navy); font-weight: 700; font-size: 13px; }
.junior-project-news-item a:hover { color: var(--jr-blue); }
.junior-project-news-item a i { margin-left: 5px; }
.junior-project-event-title { margin-top: 8px; }
.junior-project-event-info { font-family: Montserrat, sans-serif; color: #353b47; line-height: 1.75; }
.junior-project-event-info hr { border: 0; border-top: 1px solid var(--jr-border); margin: 34px 0; }
.junior-project-venue-name { font-size: 17px; }
.junior-project-date { color: var(--jr-navy); font-size: 22px; margin: 22px 0 12px; }
.junior-project-event-details b { color: var(--jr-navy); }
.junior-project-bottom-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

.junior-dashboard-legacy { margin: 0 0 55px; padding: 28px; border: 1px solid var(--jr-border); background: #f7f9fc; }
.junior-dashboard-legacy p { text-align: center; margin-bottom: 22px; }
.junior-dashboard-legacy a { display: block; color: var(--jr-navy); padding: 18px 8px; border-top: 3px solid var(--jr-lime); background: #fff; }
.junior-dashboard-legacy a i { color: var(--jr-blue); font-size: 24px; display: block; margin-bottom: 8px; }
.junior-dashboard-legacy a strong { font-size: 12px; }

/* Footer uses the source project's four-column structure */
.junior-project-partner-title { padding: 33px 0 18px; border-top: 1px solid var(--jr-border); background: #fff; }
.junior-project-partner-title .junior-project-section-title { margin-bottom: 0 !important; }
.junior-project-partners { padding: 30px 15px 50px; }
.partner-mark { min-height: 92px; padding: 18px 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: Montserrat, sans-serif; color: var(--jr-navy); font-weight: 700; border-right: 1px solid var(--jr-border); }
.junior-project-partners [class*="col-"]:last-child .partner-mark { border-right: 0; }
.partner-lining { color: var(--jr-red); font-size: 25px; font-style: italic; font-weight: 800; }
.partner-bzs { font-size: 11px; line-height: 1.3; }
.partner-bec { color: #203c82; font-size: 13px; }
.partner-sg { font-size: 13px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin: 0 2px 0 0; }
.dot-lime { background: var(--jr-lime); }
.dot-cyan { background: var(--jr-blue); }
.junior-project-footer { background: #f5f6f8 !important; border-top: 4px solid var(--jr-navy) !important; }
.junior-project-footer .selected-color { color: var(--jr-navy) !important; }
.junior-footer-brand-cell { display: flex; align-items: flex-start; justify-content: center; }
.junior-footer-brand-cell img { max-width: 250px; width: 100%; }
.junior-project-footer .footer-title { font-size: 16px; font-weight: 700; }
.junior-project-footer .footer-ul ul { list-style: none; padding: 0; text-align: center; }
.junior-project-footer .footer-ul li { margin: 6px 0; }
.junior-project-footer .footer-ul li a { color: #555f71; font-size: 12px; }
.junior-project-footer .footer-ul li a:hover { color: var(--jr-blue); }
.junior-footer-members { color: #555f71; font-size: 12px; line-height: 1.7; }
.junior-project-footer .poweredline h5 { font-size: 11px; color: #78808e !important; }

/* Re-theme the existing inner project pages without rebuilding their layout */
.btn, .page-item.active .page-link, .table-btn-dropdown .btn-edit { background: var(--jr-lime); color: #fff; }
button:hover, .btn:hover { background: #82b12d; }
.btn-green { background: var(--jr-lime); }
.news-filters { background: var(--jr-blue); }
.main-header .main-menu ul li a.active { border-bottom-color: var(--jr-lime); }
input:focus, select:focus, textarea:focus { border-color: var(--jr-blue) !important; box-shadow: 0 0 0 .15rem rgba(66,189,216,.17) !important; }

@media (max-width: 1199px) {
    .junior-project-navigation li { margin: 0 2px; }
    .junior-project-navigation li a h3 { font-size: 10px !important; }
    .junior-project-logo img { max-width: 310px; }
}
@media (max-width: 991px) {
    .junior-project-header .main-header { height: 78px; }
    .junior-project-logo { height: 78px !important; }
    .junior-project-logo img { max-width: 290px; }
    .mobile_menu .slicknav_menu .slicknav_btn { top: -60px; }
    .mobile_menu .slicknav_menu .slicknav_btn .slicknav_icon-bar { background-color: var(--jr-navy) !important; }
    .mobile_menu .slicknav_nav { background: var(--jr-navy-dark) !important; margin-top: 0 !important; padding: 14px; }
    .mobile_menu .slicknav_menu .slicknav_nav a { color: #fff; }
    .mobile_menu .slicknav_menu .slicknav_nav a:hover { color: var(--jr-yellow); }
    .junior-project-hero { height: 580px; min-height: 580px; }
    .junior-project-hero-art { opacity: .55; right: -18%; width: 78vw; }
    .junior-project-hero-panel { max-width: 650px; }
    .junior-project-hero-panel h1 strong { font-size: 36px; }
}
@media (max-width: 767px) {
    .junior-header-container { padding-left: 15px; padding-right: 15px; }
    .junior-project-logo img { max-width: 245px; }
    .junior-project-hero { height: 570px; min-height: 570px; }
    .junior-project-hero-art { width: 100vw; right: -36%; opacity: .4; }
    .junior-project-hero-panel { padding: 26px 22px; border-left-width: 5px; }
    .junior-project-hero-panel h1 { font-size: 21px; }
    .junior-project-hero-panel h1 strong { font-size: 31px; }
    .junior-project-hero-meta { flex-direction: column; gap: 8px; }
    .junior-project-main-section { padding-top: 45px; }
    .junior-project-section-title { font-size: 28px !important; }
    .junior-project-news-board { padding: 0 18px; }
    .junior-project-news-item h2 { font-size: 18px; }
    .partner-mark { border-right: 0; border-bottom: 1px solid var(--jr-border); }
    .junior-project-bottom-actions { flex-direction: column; align-items: stretch; }
    .junior-project-bottom-actions .btn { width: 100%; }
    .junior-project-footer .row > div { margin-bottom: 24px; }
}
