:root {
    --pma-primary: #4b7ed1;
    --pma-primary-dark: #058254;
    --pma-secondary: #ffb800;
    --pma-dark: #1a1a1a;
    --pma-light-bg: #f8fafc;
    --pma-border: #e2e8f0;
}

/* Corporate Modern Course Cards */
.course-card-modern {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--pma-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
}

.course-card-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--pma-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(7, 161, 105, 0.12);
    border-color: transparent;
}

.course-card-modern:hover::after {
    transform: scaleX(1);
}

.course-thumb {
    position: relative;
    overflow: hidden;
}

.course-thumb img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.course-card-modern:hover .course-thumb img {
    transform: scale(1.1);
}

.btn-outline-success {
    border: 1px solid #4b7ed1;
    color: #4b7ed1;
}

.btn-outline-success:hover {
    color: white;
    border-color: #1a1a1a;
    background-color: #1a1a1a;
}

.course-badge-corporate {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.course-overlay-tag {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 16px;
    border-radius: 6px 0 0 0;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.course-meta-corporate {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

.course-meta-corporate i {
    color: var(--pma-primary);
    margin-right: 6px;
}

.course-title {
    margin-bottom: 12px;
}

.course-title a {
    color: var(--pma-dark);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: var(--pma-primary);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

/* Buttons & Animations */
.btn-corporate {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-corporate:hover i {
    transform: translateX(4px);
}

/* Package Course Section */
.package-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pma-border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-card.premium {
    background: var(--pma-dark);
    color: white;
    border-color: var(--pma-dark);
}

.package-card.premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--pma-primary);
    border-radius: 16px 16px 0 0;
}

.package-price {
    font-size: 36px;
    font-weight: 800;
    margin: 20px 0;
    color: var(--pma-primary);
}

.package-card.premium .package-price {
    color: var(--pma-secondary);
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.package-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #64748b;
}

.package-card.premium .package-list li {
    color: #cbd5e1;
}

.package-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--pma-primary);
    font-size: 16px;
}

.package-card.premium .package-list li i {
    color: var(--pma-secondary);
}

.premium-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--pma-secondary);
    color: var(--pma-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

/* Campus Gallery */
.campus-card {
    cursor: pointer;
}

.campus-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.group-hover:hover img {
    transform: scale(1.08);
}

.absolute-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

.bg-gradient-dark {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
}

.transition-all {
    transition: all 0.3s ease;
}

.object-fit-cover {
    object-fit: cover;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    color: var(--bs-btn-active-color);
    background-color: #4b7ed1;
    border-color: #4b7ed1;
}

/* Clean Testimonial Styles */
.testimonial-swiper {
    padding-bottom: 50px;
    /* Space for pagination */
    overflow: hidden;
}

/* Testimonial Avatar Circle */
.testimonial-avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
    color: #4338ca;
    font-weight: 800;
    font-size: 20px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.15);
    line-height: 1;
}

/* Style for the uploaded Image */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1px);
    text-transform: strtoupper;
}
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    /* Elegant deep slate overlay */
    backdrop-filter: blur(12px);
    /* Beautiful frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    padding: 20px;
}

/* Trigger Class */
.promo-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 2. The Main Container */
.promo-popup-container {
    position: relative;
    max-width: 650px;
    /* Perfect width for a promo poster */
    width: 100%;
    border-radius: 20px;
    /* Start slightly scaled down and lower for the spring animation */
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Apple-style spring bounce */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Subtle glowing edge */
}

.promo-popup-overlay.is-visible .promo-popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 3. The Image Wrapping */
.promo-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    line-height: 0;
    /* Removes weird spacing under images */
    position: relative;
}

.promo-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    /* Prevents scrolling on small laptops */
    object-fit: cover;
    display: block;
}

/* Modern Price Display */
.course-price-display {
    font-size: 1.6rem;
    /* Large, prominent number */
    font-weight: 800;
    color: var(--pma-dark);
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.course-price-display .currency-symbol {
    font-size: 1.1rem;
    color: var(--pma-primary);
    margin-right: 4px;
    font-weight: 700;
}

.course-price-display .price-suffix {
    font-size: 1rem;
    color: #64748b;
    /* Soft slate gray */
    font-weight: 600;
    margin-left: 2px;
}

/* 4. The Floating Close Button */
.promo-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-close-btn:hover {
    background: #ef4444;
    /* Smooth transition to red */
    color: #ffffff;
    transform: scale(1.15) rotate(90deg);
    /* Satisfying rotation on hover */
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.fst-italic {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title.underline a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Optional: ensures the link behaves correctly for clamping */
    word-break: break-word;
}

/* High-Impact Price Display */
.course-price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.course-price-display .currency-symbol {
    font-size: 1.25rem;
    /* 20px */
    color: var(--pma-primary);
    font-weight: 800;
}

.course-price-display .price-amount {
    font-size: 2rem;
    /* 32px - Very large and prominent */
    font-weight: 900;
    color: var(--pma-dark);
    line-height: 1;
    letter-spacing: -0.5px;
}

.course-price-display .price-suffix {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 700;
    opacity: 0.8;
}

.card-bottom-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--pma-border);
}

@media (max-width: 768px) {
    .promo-close-btn {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
    }

    .promo-close-btn svg {
        width: 16px;
        height: 16px;
    }
}
