/* ===================================
   ITGUY.MY Main Stylesheet
   Color Scheme: #123456 & #ABCDEF
   =================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-dark: #123456;
    --primary-light: #ABCDEF;
    --accent-blend: #7A9FC3;
    --text-dark: #1A1A1A;
    --bg-light: #F8FBFD;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #123456 0%, #7A9FC3 50%, #ABCDEF 100%);
    --shadow-sm: 0 2px 8px rgba(18, 52, 86, 0.1);
    --shadow-md: 0 4px 16px rgba(18, 52, 86, 0.15);
    --shadow-lg: 0 8px 32px rgba(18, 52, 86, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-light);
}

.site-logo {
    height: 46px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.navbar-dark .navbar-brand .site-logo {
    filter: brightness(0) invert(1);
}

@media (max-width: 576px) {
    .site-logo {
        height: 38px;
        max-width: 150px;
    }
}

/* Legacy light navbar styles for compatibility */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--accent-blend);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border: none;
    transition: var(--transition-smooth);
    min-height: 44px; /* Touch-friendly */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-image: url('../img/banner/training-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 52, 86, 0.78);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.credentials-strip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credentials-strip h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.credentials-strip p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== COURSE CARDS ===== */
.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(18, 52, 86, 0.08);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.course-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.course-card h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    min-height: 60px;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    min-height: calc(1.7em * 3);
}

/* ===== WHY CHOOSE CARDS ===== */
.why-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.why-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-icon i {
    font-size: 3rem;
    color: var(--white);
}

.why-card h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.why-card p {
    color: #666;
    line-height: 1.8;
}

/* ===== METHODOLOGY DIAGRAM ===== */
.methodology-diagram {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* ===== STATS SECTION ===== */
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 52, 86, 0.12);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
    opacity: 0.85;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 52, 86, 0.95), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 4rem;
    transform: translateY(30%);
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    border-left: 4px solid var(--primary-light);
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quote-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.testimonial-author .text-muted {
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark) !important;
}

.footer-logo {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-blurb {
    line-height: 1.9;
    margin-top: 0.25rem;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.04);
}

.footer-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-quicklinks {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

.footer-quicklinks a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-quicklinks a:hover {
    color: var(--primary-light);
}

.footer-sep {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer h5 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links a:hover {
    color: var(--primary-light) !important;
    transform: translateY(-3px);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-50 a {
    color: var(--primary-light);
}

.text-white-50 a:hover {
    text-decoration: underline;
}

/* ===== CONTACT WIDGET ===== */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(18, 52, 86, 0.3);
}

/* ===== MODAL CUSTOMIZATION ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

/* ===== FORM CONTROLS ===== */
.form-label {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(171, 205, 239, 0.25);
}

#sortBy {
    padding-right: 2.5rem;
    min-width: 200px;
}

/* ===== UTILITIES ===== */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

section {
    padding: 5rem 0;
}

.min-vh-100 {
    min-height: 100vh;
}

/* ===== ABOUT ME SECTION ===== */
.about-profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 6px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-badge {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
    font-size: 0.95rem;
}

.about-badge i {
    font-size: 1.25rem;
}

/* ===== GET IN TOUCH SECTION ===== */
#get-in-touch {
    background: var(--primary-dark);
}

.contact-info-card {
    transition: var(--transition-smooth);
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-info-card h5 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-card a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info-card a:hover {
    color: var(--primary-light);
}

/* ===== CAROUSEL INDICATORS CUSTOM ===== */
.carousel-indicators.position-relative {
    position: relative !important;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    opacity: 0.3;
    border: none;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
    background: var(--gradient-primary);
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-primary);
    position: relative;
}

.hero-stat {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.55);
}

.hero-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-icon {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-stat-icon i {
    font-size: 2rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== COVERAGE CARDS ===== */
.coverage-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-light);
    transition: var(--transition-smooth);
}

.coverage-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.coverage-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.coverage-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.coverage-card h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.office-location {
    padding: 0.75rem 0;
    color: #555;
    line-height: 1.6;
}

.office-location i {
    color: var(--primary-light);
}

/* ===== TRUST BADGES ===== */
.trust-section {
    padding: 2rem 0;
}

.client-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.client-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    min-width: 140px;
}

