/* Modern 2026 UI/UX for Details Pages */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.course-details {
    width: 100%;
    background: transparent;
    font-family: "Outfit", sans-serif;
    position: relative;
    z-index: 1;
}

.course-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.course-hero i {
    font-size: 48px;
    background: linear-gradient(135deg, #05375c, #48bf84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: float 4s ease-in-out infinite;
}

.course-hero h2 {
    font-size: 38px;
    color: #05375c;
    margin: 10px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.course-hero p {
    font-size: 18px;
    color: #556575;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.course-sections {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 10px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Single Container Sections */
.course-card {
    width: 100%;
    padding: 35px 0;
    border-bottom: 1px solid rgba(5, 55, 92, 0.15);
}

.course-card:last-child {
    border-bottom: none;
}

.course-card h3 {
    font-size: 22px;
    color: #05375c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.course-card h3 i {
    color: #48bf84;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.course-card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
}

.course-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-card ul li {
    font-size: 16px;
    color: #445464;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

.course-card ul li i,
.course-card p i {
    color: #05375c;
    min-width: 24px;
    background: rgba(5, 55, 92, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.course-card ul li:hover i {
    background: #05375c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(5, 55, 92, 0.2);
}

.page-layout {
    margin-bottom: 80px;
}

.tour-content {
    flex: 1;
    min-width: 65%;
}

.booking-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    height: fit-content;
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Glassmorphism Booking widget */
.booking-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: "Outfit", sans-serif;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.booking-bar:hover {
    box-shadow: 0 20px 45px rgba(5, 55, 92, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

.booking-head h3 {
    font-size: 24px;
    color: #05375c;
    margin: 15px 0 25px;
    font-weight: 700;
    line-height: 1.3;
}

.ribbon {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #48bf84, #329965);
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(72, 191, 132, 0.4);
    letter-spacing: 0.5px;
    animation: pulseGlow 2s infinite alternate;
}

.booking-details {
    text-align: left;
    margin: 20px 0 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(5, 55, 92, 0.2);
}

.booking-details p {
    margin: 10px 0;
    font-size: 16px;
    color: #445464;
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-details i {
    color: #05375c;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.booking-price {
    margin: 20px 0 30px;
}

.booking-price .label {
    font-size: 14px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.booking-price h2 {
    font-size: 36px;
    margin: 10px 0;
    color: #05375c;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-price h2 i {
    color: #48bf84;
    margin-right: 8px;
    font-size: 30px;
}

.booking-price small {
    font-size: 14px;
    color: #666;
}

/* Modern Gradient Button */
.book-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #05375c, #0a5b99);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(5, 55, 92, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #48bf84, #0a5b99);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.book-btn i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(5, 55, 92, 0.4);
}

.book-btn:hover::before {
    opacity: 1;
}

.book-btn:hover i {
    transform: translateX(3px);
}

/* Mobile Booking Bar Glassmorphism */
.mobile-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #333;
    padding: 15px 25px;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    font-family: "Outfit", sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.5s ease-out forwards;
}

.mobile-booking-bar span {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.mobile-booking-bar strong {
    color: #05375c;
    font-size: 20px;
    display: block;
    font-weight: 700;
}

.mobile-book-btn {
    background: linear-gradient(135deg, #05375c, #48bf84);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(72, 191, 132, 0.3);
}

.mobile-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 191, 132, 0.5);
}

@media (max-width: 768px) {
    .mobile-booking-bar {
        display: flex;
    }
    .booking-sidebar {
        display: none;
    }
    .course-sections {
        padding: 10px 20px;
    }
    .course-card {
        padding: 25px 0;
    }
}

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    from { box-shadow: 0 4px 10px rgba(72, 191, 132, 0.2); }
    to { box-shadow: 0 8px 20px rgba(72, 191, 132, 0.6); }
}
/* Utility: Text Truncation */
.trim-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loader {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #87CEEB 0%, #004375 100%);
    z-index: 9999;
    flex-direction: column;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInLoader 0.5s ease-in;
}

.loader-gif {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 67, 117, 0.4);
    animation: pulseLoader 2s ease-in-out infinite;
}

@keyframes fadeInLoader {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseLoader {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
