/* =============================================
   Frontend Styles - Course Management Pro
   ============================================= */
/* .course-duration {
    white-space: pre-line; /* This preserves line breaks */
} */
.booking-box{
  background:#ffffff;
  border:2px solid #f7931e;
  border-radius:6px;
  padding:12px 14px;
  margin:12px 0;
  font-size:14px;
  color:#333;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
}

.booking-box p{
  margin:4px 0;
}

.business-highlight{
  color:#f7931e;
  font-weight:700;
}
.single-course .entry-content {
    display: block;
}

.single-course .post-thumbnail
{
    display:none;
}
.highlight-note {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1em;
}


/* Booking Form Styles */
.cmp-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cmp-booking-header {
    margin-bottom: 30px;
    text-align: center;
}

.cmp-course-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.cmp-location-section, 
.cmp-calendar-section, 
.cmp-duration-section, 
.cmp-price-section {
    margin-bottom: 25px;
}

.cmp-location-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cmp-calendar-display {
    min-height: 200px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.cmp-confirmation {
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.cmp-confirmation label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-confirmation input[type="checkbox"] {
    margin: 0;
}

.cmp-book-now-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cmp-book-now-button:hover {
    background-color: #005a87;
}

/* Calendar Styles */
.cmp-calendar {
    margin-top: 20px;
}

.cmp-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cmp-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.cmp-legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.cmp-legend-available .cmp-legend-color {
    background-color: #4CAF50;
}

.cmp-legend-fully-booked .cmp-legend-color {
    background-color: #F44336;
}

.cmp-legend-unavailable .cmp-legend-color {
    background-color: #9E9E9E;
}

.cmp-legend-past .cmp-legend-color {
    background-color: #607D8B;
}

.cmp-legend-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.cmp-legend-item:hover .cmp-legend-tooltip {
    display: block;
}

.cmp-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cmp-month-year {
    font-weight: bold;
    font-size: 18px;
}

.cmp-nav-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.cmp-nav-btn:hover {
    background: #e9e9e9;
}

.cmp-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.cmp-days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.cmp-day {
    aspect-ratio: 1;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.cmp-day.empty {
    background: transparent;
    border: none;
}

.cmp-day-number {
    font-weight: bold;
    font-size: 14px;
}

.cmp-seats {
    font-size: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
    border-radius: 3px;
    text-align: center;
}

/* Day status colors */
.cmp-day.available {
    background-color: #4CAF50;
    border-color: #C8E6C9;
}

.cmp-day.available:hover {
    background-color: #C8E6C9;
}

.cmp-day.fully-booked {
    background-color: #ff1b3d;
    border-color: #FFCDD2;
    cursor: not-allowed;
	color:white;
}

.cmp-day.unavailable {
    background-color: #9E9E9E;
    border-color: #EEEEEE;
    cursor: not-allowed;
}

.cmp-day.past {
    background-color: #ECEFF1;
    border-color: #CFD8DC;
    cursor: not-allowed;
}

/* Student Details Form */
.cmp-student-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cmp-student-details h2 {
    margin-top: 0;
    color: #333;
}

.course-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.course-info p {
    margin: 5px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-actions .button {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.return-to-cart {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.return-to-cart:hover {
    background: #e9e9e9;
}

.button.primary {
    background: #0073aa;
    color: white;
    border: none;
}

.button.primary:hover {
    background: #005a87;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Courses Grid Styles */
.cmp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cmp-course-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.cmp-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cmp-course-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cmp-course-image.no-image {
    background-color: #f5f5f5;
}

.cmp-course-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.cmp-course-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.3;
}
/* 
.cmp-view-course {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
} */

.cmp-view-course {
    font-family: "Open Sans", Sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: #fe9110;
	 padding: 12px 20px;
	 border-radius: 4px;
	transition: background-color 0.3s ease;
	 color: white;
}
h3.cmp-course-title {
    margin-bottom: 20px !important;
}
.cmp-view-course:hover {
    background-color: #fe9110;
}


.cmp-day.available.selected {
    /* border: 2px solid green !important; */
    background: #004203 !important;
    color: white;
}


.courses-summary {
    display: flex;
    flex-direction: row-reverse;
}



/*total price */


span#cmp-total-price {
    opacity: 0;
}


.cmp-course-title h4 {
    font-weight: bolder;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .cmp-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .cmp-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cmp-course-card {
        height: 250px;
    }
    
    .cmp-course-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .cmp-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cmp-booking-container,
    .cmp-student-details {
        padding: 15px;
    }
    
    .cmp-course-title {
        font-size: 24px;
    }
}