.client-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.client-badge i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.client-badge span {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-align: center;
}

/* ===== JOURNEY TIMELINE ===== */
.journey-timeline {
    position: relative;
    padding: 2rem 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.journey-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.journey-item:nth-child(odd) {
    flex-direction: row;
}

.journey-item:nth-child(even) {
    flex-direction: row-reverse;
}

.journey-year {
    flex: 0 0 120px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.journey-content {
    flex: 1;
    padding: 0 2rem;
    max-width: calc(50% - 60px);
}

.journey-item:nth-child(even) .journey-content {
    text-align: right;
}

.journey-content h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.journey-content p {
    color: #555;
    line-height: 1.8;
}

/* ===== ABOUT PAGE COMPONENTS ===== */
.about-profile-img-large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.social-links-about a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.methodology-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-light);
}

.methodology-step {
    padding: 2rem 1rem;
}

.methodology-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.methodology-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.methodology-step h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== TIMELINE ===== */
.timeline-item {
    padding: 1.5rem 0;
    border-left: 3px solid var(--primary-light);
    padding-left: 2rem;
    margin-left: 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 1.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 3px solid var(--primary-light);
}

.timeline-year {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item h5 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* ===== CERTIFICATION BADGES ===== */
.certification-badge {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.certification-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.badge-year {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.certification-badge strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

/* ===== EXPERIENCE CARDS ===== */
.experience-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-light);
    transition: var(--transition-smooth);
}

.experience-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-header h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.experience-year {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.7;
}

.experience-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== COURSES PAGE ===== */
.filter-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.filter-sidebar h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.filter-group {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-group::-webkit-scrollbar {
    width: 6px;
}

.filter-group::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.filter-group::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.form-check {
    padding: 0.5rem 0;
}

.form-check-input:checked {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(171, 205, 239, 0.25);
}

/* ===== COURSE CARDS (DETAILED) ===== */
.course-card-detailed {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(18, 52, 86, 0.08);
    display: flex;
    flex-direction: column;
}

.course-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-icon-sm {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.course-icon-sm i {
    font-size: 1.75rem;
    color: var(--white);
}

.course-category-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-card-detailed h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    min-height: 60px;
    line-height: 1.4;
}

.course-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.course-meta {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

.meta-item i {
    color: var(--primary-light);
    margin-right: 0.5rem;
    width: 18px;
}

/* ===== COURSE MODAL ===== */
.course-modal-content h5 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-modal-content h6 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.objectives-list {
    list-style: none;
    padding-left: 0;
}

.objectives-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.objectives-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* ===== PARTNERS PAGE ===== */
.how-it-works-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.how-it-works-card h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.how-it-works-card p {
    color: #666;
    line-height: 1.7;
}

/* ===== PARTNER CARDS ===== */
.partner-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(18, 52, 86, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.partner-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
}

.partner-name {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.partner-hrd-id {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.partner-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ===== PARTNER MODAL ===== */
.partner-logo-large {
    max-width: 300px;
    max-height: 150px;
    object-fit: contain;
}

.specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-light);
}

.partner-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-row {
    display: flex;
    gap: 1rem;
}

.contact-info-row i {
    color: var(--primary-light);
    font-size: 1.25rem;
    width: 24px;
    margin-top: 0.25rem;
}

.contact-info-row strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-info-row p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.contact-info-row a {
    color: var(--primary-dark);
    text-decoration: none;
}

.contact-info-row a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.map-container {
    margin-top: 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-form-page .form-label {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-form-page .form-control,
.contact-form-page .form-select {
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.contact-form-page .form-control:focus,
.contact-form-page .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(171, 205, 239, 0.25);
}

.contact-info-sidebar {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
}

.contact-detail-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-detail-card h5 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.contact-detail-item i {
    color: var(--primary-light);
    font-size: 1.25rem;
    width: 24px;
    margin-top: 0.25rem;
}

.contact-detail-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-detail-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.contact-detail-item a {
    color: var(--primary-dark);
    text-decoration: none;
}

.contact-detail-item a:hover {
    color: var(--primary-light);
}

.office-location-detail {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.office-location-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.office-location-detail strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.office-location-detail p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.social-links-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links-contact .btn {
    flex: 0 0 auto;
    min-width: unset;
}

.social-links-contact .social-icon-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
}

.alternative-contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.alternative-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.alt-contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.alt-contact-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.alternative-contact-card h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.alternative-contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== BOOKING CALENDAR ===== */
.calendar-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.confirmed {
    background-color: #28a745;
}

.legend-dot.tentative {
    background-color: #ffc107;
}

.legend-dot.completed {
    background-color: #6c757d;
}

/* ===== CALENDAR TABLE ===== */
.calendar-container {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table thead th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    width: calc(100% / 7);
}

.calendar-day {
    padding: 0.5rem;
    vertical-align: top;
    border: 1px solid #eee;
    height: 130px;
    position: relative;
    background: var(--white);
    overflow: visible;
}

.calendar-day.empty {
    background: #f8f9fa;
}

.calendar-day.today {
    background: rgba(171, 205, 239, 0.1);
    border: 2px solid var(--primary-light);
}

.calendar-day.past {
    background: #fafafa;
    opacity: 0.7;
}

.calendar-day.has-training {
    background: rgba(171, 205, 239, 0.05);
}

.day-number {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.training-indicator {
    background: var(--white);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    border-left: 3px solid;
    flex-wrap: wrap;
}

.training-indicator:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.training-indicator.status-confirmed {
    border-left-color: #28a745;
}

.training-indicator.status-tentative {
    border-left-color: #ffc107;
}

.training-indicator.status-completed {
    border-left-color: #6c757d;
}

.training-dot {
    display: none;
}

.training-name {
    flex: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: #333;
    line-height: 1.3;
    word-break: break-word;
}

/* ===== UPCOMING LIST ===== */
.training-list-item {
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.training-list-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.training-list-item.past-entry {
    opacity: 0.45;
    background: #f8f8f8;
    filter: grayscale(40%);
}

.training-list-item.past-entry:hover {
    opacity: 0.7;
    filter: grayscale(0%);
}

.training-list-item.past-entry .training-date-badge {
    background: #9ca3af;
}

.past-sessions-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 0.75rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.past-sessions-divider::before,
.past-sessions-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #d1d5db;
}

.past-sessions-divider::before { margin-right: 0.75rem; }
.past-sessions-divider::after  { margin-left: 0.75rem; }

/* Past month tab in Booked Activities */
.past-month-tab {
    opacity: 0.55;
    color: #6b7280 !important;
    font-style: italic;
}

.past-month-tab:hover,
.past-month-tab.active {
    opacity: 1 !important;
}

.past-month-notice {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    border-radius: 4px;
}

.training-date-badge {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    padding: 1rem;
}

.training-date-badge.split {
    display: flex;
    padding: 0;
    background: var(--gradient-primary);
    overflow: hidden;
    width: 100%;
}

.training-date-badge.split .date-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--white);
}

.training-date-badge.split .date-side.day-abbr {
    background: rgba(255, 255, 255, 0.14);
    min-width: 72px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.training-date-badge.split .date-side.date-main {
    background: transparent;
    min-width: 110px;
    flex: 1;
}

.date-weekday {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.date-month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.25rem 0;
}
.date-day.date-range {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.date-year {
    font-size: 0.85rem;
    opacity: 0.9;
}

.training-list-item h5 {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* Only strip left margin when pill leads the title (first child); preserve it when pill follows text */
.training-list-item h5 > .tp-pill:first-child {
    margin-left: 0;
    margin-right: 0.3rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-tentative {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-completed {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-badge.status-holiday {
    background-color: #f8d7da;
    color: #842029;
}

/* ===== TRAINING MODAL ===== */
.training-modal-content .training-detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.training-modal-content .training-detail-row i {
    color: var(--primary-light);
    font-size: 1.25rem;
    width: 24px;
    margin-top: 0.25rem;
}

.training-modal-content .training-detail-row strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.training-modal-content .training-detail-row p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ===== TOOLS PAGE ===== */
.tool-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(18, 52, 86, 0.08);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.tool-card h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.tool-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

#toolsFilter .nav-link {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: transparent;
    border: 2px solid transparent;
    color: var(--primary-dark);
}

#toolsFilter .nav-link:hover {
    border-color: var(--primary-light);
    background: rgba(171, 205, 239, 0.1);
}

#toolsFilter .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ===== HOLIDAY INDICATORS ===== */
.calendar-day.holiday-day {
    background: rgba(255, 193, 7, 0.05);
}

.holiday-indicator {
    background: var(--white);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    border-left: 3px solid;
    flex-wrap: wrap;
}

.holiday-indicator.public-holiday {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.holiday-indicator.school-holiday {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.holiday-indicator i {
    font-size: 0.85rem;
}

.public-holiday i {
    color: #dc3545;
}

.school-holiday i {
    color: #ffc107;
}

.holiday-name {
    flex: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: #333;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
}

/* ===== GLOSSARY AI NOTICE ===== */
.glossary-ai-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #adb5bd;
    font-size: 0.85rem;
}

.glossary-notice-link {
    color: #495057;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.glossary-notice-link:hover {
    color: #212529;
}

/* ===== DISCLAIMER ===== */
.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.disclaimer-text strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== FILTER & LANGUAGE BUTTONS ===== */
.filter-buttons, .language-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn, .lang-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: var(--white);
    color: #6b7280;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover, .lang-btn:hover {
    border-color: var(--primary-light);
    background: rgba(171, 205, 239, 0.1);
}

.filter-btn.active, .lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ===== LETTER SUB-FILTER ===== */
.letter-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.letter-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.letter-btn:hover:not(:disabled) {
    border-color: var(--primary-light);
    background: rgba(171, 205, 239, 0.15);
    color: var(--primary-dark);
}

.letter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.letter-btn:disabled,
.letter-btn.unavailable {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.letter-filter-bar .letter-sep {
    width: 1px;
    height: 20px;
    background: #d1d5db;
    margin: 0 4px;
    display: inline-block;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(18, 52, 86, 0.08);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-technology {
    background: #1e40af;
    color: var(--white);
}

.badge-general {
    background: #64748b;
    color: var(--white);
}

.badge-web {
    background: #0369a1;
    color: var(--white);
}

.badge-ai {
    background: #7c3aed;
    color: var(--white);
}

.badge-excel {
    background: #166534;
    color: var(--white);
}

.badge-finance {
    background: #059669;
    color: var(--white);
}

.badge-security {
    background: #be185d;
    color: var(--white);
}

.badge-events {
    background: #f59e0b;
    color: var(--white);
}

.badge-training {
    background: #9333ea;
    color: var(--white);
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-time, .blog-date {
    display: flex;
    align-items: center;
}

/* ===== GALLERY ===== */
.gallery-masonry {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* 2 columns on tablet */
@media (max-width: 767px) {
    .masonry-col:nth-child(3) {
        display: none;
    }
    .masonry-col {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* 1 column on mobile */
@media (max-width: 480px) {
    .masonry-col:nth-child(2),
    .masonry-col:nth-child(3) {
        display: none;
    }
    .masonry-col {
        flex: 1 1 100%;
    }
}

.gallery-item {
    width: 100%;
    margin-bottom: 0;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-info {
    color: var(--white);
}

.gallery-category {
    display: inline-block;
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* ===== GLOSSARY ===== */
.az-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.az-btn {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    background: var(--white);
    color: #6b7280;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 40px;
}

.az-btn:hover {
    border-color: var(--primary-light);
    background: rgba(171, 205, 239, 0.1);
}

.az-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.glossary-item {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-light);
}

.glossary-term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.glossary-term-header h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin: 0;
    flex-shrink: 0;
}

/* Wrapper for one or more category badges — always one line */
.glossary-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

.glossary-category-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Pagination */
.glossary-pagination .page-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.65rem;
    color: var(--primary-dark);
    cursor: pointer;
}

.glossary-pagination .page-item.active .page-link {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.glossary-pagination .page-item.disabled .page-link {
    color: #aaa;
    cursor: default;
}

#glossaryPagination {
    margin-top: 1.5rem;
}

.glossary-definition {
    color: #555;
    line-height: 1.8;
    margin: 0 0 0.35rem;
}

.glossary-bm {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.glossary-bm-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: 0.25rem;
}

/* ===== GLOSSARY RELATED TERMS ===== */
.glossary-related {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

.glossary-related-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    margin-right: 0.1rem;
}

.glossary-related-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: rgba(174, 206, 43, 0.12);
    border: 1px solid rgba(174, 206, 43, 0.4);
    border-radius: 20px;
    padding: 0.15em 0.65em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}

.glossary-related-chip:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

.glossary-item.glossary-highlight {
    animation: glossaryPulse 2s ease;
}

@keyframes glossaryPulse {
    0%   { background: rgba(174, 206, 43, 0.25); box-shadow: 0 0 0 3px rgba(174, 206, 43, 0.4); }
    60%  { background: rgba(174, 206, 43, 0.12); box-shadow: 0 0 0 1px rgba(174, 206, 43, 0.2); }
    100% { background: transparent; box-shadow: none; }
}

/* ===== COMBINED BOOKING PAGE ===== */
.booking-calendar-card, .booking-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h4 {
    margin: 0;
    color: var(--primary-dark);
}

.booking-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.booking-calendar-table th {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
}

.booking-day-cell {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.booking-day-cell.empty {
    background: #f9fafb;
    cursor: default;
}

.booking-day-cell.past {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.booking-day-cell.available {
    background: var(--white);
}

.booking-day-cell.available:hover {
    background: rgba(171, 205, 239, 0.1);
    border-color: var(--primary-light);
}

.booking-day-cell.booked {
    background: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
}

/* Partial-day cells — top half = AM state, bottom half = PM state */
/* partial-am: morning (top) is occupied (red), afternoon (bottom) is free (green) */
.booking-day-cell.partial-am {
    background: linear-gradient(to bottom, #fee2e2 50%, #f0fdf4 50%);
    border-color: #f87171;
    border-width: 2px;
    cursor: pointer;
}
.booking-day-cell.partial-am .day-num {
    color: #991b1b;
}
/* partial-pm: morning (top) is free (green), afternoon (bottom) is occupied (red) */
.booking-day-cell.partial-pm {
    background: linear-gradient(to bottom, #f0fdf4 50%, #fee2e2 50%);
    border-color: #f87171;
    border-width: 2px;
    cursor: pointer;
}
.booking-day-cell.partial-pm .day-num {
    color: #15803d;
}

/* Public holiday cell — amber/orange tint (overrides school holiday) */
.booking-day-cell.booking-ph {
    background: #fff7ed;
    border-color: #fb923c;
    border-width: 2px;
}
.booking-day-cell.booking-ph .day-num {
    color: #c2410c;
    font-weight: 700;
}
/* School holiday cell — soft teal/mint tint */
.booking-day-cell.booking-sh {
    background: #f0fdfa;
    border-color: #2dd4bf;
    border-width: 2px;
}
.booking-day-cell.booking-sh .day-num {
    color: #0f766e;
    font-weight: 600;
}
/* PH always wins over SH when both apply */
.booking-day-cell.booking-ph.booking-sh {
    background: #fff7ed;
    border-color: #fb923c;
}

/* Public Holiday warning banner above service dropdown */
.ph-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.45;
}
.ph-warning-banner i {
    color: #f59e0b;
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.booking-day-cell.selected {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border-color: var(--primary-dark);
}

.day-num {
    font-weight: 600;
}

/* ── Calendar Notice Bar ──────────────────────────────────────── */
.calendar-notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.83rem;
    line-height: 1.45;
    border-left: 4px solid transparent;
    transition: opacity 0.2s ease;
}

.calendar-notice-bar.notice-blocked {
    background: #fef9ec;
    border-left-color: #f59e0b;
    color: #78350f;
}

.calendar-notice-bar.notice-ph {
    background: #fff7ed;
    border-left-color: #f97316;
    color: #7c2d12;
}

.calendar-notice-bar.notice-sh {
    background: #f0fdfa;
    border-left-color: #14b8a6;
    color: #134e4a;
}

.calendar-notice-icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.95rem;
}

.calendar-notice-footnote {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.8;
    font-size: 0.79rem;
}

/* ── Calendar Legend ──────────────────────────────────────────── */
.calendar-legend-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem 1rem;
    font-size: 0.82rem;
    margin-top: 0.75rem;
}

.legend-dot-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.legend-dot-small.available {
    background: var(--white);
    border: 2px solid #d1d5db;
}

.legend-dot-small.booked {
    background: #fee2e2;
    border: 2px solid #f87171;
}

.legend-dot-small.selected {
    background: var(--primary-light);
}

.legend-dot-small.public-holiday {
    background: #fff7ed;
    border: 2px solid #fb923c;
}

.legend-dot-small.school-holiday {
    background: #f0fdfa;
    border: 2px solid #2dd4bf;
}

.legend-dot-small.partial {
    background: linear-gradient(to bottom, #fee2e2 50%, #f0fdf4 50%);
    border: 2px solid #f87171;
}

.booking-day-cell.jump-highlight {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
}

/* ===== ACTIVITY TIMELINE ===== */
.activity-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-light);
}

.activity-date-badge {
    text-align: center;
    min-width: 80px;
}

.activity-day {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.activity-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.activity-details h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.activity-details p {
    color: #666;
    font-size: 0.95rem;
}

.course-remark {
    font-size: 0.95rem;
    color: #666;
}

/* ===== FLOATING ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 76px;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
}

.announcement-bar.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.announcement-slider {
    flex: 1;
    overflow: hidden;
}

.announcement-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.announcement-item i {
    font-size: 1.1rem;
}

.announcement-item .cta-btn {
    padding: 0.4rem 1.2rem;
    background: var(--white);
    color: #1e40af;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.announcement-item .cta-btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.announcement-prev, .announcement-next, .announcement-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-smooth);
}

.announcement-prev:hover, .announcement-next:hover {
    transform: scale(1.2);
}

.announcement-close {
    opacity: 0.8;
}

.announcement-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== TRAINING PROVIDER (TP) PILL BADGES ===== */
.tp-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15em 0.55em;
    border-radius: 20px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.4;
    margin-left: 0.3rem;
    flex-shrink: 0;
}

/* Calendar cell: pill sits beside the training name */
.training-indicator .tp-pill {
    font-size: 0.6rem;
    padding: 0.1em 0.45em;
}

/* RQC - deep navy/teal */
.tp-pill.tp-rqc {
    background-color: #0d4f6c;
    color: #ffffff;
}

/* Whitman - rich purple */
.tp-pill.tp-whitman {
    background-color: #5b2d8e;
    color: #ffffff;
}

/* SST2U - warm red-orange */
.tp-pill.tp-sst2u {
    background-color: #c0392b;
    color: #ffffff;
}

/* MACR - forest green */
.tp-pill.tp-macr {
    background-color: #1a6b3a;
    color: #ffffff;
}

/* EBH - slate blue */
.tp-pill.tp-ebh {
    background-color: #2f4b8a;
    color: #ffffff;
}

/* FPAM - gold/amber */
.tp-pill.tp-fpam {
    background-color: #b7791f;
    color: #ffffff;
}

/* MFPC - royal blue */
.tp-pill.tp-mfpc {
    background-color: #1f5fb7;
    color: #ffffff;
}

/* NS Viral - teal */
.tp-pill.tp-nsviral {
    background-color: #0e7c7b;
    color: #ffffff;
}

/* EMZEK - deep plum/magenta */
.tp-pill.tp-emzek {
    background-color: #6b1f5e;
    color: #ffffff;
}

/* iTrain - rust/sienna */
.tp-pill.tp-itrain {
    background-color: #8b3a1a;
    color: #ffffff;
}

/* SAF Consulting - dark olive */
.tp-pill.tp-saf {
    background-color: #4a5c1a;
    color: #ffffff;
}

/* Premier Consulting - deep rose */
.tp-pill.tp-premier {
    background-color: #8b1a3a;
    color: #ffffff;
}

/* GlobalTNA - dark cyan/teal-blue */
.tp-pill.tp-globaltna {
    background-color: #0a4060;
    color: #ffffff;
}

/* Tunjang Academy - warm brown */
.tp-pill.tp-tunjang {
    background-color: #5c3010;
    color: #ffffff;
}

/* iTrainingExpert - steel blue */
.tp-pill.tp-ite {
    background-color: #1e4a7a;
    color: #ffffff;
}

/* MySHEQA - deep maroon */
.tp-pill.tp-mysheqa {
    background-color: #6b1a2a;
    color: #ffffff;
}

/* CoreInsight - dark emerald */
.tp-pill.tp-coreinsight {
    background-color: #1a4a35;
    color: #ffffff;
}

/* Apex Integration Training - navy blue */
.tp-pill.tp-apex {
    background-color: #1a2e60;
    color: #ffffff;
}

/* WIPdata - dark grape */
.tp-pill.tp-wipdata {
    background-color: #3a1a6b;
    color: #ffffff;
}

/* Smart Solutions Learning - charcoal teal */
.tp-pill.tp-smart {
    background-color: #1a3c3c;
    color: #ffffff;
}

/* SMR HR Group - amber orange */
.tp-pill.tp-smr {
    background-color: #c45911;
    color: #ffffff;
}

/* OCBC Al-Amin - OCBC red */
.tp-pill.tp-ocbc {
    background-color: #c8102e;
    color: #ffffff;
}

/* Putra Academy - university blue */
.tp-pill.tp-putra {
    background-color: #005A9C;
    color: #ffffff;
}

/* ===== MEGA MENU — Services & Tools ===== */
.mega-menu-tools {
    min-width: 480px;
    padding: 1rem 1rem 0.75rem !important;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

/* Section header (Online Tools, Sponsored Tools etc.) */
.mega-menu-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 7px;
    color: var(--primary-dark, #1a3a1a);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease, color 0.15s ease;
}

.mega-menu-header i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mega-menu-header:hover {
    background-color: rgba(44, 95, 45, 0.08);
    color: var(--primary-color);
}

/* Sub-items (no icon) */
.mega-menu-subitem {
    display: block;
    padding: 0.3rem 0.6rem 0.3rem 1.8rem;
    border-radius: 6px;
    color: #495057;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.mega-menu-subitem:hover {
    background-color: rgba(44, 95, 45, 0.07);
    color: var(--primary-color);
}

.mega-menu-divider {
    border-top: 1px solid #e9ecef;
    margin: 0.55rem 0;
}

/* Keep old .mega-menu-item for any other uses */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.mega-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mega-menu-item:hover {
    background-color: rgba(44, 95, 45, 0.08);
    color: var(--primary-color);
}

/* Phillip Capital - orange */
.tp-pill.tp-phillip {
    background-color: #fd7e14;
    color: #ffffff;
}

/* BAC - teal */
.tp-pill.tp-bac {
    background-color: #0f7173;
    color: #ffffff;
}

/* Add to Calendar dropdown section in modal */
.atc-section .dropdown-menu {
    font-size: 0.875rem;
}
.atc-section .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
}
.atc-section .dropdown-item:hover {
    background-color: rgba(174, 206, 43, 0.12);
}

/* Register link button in modal */
.btn-register-event {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #123456, #7A9FC3);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: none;
}
.btn-register-event:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ===== BOOKING DATE TOOLTIP BALLOON ===== */
.booking-tooltip {
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.07),
        0 12px 28px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.04);
    min-width: 220px;
    max-width: 280px;
    font-size: 0.82rem;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    animation: btFadeIn 0.18s ease;
    overflow: hidden;
}

@keyframes btFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Arrow — pointing down (tooltip is above the cell) */
.booking-tooltip.arrow-bottom::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}
.booking-tooltip.arrow-bottom::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #e2e8f0;
}

/* Arrow — pointing up (tooltip is below the cell) */
.booking-tooltip.arrow-top::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}
.booking-tooltip.arrow-top::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #e2e8f0;
}

.bt-header {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.55rem 2rem 0.55rem 0.9rem;
    border-radius: 11px 11px 0 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Public Holiday header — amber/orange */
.bt-header.bt-ph {
    background: linear-gradient(135deg, #c2410c, #f97316);
}

/* School Holiday header — teal */
.bt-header.bt-sh {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.bt-close {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.bt-close:hover { color: #ffffff; }

.bt-entries {
    padding: 0.6rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bt-entry {
    border-left: 3px solid var(--primary-light);
    padding-left: 0.55rem;
}

/* Holiday entry accents */
.bt-entry.bt-entry-ph {
    border-left-color: #f97316;
}

.bt-entry.bt-entry-sh {
    border-left-color: #14b8a6;
}

.bt-entry.bt-private {
    border-left-color: #9ca3af;
    color: #6b7280;
    font-style: italic;
}

.bt-course {
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.bt-meta {
    color: #6b7280;
    font-size: 0.77rem;
    margin-top: 0.15rem;
}
