/* single-programs.css */
/*==========================
 TOP BANNER SECTION STYLE
 ========================== */
	#page .site-content .course-hero-section {
    background-color: #f5f7fb;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}
    .site-content .ast-container {
        display: flex;
        flex-direction: column;
    }

.program-meta-single {
    font-size: 16px;
/*     color: #555; */
	font-family: var(--primary-font);
	color: var(--dark-text);
    margin-bottom: 10px;
}
.course-hero-section {
  display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    background-color: #f5f7fb;
    padding: 0px 10px;
    gap: 30px;
    flex-direction: row;
	padding-bottom: 65px;
}
.course-hero-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}
.course-hero-right {
    flex: 1 1 50%;
    background-image: url('https://coursebazaar.com/wp-content/uploads/2025/07/test.avif');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    min-height: 400px;
}
.course-hero-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1c1d1f;
}
.course-hero-sub {
    font-size: 17px;
	font-family: var(--primary-font);
	color: var(--dark-text);
    margin-bottom: 0px;
/*     color: #555; */
}
.course-hero-btn {
    display: inline-block;
    background: #0056d2;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin: 15px 0;
    width: fit-content;
}
.course-meta {
    font-size: 16px;
    color: #333;
}
.single-page {
    text-align: start;

}
@media screen and (max-width: 768px) {
    .course-hero-section {
        flex-direction: column;
    }
    .course-hero-right {
        min-height: 250px;
        border-radius: 8px;
    }
}
/*==========================
 OVER ALL SUMMARY SECTION STYLE
 ========================== */
/*banner below  */
/* Summary Box Section */
.course-summary-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 25px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
	 margin-top: -67px;
}
.course-summary-box .summary-item {
    flex: 1 1 180px;
}
.summary-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.summary-item span {
    font-size: 14px;
    color: #555;
}
/*==========================
 MIDDLE BODY STICKY NAVIGATION STYLE
 ========================== */
 /* body Sticky Navigation */
    #program-nav {
/*         position: sticky; */
        top: 0;
        background-color: #2c3e5000;
        z-index: 100;
		margin-top: 50px;
		margin-bottom: 50px;
        padding: 15px 0;
		padding: 22px 0;
    border-bottom: solid 2px #e8eef7;
		width: fit-content;
    }
    
    #program-nav ul {
        display: flex;
        justify-content: flex-start;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    
    #program-nav li {
        margin: 0 10px;
    }
    
    #program-nav a {
        color: #000000;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
#program-nav a:hover, #program-nav a.active {
    background-color: #f2f5fa;
    color: #0056d2;
/*     text-decoration: underline; */
    font-weight: 600;
	border-radius: 4px;
	white-space: nowrap;
}

    
    /* Hero Section */
    
    .summary-item {
        text-align: center;
        padding: 15px;
        min-width: 150px;
    }
    
    /* Section styling */
    .program-section {
        padding: 30px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    section#about {
    margin-top: -30px;
}
    .program-section:nth-child(even) {
        background-color: #f9f9f9;
    }
    
.section-title {
    text-align: start;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .course-hero-section {
            flex-direction: column;
        }
        
        #program-nav ul {
            flex-direction: column;
            align-items: center;
        }
        
        #program-nav li {
            margin: 5px 0;
        }
        
        .program-meta {
            flex-direction: column;
            gap: 15px;
        }
        
        .course-summary-box {
            flex-direction: column;
            align-items: center;
        }
    }
/*==========================
 SCROLL TOP NAVIGATION BER STYLE
 ========================== */
/* scroll top nev bar */
/* Full width background container */
.course-sticky-header-bg {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}
.course-sticky-header-bg.is-visible {
    top: 0;
}

.course-sticky-header {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.course-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
/*     background: #f8f9fa; */
    border-bottom: 1px solid #e9ecef;
}

.js-course-title {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.js-enroll-btn {
    padding: 8px 20px;
    background: #3498db00;
    color: #202658;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.js-enroll-btn:hover {
    background: #2980b900;
	color: white;
}

.course-header-nav {
    background: transparent;
    padding: 10px 0;
}

.course-nav-list {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-nav-item {
    margin: 0 5px;
}

.course-nav-link {
    display: block;
    padding: 8px 15px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.course-nav-link:hover,
.course-nav-link.is-active {
    background-color: #f2f5fa;
    color: #0056d2;
/*     text-decoration: underline; */
    font-weight: 600;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 1240px) {
    .course-sticky-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .course-header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .course-nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .course-nav-item {
        margin: 5px;
    }
}

/*  */

.course-nav-item.contact-number {
    margin-left: auto; /* Pushes it to the right */
}

.course-nav-item.contact-number a {
    display: flex;
    flex-direction: column;
    text-align: right;
    padding: 0px 15px;
    white-space: nowrap;
}

.course-nav-item.contact-number span:first-child {
    font-size: 0.8em;
    color: #666;
}

.course-nav-item.contact-number span:last-child {
    font-weight: bold;
    color: #000;
}

/* form-section */
.program-page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#program-content {
    width: 70%;
}

#form-section {
    width: 30%;
    position: sticky;
    top: 150px; /* Adjust based on your header height */
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}
#form-section {
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}
/* Form */
.forminator-ui.forminator-custom-form[data-design=default] .forminator-has_error .forminator-error-message {
    display: block;
    font-size: 13px;
    color: #f1644c;
    line-height: 14px;
    font-weight: 500;
}
.forminator-ui.forminator-custom-form[data-grid=open] .forminator-row-inside:not(:last-child), .forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child) {
    margin-bottom: 15px;
}
/* Change field border to green when there's an error */
.forminator-field.forminator-has_error .forminator-input {
    border: 1px solid #f1644c !important;
}

/* Change placeholder text color to green on error */
.forminator-field.forminator-has_error .forminator-input::placeholder {
    color: #f1644c !important;
    opacity: 1; /* ensures color is not faded */
	font-size:13px;
}

/* Optional: also change the error message text color */
.forminator-error-message {
    color: #f1644c !important;
}
.forminator-input {
    border-radius: 4px !important;
}
/* Default style for select box */
.select2-selection--single {
    border-radius: 4px !important;
    height: 45px !important;
    border: 1px solid #ccc !important;
    padding: 6px 12px !important;
}

/* Placeholder color (default) */
.select2-selection__placeholder {
    color: #999 !important;
}

/* When the field has error (Forminator adds class) */
.forminator-has_error .select2-selection--single {
    border: 1px solid #f1644c !important;
    border-radius: 4px !important;
}

/* Placeholder color on error */
.forminator-has_error .select2-selection__placeholder {
    color: #f1644c !important;
	font-size: 13px;
}
/* Dropdown (opened list) background color */
.select2-container .select2-dropdown {
    background-color: #ffffff !important;
}

/* Dropdown option items background and text color */
.select2-container .select2-results__option {
    background-color: #ffffff !important;
    color: #333 !important;
}

/* Highlight on hover */
.select2-container .select2-results__option--highlighted {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}
.forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--default {
    padding: 9px 0;
    border-style: solid;
    background: #ffffff;
}
/* Make the button full width, center text, and round corners */
.forminator-button-submit {
    width: 100% !important;
    text-align: center !important;
    border-radius: 4px !important;
    display: block;
}
h6.fm-single {
    text-align: center;
}

/* Hidden Form Popup */
.form-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.form-popup-box {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
    max-height: 90vh;
}

.form-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}
/*  Read more*/
.toggle-about-btn {
    display: inline-block;
    margin-top: 0px;
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}
