/* ✅ Change Header (course title) Color */
.course-title {
    color: #1d3557; /* Change to your preferred color */
    font-size: 2rem; /* Adjust as needed */
    text-align: center;
    font-weight: bold;
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
    .course-title {
        font-size: 1.8rem; /* Smaller size on mobile */
    }
}


.course-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.course-title {
    text-align: center;
    margin-bottom: 20px;
}

.course-summary {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

/* Course header section with price badge */
.course-header-section {
    text-align: center;
    margin-bottom: 25px;
}

.course-meta {
    margin-top: 10px;
}

.price-badge {
    font-size: 1.1rem;
    padding: 8px 16px;
}

/* Course info cards grid */
.course-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d3557;
    color: white;
    border-radius: 50%;
    font-size: 1rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d3557;
}

/* Enrolled message styling */
.enrolled-message {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
    margin-bottom: 15px;
}

.enrolled-message p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Responsive adjustments for info cards */
@media (max-width: 768px) {
    .course-info-cards {
        flex-direction: column;
    }

    .info-card {
        max-width: 100%;
    }
}


/*ADDED TO MODFIY THE BUTTONS*/
/* Container for buttons */
.course-buttons {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px;
}

/* Common button styles */
.custom-btn {
    width: 350px;
    height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Primary button (Blue) */
.custom-btn.primary {
    background-color: #a38e43;
    color: white;
}
.custom-btn.primary:hover {
    background-color: #1d3557;
    transform: scale(1.05);
}

/* Secondary button (Green) */
.custom-btn.secondary {
    background-color: #a38e43;
    color: white;
}
.custom-btn.secondary:hover {
    background-color: #1d3557;
    transform: scale(1.05);
}

/* Danger button (Red) */
.custom-btn.danger {
    background-color: #a38e43;
    color: white;
}
.custom-btn.danger:hover {
    background-color: #1d3557;
    transform: scale(1.05);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .custom-btn {
        width: 100%; /* Make buttons full width on small screens */
    }
}



/*FULL LENGHT BOTTOM BLOCK*/

/* ✅ Full-width Bottom Blocks Section */
    .bottom-blocks {
        position: relative;
        width: 100vw; /* Full viewport width */
        left: 50%;
        transform: translateX(-50%);
        background-color: #1d3557; /* Deep Blue */
        padding: 60px 20px;
        text-align: center;
        color: white;
    }

/* ✅ Container for Bottom Blocks */
    .bottom-blocks-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Distribute blocks evenly */
        gap: 20px;
        max-width: 1400px; /* Increased width */
        margin: 0 auto;
        padding: 0 20px; /* Optional padding to prevent edge contact */
    }

/* ✅ Individual Block */
    .bottom-block {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 8px;
        flex: 1 1 calc(25% - 20px); /* Adjust for 4 blocks per row */
        min-width: 250px;
        text-align: center;
        transition: all 0.3s ease-in-out; /* Smooth transition */
    }

/* ✅ Animated Border Effect */
    .bottom-block::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #f4a261, #e76f51);
        bottom: 0;
        left: -100%;
        transition: left 0.3s ease-in-out;
    }

/* ✅ Bottom Block Headings */
    .bottom-block h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        color: #a38e43; /* Accent Color */
        transition: color 0.3s ease-in-out;
    }

/* ✅ Bottom Block Paragraphs */
    .bottom-block p {
        font-size: 1rem;
        line-height: 1.6;
        color: #ffffff; /* White Text */
        transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

/* ✅ Icons Styling */
    .bottom-block i {
        font-size: 2rem;
        color: #fff; /* Accent Color */
        margin-bottom: 10px;
        display: block;
        transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    }

/* ✅ Hover Effect */
    .bottom-block:hover {
        transform: translateY(-5px) scale(1.05); /* Lift Effect */
        background-color: rgba(255, 255, 255, 0.2);
    }

/* ✅ Add Border Effect on Hover */
    .bottom-block:hover::after {
        left: 0;
    }

/* ✅ Animate Icon on Hover */
    .bottom-block:hover i {
        transform: rotate(10deg); /* Slight tilt effect */
        color: #a38e43; /* Change color */
    }

/* ✅ Animate Text on Hover */
    .bottom-block:hover h3 {
        color: #ffffff; /* White */
    }
    
    .bottom-block:hover p {
        color: #f4a261; /* Accent Color */
        transform: scale(1.05);
    }

/* ✅ Quick Links Styling */
    .bottom-block ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .bottom-block ul li {
        margin: 5px 0;
    }
    
    .bottom-block ul li a {
        color: #a38e43; /* Accent Color */
        text-decoration: none;
        transition: color 0.3s ease-in-out;
    }
    
    .bottom-block ul li a:hover {
        color: #e76f51; /* Hover Effect */
    }

/* ✅ Responsive Design */
    @media (max-width: 1024px) {
        .bottom-block {
            flex: 1 1 calc(50% - 20px); /* 2 blocks per row on medium screens */
        }
    }
    
    @media (max-width: 768px) {
        .bottom-block {
            flex: 1 1 100%; /* 1 block per row on small screens */
        }
    }

/*FOOTER SECTION*/

    /* ✅ Full-width Footer Section */
    .footer-section {
        position: relative;
        width: 100vw; /* Full viewport width */
        left: 50%;
        transform: translateX(-50%);
        background-color: #333638; /* Deep Blue */
        padding: 20px 10px;
        text-align: center;
        color: white;
        font-size: 1rem;
        font-weight: bold;
    }

/* ✅ Ensure Footer Stays at Bottom */
    .footer-section p {
        margin: 0;
        padding: 5px;
    }


