@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Quicksand:wght@500;600&display=swap');

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Quicksand', Arial, sans-serif;
    background: #fffbe7;
    color: #2d2d2d;
}
.hero-section {
    position: relative;
    width: 100vw;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbe7 0%, #ffe066 60%, #ffd6e0 100%);
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #ffb300 0%, #00c3ff 100%);
    border-image-slice: 1;
    box-shadow: 0 8px 32px rgba(255, 179, 0, 0.10);
}

/* Course page specific hero background */
.courses-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-image: linear-gradient(90deg, #5b5ef7 0%, #00c3ff 100%);
    border-image-slice: 1;
    box-shadow: 0 8px 32px rgba(91, 94, 247, 0.15);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #2d2d2d;
}
.hero-title {
    font-size: 3.2rem;
    font-family: 'Baloo 2', 'Quicksand', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff9800 30%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 16px #ffe066, 0 2px 8px #fffbe7;
}
.hero-subtitle {
    font-size: 1.6rem;
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 600;
    color: #00bcd4;
    margin-top: 1rem;
    text-shadow: 0 0 8px #ffe066;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    animation: float 8s linear infinite;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateY(-60vh) scale(1.2); opacity: 0; }
}

/* Enhanced Section Titles */
.section-title-container {
    text-align: center;
    position: relative;
    margin-bottom: 60px;
    padding-top: 20px;
}

.section-title {
    position: relative;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    display: inline-block;
    margin-bottom: 15px;
    color: #2d2d2d;    background: linear-gradient(45deg, #0099cc, #0080b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23FFB300' d='M95,50c0,24.85-20.15,45-45,45S5,74.85,5,50S25.15,5,50,5S95,25.15,95,50z'/%3E%3C/svg%3E");
    background-size: contain;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%2300C3FF' d='M95,50c0,24.85-20.15,45-45,45S5,74.85,5,50S25.15,5,50,5S95,25.15,95,50z'/%3E%3C/svg%3E");
    background-size: contain;
    right: -48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.section-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ffb300, #00c3ff);
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffb300;
    border-radius: 50%;
    left: 0;
    top: -2px;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #00c3ff;
    border-radius: 50%;
    right: 0;
    top: -2px;
}

/* Course Overview Section */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-overview-section {
    padding: 80px 0;
    background: #fff;
}

.course-overview-section .section-title {
    text-align: center;
    font-family: 'Baloo 2', 'Quicksand', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #2d2d2d;
    position: relative;
}

.course-overview-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffb300 0%, #00c3ff 100%);
    border-radius: 4px;
}

.course-overview-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.course-overview-image {
    flex: 0 0 45%;
}

.course-overview-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-overview-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-overview-description {
    flex: 0 0 55%;
}

.course-overview-description h3 {
    font-family: 'Baloo 2', 'Quicksand', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00bcd4;
}

.course-overview-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.course-highlights {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    background: linear-gradient(135deg, #fffbe7 0%, #ffe066 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    box-shadow: 0 4px 10px rgba(255, 179, 0, 0.1);
    transition: transform 0.3s;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item h4 {
    font-family: 'Baloo 2', 'Quicksand', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ff9800;
}

.highlight-item p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Courses Section */
.courses-section {
    padding: 70px 0 60px 0;
   
    position: relative;
    z-index: 1;
}
.courses-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.courses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}
.course-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0,184,255,0.13);
}
.course-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Special styling for course showcase images */
.single-course-showcase .course-card img {
    width: 40%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.course-info {
    padding: 24px 20px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Special styling for course showcase info */
.single-course-showcase .course-info {
    padding: 32px;
}
.course-info h3 {
    font-size: 1.25rem;
    color: #00bcd4;
    font-weight: 700;
    margin-bottom: 6px;
}
.course-info p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}
.learn-more-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #ffb300 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}
.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.3);
}
.learn-more-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

/* Modal Styles */
/* Course Modal Styling */
.course-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}
.modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    max-width: 90%;
    width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    animation: modalAppear 0.4s forwards;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    padding: 32px;
}

.modal-body h3 {
    color: #0080b0;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.8rem;
    position: relative;
}

.modal-body h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #00b8ff, #00d7eb);
    margin-top: 8px;
    border-radius: 2px;
}

.modal-body p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.modal-body ul li {
    margin-bottom: 8px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 30px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
    line-height: 24px;
}

.close-modal:hover {
    color: #333;
}

/* Content positioning */
.global-background,
.course-overview-section,
.enquiry-section,
footer.site-footer {
    position: relative;
    z-index: 2;
}

/* Navigation styling */
.main-nav {
    position: relative;
    z-index: 10;
}

/* Single Course Showcase Carousel */
.single-course-showcase {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-course-showcase .course-card {
    display: none;
    opacity: 0;
    transform: scale(0.97) translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 8px 32px rgba(0,184,255,0.10);
    background: #fff;
    z-index: 2;
    width: 100%;
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden;
}
.single-course-showcase .course-card.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: shineCard 1s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes shineCard {
    0% { opacity: 0; transform: scale(0.95) translateY(40px); box-shadow: none; }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.course-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    gap: 24px;
}
.course-nav button {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00b8ff 0%, #00d7eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.course-nav button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.course-nav button.clicked::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}
.course-nav button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 184, 255, 0.3);
}
.course-nav button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 184, 255, 0.2);
}
.course-nav button[data-position="first"],
.course-nav button[data-position="last"] {
    position: relative;
}
.course-nav button[data-position="first"]::after,
.course-nav button[data-position="last"]::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}
.single-course-showcase.transitioning .course-card {
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Background for single course showcase */
.single-course-showcase {
    position: relative;
    background: linear-gradient(135deg, #fffbe7 0%, #e0f7fa 100%);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 195, 255, 0.08), 0 2px 8px rgba(255, 179, 0, 0.08);
    padding: 48px 32px 32px 32px;
    margin-bottom: 40px;
    overflow: hidden;
}
.single-course-showcase::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, #00c3ff33 0%, transparent 80%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite alternate;
}
.single-course-showcase::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, #ffb30033 0%, transparent 80%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite alternate-reverse;
}
.single-course-showcase .course-card {
    z-index: 1;
    background: #fff;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

/* Responsive styles */
@media (max-width: 900px) {
    .course-overview-content {
        flex-direction: column;
    }
    
    .course-overview-image,
    .course-overview-description {
        flex: 0 0 100%;
    }
    
    .course-highlights {
        flex-direction: column;
    }
    .courses-list {
        flex-direction: column;
        align-items: center;
    }
    .course-card {
        width: 98vw;
        max-width: 370px;
    }
}

@media (max-width: 768px) {
    .course-overview-section {
        padding: 40px 0;
    }
    
    .course-overview-section .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .course-overview-description h3 {
        font-size: 1.5rem;
    }

    /* Responsive fixes for course cards in showcase */
    .single-course-showcase {
        min-height: 650px;
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .single-course-showcase .course-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .single-course-showcase .course-card img {
        width: 100%;
        height: 220px;
        border-radius: 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        border-bottom-left-radius: 0;
    }
    
    .single-course-showcase .course-info {
        padding: 24px 20px;
    }
    
    .course-nav {
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-title::before,
    .section-title::after {
        width: 30px;
        height: 30px;
    }
    
    .section-title::before {
        left: -35px;
    }
    
    .section-title::after {
        right: -35px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

/* Global Background Effect */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 251, 231, 0.97) 0%, 
        rgba(255, 240, 180, 0.95) 50%, 
        rgba(255, 251, 231, 0.90) 100%);
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 179, 0, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(0, 195, 255, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 60% 25%, rgba(0, 215, 235, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 30% 80%, rgba(255, 111, 145, 0.05) 2px, transparent 3px);
    background-size: 30px 30px, 40px 40px, 35px 35px, 25px 25px;
    animation: particles 15s linear infinite;
}

.bg-wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 50% auto;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z' opacity='.1' fill='%2300BCD4'/%3E%3Cpath d='M0 0v15.81c13 21.11 27.64 41.05 47.69 56.24C99.41 111.27 165 111 224.58 91.58c31.15-10.15 60.09-26.07 89.67-39.8 40.92-19 84.73-46 130.83-49.67 36.26-2.85 70.9 9.42 98.6 31.56 31.77 25.39 62.32 62 103.63 73 40.44 10.79 81.35-6.69 119.13-24.28s75.16-39 116.92-43.05c59.73-5.85 113.28 22.88 168.9 38.84 30.2 8.66 59 6.17 87.09-7.5 22.43-10.89 48-26.93 60.65-49.24V0z' opacity='.1' fill='%23FFA000'/%3E%3C/svg%3E");
    animation: wave 20s linear infinite;
}

@keyframes particles {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 30px 30px, 40px -40px, -35px 35px, 25px -25px; }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Adjust content sections to work with the background */
.course-overview-section,
.enquiry-section {
    position: relative;
    background: transparent;
    z-index: 1;
}

/* Add some subtle drop shadows to cards for depth */
.course-overview-content,
.enquiry-features-card,
.enquiry-form-card,
.highlight-item {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
}

/* Floating Elements for Background */
.floating-element {
    position: absolute;
    opacity: 0.2;
    pointer-events: none;
    animation: float-around 30s linear infinite;
}

.floating-element.circle {
    border-radius: 50%;
}

.floating-element.triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: calc(var(--size, 30px) / 2) solid transparent;
    border-right: calc(var(--size, 30px) / 2) solid transparent;
    border-bottom: var(--size, 30px) solid var(--color, rgba(255, 179, 0, 0.1));
    background-color: transparent !important;
}

.floating-element.square {
    border-radius: 4px;
    transform: rotate(45deg);
}

.floating-element.plus {
    background-color: transparent !important;
    position: relative;
}

.floating-element.plus:before,
.floating-element.plus:after {
    content: "";
    position: absolute;
    background-color: var(--color, rgba(0, 195, 255, 0.1));
}

.floating-element.plus:before {
    width: 100%;
    height: 30%;
    top: 35%;
}

.floating-element.plus:after {
    width: 30%;
    height: 100%;
    left: 35%;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translate(calc(-100vw - 100px), calc(-50vh + 200px)) rotate(360deg);
        opacity: 0;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}
.hero-gradient {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, #ffb300 0%, #00c3ff 100%);
    opacity: 0.32;
    z-index: 1;
    transition: background 1s;
}
.hero-floating-shapes {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 2;
}
.hero-floating-shape {
    position: absolute;
    opacity: 0.18;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: lighten;
}

.course-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 24px;
}

.course-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.course-detail-item h4 {
    font-family: 'Baloo 2', sans-serif;
    color: #0080b0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.course-detail-item ul {
    padding-left: 20px;
    margin: 0;
}

.course-detail-item li {
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .course-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
}

/* Section Title Decorative Elements */
.title-decoration-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
    transform-origin: center center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-out;
}
